[interchange-cvs] interchange - racke modified lib/Vend/Table/DBI.pm
interchange-core@interchange.redhat.com
interchange-core@interchange.redhat.com
Fri Nov 2 03:33:00 2001
User: racke
Date: 2001-11-02 08:32:15 GMT
Modified: lib/Vend/Table Tag: LINUXIA DBI.pm
Log:
fixed very subtle bug where you end up with queries like
select sku,name from products where class='Lingerie' and category like '0ancer%' order by name limit 6
instead of
select sku,name from products where class='Lingerie' and category like '%Dancer%' order by name limit 6
when called from embedded Perl
because Vend::Util::errmsg does the same expansion even without arguments it
was quite hard to find this thingy
Revision Changes Path
No revision
No revision
1.19.4.9 +3 -3 interchange/lib/Vend/Table/DBI.pm
rev 1.19.4.9, prev_rev 1.19.4.8
Index: DBI.pm
===================================================================
RCS file: /anon_cvs/repository/interchange/lib/Vend/Table/DBI.pm,v
retrieving revision 1.19.4.8
retrieving revision 1.19.4.9
diff -u -r1.19.4.8 -r1.19.4.9
--- DBI.pm 2001/02/07 17:58:14 1.19.4.8
+++ DBI.pm 2001/11/02 08:32:15 1.19.4.9
@@ -1,6 +1,6 @@
# Table/DBI.pm: access a table stored in an DBI/DBD Database
#
-# $Id: DBI.pm,v 1.19.4.8 2001/02/07 17:58:14 racke Exp $
+# $Id: DBI.pm,v 1.19.4.9 2001/11/02 08:32:15 racke Exp $
#
# Copyright (C) 1996-2000 Akopia, Inc. <info@akopia.com>
#
@@ -20,7 +20,7 @@
# MA 02111-1307 USA.
package Vend::Table::DBI;
-$VERSION = substr(q$Revision: 1.19.4.8 $, 10);
+$VERSION = substr(q$Revision: 1.19.4.9 $, 10);
use strict;
@@ -874,7 +874,7 @@
my($s, $opt, $text, @arg) = @_;
if(! CORE::ref($opt)) {
- unshift @arg, $text;
+ unshift @arg, $text if defined $text;
$text = $opt;
$opt = {};
}