summaryrefslogtreecommitdiff
path: root/ext/sybase_ct/php_sybase_ct.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-01-11 23:07:13 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-01-11 23:07:13 +0000
commitdebdc829dff396b0b7991b428d0814d4df5f7b3d (patch)
treec2232be63d0c47777a611993617d0ecfe5dcc5cd /ext/sybase_ct/php_sybase_ct.c
parent4214d95e6fb6a6f1fe7921d005ce09674fcc9062 (diff)
downloadphp-git-debdc829dff396b0b7991b428d0814d4df5f7b3d.tar.gz
MFH
Diffstat (limited to 'ext/sybase_ct/php_sybase_ct.c')
-rw-r--r--ext/sybase_ct/php_sybase_ct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sybase_ct/php_sybase_ct.c b/ext/sybase_ct/php_sybase_ct.c
index 3fe65e9e62..a2b91a761d 100644
--- a/ext/sybase_ct/php_sybase_ct.c
+++ b/ext/sybase_ct/php_sybase_ct.c
@@ -1168,7 +1168,7 @@ static sybase_result * php_sybase_fetch_result_set (sybase_link *sybase_ptr, int
case CS_DECIMAL_TYPE:
result->datafmt[i].maxlength = result->datafmt[i].precision + 3;
/* numeric(10) vs numeric(10, 1) */
- result->numerics[i] = (result->datafmt[i].scale == 0) ? 1 : 2;
+ result->numerics[i] = (result->datafmt[i].scale == 0 && result->datafmt[i].precision <= 10) ? 1 : 2;
break;
default:
result->datafmt[i].maxlength++;