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 55630 - incubator/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc
Date Tue, 26 Oct 2004 18:21:04 GMT
Author: bandaram
Date: Tue Oct 26 11:21:04 2004
New Revision: 55630

Modified:
   incubator/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedDatabaseMetaData.java
Log:
Bug: Database Metadata needs to return correct size for maximum column name length, maximum
schema name length etc

Modified: incubator/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedDatabaseMetaData.java
==============================================================================
--- incubator/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedDatabaseMetaData.java
(original)
+++ incubator/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedDatabaseMetaData.java
Tue Oct 26 11:21:04 2004
@@ -35,6 +35,7 @@
 import org.apache.derby.catalog.UUID;
 
 import org.apache.derby.iapi.reference.SQLState;
+import org.apache.derby.iapi.reference.DB2Limit;
 import org.apache.derby.iapi.reference.JDBC20Translation;
 import org.apache.derby.iapi.reference.JDBC30Translation;
 
@@ -1102,7 +1103,7 @@
      * @return max literal length
      */
 	public int getMaxColumnNameLength() {
-		return 128;
+		return DB2Limit.DB2_MAX_IDENTIFIER_LENGTH30;
 	}
 
     /**
@@ -1167,7 +1168,7 @@
      * @return max cursor name length in bytes
      */
 	public int getMaxCursorNameLength() {
-		return 128;
+		return DB2Limit.DB2_MAX_IDENTIFIER_LENGTH18;
 	}
 
     /**
@@ -1185,7 +1186,7 @@
      * @return max name length in bytes
      */
 	public int getMaxSchemaNameLength()  {
-		return 128;
+		return DB2Limit.DB2_MAX_IDENTIFIER_LENGTH30;
 	}
 
     /**
@@ -1194,7 +1195,7 @@
      * @return max name length in bytes
      */
 	public int getMaxProcedureNameLength() {
-		return 128;
+		return DB2Limit.DB2_MAX_IDENTIFIER_LENGTH128;
 	}
 
     /**
@@ -1250,7 +1251,7 @@
      * @return max name length in bytes
      */
 	public int getMaxTableNameLength() {
-		return 128;
+		return DB2Limit.DB2_MAX_IDENTIFIER_LENGTH128;
 	}
 
     /**
@@ -1268,7 +1269,7 @@
      * @return max name length  in bytes
      */
 	public int getMaxUserNameLength() {
-		return 128;
+		return DB2Limit.DB2_MAX_IDENTIFIER_LENGTH30;
 	}
 
     //----------------------------------------------------------------------

Mime
View raw message