diff options
Diffstat (limited to 'src/tcutil')
-rw-r--r-- | src/tcutil/tcutil.c | 5 | ||||
-rw-r--r-- | src/tcutil/tcutil.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/tcutil/tcutil.c b/src/tcutil/tcutil.c index 748ed5c..377555a 100644 --- a/src/tcutil/tcutil.c +++ b/src/tcutil/tcutil.c @@ -275,7 +275,8 @@ static void tcvxstrprintf(TCXSTR *xstr, const char *format, va_list ap) { case 'e': case 'E': case 'f': case 'g': case 'G': if (lnum >= 1) { //tlen = snprintf(tbuf, sizeof(tbuf), cbuf, va_arg(ap, long double)); - tlen = tcftoa(va_arg(ap, long double), tbuf, sizeof (tbuf), 6); + //tlen = tcftoa(va_arg(ap, long double), tbuf, sizeof (tbuf), 6); + tlen = tcftoa(va_arg(ap, double), tbuf, sizeof (tbuf), 6); } else { //tlen = snprintf(tbuf, sizeof(tbuf), cbuf, va_arg(ap, double)); tlen = tcftoa(va_arg(ap, double), tbuf, sizeof (tbuf), 6); @@ -9793,6 +9794,8 @@ const char *tcerrmsg(int ecode) { case TCENOREC: return "no record found"; case TCETR: return "illegal transaction state"; case TCEMISC: return "miscellaneous error"; + case TCEICOMPRESS: return "unsupported database compression format"; + case TCEDATACOMPRESS: return "data compression error"; } return "unknown error"; } diff --git a/src/tcutil/tcutil.h b/src/tcutil/tcutil.h index 3709262..8965289 100644 --- a/src/tcutil/tcutil.h +++ b/src/tcutil/tcutil.h @@ -3748,6 +3748,8 @@ enum { /* enumeration for error codes */ TCEKEEP, /* existing record */ TCENOREC, /* no record found */ TCETR, /* illegal transaction state */ + TCEICOMPRESS, /* unsupported database compression format, check the release options. */ + TCEDATACOMPRESS, /* error during record data compression */ TCEMISC = 9999 /* miscellaneous error */ }; |