diff options
| author | Peter Mount <peter@retep.org.uk> | 2001-01-24 09:22:01 +0000 |
|---|---|---|
| committer | Peter Mount <peter@retep.org.uk> | 2001-01-24 09:22:01 +0000 |
| commit | b869f45d1e39ee16d9e542d39ea33eb714f779b3 (patch) | |
| tree | a4b6f286232649f45bfd50b6a96a5beca7d30f75 /src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java | |
| parent | 92681e975d03ec8a5836915a47e6b515b1517712 (diff) | |
| download | postgresql-b869f45d1e39ee16d9e542d39ea33eb714f779b3.tar.gz | |
Removed the 8k row limit reported by DatabaseMetaData
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java')
| -rw-r--r-- | src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java b/src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java index 56296d37b0..3c1acd7848 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java @@ -1093,7 +1093,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData */ public int getMaxCharLiteralLength() throws SQLException { - return 8190; + return 65535; } /** @@ -1210,14 +1210,14 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData * (in which case its 8192, the size of a row) or does it mean * the number of rows it can access (in which case it 2^32 - * a 4 byte OID number)? I think its the length of an index - * element, personally, so Im setting it to 8192. + * element, personally, so Im setting it to 65535. * * @return max index length in bytes * @exception SQLException if a database access error occurs */ public int getMaxIndexLength() throws SQLException { - return 8192; + return 65535; } public int getMaxSchemaNameLength() throws SQLException @@ -1247,14 +1247,14 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData /** * What is the maximum length of a single row? (not including - * blobs). 8192 is defined in PostgreSQL. + * blobs). 65535 is defined in PostgreSQL. * * @return max row size in bytes * @exception SQLException if a database access error occurs */ public int getMaxRowSize() throws SQLException { - return 8192; + return 65535; } /** @@ -1277,7 +1277,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData */ public int getMaxStatementLength() throws SQLException { - return 8192; + return 65535; } /** @@ -1315,7 +1315,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData * since the number of tables is limited by the statement, we * return 1024 here - this is just a number I came up with (being * the number of tables roughly of three characters each that you - * can fit inside a 8192 character buffer with comma separators). + * can fit inside a 65535 character buffer with comma separators). * * @return the maximum * @exception SQLException if a database access error occurs |
