Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb869f45

Browse files
author
Peter Mount
committed
Removed the 8k row limit reported by DatabaseMetaData
1 parent92681e9 commitb869f45

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
publicintgetMaxCharLiteralLength()throwsSQLException
10951095
{
1096-
return8190;
1096+
return65535;
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 to8192.
1213+
* element, personally, so Im setting it to65535.
12141214
*
12151215
* @return max index length in bytes
12161216
* @exception SQLException if a database access error occurs
12171217
*/
12181218
publicintgetMaxIndexLength()throwsSQLException
12191219
{
1220-
return8192;
1220+
return65535;
12211221
}
12221222

12231223
publicintgetMaxSchemaNameLength()throwsSQLException
@@ -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
publicintgetMaxRowSize()throwsSQLException
12561256
{
1257-
return8192;
1257+
return65535;
12581258
}
12591259

12601260
/**
@@ -1277,7 +1277,7 @@ public boolean doesMaxRowSizeIncludeBlobs() throws SQLException
12771277
*/
12781278
publicintgetMaxStatementLength()throwsSQLException
12791279
{
1280-
return8192;
1280+
return65535;
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 a8192 character buffer with comma separators).
1318+
* can fit inside a65535 character buffer with comma separators).
13191319
*
13201320
* @return the maximum
13211321
* @exception SQLException if a database access error occurs

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp