rest_of_query = jsonObjectGetIndex( ctx->params, 1 );
}
+ if( !where_clause ) {
+ osrfLogError( OSRF_LOG_MARK, "No WHERE clause parameter supplied" );
+ return -1;
+ }
+
// Get the class metadata
osrfHash* method_meta = (osrfHash*) ctx->method->userData;
osrfHash* class_meta = osrfHashGet( method_meta, "class" );
rest_of_query = jsonObjectClone( jsonObjectGetIndex( ctx->params, 1 ) );
}
+ if( !where_clause ) {
+ osrfLogError( OSRF_LOG_MARK, "No WHERE clause parameter supplied" );
+ return -1;
+ }
+
// Eliminate certain SQL clauses, if present.
if( rest_of_query ) {
jsonObjectRemoveKey( rest_of_query, "select" );