On 10/22/18, W J wrote:
> Hello ,
>
> I'm using sqlite3_get_table() to query some information from sqlite. but
> sometimes( not every time), I got error return value: 21.
> #define SQLITE_MISUSE 21 /* Library used incorrectly */
>
> What is the real meaning of this error? How to correct it?
>
It means that you are violating the rules in some way. SQLite is nice
and returned error 21 instead of segfaulting.
To get more information, run your application in a debugger and set a
breakpoint on the sqlite3MisuseError() function. Then show us a stack
trace when that breakpoint is hit.
--
D. Richard Hipp
d...@sqlite.org
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users