Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix typo.

  • Loading branch information...
commit bbdf5d7c426c428a9d46aa150f378de072539d13 1 parent 13fbed9
@bokutin bokutin authored
View
2  lib/Teng.pm
@@ -917,7 +917,7 @@ It's useful in case use IN statement.
If you give table_name. It is assumed the hint that makes Teng::Row's Object.
-=item $itr = $teng->search_by_sql($sql, [\@bind_vlues, [$table_name]])
+=item $itr = $teng->search_by_sql($sql, [\@bind_values, [$table_name]])
execute your SQL
View
2  lib/Teng/Row.pm
@@ -49,7 +49,7 @@ sub get_column {
if ( exists $self->{row_data}->{$col} ) {
return $self->{row_data}->{$col};
} else {
- Carp::croak("Specified colum '$col' not found in row (query: " . ( $self->{sql} || 'unknown' ) . ")" );
+ Carp::croak("Specified column '$col' not found in row (query: " . ( $self->{sql} || 'unknown' ) . ")" );
}
}
View
4 t/002_common/020_get_column.t
@@ -25,7 +25,7 @@ subtest 'get_column' => sub {
$row->get_column('bazbaz');
};
ok $@;
- like $@, qr/Specified colum 'bazbaz' not found in row/;
+ like $@, qr/Specified column 'bazbaz' not found in row/;
};
subtest 'get_column' => sub {
@@ -38,7 +38,7 @@ subtest 'get_column' => sub {
$row->get_column('name');
};
ok $@;
- like $@, qr/Specified colum 'name' not found in row \(query: SELECT id FROM mock_basic LIMIT 1\)/;
+ like $@, qr/Specified column 'name' not found in row \(query: SELECT id FROM mock_basic LIMIT 1\)/;
};
done_testing;

0 comments on commit bbdf5d7

Please sign in to comment.
Something went wrong with that request. Please try again.