[yunqa.de] Re: schema error

  • From: Delphi Inspiration <delphi@xxxxxxxx>
  • To: yunqa@xxxxxxxxxxxxx
  • Date: Thu, 09 Jul 2009 00:07:22 +0200

At 22:58 08.07.2009, Radovan Antloga wrote:

>Is there any reason why you did not use sqlite3_prepare_v2 in 
>DISQLite3Database? 

Thanks for pointing this out. There is no reason to not to use 
sqlite3_prepare_v2() in DISQLite3Database.pas.

sqlite3_prepare() slipped in accidentially by an unfortunate oversight which 
happened when I changed sqlite3_prepare_internal() back to sqlite3_prepare() 
after the latter took care of SQLITE_SCHEMA. The kind of stupid search and 
replace mistakes you wish would never happen! :-(

>I have replaced old prepare with v2 in that file. Did not find any problem 
>after. Will you use v2 in next release?

Yes, absolutely. DISQLite3Database.pas used "v2" in previous releases and will 
use it again with the next update.

In addition to that, I have just marked sqlite3_prepare() and 
sqlite3_prepare16() as deprecated to discourage their usage. This revealed a 
couple of places which you didn't mention where non-"v2" sqlite3_prepare() was 
still in place, including some of the demo projects.

All DISQLite3 code shall use the sqlite3_prepare_v2() versions exclusively in 
future releases!

Ralf 

_______________________________________________
Delphi Inspiration mailing list
yunqa@xxxxxxxxxxxxx
//www.freelists.org/list/yunqa



Other related posts: