B4J Question [Solved] SQLite use with new Version?

mw71

Active Member
Licensed User
Longtime User
hi,

i have
- add #AdditionalJar: sqlite-jdbc-3.31.1 (in Main Window at Project Attributes, File in Libary Folder)
- use ist with sql_k.initializesqlite
but with
B4X:
Log(SQL_K.ExecQuerySingleResult( "SELECT sqlite_version()"))
(after load a File) i get 3.7.2 ???

What's the rigth way to use a newer SQLite Version??
 

mcqueccu

Well-Known Member
Licensed User
Longtime User

I tried your code and it gave me the correct versions, with 2 different jdbc driver
'#AdditionalJar: sqlite-jdbc-3.27.2.1
#AdditionalJar: sqlite-jdbc-3.36.0.1
 
Upvote 0

mw71

Active Member
Licensed User
Longtime User
Hello,

The version history of SQLite is known, so I want to use a newer version. The function I need was added in 3.7.15.

I have the download from https://repo1.maven.org/maven2/org/xerial/sqlite-jdbc/, others are also available. I copied the JAR file to the User Libary directory.

Unfortunately it always uses the 3.7.2 JAR from the internal directory (is this possible through a library?).
 
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
sample:

Main:
B4X:
#Region Project Attributes
    #MainFormWidth: 600
    #MainFormHeight: 600
    #AdditionalJar: sqlite-jdbc-3.36.0.3
#End Region

Sub Process_Globals
    Private fx As JFX
    Private MainForm As Form
End Sub

 

Attachments

  • sample.zip
    4.8 KB · Views: 122
Upvote 0

mw71

Active Member
Licensed User
Longtime User
Test, it's show the correct Version 3.36...., than it crash (no problem)

Add B4XTable (i use this, V 1.21), it show 3.7.2
Is there any solution?
 
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
See found error:
manifest B4Xtable
Version=1.21
B4J.DependsOn=B4XFormatter.b4xlib, jSQL, sqlite-jdbc-3.7.2
B4A.DependsOn=B4XFormatter.b4xlib, SQL
B4i.DependsOn=B4XFormatter.b4xlib, iSQL
main:
B4X:
#Region Project Attributes
    #MainFormWidth: 600
    #MainFormHeight: 600
    #AdditionalJar: sqlite-jdbc-3.36.0.3
#End Region

Sub Process_Globals
    Private fx As JFX
    Private MainForm As Form
End Sub
 
Upvote 0

mw71

Active Member
Licensed User
Longtime User
hi,

my solution is to change the Line
B4J.DependsOn=B4XFormatter.b4xlib, jSQL, sqlite-jdbc-3.7.2
in the Copy of B4XTable Libary to sqlite-jdbc-3.36.0.3

Thank for your Help.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…