Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

[PATCH] (DERBY-40) Cannot set default value for BIGINT: msg#00195

apache.db.derby.devel

Subject: [PATCH] (DERBY-40) Cannot set default value for BIGINT

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>
Google Custom Search

Recently Viewed:
version-control...    qnx.openqnx.dev...    redhat.rhn.user...    ietf.openpgp/20...    mail.mutt.user/...    web.microformat...    java.sync4j.use...    education.ezpro...    user-groups.blu...    solaris.manager...    org.fitug.debat...    technology.erps...    politics.activi...    linux.redhat.fe...    bug-tracking.ma...    xfce.user/2004-...    hams/2004-11/ms...    kde.users.pim/2...    culture.cooking...    freebsd.devel.x...    gnu.m4.adhoc/20...    ngpt.user/2002-...    apple.fink.deve...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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

Navigation