|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-08-03 10:20 UTC] sq6elt at zp dot amsnet dot pl
Description: ------------ If resultset returned by sybase_query is empty, following message appears: Warning: sybase_fetch_row(): supplied argument is not a valid Sybase result resource in file.php Expected to sybase_fetch_row to return false. Tested on: Debian Sarge, php 4.3.8, libct1 0.61-5, freetds-dev 0.61-5 With regards, Paul PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 23:00:02 2025 UTC |
I cannot reproduce this: Example code: <?php $sybase= sybase_connect(SYBASE_HOST, SYBASE_USER, SYBASE_PASS); // Retrieves 2 rows var_dump(sybase_query('select * from master..currentpeople')); // Retrieves 0 rows var_dump(sybase_query('select * from master..currentpeople where person = "foobar"')); ?> Output: resource(5) of type (sybase-ct result) resource(6) of type (sybase-ct result) I assume this is due to your (quite old) FreeTDS version. I am running freetds v0.63.dev.20040814 (though there are several stable versions between our two).