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

Commit d7dbba2

Browse files
author
Peter Mount
committed
Removed hardwired 8k limit on queries
1 parent 552d593 commit d7dbba2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/interfaces/jdbc/org/postgresql/Connection.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import org.postgresql.util.*;
1111

1212
/**
13-
* $Id: Connection.java,v 1.1 2000/04/26 05:39:32 peter Exp $
13+
* $Id: Connection.java,v 1.2 2000/06/06 07:24:06 peter Exp $
1414
*
1515
* This abstract class is used by org.postgresql.Driver to open either the JDBC1 or
1616
* JDBC2 versions of the Connection class.
@@ -320,8 +320,10 @@ public java.sql.ResultSet ExecSQL(String sql) throws SQLException
320320
int update_count = 1;
321321
SQLException final_error = null;
322322

323-
if (sql.length() > 8192)
324-
throw new PSQLException("postgresql.con.toolong",sql);
323+
// Commented out as the backend can now handle queries
324+
// larger than 8K. Peter June 6 2000
325+
//if (sql.length() > 8192)
326+
//throw new PSQLException("postgresql.con.toolong",sql);
325327
try
326328
{
327329
pg_stream.SendChar('Q');

0 commit comments

Comments
 (0)