<< Back to previous view

[JDBC-16] do-prepared doesn't throw on invalid SQL Created: 07/Sep/11  Updated: 01/Jun/16  Resolved: 11/Oct/11

Status: Closed
Project: java.jdbc
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Allen Rohner Assignee: Sean Corfield
Resolution: Completed Votes: 0
Labels: None

(jdbc/do-prepared "syntactically invalid SQL")

returns nil, while

(jdbc/do-commands "syntactically invalid SQL")
throws as expected.

Comment by Allen Rohner [ 07/Sep/11 4:00 PM ]

Actually, do-prepared doesn't seem to do anything at all. (jdbc/do-commands "insert into foo (foo,bar) VALUES (1,2)") works as expected, same command with do-prepared doesn't do anything.

Comment by Sean Corfield [ 11/Oct/11 2:12 PM ]

Ensure .addBatch is called even when there are no param-groups.

Generated at Tue Oct 17 08:21:30 CDT 2017 using JIRA 4.4#649-r158309.