<< Back to previous view

[JDBC-89] If query is called with a bare SQL string instead of a vector, SQLite driver dumps Created: 29/Jan/14  Updated: 01/Jun/16  Resolved: 30/Jan/14

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

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

(query db "select * from test") ;; should be a vector

Causes SQLite to dump and probably isn't very pretty on other DBs. java.jdbc should either validate arguments better, or accept a string and package it up itself.

Comment by Sean Corfield [ 30/Jan/14 12:26 AM ]
(query db "select * from fruit")

is now legal but will remain undocumented. Since optional positional arguments are expected, any attempt to call query with SQL and params not in a vector will throw an IllegalArgumentException anyway. This seems like a reasonable compromise.

Generated at Thu Sep 21 05:40:59 CDT 2017 using JIRA 4.4#649-r158309.