![]() |
Fun 0.41.5
The programming language that makes you have fun!
|
Implements the OP_SQLITE_EXEC opcode (conditional build). More...
Go to the source code of this file.
Functions | |
| free_value (vh) | |
| free_value (vsql) | |
| if (!h||!h->db||!sql) | |
Variables | |
| case | OP_SQLITE_EXEC |
| Value | vh = pop_value(vm) |
| int | hid = (int)vh.i |
| char * | sql = value_to_string_alloc(&vsql) |
| SqlHandle * | h = sql_reg_get(hid) |
| char * | errmsg = NULL |
| int | rc = sqlite3_exec(h->db, sql, NULL, NULL, &errmsg) |
Implements the OP_SQLITE_EXEC opcode (conditional build).
Executes a SQL statement against an open SQLite handle when FUN_WITH_SQLITE is enabled. Returns the SQLite result code.
OP_SQLITE_EXEC: (handle:int, sql:string) -> int rc (0=OK)
Definition in file exec.c.
| free_value | ( | vh | ) |
| free_value | ( | vsql | ) |
| SqlHandle* h = sql_reg_get(hid) |
| char* sql = value_to_string_alloc(&vsql) |