db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From banda...@apache.org
Subject svn commit: rev 55161 - incubator/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile
Date Wed, 20 Oct 2004 16:15:29 GMT
Author: bandaram
Date: Wed Oct 20 09:15:29 2004
New Revision: 55161

Modified:
   incubator/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/ColumnDefinitionNode.java
Log:
Derby-40: Allow BIGINT default values in create table

Modified: incubator/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/ColumnDefinitionNode.java
==============================================================================
--- incubator/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/ColumnDefinitionNode.java
(original)
+++ incubator/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/ColumnDefinitionNode.java
Wed Oct 20 09:15:29 2004
@@ -645,6 +645,14 @@
 			// value if it's integer.
 				return (defType == StoredFormatIds.INT_TYPE_ID);
 
+			case StoredFormatIds.LONGINT_TYPE_ID:
+			// This is a BIGINT column: we allow smallints, ints,
+			// and big int constants.  Smallint and int literals
+			// are both covered by INT_TYPE; big int literals are
+			// covered by LONG_INT type.
+				return ((defType == StoredFormatIds.INT_TYPE_ID)
+					|| (defType == StoredFormatIds.LONGINT_TYPE_ID));
+	
 			case StoredFormatIds.DECIMAL_TYPE_ID:
 				if (defType == StoredFormatIds.DECIMAL_TYPE_ID) {
 				// only valid if scale and precision are within

Mime
View raw message