db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Satheesh Bandaram <sathe...@Sourcery.Org>
Subject Re: [PATCH] (DERBY-40) Cannot set default value for BIGINT
Date Wed, 20 Oct 2004 16:12:25 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
I have committed this change ...

Satheesh

Sending       
java\engine\org\apache\derby\impl\sql\compile\ColumnDefinitionNode.java
Transmitting file data .
Committed revision 55161.

Army wrote:

> I'm am submitting the following patch as a fix for Derby-40.
>
> Army
>
> Index:
java/engine/org/apache/derby/impl/sql/compile/ColumnDefinitionNode.java
> ===================================================================
> ---
java/engine/org/apache/derby/impl/sql/compile/ColumnDefinitionNode.java   
(revision 54741)
> +++
java/engine/org/apache/derby/impl/sql/compile/ColumnDefinitionNode.java   
(working copy)
> @@ -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
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
iD8DBQFBdo5oENVNIY6DZ7ERAh53AKCOtNybEngfZbAUg6NQHb2EuYS6+wCgpr4h
Npt54ay7BcBhC6PagpeHXf0=
=y602
-----END PGP SIGNATURE-----


Mime
View raw message