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.

See Also

sqlite3_value_xxx(), sqlite3_value_numeric_type(), sqlite3_column_type()