iliaa Sat Jan 11 18:06:35 2003 EDT Modified files: /php4/ext/sybase_ct php_sybase_ct.c Log: Fixed handling of NUMERIC type, when it contains numbers that could potentially exceed the interger limit. Index: php4/ext/sybase_ct/php_sybase_ct.c diff -u php4/ext/sybase_ct/php_sybase_ct.c:1.75 php4/ext/sybase_ct/php_sybase_ct.c:1.76 --- php4/ext/sybase_ct/php_sybase_ct.c:1.75 Tue Dec 31 11:07:58 2002 +++ php4/ext/sybase_ct/php_sybase_ct.c Sat Jan 11 18:06:35 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_sybase_ct.c,v 1.75 2002/12/31 16:07:58 sebastian Exp $ */ +/* $Id: php_sybase_ct.c,v 1.76 2003/01/11 23:06:35 iliaa Exp $ */ #ifdef HAVE_CONFIG_H @@ -1168,7 +1168,7 @@ 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++;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php