Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Interfaces Jdbc > Re: Query param...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 1934 of 2028
Post > Topic >>

Re: Query parameters limit in postgres jdbc driver?

by olafoos@[EMAIL PROTECTED] (Olaf Tomczak) Apr 23, 2008 at 09:28 PM

Tom Lane writes:
> olafos <olafoos@[EMAIL PROTECTED]
> writes:
>   
>> Seems like the driver is trying to send the number 40,000 (which is
actually
>> the number of query parameters) as a 2-byte integer. Is there any limit
to
>> the number of jdbc query parameters in postgresql?
>>     
>
> Yeah, 2^16, as you already noticed.
>
> 40000 parameters is far beyond the bounds of sanity anyway.  Try sending
> them as a single array parameter, ie "foo = any (?::int[])"
>
> 			regards, tom lane
>
>
>   

Yeah, well that would be much more sensible I guess, although it won't 
be easy to convince Toplink to do so;). Anyway, thanks a lot for 
clearing this up for me.

regards, Olaf Tomczak

-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
 




 3 Posts in Topic:
Query parameters limit in postgres jdbc driver?
olafoos@[EMAIL PROTECTED]  2008-04-23 00:12:45 
Re: Query parameters limit in postgres jdbc driver?
tgl@[EMAIL PROTECTED] (T  2008-04-23 10:17:18 
Re: Query parameters limit in postgres jdbc driver?
olafoos@[EMAIL PROTECTED]  2008-04-23 21:28:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 2:16:44 CDT 2008.