PHP 4.0 Bug #10237: sybase_query returns 1 instead of link id with action queries
| From: | tyson dot lloydthwaites at ite dot com dot au | Date: | Mon, 09 Apr 2001 06:01:54 +0000 |
| Subject: | PHP 4.0 Bug #10237: sybase_query returns 1 instead of link id with action queries | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-51165@lists.php.net to get a copy of this message | ||
From: tyson.lloydthwaites@ite.com.au
Operating system: Linux 2.2.16-3, Redhat 6.2
PHP version: 4.0.4pl1
PHP Bug Type: Sybase-ct (ctlib) related
Bug description: sybase_query returns 1 instead of link id with action queries
sybase_query returns 1 instead of a link id when I run an action query. The following code
reproduces the error:
$con = sybase_connect("SYBASE", "user", "pass");
sybase_select_db("cope");
$qry = sybase_query("update ...", $con);
echo sybase_affected_rows($qry);
sybase_close($con);
The update query works in isql.
Here is my configure line:
'./configure' '--with-apache=../apache_1.3.19'
'--with-sybase-ct=/opt/sybase' '--with-curl=../curl-7.7'
'--with-mm=../mm-1.1.3' '--enable-bcmath' '--enable-calendar'
'--enable-ctype' '--enable-exif' '--enable-ftp'
'--enable-gd-imgstrttf' '--with-gd' '--enable-trans-sid'
'--enable-shmop' '--enable-sockets' '--enable-sysvsem'
'--enable-sysvshm' '--enable-wddx'
--
Edit Bug report at: http://bugs.php.net/?id=10237&edit=1