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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user