Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b869f45

Browse files
author
Peter Mount
committed
Removed the 8k row limit reported by DatabaseMetaData
1 parent 92681e9 commit b869f45

File tree

3 files changed

+261
-258
lines changed

3 files changed

+261
-258
lines changed

src/interfaces/jdbc/CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Wed Jan 24 09:18:00 GMT 2001 peter@retep.org.uk
2+
- Removed the 8k limit by setting it to 64k
3+
14
Fri Jan 19 08:47:00 GMT 2001 peter@retep.org.uk
25
- Applied patch submitted by John Schutz <schutz@austin.rr.com> that
36
fixed a bug with ANT's SQL functions (not needed for building but nice

src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ public int getMaxBinaryLiteralLength() throws SQLException
10931093
*/
10941094
public int getMaxCharLiteralLength() throws SQLException
10951095
{
1096-
return 8190;
1096+
return 65535;
10971097
}
10981098

10991099
/**
@@ -1210,14 +1210,14 @@ public int getMaxCursorNameLength() throws SQLException
12101210
* (in which case its 8192, the size of a row) or does it mean
12111211
* the number of rows it can access (in which case it 2^32 -
12121212
* a 4 byte OID number)? I think its the length of an index
1213-
* element, personally, so Im setting it to 8192.
1213+
* element, personally, so Im setting it to 65535.
12141214
*
12151215
* @return max index length in bytes
12161216
* @exception SQLException if a database access error occurs
12171217
*/
12181218
public int getMaxIndexLength() throws SQLException
12191219
{
1220-
return 8192;
1220+
return 65535;
12211221
}
12221222

12231223
public int getMaxSchemaNameLength() throws SQLException
@@ -1247,14 +1247,14 @@ public int getMaxCatalogNameLength() throws SQLException
12471247

12481248
/**
12491249
* What is the maximum length of a single row? (not including
1250-
* blobs). 8192 is defined in PostgreSQL.
1250+
* blobs). 65535 is defined in PostgreSQL.
12511251
*
12521252
* @return max row size in bytes
12531253
* @exception SQLException if a database access error occurs
12541254
*/
12551255
public int getMaxRowSize() throws SQLException
12561256
{
1257-
return 8192;
1257+
return 65535;
12581258
}
12591259

12601260
/**
@@ -1277,7 +1277,7 @@ public boolean doesMaxRowSizeIncludeBlobs() throws SQLException
12771277
*/
12781278
public int getMaxStatementLength() throws SQLException
12791279
{
1280-
return 8192;
1280+
return 65535;
12811281
}
12821282

12831283
/**
@@ -1315,7 +1315,7 @@ public int getMaxTableNameLength() throws SQLException
13151315
* since the number of tables is limited by the statement, we
13161316
* return 1024 here - this is just a number I came up with (being
13171317
* the number of tables roughly of three characters each that you
1318-
* can fit inside a 8192 character buffer with comma separators).
1318+
* can fit inside a 65535 character buffer with comma separators).
13191319
*
13201320
* @return the maximum
13211321
* @exception SQLException if a database access error occurs

0 commit comments

Comments
 (0)