summaryrefslogtreecommitdiffstats
path: root/database/sqlite/administration/firewalladmin.c
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2011-01-10 00:39:49 +0100
committerDavid Sommerseth <davids@redhat.com>2011-12-19 11:05:35 +0100
commitf0434a3ad51bf1159a78003a020eeb82a26dfc7f (patch)
tree905c7b9a18c80757822a2026746f4114d07df7e8 /database/sqlite/administration/firewalladmin.c
parent13834c822bc5763d2df1683ed81add55cf919729 (diff)
downloadeurephia-f0434a3ad51bf1159a78003a020eeb82a26dfc7f.tar.gz
eurephia-f0434a3ad51bf1159a78003a020eeb82a26dfc7f.tar.xz
eurephia-f0434a3ad51bf1159a78003a020eeb82a26dfc7f.zip
Implemented better error handling in the SQLite3 framework
The core sqlite_query() function will now always return a pointer to a dbresult structure. This structure now contains a query status and the error message from the sqlite3 backend if something went wrong. This means that error checking from now on should use the sqlite_query_status() macro and not to check if sqlite_query() returns NULL. Another fundamental change is that sqlite_free_results() must always be called on the dbresult structure now, to free the memory used by either data from the query or the error message. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to 'database/sqlite/administration/firewalladmin.c')
0 files changed, 0 insertions, 0 deletions