[interchange-cvs] interchange - heins modified lib/Vend/Table/DBI.pm
interchange-core@icdevgroup.org
interchange-core@icdevgroup.org
Wed Jul 24 17:42:00 2002
User: heins
Date: 2002-07-24 21:41:08 GMT
Modified: lib/Vend/Table DBI.pm
Log:
* Fix serious bug where inserted record for set_slice was truncating
field and value list if the key field was in the list.
Revision Changes Path
2.28 +4 -4 interchange/lib/Vend/Table/DBI.pm
rev 2.28, prev_rev 2.27
Index: DBI.pm
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /anon_cvs/repository/interchange/lib/Vend/Table/DBI.pm,v
retrieving revision 2.27
retrieving revision 2.28
diff -u -r2.27 -r2.28
--- DBI.pm 23 Jul 2002 13:17:24 -0000 2.27
+++ DBI.pm 24 Jul 2002 21:41:07 -0000 2.28
@@ -1,6 +1,6 @@
# Vend::Table::DBI - Access a table stored in an DBI/DBD database
#
-# $Id: DBI.pm,v 2.27 2002/07/23 13:17:24 mheins Exp $
+# $Id: DBI.pm,v 2.28 2002/07/24 21:41:07 mheins Exp $
#
# Copyright (C) 1996-2002 Red Hat, Inc. <interchange@redhat.com>
#
@@ -20,7 +20,7 @@
# MA 02111-1307 USA.
=20
package Vend::Table::DBI;
-$VERSION =3D substr(q$Revision: 2.27 $, 10);
+$VERSION =3D substr(q$Revision: 2.28 $, 10);
=20
use strict;
=20
@@ -1072,8 +1072,8 @@
}
for(my $i =3D 0; $i < @$fary; $i++) {
next unless $fary->[$i] eq $s->[$KEY];
- splice @$fary, $i;
- splice @$vary, $i;
+ splice @$fary, $i, 1;
+ splice @$vary, $i, 1;
last;
}
unshift @$fary, $s->[$KEY];