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.
Get Using SQLite now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.