RawrUniversal / xerial

Automatically exported from code.google.com/p/xerial
0 stars 1 forks source link

ErrorCode and SQLState in SQLExeptions sqlite_jdbc #91

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Please describe a summary of the new feature (in a paragraph):

  Many thanks for your great work, and it would be fantastic to
  provide ErrorCode and SQLState in SQLExeptions when thrown in
  sqlite_jdbc.

Please provide any additional information below:

  In DB.newSQLException(int, String) line: 383 please change

  return new SQLException(String.format("%s (%s)", code, errorMessage));

  to 

  return new SQLException(String.format("%s (%s)", code, errorMessage), null, code);

  or similar effectively using the constructor

  SQLException(String reason, String SQLState, int vendorCode)

  An SQLState could be supplied as well.

Again many thanks for your great work.
Konrad

Original issue reported on code.google.com by Konrad.L...@gmail.com on 17 Feb 2011 at 5:50

GoogleCodeExporter commented 8 years ago
How can I change the milestone to sqlite-jdbc-3.7.2.1 ?

Original comment by Konrad.L...@gmail.com on 17 Feb 2011 at 5:57

GoogleCodeExporter commented 8 years ago
Looks like a really simple (and yet very useful) change; is there any estimate 
for when this might go in?

Original comment by mjom...@gmail.com on 29 Feb 2012 at 6:52

GoogleCodeExporter commented 8 years ago
Ah, looks like this has already been committed:
https://bitbucket.org/xerial/sqlite-jdbc/changeset/144ade82d1fe#chg-src/main/jav
a/org/sqlite/DB.java

So all we need is a release version :)

Original comment by mjom...@gmail.com on 5 Mar 2012 at 6:56