jsonObjectGetKey() with calls to jsonObjectGetKeyConst().
M Open-ILS/src/c-apps/test_json_query.c
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17222
dcc99617-32d9-48b4-a31d-
7c20da2025e4
int flags = 0;
- if ( obj_is_true( jsonObjectGetKey( hash, "distinct" ) ) )
+ if ( obj_is_true( jsonObjectGetKeyConst( hash, "distinct" )))
flags |= SELECT_DISTINCT;
- if ( obj_is_true( jsonObjectGetKey( hash, "no_i18n" ) ) )
+ if ( obj_is_true( jsonObjectGetKeyConst( hash, "no_i18n" )))
flags |= DISABLE_I18N;
char* sql_query = buildQuery( NULL, hash, flags );