Skip to content

Commit b95ce1e

Browse files
committed
dblib: Expand buffers to hold converted floating point
Make sure there's enough space for converting the numbers. This fixes fisql command printing real/float values. Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
1 parent c46173a commit b95ce1e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dnl ------------------------------------------------------------
1111
# ------------------------------------------------------------
1212
# Initialization
1313
# ------------------------------------------------------------
14-
AC_INIT(FreeTDS, 1.5.5)
14+
AC_INIT(FreeTDS, 1.5.6)
1515
AC_CONFIG_SRCDIR(src/dblib/dblib.c)
1616
AC_PREREQ(2.53)
1717

src/dblib/dblib.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3826,9 +3826,10 @@ _get_printable_size(TDSCOLUMN * colinfo)
38263826
case SYBLONGBINARY:
38273827
case SYBVARBINARY:
38283828
return colinfo->column_size * 2u;
3829-
case SYBFLT8:
38303829
case SYBREAL:
3831-
return 11; /* FIX ME -- we do not track precision */
3830+
return 14; /* FIX ME -- we do not track precision */
3831+
case SYBFLT8:
3832+
return 24; /* FIX ME -- we do not track precision */
38323833
case SYBMONEY4:
38333834
return 12;
38343835
case SYBMONEY:

0 commit comments

Comments
 (0)