Hi
@WebQuest!
I appreciate your answer. Thanks, pal!
You almost hit the bullseye.
This code of yours:
' Versione del motore SQLite (opzionale)
Dim rs As ResultSet = sql.ExecQuery("SELECT sqlite_version() AS versione")
If rs.NextRow Then
Log("SQLite Engine Version: " & rs.GetString("versione"))
End If
rs.Close
Works properly, and returns SQLite driver version, however it does not return the driver's revision number, that SQLiteJDBC developers use.
For example:
sqlitejdbc-3.46 has two minor versions (3.46.0 and 3.46.1).
Version 3.46.0 has one revision (3.46.0.1) and version 3.46.1 has three revisions (3.46.1.1, 3.46.1.2 and 3.46.1.3).
So, if I reference sqlitejdbc-3.46.1.2, for instance, in my #AdditionalJar statement, your code will return "3.46.1", and it's correct, but the revision number is missing, which is important to me for info and error trappig purposes.
As for this piece:
Dim md As DatabaseMetaData = sql.GetMetaData
Log("Driver Name: " & md.DriverName)
Log("Driver Version: " & md.DriverVersion)
I just couldn't get it to work. "DatabaseMetaData"?, "sql.GetMetaData"? Where do this come from?
Well, for now I'll have to keep this information hardcoded in a global variable inside the app istself.
Meanwhile, with a little luck someone will show up with an explanation on why a java function works perfectly in debug mode but not in release mode.
I suppose there must be a reason for this ...
Thank you once more
@WebQuest.
Mille Grazie