From: | Kris Jurka <books(at)ejurka(dot)com> |
---|---|
To: | Jie Liang <jie(at)stbernard(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-sql(at)postgresql(dot)org, pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Prepare Statement |
Date: | 2004-06-17 04:30:03 |
Message-ID: | Pine.BSO.4.56.0406162324530.27722@leary.csoft.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc pgsql-sql |
On Wed, 16 Jun 2004, Jie Liang wrote:
> Kris,
> Thank you for your valuable response, I used the code you list
> following:
>
> [7.5 code example]
>
> Then, the compiler complaint:
> ServerSidePreparedStatement.java:20: cannot resolve symbol symbol :
> method setPrepareThreshold (int)
> location: interface org.postgresql.PGStatement
> pgstmt.setPrepareThreshold(3); I downloaded
> pg74.213.jdbc2.jar and pg74.213.jdbc2ee.jar at
This example is from the 7.5 documentation and requires a
pgdev.302.jdbcX.jar file. I mentioned this cvs example because this
functionality is undocumented in the released version. In the 7.4 version
the enabling of server side statements is only possible via a boolean flag
at the statement level, namely PGStatement.setUseServerPrepare(true);
Kris Jurka
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Handa | 2004-06-17 04:54:48 | Re: Support for JDK 1.5 RowSets |
Previous Message | Bruce Momjian | 2004-06-17 02:04:20 | Re: Nested transactions |
From | Date | Subject | |
---|---|---|---|
Next Message | Hannes Korte | 2004-06-17 11:01:08 | use of a composite type in CREATE TABLE? |
Previous Message | Greg Sabino Mullane | 2004-06-17 03:03:31 | Re: Is there a faster way to do this? |