This is a discussion on PSQLException: Too many update results were returned. within the pgsql Interfaces jdbc forums, part of the PostgreSQL category; --> Oliver Jowett wrote: > Albert László-Róbert wrote: >> Oliver Jowett wrote: >>> Albert László-Róbert wrote: >>> >>>> i wish ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Oliver Jowett wrote: > Albert László-Róbert wrote: >> Oliver Jowett wrote: >>> Albert László-Róbert wrote: >>> >>>> i wish i can do that. the files that contains those statements are >>>> up to >>>> 500k ... and the majority of the code contain function >>>> implementations. >>> Err ok if you're just reading from a file and giving it to the driver >>> without any (or little) parsing, why exactly are you using batch >>> updates in the first place? Can't you just use plain execute()? >>> >>> -O >>> >> i tryed, but there i got syntax error. > > If you're getting a syntax error on execute() then using > executeBatch() is not going to help you since executeBatch() is really > just an optimized special case of execute() .. I think you should be > investigating this syntax error first of all. > > -O > if i run that script from the console, it will execute it without a single warning. i generated the exception i got when i use the execute(): org.postgresql.util.PSQLException: ERROR: unterminated dollar-quoted string at or near "$BODY$ DECLARE vID INTEGER" at org.postgresql.core.v3.QueryExecutorImpl.receiveEr rorResponse(QueryExecutorImpl.java:1512) at org.postgresql.core.v3.QueryExecutorImpl.processRe sults(QueryExecutorImpl.java:1297) at org.postgresql.core.v3.QueryExecutorImpl.execute(Q ueryExecutorImpl.java:188) at org.postgresql.jdbc2.AbstractJdbc2Statement.execut e(AbstractJdbc2Statement.java:437) at org.postgresql.jdbc2.AbstractJdbc2Statement.execut eWithFlags(AbstractJdbc2Statement.java:339) at org.postgresql.jdbc2.AbstractJdbc2Statement.execut e(AbstractJdbc2Statement.java:331) this is the starting part of a function declaration. albertlr ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@postgresql.org so that your message can get through to the mailing list cleanly |
| |||
| Oliver Jowett wrote: > Albert László-Róbert wrote: > >> org.postgresql.util.PSQLException: ERROR: unterminated dollar-quoted >> string at or near "$BODY$ > > What driver version are you using? > > -O > 8.1, but i don't know what build number is. ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match |
| |||
| Albert László-Róbert wrote: > Oliver Jowett wrote: >> Albert László-Róbert wrote: >> >>> org.postgresql.util.PSQLException: ERROR: unterminated dollar-quoted >>> string at or near "$BODY$ >> What driver version are you using? >> >> -O >> > 8.1, but i don't know what build number is. Support for dollar-quoting was only introduced in 8.2-504, you will need to upgrade your driver. -O ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@postgresql.org so that your message can get through to the mailing list cleanly |
| |||
| Oliver Jowett wrote: > Albert László-Róbert wrote: >> Oliver Jowett wrote: >>> Albert László-Róbert wrote: >>> >>>> org.postgresql.util.PSQLException: ERROR: unterminated dollar-quoted >>>> string at or near "$BODY$ >>> What driver version are you using? >>> >>> -O >>> >> 8.1, but i don't know what build number is. > > Support for dollar-quoting was only introduced in 8.2-504, you will > need to upgrade your driver. > > -O > > i don't know that. i supposed that the driver features are compatible with the database features. i will try it and i let you know. i hope this will work. thanks again for the help albertlr ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend |
| ||||
| Oliver Jowett wrote: > Albert László-Róbert wrote: >> Oliver Jowett wrote: >>> Albert László-Róbert wrote: >>> >>>> org.postgresql.util.PSQLException: ERROR: unterminated dollar-quoted >>>> string at or near "$BODY$ >>> What driver version are you using? >>> >>> -O >>> >> 8.1, but i don't know what build number is. > > Support for dollar-quoting was only introduced in 8.2-504, you will > need to upgrade your driver. > > -O > > the problem is the same when i use the execute() method. i tryed the following drivers: postgresql-8.2-506.jdbc3.jar; postgresql-8.2-506.jdbc4.jar and postgresql-8.3dev-601.jdbc3.jar in the mean while i try to figure it out how the development team of the SQuirreL use the sql execution tool in that client. albertlr ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend |
| Thread Tools | |
| Display Modes | |
|
|