[Rt-commit] [svn] r1324 - DBIx-SearchBuilder/branches/1.20-SYBASE
jesse at pallas.eruditorum.org
jesse at pallas.eruditorum.org
Sun Aug 8 16:52:54 EDT 2004
Author: jesse
Date: Sun Aug 8 16:52:54 2004
New Revision: 1324
Modified:
DBIx-SearchBuilder/branches/1.20-SYBASE/ (props changed)
DBIx-SearchBuilder/branches/1.20-SYBASE/SearchBuilder.pm
Log:
----------------------------------------------------------------------
r8374 at tinbook: jesse | 2004-08-08T20:51:23.146078Z
Sybase can\'t cope with quoted integers
----------------------------------------------------------------------
Modified: DBIx-SearchBuilder/branches/1.20-SYBASE/SearchBuilder.pm
==============================================================================
--- DBIx-SearchBuilder/branches/1.20-SYBASE/SearchBuilder.pm (original)
+++ DBIx-SearchBuilder/branches/1.20-SYBASE/SearchBuilder.pm Sun Aug 8 16:52:54 2004
@@ -636,7 +636,8 @@
#if we're explicitly told not to to quote the value or
# we're doing an IS or IS NOT (null), don't quote the operator.
- if ( $args{'QUOTEVALUE'} && $args{'OPERATOR'} !~ /IS/i ) {
+ if ( $args{'QUOTEVALUE'} && $args{'OPERATOR'} !~ /IS/i && $args{'VALUE'} !~ /^\d+$/) {
+ # XXX This should be smarter and not rely on whether the current value is an integer but on whether it's an int field
my $tmp = $self->_Handle->dbh->quote( $args{'VALUE'} );
# Accomodate DBI drivers that don't understand UTF8
More information about the Rt-commit
mailing list