[interchange-cvs] interchange - racke modified lib/Vend/Table/Shadow.pm
interchange-core@icdevgroup.org
interchange-core@icdevgroup.org
Wed Apr 9 20:53:00 2003
User: racke
Date: 2003-04-10 00:52:54 GMT
Modified: lib/Vend/Table Shadow.pm
Log:
debug statement removed
use config entry as authoritative source for the database name
which fixes an infinite loop in the query method
Revision Changes Path
1.32 +3 -4 interchange/lib/Vend/Table/Shadow.pm
rev 1.32, prev_rev 1.31
Index: Shadow.pm
===================================================================
RCS file: /anon_cvs/repository/interchange/lib/Vend/Table/Shadow.pm,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- Shadow.pm 8 Apr 2003 13:41:03 -0000 1.31
+++ Shadow.pm 10 Apr 2003 00:52:54 -0000 1.32
@@ -1,6 +1,6 @@
# Vend::Table::Shadow - Access a virtual "Shadow" table
#
-# $Id: Shadow.pm,v 1.31 2003/04/08 13:41:03 racke Exp $
+# $Id: Shadow.pm,v 1.32 2003/04/10 00:52:54 racke Exp $
#
# Copyright (C) 2002-2003 Stefan Hornburg (Racke) <racke@linuxia.de>
#
@@ -20,7 +20,7 @@
# MA 02111-1307 USA.
package Vend::Table::Shadow;
-$VERSION = substr(q$Revision: 1.31 $, 10);
+$VERSION = substr(q$Revision: 1.32 $, 10);
# TODO
#
@@ -212,7 +212,6 @@
$s = $s->import_db() unless defined $s->[$OBJ];
# usually we want to operate on the original table
- ::logDebug("SET_FIELD: $key $column $value");
$s->[$OBJ]->set_field($key, $column, $value);
}
@@ -283,7 +282,7 @@
my $table = $qref->{tables}->[0];
my $db;
- if ($table ne $s->[$TABLE]) {
+ if ($table ne $s->[$CONFIG]->{name}) {
# pass query to other table, but preserve the query info
$opt->{queryinfo} = $qref;
unless ($db = Vend::Data::database_exists_ref($table)) {