[open-ils-commits] r8372 -
branches/acq-experiment/Open-ILS/src/c-apps
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Jan 9 16:04:36 EST 2008
Author: miker
Date: 2008-01-09 15:40:00 -0500 (Wed, 09 Jan 2008)
New Revision: 8372
Modified:
branches/acq-experiment/Open-ILS/src/c-apps/oils_cstore.c
Log:
added debug logging for json_query
Modified: branches/acq-experiment/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- branches/acq-experiment/Open-ILS/src/c-apps/oils_cstore.c 2008-01-09 20:30:03 UTC (rev 8371)
+++ branches/acq-experiment/Open-ILS/src/c-apps/oils_cstore.c 2008-01-09 20:40:00 UTC (rev 8372)
@@ -1753,11 +1753,15 @@
jsonObjectIterator* selclass_itr = jsonNewObjectIterator( selhash );
while ( (selclass = jsonObjectIteratorNext( selclass_itr )) ) {
+ osrfLogDebug(OSRF_LOG_MARK, "%s SELECT clause class check: %s", MODULENAME, selclass->key);
+
// round trip through the idl, just to be safe
idlClass = osrfHashGet( oilsIDL(), selclass->key );
if (!idlClass) continue;
char* cname = osrfHashGet(idlClass, "classname");
+ osrfLogDebug(OSRF_LOG_MARK, "%s SELECT clause class, post-IDL check: %s", MODULENAME, cname);
+
// make sure the target relation is in the join tree
if (strcmp(core_class,cname)) {
if (!join_hash) continue;
@@ -1976,14 +1980,20 @@
jsonObjectIterator* class_itr = jsonNewObjectIterator( order_hash );
while ( (snode = jsonObjectIteratorNext( class_itr )) ) {
+ osrfLogDebug(OSRF_LOG_MARK, "%s ORDER BY clause selhash class check: %s", MODULENAME, snode->key);
+
if (!jsonObjectGetKeyConst(selhash,snode->key))
continue;
+ osrfLogDebug(OSRF_LOG_MARK, "%s Made it past the ORDER BY clause selhash class check for %s", MODULENAME, snode->key);
+
if ( snode->item->type == JSON_HASH ) {
jsonObjectIterator* order_itr = jsonNewObjectIterator( snode->item );
while ( (onode = jsonObjectIteratorNext( order_itr )) ) {
+ osrfLogDebug(OSRF_LOG_MARK, "%s ORDER BY clause class and field check: %s %s", MODULENAME, snode->key, onode->key);
+
if (!oilsIDLFindPath( "/%s/fields/%s", snode->key, onode->key ))
continue;
More information about the open-ils-commits
mailing list