8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7f0b17 commit ef4a163Copy full SHA for ef4a163
src/interfaces/odbc/convert.c
@@ -42,6 +42,7 @@
42
43
#include <time.h>
44
#include <math.h>
45
+#include <stdlib.h>
46
#include "convert.h"
47
#include "statement.h"
48
#include "qresult.h"
@@ -892,12 +893,12 @@ copy_statement_with_parameters(StatementClass *stmt)
892
893
break;
894
895
case SQL_C_DOUBLE:
- sprintf(param_string, "%f",
896
+ sprintf(param_string, "%15g",
897
*((SDOUBLE *) buffer));
898
899
900
case SQL_C_FLOAT:
901
+ sprintf(param_string, "%6g",
902
*((SFLOAT *) buffer));
903
904
0 commit comments