<< 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: 30/Jan/14  Resolved: 30/Jan/14

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


 Description   
(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.



 Comments   
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 Mon Sep 01 09:31:09 CDT 2014 using JIRA 4.4#649-r158309.