[tracker/functions] libtracker-db: Error reporting for SQLite functions
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/functions] libtracker-db: Error reporting for SQLite functions
- Date: Thu, 25 Mar 2010 11:12:33 +0000 (UTC)
commit b1ca1d1a5acd04efdebd35db25dc915b99de0db8
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Mar 25 12:11:50 2010 +0100
libtracker-db: Error reporting for SQLite functions
src/libtracker-db/tracker-db-interface-sqlite.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-interface-sqlite.c b/src/libtracker-db/tracker-db-interface-sqlite.c
index 3e8111d..a110786 100644
--- a/src/libtracker-db/tracker-db-interface-sqlite.c
+++ b/src/libtracker-db/tracker-db-interface-sqlite.c
@@ -200,8 +200,7 @@ function_sparql_string_from_filename (sqlite3_context *context,
gchar *suffix = NULL;
if (argc != 1) {
- g_critical ("Invalid argument count");
- sqlite3_result_null (context);
+ sqlite3_result_error (context, "Invalid argument count", 0);
return;
}
@@ -245,8 +244,7 @@ function_sparql_cartesian_distance (sqlite3_context *context,
gdouble d;
if (argc != 4) {
- g_critical ("Invalid argument count");
- sqlite3_result_null (context);
+ sqlite3_result_error (context, "Invalid argument count", 0);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]