[open-ils-commits] r11614 - trunk/Open-ILS/src/c-apps

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Dec 17 16:24:07 EST 2008


Author: miker
Date: 2008-12-17 16:24:03 -0500 (Wed, 17 Dec 2008)
New Revision: 11614

Modified:
   trunk/Open-ILS/src/c-apps/oils_cstore.c
Log:
bad pkey parsing for update and delete return values

Modified: trunk/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_cstore.c	2008-12-17 20:56:23 UTC (rev 11613)
+++ trunk/Open-ILS/src/c-apps/oils_cstore.c	2008-12-17 21:24:03 UTC (rev 11614)
@@ -3544,7 +3544,7 @@
 		
 	}
 
-	jsonObject* obj = jsonParseString(id);
+	jsonObject* obj = jsonNewObject(id);
 
 	if ( strcmp( osrfHashGet( osrfHashGet( osrfHashGet(meta, "fields"), pkey ), "primitive" ), "number" ) )
 		dbi_conn_quote_string(dbhandle, &id);
@@ -3641,7 +3641,7 @@
 		id
 	);
 
-	obj = jsonParseString(id);
+	obj = jsonCloneObject(jsonObjectGetIndex( ctx->params, _obj_pos ));
 
 	if ( strcmp( osrfHashGet( osrfHashGet( osrfHashGet(meta, "fields"), pkey ), "primitive" ), "number" ) )
 		dbi_conn_quote_string(writehandle, &id);



More information about the open-ils-commits mailing list