提交 b869f45d 编写于 作者: P Peter Mount

Removed the 8k row limit reported by DatabaseMetaData

上级 92681e97
Wed Jan 24 09:18:00 GMT 2001 peter@retep.org.uk
- Removed the 8k limit by setting it to 64k
Fri Jan 19 08:47:00 GMT 2001 peter@retep.org.uk
- Applied patch submitted by John Schutz <schutz@austin.rr.com> that
fixed a bug with ANT's SQL functions (not needed for building but nice
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册