iliaa Sat Jan 11 18:07:13 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/sybase_ct php_sybase_ct.c
Log:
MFH
Index: php4/ext/sybase_ct/php_sybase_ct.c
diff -u php4/ext/sybase_ct/php_sybase_ct.c:1.73.2.2
php4/ext/sybase_ct/php_sybase_ct.c:1.73.2.3
--- php4/ext/sybase_ct/php_sybase_ct.c:1.73.2.2 Tue Dec 31 11:35:37 2002
+++ php4/ext/sybase_ct/php_sybase_ct.c Sat Jan 11 18:07:13 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_sybase_ct.c,v 1.73.2.2 2002/12/31 16:35:37 sebastian Exp $ */
+/* $Id: php_sybase_ct.c,v 1.73.2.3 2003/01/11 23:07:13 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