|
|
Choosing A Webhost: |
[PATCH] (DERBY-40) Cannot set default value for BIGINT: msg#00195apache.db.derby.devel
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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [jira] Closed: (DERBY-38) Make LOCKS as non-reserved keyword in Derby since it is not a reserved keyword in the SQL standards, derby-dev-PvNy6fhA98DNLxjTenLetw |
|---|---|
| Next by Date: | Re: [VOTE] Derby versioning, Daniel John Debrunner |
| Previous by Thread: | Re: [jira] Created: (DERBY-40) Cannot set default value for BIGINT, Army |
| Next by Thread: | Re: [PATCH] (DERBY-40) Cannot set default value for BIGINT, Satheesh Bandaram |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |