projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cba899
)
Made ecpglib write double with a precision of 15 digits.
author
Michael Meskes
<
[email protected]
>
Mon, 18 Jul 2011 14:25:27 +0000
(16:25 +0200)
committer
Michael Meskes
<
[email protected]
>
Mon, 18 Jul 2011 14:25:27 +0000
(16:25 +0200)
Patch originally by Akira Kurosawa <
[email protected]
>.
src/interfaces/ecpg/ecpglib/execute.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/ecpglib/execute.c
b/src/interfaces/ecpg/ecpglib/execute.c
index 81c1165ce2796fc3d70d258f2ecf7d69c55e8559..f173736757bab22d8d33c390718dc8478ceb73b4 100644
(file)
--- a/
src/interfaces/ecpg/ecpglib/execute.c
+++ b/
src/interfaces/ecpg/ecpglib/execute.c
@@
-478,7
+478,7
@@
sprintf_double_value(char *ptr, double value, const char *delim)
sprintf(ptr, "%s%s", "Infinity", delim);
}
else
- sprintf(ptr, "%.1
4
g%s", value, delim);
+ sprintf(ptr, "%.1
5
g%s", value, delim);
}
static void
@@
-494,7
+494,7
@@
sprintf_float_value(char *ptr, float value, const char *delim)
sprintf(ptr, "%s%s", "Infinity", delim);
}
else
- sprintf(ptr, "%.1
4
g%s", value, delim);
+ sprintf(ptr, "%.1
5
g%s", value, delim);
}
bool