[open-ils-commits] r8499 - trunk/Open-ILS/src/c-apps
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jan 25 13:17:47 EST 2008
Author: miker
Date: 2008-01-25 12:50:59 -0500 (Fri, 25 Jan 2008)
New Revision: 8499
Modified:
trunk/Open-ILS/src/c-apps/oils_cstore.c
Log:
make flags accept 0/1 as well as false/true
Modified: trunk/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_cstore.c 2008-01-24 20:51:34 UTC (rev 8498)
+++ trunk/Open-ILS/src/c-apps/oils_cstore.c 2008-01-25 17:50:59 UTC (rev 8499)
@@ -2417,9 +2417,15 @@
if (jsonBoolIsTrue(jsonObjectGetKey( hash, "distinct" )))
flags |= SELECT_DISTINCT;
+ if ( ((int)jsonObjectGetNumber(jsonObjectGetKey( hash, "distinct" ))) == 1 ) // support 1/0 for perl's sake
+ flags |= SELECT_DISTINCT;
+
if (jsonBoolIsTrue(jsonObjectGetKey( hash, "no_i18n" )))
flags |= DISABLE_I18N;
+ if ( ((int)jsonObjectGetNumber(jsonObjectGetKey( hash, "no_i18n" ))) == 1 ) // support 1/0 for perl's sake
+ flags |= DISABLE_I18N;
+
osrfLogDebug(OSRF_LOG_MARK, "Building SQL ...");
char* sql = SELECT(
ctx,
More information about the open-ils-commits
mailing list