Commit f7f08d2a authored by Naba Kumar's avatar Naba Kumar

symbol-db: Fixed file scope query and query limits

parent 5aad07db
......@@ -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);
......
......@@ -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:
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment