[interchange-cvs] interchange - heins modified lib/Vend/Table/DBI.pm

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Thu Aug 1 12:41:01 2002


User:      heins
Date:      2002-08-01 16:40:16 GMT
Modified:  lib/Vend/Table DBI.pm
Log:
* Fix set_row() to use the right value to send to last_sequence_value()
  is called on import.

Revision  Changes    Path
2.29      +3 -3      interchange/lib/Vend/Table/DBI.pm


rev 2.29, prev_rev 2.28
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.28
retrieving revision 2.29
diff -u -r2.28 -r2.29
--- DBI.pm	24 Jul 2002 21:41:07 -0000	2.28
+++ DBI.pm	1 Aug 2002 16:40:14 -0000	2.29
@@ -1,6 +1,6 @@
 # Vend::Table::DBI - Access a table stored in an DBI/DBD database
 #
-# $Id: DBI.pm,v 2.28 2002/07/24 21:41:07 mheins Exp $
+# $Id: DBI.pm,v 2.29 2002/08/01 16:40:14 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.28 $, 10);
+$VERSION =3D substr(q$Revision: 2.29 $, 10);
=20
 use strict;
=20
@@ -1203,7 +1203,7 @@
 		or die "$DBI::errstr\n";
=20
 	$val	=3D $cfg->{AUTO_SEQUENCE}
-			?  $s->last_sequence_value($val)
+			?  $s->last_sequence_value($fields[$ki])
 			: $fields[$ki];
=20
 #::logDebug("set_row rc=3D$rc key=3D$val");