db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From banda...@apache.org
Subject svn commit: r189664 - /incubator/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/UpdateNode.java
Date Wed, 08 Jun 2005 22:48:30 GMT
Author: bandaram
Date: Wed Jun  8 15:48:28 2005
New Revision: 189664

URL: http://svn.apache.org/viewcvs?rev=189664&view=rev
Log:
Handle the case of VTIs in UpdateNode. The tableName can be NULL there.

Submitted by Satheesh Bandaram (satheesh@sourcery.org)

Modified:
    incubator/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/UpdateNode.java

Modified: incubator/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/UpdateNode.java
URL: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/UpdateNode.java?rev=189664&r1=189663&r2=189664&view=diff
==============================================================================
--- incubator/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/UpdateNode.java
(original)
+++ incubator/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/UpdateNode.java
Wed Jun  8 15:48:28 2005
@@ -202,9 +202,12 @@
 		DataDictionary dataDictionary = getDataDictionary();
 
 		// check if targetTable is a synonym
-		TableName synonymTab = resolveTableToSynonym(this.targetTableName);
-		if (synonymTab != null)
-			this.targetTableName = synonymTab;
+		if (targetTableName != null)
+		{
+			TableName synonymTab = resolveTableToSynonym(this.targetTableName);
+			if (synonymTab != null)
+				this.targetTableName = synonymTab;
+		}
 
 		bindTables(dataDictionary);
 



Mime
View raw message