java - "not Implemented by SQLite JDBC driver" -
i have database user information, , wanted make public static return database integers @ given time without having make void every single one, it's giving me error:
0 java.sql.sqlexception: not implemented sqlite jdbc driver @ org.sqlite.jdbc3.jdbc3preparedstatement.unused(jdbc3preparedstatement.java:466) @ org.sqlite.jdbc3.jdbc3preparedstatement.executequery(jdbc3preparedstatement.java:506) @ dysanix.main.checkusercolumnint(main.java:726) @ dysanix.main.main(main.java:50)
and code:
public static int checkusercolumnint(string column, string user) { try { connection connection = drivermanager.getconnection("jdbc:sqlite:database.db"); string query = "select ? usersettings user = ?"; preparedstatement statement = connection.preparestatement(query); statement.setstring(1, column); statement.setstring(2, user); resultset result = statement.executequery(query); result.next(); int columnresult = result.getint(column); return columnresult; } catch (exception e) { e.printstacktrace(); return 0; } }
does understand i'm doing wrong? tried google things, changing code around moved me 1 error next... i'm not anymore @ point.
thanks in advance!
edit: running jdbc driver sqlite-jdbc-3.8.11.2.jar
preparedstatement.executequery(string sql)
not implemented. guess want call executequery()
. query defined preparedstatement
already.
Comments
Post a Comment