[Bps-public-commit] jifty-dbi branch, master, updated. 91cb3225c8725729981f9eff39e9874ba6d3f0f0
Alex M Vandiver
alexmv at bestpractical.com
Tue Dec 29 15:33:10 EST 2009
The branch, master has been updated
via 91cb3225c8725729981f9eff39e9874ba6d3f0f0 (commit)
from 863031eba3832efa3f3261937191baf676c66958 (commit)
Summary of changes:
lib/Jifty/DBI/Handle/Pg.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 91cb3225c8725729981f9eff39e9874ba6d3f0f0
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Tue Dec 29 15:31:54 2009 -0500
Don't add LOWER() on <= or >= operators, only =
diff --git a/lib/Jifty/DBI/Handle/Pg.pm b/lib/Jifty/DBI/Handle/Pg.pm
index 854155c..192cae6 100755
--- a/lib/Jifty/DBI/Handle/Pg.pm
+++ b/lib/Jifty/DBI/Handle/Pg.pm
@@ -173,7 +173,7 @@ sub _make_clause_case_insensitive {
my $value = shift;
if ( $self->_case_insensitivity_valid( $column, $operator, $value ) ) {
- if ( $operator =~ /(?:LIKE|=|IN)/i ) {
+ if ( $operator =~ /^(?:LIKE|=|IN)$/i ) {
$column = "LOWER($column)";
if ( $operator =~ /^(IN|=)$/i and ref($value) eq 'ARRAY' ) {
$value = [ map {"LOWER($_)"} @$value ];
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list