[open-ils-commits] r11578 - trunk/Open-ILS/src/c-apps
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Dec 15 11:30:56 EST 2008
Author: miker
Date: 2008-12-15 11:30:54 -0500 (Mon, 15 Dec 2008)
New Revision: 11578
Modified:
trunk/Open-ILS/src/c-apps/oils_cstore.c
Log:
more WHERE clause debugging
Modified: trunk/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_cstore.c 2008-12-15 16:17:45 UTC (rev 11577)
+++ trunk/Open-ILS/src/c-apps/oils_cstore.c 2008-12-15 16:30:54 UTC (rev 11578)
@@ -2036,6 +2036,16 @@
static char* searchWHERE ( const jsonObject* search_hash, osrfHash* meta, int opjoin_type, osrfMethodContext* ctx ) {
+ osrfLogDebug(
+ OSRF_LOG_MARK,
+ "Entering searchWHERE; search_hash addr = %d, meta addr = %d, opjoin_type = %d, ctx addr = %d",
+ MODULENAME,
+ search_hash,
+ meta,
+ opjoin_type,
+ ctx
+ );
+
growing_buffer* sql_buf = buffer_init(128);
jsonObject* node = NULL;
@@ -2810,7 +2820,7 @@
free(join_clause);
}
- char* tmpsql = buffer_data(sql_buf);
+ char* tmpsql = buffer_data(sql_buf); // This strdup's ... no worries.
osrfLogDebug(OSRF_LOG_MARK, "%s pre-predicate SQL = %s", MODULENAME, tmpsql);
free(tmpsql);
More information about the open-ils-commits
mailing list