Name
sqlite3_value_type() — Get the datatype of an SQL function parameter
Definition
int sqlite3_value_type( sqlite3_value* value );
-
value An SQL function parameter value.
- Returns
The native datatype code of the parameter value.
Description
This function returns the initial datatype of an SQL function
parameter. If this function is used, it should be called before
any sqlite3_value_xxx()
function. Once a type conversion takes place, the result of this
function is undefined.
The return value will be SQLITE_INTEGER, SQLITE_FLOAT, SQLITE_TEXT, SQLITE_BLOB, or SQLITE_NULL.
In most other regards, this function is nearly identical to the
sqlite3_column_type()
function.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access