db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r227406 - /db/derby/code/branches/10.1/java/engine/org/apache/derby/impl/sql/compile/BinaryOperatorNode.java
Date Thu, 04 Aug 2005 14:20:27 GMT
Author: djd
Date: Thu Aug  4 07:20:25 2005
New Revision: 227406

URL: http://svn.apache.org/viewcvs?rev=227406&view=rev
Log:
DERBY-488 Cast the return (DataValueDescriptor) from a generated call to setWidth to the type
of the field
it was being stored in (sub-class of DataValueDescriptor, e.g. NumberDataValue). The previous
incorrect
assignment worked and passed most verifiers but the 1.4.2 VM on IBM iSeries rejected the generated
class.

Modified:
    db/derby/code/branches/10.1/java/engine/org/apache/derby/impl/sql/compile/BinaryOperatorNode.java

Modified: db/derby/code/branches/10.1/java/engine/org/apache/derby/impl/sql/compile/BinaryOperatorNode.java
URL: http://svn.apache.org/viewcvs/db/derby/code/branches/10.1/java/engine/org/apache/derby/impl/sql/compile/BinaryOperatorNode.java?rev=227406&r1=227405&r2=227406&view=diff
==============================================================================
--- db/derby/code/branches/10.1/java/engine/org/apache/derby/impl/sql/compile/BinaryOperatorNode.java
(original)
+++ db/derby/code/branches/10.1/java/engine/org/apache/derby/impl/sql/compile/BinaryOperatorNode.java
Thu Aug  4 07:20:25 2005
@@ -600,6 +600,7 @@
 					mb.push(getTypeServices().getScale());
 					mb.push(true);
 					mb.callMethod(VMOpcode.INVOKEINTERFACE, ClassName.VariableSizeDataValue, "setWidth",
ClassName.DataValueDescriptor, 3);
+					mb.cast(resultTypeName);
 				}
 			}
 



Mime
View raw message