[interchange-cvs] interchange - heins modified
lib/Vend/Table/DBI_CompositeKey.pm
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Sun Apr 11 12:11:45 EDT 2004
User: heins
Date: 2004-04-11 16:11:45 GMT
Modified: lib/Vend/Table DBI_CompositeKey.pm
Log:
* Make sure set_slice() doesn't destroy passed hash.
Revision Changes Path
1.3 +6 -3 interchange/lib/Vend/Table/DBI_CompositeKey.pm
rev 1.3, prev_rev 1.2
Index: DBI_CompositeKey.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Table/DBI_CompositeKey.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DBI_CompositeKey.pm 11 Apr 2004 15:55:03 -0000 1.2
+++ DBI_CompositeKey.pm 11 Apr 2004 16:11:45 -0000 1.3
@@ -1,6 +1,6 @@
# Vend::Table::DBI - Access a table stored in an DBI/DBD database
#
-# $Id: DBI_CompositeKey.pm,v 1.2 2004/04/11 15:55:03 mheins Exp $
+# $Id: DBI_CompositeKey.pm,v 1.3 2004/04/11 16:11:45 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.2 $, 10);
+$VERSION = substr(q$Revision: 1.3 $, 10);
use strict;
@@ -314,7 +314,10 @@
}
else {
my $href = $fin;
- if(ref $href ne 'HASH') {
+ if(ref $href eq 'HASH') {
+ $href = { %$href };
+ }
+ else {
$href = { splice (@_, 2) };
}
More information about the interchange-cvs
mailing list