On 2017/09/21 10:07 AM, Papa wrote:
The code shows what I have done to create a table, but
::sqlite3_prepare_v2 tells me:
---------------------------
Exception
---------------------------
Error message from SQLite3 - bad parameter or other API misuse
Error code: 21
Perhaps show us the entire code, including the actual call to
sqlite3_prepare_v2...
That is always better than to just say "I've called it and it says x..."
Perhaps we might notice a typo or other deficiency in the actual code
that you've missed, because the process, strings and method you describe
should in principle work perfectly, which means if it doesn't, there is
either a typo, an api misuse, or a real bug - none of which we can
reliably verify without seeing the entire code.
Also, does db->createTable() expect a full table declaration (including
the "CREATE TABLE" words and the semi-colon at the end)? Show the code
for that too.
When there is a Gremlin hiding somewhere, best is to expose all hiding
places.
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users