java.jdbc

do-prepared doesn't throw on invalid SQL

Details

  • Type: Defect Defect
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

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

returns nil, while

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

Activity

Hide
Allen Rohner added a comment -

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.

Show
Allen Rohner added a comment - 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.
Hide
Sean Corfield added a comment -

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

Show
Sean Corfield added a comment - Ensure .addBatch is called even when there are no param-groups.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: