|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-12-06 09:53 UTC] csollet at coleebris dot com
Test script :
<?
$sy = sybase_pconnect('DBHOST', 'user', 'pass');
sybase_select_db('MyDB', $sy);
sybase_query("test_bug 1", $sy);
?>
produce :
Notice: sybase_query() [http://www.php.net/function.sybase-query]: Sybase: Unexpected results, cancelling current in - on line 4
with test_bug defined as follow :
create procedure test_bug
@input int
AS
BEGIN
set nocount on
select @input 'result'
return 2
END
Removing the "set nocount on" lead to expected result but, of course, in real wold sp, the nocount option is rarely used for fun...
Build with Sybase ctclient v12.5
Works perfectly well with 4.2.3 and previous.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 13:00:01 2025 UTC |
Have not been able to reproduce (FreeBSD, FreeTDS, SQL Server/11.0.3.3, PHP Versions 4.3.1 and 5.0.0-dev): sa@gurke:CAFFEINE.493> sp_pkeys news;-m vert table_qualifier: CAFFEINE table_owner: dbo table_name: news column_name: news_id key_seq: 1 thekid@friebes:~/devel/php/php5/ext/sybase_ct/tests > cat bug20861.php <?php $db= @sybase_connect('gurke', 'sa', ''); @sybase_select_db('CAFFEINE', $db); $query= sybase_query('sp_pkeys news', $db); var_dump(sybase_fetch_assoc($query)); ?> thekid@friebes:~/devel/php/php5/ext/sybase_ct/tests > php bug20861.php array(5) { ["table_qualifier"]=> string(8) "CAFFEINE" ["table_owner"]=> string(3) "dbo" ["table_name"]=> string(4) "news" ["column_name"]=> string(7) "news_id" ["key_seq"]=> int(1) } thekid@friebes:~/devel/php/php5/ext/sybase_ct/tests > php -v PHP 4.3.1 (cli) (built: Feb 23 2003 20:37:24) Copyright (c) 1997-2002 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies thekid@friebes:~/devel/php/php5/ext/sybase_ct/tests > php5 bug20861.php array(5) { ["table_qualifier"]=> string(8) "CAFFEINE" ["table_owner"]=> string(3) "dbo" ["table_name"]=> string(4) "news" ["column_name"]=> string(7) "news_id" ["key_seq"]=> int(1) } thekid@friebes:~/devel/php/php5/ext/sybase_ct/tests > php5 -v PHP 5.0.0-dev (cli) (built: Apr 29 2003 11:25:44) Copyright (c) 1997-2003 The PHP Group Zend Engine v2.0.0-dev, Copyright (c) 1998-2003 Zend TechnologiesCannot reproduce on Debian / Sybase-Libs / ASE 12.5.0.3 cgi@hlt1:~$ cat bug20861.php <?php $db= @sybase_connect('sybase', '*****', '*****'); @sybase_select_db('MIGRAENE', $db); $query= sybase_query('sp_pkeys contract', $db); var_dump(sybase_fetch_assoc($query)); var_dump(sybase_fetch_assoc(sybase_query('select @@version', $db))); var_dump(phpversion()); ?> cgi@hlt1:~$ php4 bug20861.php array(5) { ["table_qualifier"]=> string(8) "MIGRAENE" ["table_owner"]=> string(3) "dbo" ["table_name"]=> string(11) "contract" ["column_name"]=> string(14) "contract_id" ["key_seq"]=> int(1) } array(1) { ["computed"]=> string(119) "Adaptive Server Enterprise/12.5.0.3/EBF 10973 ESD#1/P/Sun_svr4/OS 5.8/rel12503/1920/64-bit/FBO/Thu Mar 27 01:09:31 2003" } string(5) "4.3.1" cgi@hlt1:~$ php4 -v PHP 4.3.1 (cli) (built: Feb 24 2003 11:37:26) Copyright (c) 1997-2002 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies