Re: No function escape processing? - Mailing list pgsql-jdbc

From Barry Lind
Subject Re: No function escape processing?
Date
Msg-id 3F3195CE.4040905@xythos.com
Whole thread Raw
In response to No function escape processing?  ("Jason Sando" <jsando@claritysys.com>)
List pgsql-jdbc
Intentional in the sense that no one has stepped up to the plate to add
support for other functions.  Feel free to submit a patch.

thanks,
--Barry


Jason Sando wrote:
> Is it intentional that the driver (7.3.4) doesn't do function escape
> processing?
>
> Eg:
>
>   select * from mytable where {fn left(col_1, 1)} between 'A' and 'F'
>
> results in:
>
>     java.sql.SQLException: ERROR:  parser: parse error at or near "{"
>       at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:131)
>
> It looks like AbstractJdbc1Statement.replaceProcessing(String p_sql) only
> escapes time/date literals and passes everything else directly through.
>
> Thanks,
>
> - Jason Sando
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
>



pgsql-jdbc by date:

Previous
From: Barry Lind
Date:
Subject: Re: SSL support in PG 7.4
Next
From: Barry Lind
Date:
Subject: Re: Server side resultset search (for performance reasons)