|
|||||||||||
|
Re: [JDBC] Patch for Statement.getGeneratedKeys()
From: Kris Jurka <books(at)ejurka.com>
Date: Mon Jan 07 2008 - 01:24:23 EST On Fri, 14 Dec 2007, Ken Johanson wrote: > Kris, please try to apply the attached and let me know what errors if This patch is completely busted. It uses backslashes instead of forward slashes, which is relatively easily fixed, but it also has wrong line numbers. Consider this section of the patch:
/**
Here it claims to have lines 159 to 172, but it only has 10 lines of text. Perhaps you need a Netbeans upgrade or you need to use some other CVS client. Reading through the patch I have the following comments:
throw new PSQLException(GT.tr("Server version does not support returning generated keys.")+" (< "+"8.2"+")", PSQLState.NOT_IMPLEMENTED); 7) executeUpdate(String, String[]) does not correctly escape the columnNames provided if the values have embedded quotes. 8) Utils.needsQuoted is unused and should be removed. 9) Utils.getInsertIds doesn't look right. Looks like it will return "into" for something like "insert into xxx (...)". It doesn't look like it will work for names with quotes in them like "x""y". Also the requirement that a query uses a completely qualified name database.schema.table is quite onerous. Additionally the fact that this requirement is not checked will result in many ArrayIndexOutOfBoundsExceptions.
Kris Jurka ---------------------------(end of broadcast)---------------------------TIP 7: You can help support the PostgreSQL project by donating at
http://www.postgresql.org/about/donate
Received on Mon Jan 7 01:26:19 2008This archive was generated by hypermail 2.1.8 : Wed Jun 18 2008 - 23:42:06 EDT |
||||||||||
|
|||||||||||