From: | "Johann 'Myrkraverk' Oskarsson" <johann(at)2ndquadrant(dot)com> |
---|---|
To: | PostgreSQL JDBC <pgsql-jdbc(at)postgresql(dot)org> |
Cc: | gary(dot)kenney(at)xerox(dot)com |
Subject: | Re: Fwd: [BUGS] BUG #6285: PreparedStatement#executeUpdate gets syntax error on apostrophe |
Date: | 2011-11-03 23:37:37 |
Message-ID: | x639e422wu.fsf@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-jdbc |
I am unable to reproduce this, with the attached code. I am using
PostgreSQL 9.1.0 with the 9.1-901.jdbc4 driver on OpenIndiana.
> ---------- Forwarded message ----------
> From: Gary Kenney <gary(dot)kenney(at)xerox(dot)com>
> Date: Thu, Nov 3, 2011 at 4:35 PM
> Subject: [BUGS] BUG #6285: PreparedStatement#executeUpdate gets syntax
> error on apostrophe
> To: pgsql-bugs(at)postgresql(dot)org
>
>
>
> The following bug has been logged online:
>
> Bug reference: 6285
> Logged by: Gary Kenney
> Email address: gary(dot)kenney(at)xerox(dot)com
> PostgreSQL version: 9.1.1
> Operating system: Windows 7
> Description: PreparedStatement#executeUpdate gets syntax error on
> apostrophe
> Details:
>
> The value that was assigned via PreparedStatement.setString, was "Gary's
> Document". Note the apostrophe. Without the apostrophe, there is no error.
> Stack trace:
>
> 01 Nov 2011 16:29:09 - [Thread[Thread-63,5,main]] - at
> org.postgresql.util.PSQLException.parseServerError(PSQLException.java:139)
> 01 Nov 2011 16:29:09 - [Thread[Thread-63,5,main]] - at
> org.postgresql.core.QueryExecutor.executeV3(QueryExecutor.java:152)
> 01 Nov 2011 16:29:09 - [Thread[Thread-63,5,main]] - at
> org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:100)
> 01 Nov 2011 16:29:09 - [Thread[Thread-63,5,main]] - at
> org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:43)
> 01 Nov 2011 16:29:09 - [Thread[Thread-63,5,main]] - at
> org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.j
> ava:517)
> 01 Nov 2011 16:29:09 - [Thread[Thread-63,5,main]] - at
> org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.j
> ava:50)
> 01 Nov 2011 16:29:09 - [Thread[Thread-63,5,main]] - at
> org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(AbstractJdbc1State
> ment.java:273)
> :
> my code
> :
>
> --
> Sent via pgsql-bugs mailing list (pgsql-bugs(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-bugs
--
Johann Oskarsson http://www.2ndquadrant.com/ |[]
PostgreSQL Development, 24x7 Support, Training and Services --+--
|
Blog: http://my.opera.com/myrkraverk/blog/
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2011-11-04 09:42:31 | tsearch prefix searching doesn't work when last char of prefix is accent char |
Previous Message | bricklen | 2011-11-03 21:35:59 | Re: BUG #6286: Table Partitioning - SQL/MED - interaction broken |
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Cramer | 2011-11-04 10:31:20 | Re: Fwd: [BUGS] BUG #6285: PreparedStatement#executeUpdate gets syntax error on apostrophe |
Previous Message | Tom Lane | 2011-11-03 19:19:16 | Re: BUG #6285: PreparedStatement#executeUpdate gets syntax error on apostrophe |