bad pkey parsing for update and delete return values
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 17 Dec 2008 21:26:55 +0000 (21:26 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 17 Dec 2008 21:26:55 +0000 (21:26 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4@11615 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/c-apps/oils_cstore.c

index bfab8b8..f7d5268 100644 (file)
@@ -3064,7 +3064,7 @@ static jsonObject* doUpdate(osrfMethodContext* ctx, int* err ) {
                
        }
 
-       jsonObject* obj = jsonParseString(id);
+       jsonObject* obj = jsonNewObject(id);
 
        if ( strcmp( osrfHashGet( osrfHashGet( osrfHashGet(meta, "fields"), pkey ), "primitive" ), "number" ) )
                dbi_conn_quote_string(dbhandle, &id);
@@ -3155,7 +3155,7 @@ static jsonObject* doDelete(osrfMethodContext* ctx, int* err ) {
                id
        );
 
-       obj = jsonParseString(id);
+       obj = jsonNewObject(id);
 
        if ( strcmp( osrfHashGet( osrfHashGet( osrfHashGet(meta, "fields"), pkey ), "primitive" ), "number" ) )
                dbi_conn_quote_string(writehandle, &id);