aboutsummaryrefslogtreecommitdiffstats
path: root/g10/sqlite.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-10-31gpg: Consider newlines to be whitespace in an SQL statement.Neal H. Walfield1-1/+1
* g10/sqlite.c (sqlite3_stepx): When making sure that there is no second SQL statement, ignore newlines. -- Signed-off-by: Neal H. Walfield <[email protected]>
2015-10-29gpg: Change sqlite3_stepx to pass the sqlite3_stmt * to the callback.Neal H. Walfield1-2/+9
* g10/sqlite.h (enum sqlite_arg_type): Add SQLITE_ARG_BLOB. (sqlite3_stepx_callback): New declaration. (sqlite3_stepx): Change the callback's type to sqlite3_stepx_callback, which passes an additional parameter, the sqlite3_stmt *. Update users. -- Signed-off-by: Neal H. Walfield <[email protected]>
2015-10-29gpg: Move sqlite helper functions into their own file.Neal H. Walfield1-0/+245
* g10/tofu.c (sqlite3_exec_printf): Move from here... * g10/sqlite.c (sqlite3_exec_printf): ... to this new file. Don't mark as static. * g10/tofu.c (sqlite3_stepx): Move from here... * g10/sqlite.c (sqlite3_stepx): ... to this new file. Don't mark as static. * g10/tofu.c (enum sqlite_arg_type): Move from here... * g10/sqlite.h (enum sqlite_arg_type): ... to this new file. -- Signed-off-by: Neal H. Walfield <[email protected]>