|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-07-27 23:11 UTC] fred at tc dot df dot gov dot br
[2005-03-25 01:43 UTC] sniper@php.net
[2005-04-02 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 13:00:01 2025 UTC |
Description: ------------ The return value is the real value + a lot of space character (it is converted to a string with a constant length) maybe the problem come from freetds dbconvert. I have this problem since php 4.3.4 and in php 4.3.4 I applyed the following patch. diff -ruP php-4.3.4/ext/sybase/php_sybase_db.c php-4.3.4.patched/ext/sybase/php_sybase_db.c --- php-4.3.4/ext/sybase/php_sybase_db.c 2003-10-16 06:24:04.000000000 +0200 +++ php-4.3.4.patched/ext/sybase/php_sybase_db.c 2004-01-29 11:51:41.000000000 +0100 @@ -680,6 +680,7 @@ switch (column_type) { + case SYBBIT: case SYBINT2: case SYBINT4: { Z_LVAL_P(result) = (long) anyintcol(offset); @@ -893,6 +894,7 @@ case SYBINT4: case SYBFLT8: case SYBREAL: + case SYBBIT: result->fields[i].numeric = 1; break; case SYBCHAR: Expected result: ---------------- an integer for example 0 Actual result: -------------- a string with constant length for example "0 "