Page 1 of 1
[Implemented] New SQLite with 4.51 ?
Posted: Thu Aug 05, 2010 6:25 am
by USCode
PB Team,
Will we be getting the latest version of SQLite with PB 4.51?
Thanks!
Re: New SQLite with 4.51 ?
Posted: Thu Sep 02, 2010 8:05 pm
by USCode
If PB 4.51 has an updated SQLite library (3.7.0.1 or greater) then my MANY THANKS to the PB development team!
Otherwise, I need to mention that one of my SQLite databases developed a "disk image malformed" error likely because the SQLite administration tool I was using was at SQLite version 3.7.0, but the PureBasic version of the SQLite library was at 3.6.23.1 and there was an incompatibility between the versions.
This problem was addressed by SQLite version 3.7.0.1:
http://www.sqlite.org/changes.html
I don't have the 4.51 RC installed, does anyone know what version of the SQLite library 4.51 RC is using?
You can use this code to find out:
Code: Select all
ImportC "sqlite3.lib"
sqlite3_libversion()
sqlite3_version.s{20}
EndImport
Debug PeekS(sqlite3_libversion(), #PB_Any, #PB_Ascii)
Debug sqlite3_version
FYI - The SQLite "disk image malformed" error was fixed using the sqlite3.exe utility that can be downloaded from the SQLite.org website.
These are the commands I used to fix my database:
sqlite3 MyDatabase.db .dump > MyDatabase.sql
sqlite3 MyDatabase2.db <MyDatabase.sql
Re: New SQLite with 4.51 ?
Posted: Thu Sep 02, 2010 8:43 pm
by srod
Your code reports 3.6.23.1
Re: New SQLite with 4.51 ?
Posted: Thu Sep 02, 2010 9:38 pm
by USCode
srod wrote:Your code reports 3.6.23.1
Thanks srod. I know they already have a ton on their plate but hopefully the PB team can get an updated version of SQLite library (3.7.0.1 or greater) in 4.51 final.
Re: New SQLite with 4.51 ?
Posted: Fri Sep 03, 2010 9:06 am
by Fred
4.51 is in final state so it will be for the next version.
Re: New SQLite with 4.51 ?
Posted: Sun Aug 21, 2011 8:33 pm
by Zach
Fred/Freak
Any update on whether SQLite has/will be updated for the next Beta or 4.6x Final?
As an aside:
If I use my own Internal PB (Currently 4.51) commands, and then later update the code for the newest final, assuming the new SQLite is put into it, will the corruption bug crop up in my DB file?
I don't plan on reading/writing across tools built with different versions of PB. I would use 4.51 until the new version came out and then update my code in any needed areas to exclusively use the newer version of PB. At that time I might also write a tool to create a fresh DB and copy the data from the old one into it.
Re: New SQLite with 4.51 ?
Posted: Sun Aug 21, 2011 10:25 pm
by Fred
4.60 is in final stage, we won't put an updated SQlite as it requiers some adaptation from us. Probably for the next version then

Re: New SQLite with 4.51 ?
Posted: Sun Aug 21, 2011 10:47 pm
by Zach
Thanks for the reply.
Guess we'll have to wait for the next update
I hope you also consider SQLite encryption support for the next update too

(here is an open source one -
http://sqlcipher.net/ )
Re: New SQLite with 4.51 ?
Posted: Mon Aug 22, 2011 2:57 am
by USCode
Fred wrote:4.60 is in final stage, we won't put an updated SQlite as it requiers some adaptation from us. Probably for the next version then

That's what you said last time (4.51)!
Are you aware there's a potential corruption bug with the current version?
Re: New SQLite with 4.51 ?
Posted: Mon Aug 22, 2011 10:03 am
by Fred
There is always hidden bugs in a version, until they got discovered. Does that mean you shouldn't use the software ?
Re: New SQLite with 4.51 ?
Posted: Mon Aug 22, 2011 11:06 am
by IceSoft
Fred wrote:There is always hidden bugs in a version, until they got discovered. Does that mean you shouldn't use the software ?
\joke:
Yes of course. We will also use the final PureBasic 4.60 until the bugfix version 4.61 will be released.

Re: New SQLite with 4.51 ?
Posted: Mon Aug 22, 2011 4:23 pm
by rsts
USCode wrote:Fred wrote:4.60 is in final stage, we won't put an updated SQlite as it requiers some adaptation from us. Probably for the next version then

That's what you said last time (4.51)!
Are you aware there's a potential corruption bug with the current version?
You do know you can use any version of the dll you wish using the dll directly? And ts-soft and others have published some excellent prototypes.
cheers
Re: New SQLite with 4.51 ?
Posted: Mon Aug 22, 2011 4:35 pm
by USCode
Fred wrote:There is always hidden bugs in a version, until they got discovered. Does that mean you shouldn't use the software ?
This current version has the corruption potential but I guess the likelihood someone will still be using 3.7.0 to open an SQLite database created with PB (using 3.6.23.1) is low ...