1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 16:08:35 +02:00

- Added test for sybase_free_result() without full fetch

This commit is contained in:
Timm Friebe
2008-11-09 10:29:52 +00:00
parent 963aa85764
commit 2268bf47e3
@@ -21,6 +21,11 @@ Sybase-CT unbuffered query without full fetching
// Fetch #2 - without having fetched all rows from previous query
$q= sybase_unbuffered_query('select name from master..systypes', $db);
var_dump($q, key(sybase_fetch_assoc($q)));
// Fetch #3 - free first, without having fetched all rows from previous query
sybase_free_result($q);
$q= sybase_unbuffered_query('select name from master..systypes', $db);
var_dump($q, key(sybase_fetch_assoc($q)));
// Close - without having fetched all rows from previous query
sybase_close($db);
@@ -34,4 +39,6 @@ string(4) "name"
Notice: sybase_unbuffered_query(): Sybase: Called without first fetching all rows from a previous unbuffered query in %s on line %d
resource(%d) of type (sybase-ct result)
string(4) "name"
resource(%d) of type (sybase-ct result)
string(4) "name"
CLOSED