Received: from mail.crewsoft.com (ns.aenet.net [157.22.214.1]) by hub.org (8.9.3/8.9.3) with ESMTP id DAA26411 for ; Thu, 8 Jul 1999 03:55:09 -0400 (EDT) (envelope-from rc@aenet.net) Received: from drizzle (c44107-a.frmt1.sfba.home.com [24.1.111.198]) by mail.crewsoft.com (8.9.3/8.9.0) with SMTP id AAA10233 for ; Thu, 8 Jul 1999 00:54:39 -0700 (PDT) Message-Id: <4.1.19990708001241.00bfa6b0@crunk.net> X-Sender: rc@mail.crewsoft.com (Unverified) X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Thu, 08 Jul 1999 00:56:51 -0700 To: pgsql-interfaces@hub.org From: Rolland Crunk Subject: [INTERFACES] JDBC escape problem Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" I'm encountering a problem with the implementation of escapes using the 6.5 JDBC driver. If I attempt to insert a timestamp value using the following syntax, I get an error from the postgreSQL parser complaining about the '{' character: stmt.executeUpdate("insert into tstest values ( { ts '1999-07-07 00:00:00' } )"); However, the following statement works: stmt.executeUpdate("insert into tstest values ( '{ ts 1999-07-07 00:00:00 }' )"); Unfortunately, the former is the correct syntax where the second isn't. From what I could determine tracing the code, there is no escape processing performed in the PostgreSQL jdbc driver, and the error is originating from the database backend. I thought it unusual that I didn't see reference to this problem in the mail archives (though I admit I only went back a few months). Is this a known problem? What are the consequences of fixing it in the back-end? Will it break other drivers that depend on this syntax? Any advise would be appreciated. Thanks in advance, rc