[open-ils-commits] r7526 - trunk/Open-ILS/src/c-apps
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jul 5 20:16:57 EDT 2007
Author: miker
Date: 2007-07-05 20:12:56 -0400 (Thu, 05 Jul 2007)
New Revision: 7526
Modified:
trunk/Open-ILS/src/c-apps/oils_cstore.c
Log:
format tightening for INSERT
Modified: trunk/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_cstore.c 2007-07-05 21:16:30 UTC (rev 7525)
+++ trunk/Open-ILS/src/c-apps/oils_cstore.c 2007-07-06 00:12:56 UTC (rev 7526)
@@ -774,10 +774,10 @@
} else if ( !strcmp(osrfHashGet(field, "primitive"), "number") ) {
if ( !strcmp(osrfHashGet(field, "datatype"), "INT8") ) {
- buffer_fadd( val_buf, "%lld", atol(value) );
+ buffer_fadd( val_buf, "%lld", atoll(value) );
} else if ( !strcmp(osrfHashGet(field, "datatype"), "INT") ) {
- buffer_fadd( val_buf, "%ld", atoll(value) );
+ buffer_fadd( val_buf, "%d", atoi(value) );
} else if ( !strcmp(osrfHashGet(field, "datatype"), "NUMERIC") ) {
buffer_fadd( val_buf, "%f", atof(value) );
More information about the open-ils-commits
mailing list