[Jdbc-commits] pgjdbc: Change the output of PreparedStatement.toString for V3 protocol

User Jurka jurka at pgfoundry.org
Tue Sep 30 23:41:24 UTC 2008


Log Message:
-----------
Change the output of PreparedStatement.toString for V3 protocol
connections to output a textual representation of the query that
is a legal query in most cases.  Previously it didn't quote or
escape parameters.  It still doesn't correctly handle binary data
and it may not be exactly the same as executing it by the
PreparedStatement (which will have extra type information), but
it is a nicer to work with.

Michael Enke

Modified Files:
--------------
    pgjdbc/org/postgresql/core/v3:
        QueryExecutorImpl.java (r1.40 -> r1.41)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/jdbc/pgjdbc/org/postgresql/core/v3/QueryExecutorImpl.java.diff?r1=1.40&r2=1.41)
        SimpleParameterList.java (r1.16 -> r1.17)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/jdbc/pgjdbc/org/postgresql/core/v3/SimpleParameterList.java.diff?r1=1.16&r2=1.17)
        SimpleQuery.java (r1.12 -> r1.13)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/jdbc/pgjdbc/org/postgresql/core/v3/SimpleQuery.java.diff?r1=1.12&r2=1.13)


More information about the Jdbc-commits mailing list