![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
The following bug has been logged online: Logged by: David Brownlee Email address: abs (AT) mono (DOT) org PostgreSQL version: 7.4 Description: AbstractJdbc2ResultSet arseQuery ; in tablenameDetails: In AbstractJdbc2ResultSet arseQuery can end up leaving a ; on the end of atablename, which when later used in isUpdateable() will choke. The following 'fixes' it: --- 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; } This was found while writing a small java tool to copy the contents of one database to another, which can be provided to demonstrate the problem on request. Would have attached it here if there had been an option ![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |