dbi_get_result_long is deprecated; using dbi_get_result_int instead
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 13 Apr 2008 18:23:17 +0000 (18:23 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 13 Apr 2008 18:23:17 +0000 (18:23 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9328 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 5dd510e..24a9dd3 100644 (file)
@@ -3175,7 +3175,7 @@ static jsonObject* oilsMakeFieldmapperFromResult( dbi_result result, osrfHash* m
                                                        jsonNewNumberObject(dbi_result_get_longlong(result, columnName)));
                                        else 
                                                jsonObjectSetIndex( object, fmIndex, 
-                                                       jsonNewNumberObject(dbi_result_get_long(result, columnName)));
+                                                       jsonNewNumberObject(dbi_result_get_int(result, columnName)));
 
                                        break;
 
@@ -3265,7 +3265,7 @@ static jsonObject* oilsMakeJSONFromResult( dbi_result result ) {
                                        if( attr & DBI_INTEGER_SIZE8 ) 
                                                jsonObjectSetKey( object, columnName, jsonNewNumberObject(dbi_result_get_longlong(result, columnName)) );
                                        else 
-                                               jsonObjectSetKey( object, columnName, jsonNewNumberObject(dbi_result_get_long(result, columnName)) );
+                                               jsonObjectSetKey( object, columnName, jsonNewNumberObject(dbi_result_get_int(result, columnName)) );
                                        break;
 
                                case DBI_TYPE_DECIMAL :