pkgsrc/databases/jdbc-postgresql74/patches/patch-aa
abs d521f9a4ba Import jdbc-postgresql74, JDBC driver for postgresql 7.4.x
Has local patch to (incompletely) work around an issue with the jdbc driver
erroneously leaving ';' on the end of tablenames resulting in it generating
SQL statments of the form "SELECT * FROM tablename; WHERE ..."
2004-06-03 10:23:19 +00:00

13 lines
452 B
Text

$NetBSD: patch-aa,v 1.1.1.1 2004/06/03 10:23:19 abs Exp $
--- org/postgresql/jdbc2/AbstractJdbc2ResultSet.java.orig 2004-05-21 12:54:29.000000000 +0100
+++ org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
@@ -1448,7 +1450,7 @@ public abstract class AbstractJdbc2Resul
{
if (name.toLowerCase().equals("from"))
{
- tableName = st.nextToken();
+ tableName = st.nextToken().replaceAll(";", "");
tableFound = true;
}
}