Perfect. It now works. Thank you for the help. That was it. I
was thinking it was an odd compile time thing I was doing.
Do people want the make file to build a Mac OS X framework to
include SQLite with an application? I am happy to pass it along. It
would probably be best to include this with the preprocessed files
used for the Windows build, as that is what I based this on my
framework on.
Thanks,
Matt
On May 9, 2006, at 3:21 AM, [EMAIL PROTECTED] wrote:
Matthew Veenstra <[EMAIL PROTECTED]> wrote:
My SQL Statement is a standard null terminated C string (UTF-8
format). The termination is at the proper place. strlen() verifies
this.
Is the string supposed to be something else than a C string?
What is really odd is that it works perfectly with the installed
3.1.3. With the same string.
The 3rd parameter to sqlite3_prepare() is probably wrong. There
was a bug (ticket #1650, http://www.sqlite.org/cvstrac/tktview?
tn=1650)
that caused the 3rd parameter to be ignored in version 3.1.3, so if
you got it wrong it would still work for a null-terminated string
in version 3.1.3. Since the bug has been fixed, the 3rd parameter
to sqlite3_prepare() needs to be -1 if the SQL is a null-terminated
string.
--
D. Richard Hipp <[EMAIL PROTECTED]>