[anjuta/sdb-queries] symbol-db: Fixed file scope query and query limits
- From: Naba Kumar <naba src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/sdb-queries] symbol-db: Fixed file scope query and query limits
- Date: Tue, 15 Jun 2010 18:58:02 +0000 (UTC)
commit f7f08d2aac93e7b47c6b2c601555f8d0c8b1b896
Author: Naba Kumar <naba gnome org>
Date: Tue Jun 15 21:57:29 2010 +0300
symbol-db: Fixed file scope query and query limits
libanjuta/interfaces/libanjuta.idl | 6 +++---
plugins/symbol-db/symbol-db-query-result.c | 2 +-
plugins/symbol-db/symbol-db-query.c | 4 +---
3 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/libanjuta/interfaces/libanjuta.idl b/libanjuta/interfaces/libanjuta.idl
index ef28d54..f565863 100644
--- a/libanjuta/interfaces/libanjuta.idl
+++ b/libanjuta/interfaces/libanjuta.idl
@@ -5363,9 +5363,9 @@ interface IAnjutaSymbolQuery
enum FileScope
{
- SEARCH_FS_IGNORE = -1,
- SEARCH_FS_PUBLIC = 1,
- SEARCH_FS_PRIVATE = 0
+ SEARCH_FS_IGNORE,
+ SEARCH_FS_PUBLIC,
+ SEARCH_FS_PRIVATE
}
void ::async_result (GObject* result);
diff --git a/plugins/symbol-db/symbol-db-query-result.c b/plugins/symbol-db/symbol-db-query-result.c
index e81ab31..9d0b129 100644
--- a/plugins/symbol-db/symbol-db-query-result.c
+++ b/plugins/symbol-db/symbol-db-query-result.c
@@ -179,7 +179,7 @@ sdb_query_result_set_property (GObject *object, guint prop_id,
if (priv->iter)
g_object_unref (priv->iter);
priv->iter = gda_data_model_create_iter (data_model);
- if (gda_data_model_iter_move_at_row (priv->iter, 0))
+ if (gda_data_model_iter_move_to_row (priv->iter, 0))
priv->result_is_empty = FALSE;
break;
case PROP_SDB_SYM_TYPE_CONVERSION_HASH:
diff --git a/plugins/symbol-db/symbol-db-query.c b/plugins/symbol-db/symbol-db-query.c
index 3ea5000..ca1d910 100644
--- a/plugins/symbol-db/symbol-db-query.c
+++ b/plugins/symbol-db/symbol-db-query.c
@@ -447,8 +447,6 @@ sdb_query_update (SymbolDBQuery *query)
g_string_append (sql, "LIMIT ## /* name:'limit' type:gint */ ");
g_string_append (sql, "OFFSET ## /* name:'offset' type:gint */ ");
- DEBUG_PRINT ("sql = %s", sql->str);
-
/* Prepare statement */
g_free (priv->sql_stmt);
priv->sql_stmt = sql->str;
@@ -700,7 +698,7 @@ sdb_query_init (SymbolDBQuery *query)
param = priv->param_limit = gda_holder_new_int ("limit", INT_MAX);
param_holders = g_slist_prepend (param_holders, param);
- param = priv->param_limit = gda_holder_new_int ("offset", 0);
+ param = priv->param_offset = gda_holder_new_int ("offset", 0);
param_holders = g_slist_prepend (param_holders, param);
param = priv->param_id = gda_holder_new_int ("symbolid", 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]