<< Back to previous view

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

Status: Resolved
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


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

returns nil, while

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



 Comments   
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 Fri Aug 29 07:09:53 CDT 2014 using JIRA 4.4#649-r158309.