[interchange-cvs] interchange - heins modified
lib/Vend/Table/DBI_CompositeKey.pm
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Sun Apr 11 11:55:03 EDT 2004
User: heins
Date: 2004-04-11 15:55:03 GMT
Modified: lib/Vend/Table DBI_CompositeKey.pm
Log:
* Make set_field() return the data component as per normal.
Revision Changes Path
1.2 +5 -3 interchange/lib/Vend/Table/DBI_CompositeKey.pm
rev 1.2, prev_rev 1.1
Index: DBI_CompositeKey.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Table/DBI_CompositeKey.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- DBI_CompositeKey.pm 11 Apr 2004 05:05:49 -0000 1.1
+++ DBI_CompositeKey.pm 11 Apr 2004 15:55:03 -0000 1.2
@@ -1,6 +1,6 @@
# Vend::Table::DBI - Access a table stored in an DBI/DBD database
#
-# $Id: DBI_CompositeKey.pm,v 1.1 2004/04/11 05:05:49 mheins Exp $
+# $Id: DBI_CompositeKey.pm,v 1.2 2004/04/11 15:55:03 mheins Exp $
#
# Copyright (C) 2002-2004 Interchange Development Group
# Copyright (C) 1996-2002 Red Hat, Inc.
@@ -21,7 +21,7 @@
# MA 02111-1307 USA.
package Vend::Table::DBI_CompositeKey;
-$VERSION = substr(q$Revision: 1.1 $, 10);
+$VERSION = substr(q$Revision: 1.2 $, 10);
use strict;
@@ -684,7 +684,9 @@
undef $value if $value eq '' and exists $s->[$CONFIG]{PREFER_NULL}{$column};
- $s->set_slice($key, [$column], [$value]);
+ $s->set_slice($key, [$column], [$value])
+ and return $value;
+ return undef;
}
sub ref {
More information about the interchange-cvs
mailing list