[anjuta] symbol-db: Do not show non-local symbols in local view.



commit 0879532b469d3230fb20e95aebc74c70af3008a7
Author: Naba Kumar <naba gnome org>
Date:   Wed Apr 7 00:48:03 2010 +0300

    symbol-db: Do not show non-local symbols in local view.

 plugins/symbol-db/symbol-db-engine-queries.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/symbol-db/symbol-db-engine-queries.c b/plugins/symbol-db/symbol-db-engine-queries.c
index 90cc0c0..2791c2e 100644
--- a/plugins/symbol-db/symbol-db-engine-queries.c
+++ b/plugins/symbol-db/symbol-db-engine-queries.c
@@ -1603,11 +1603,11 @@ symbol_db_engine_get_file_symbols (SymbolDBEngine *dbe,
 			"%s FROM symbol "
 				"JOIN file ON symbol.file_defined_id = file.file_id "
 			"%s WHERE (symbol.scope_id = 0 AND file.file_path = ## /* name:'filepath' type:gchararray */) "
-		    "or symbol.symbol_id in (select scope_id from symbol join file on "
+		    "or symbol.scope_definition_id in (select scope_id from symbol join file on "
 			"symbol.file_defined_id = file.file_id where "
 			"file.file_path = ## /* name:'filepath' type:gchararray */ "
 			"group by symbol.scope_id) "
-			"ORDER BY symbol.file_position %s %s", 
+			"GROUP BY symbol.scope_definition_id ORDER BY symbol.file_position %s %s", 
 						info_data->str, join_data->str, limit, offset);
 	
 		dyn_node = sdb_engine_insert_dyn_query_node_by_id (dbe, 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]