java - SQLite JDBC and SQLite version -


i downloaded jdbc driver

sqlite-jdbc4-3.8.2-snapshot.jar

from

https://bitbucket.org/xerial/sqlite-jdbc/downloads

after included eclipse project via

configure build path

and afterwards ran code:

public class sqliteinput     {       public static void main(string[] args) throws exception       {           newdb();       }          public static void  newdb () throws classnotfoundexception, sqlexception{           try{                              class.forname("org.sqlite.jdbc");             connection con = drivermanager.getconnection("jdbc:sqlite:newdb.db");                                                    con.close();              }catch(exception ed) {             system.out.println("error --> " + ed);           }         }} 

which creates new database-file called

newdb.db

but if open file firefox sqlite manager , run code:

select sqlite_version() 'sqlite version'; 

it returns:

sqlite version - 3.7.17

and not 3.8.2 jdbc driver says. doing wrong?!


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -