SQLITE3_COMPLETE(3) | Library Functions Manual | SQLITE3_COMPLETE(3) |
sqlite3_complete
,
sqlite3_complete16
—
sqlite3_complete
(const char *sql);
int
sqlite3_complete16
(const void
*sql);
These routines return 0 if the statement is incomplete. If a memory allocation fails, then SQLITE_NOMEM is returned.
These routines do not parse the SQL statements thus will not detect syntactically incorrect SQL.
If SQLite has not been initialized using sqlite3_initialize() prior to invoking sqlite3_complete16() then sqlite3_initialize() is invoked automatically by sqlite3_complete16(). If that initialization fails, then the return value from sqlite3_complete16() will be non-zero regardless of whether or not the input SQL is complete.
The input to sqlite3_complete() must be a zero-terminated UTF-8 string.
The input to sqlite3_complete16() must be a zero-terminated UTF-16 string in native byte order.
December 19, 2018 | NetBSD 9.2 |