summaryrefslogtreecommitdiff
path: root/ext/sybase_ct
diff options
context:
space:
mode:
authorTimm Friebe <thekid@php.net>2008-11-09 10:29:52 +0000
committerTimm Friebe <thekid@php.net>2008-11-09 10:29:52 +0000
commit2268bf47e34bf513cab453704e274070db14aa13 (patch)
tree8c4de1df0a4bb636f1898171785ca931e1726e0e /ext/sybase_ct
parent963aa85764d255d8a5e50833c02fd132a6bfaa6b (diff)
downloadphp-git-2268bf47e34bf513cab453704e274070db14aa13.tar.gz
- Added test for sybase_free_result() without full fetch
Diffstat (limited to 'ext/sybase_ct')
-rw-r--r--ext/sybase_ct/tests/test_unbuffered_no_full_fetch.phpt7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/sybase_ct/tests/test_unbuffered_no_full_fetch.phpt b/ext/sybase_ct/tests/test_unbuffered_no_full_fetch.phpt
index 6f0630ec96..5faf8fe4de 100644
--- a/ext/sybase_ct/tests/test_unbuffered_no_full_fetch.phpt
+++ b/ext/sybase_ct/tests/test_unbuffered_no_full_fetch.phpt
@@ -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