cvs: php-src(PHP_5_3) /ext/sybase_ct/tests test_unbuffered_no_full_fetch.phpt
| From: | Timm Friebe | Date: | Sun, 09 Nov 2008 10:29:52 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/sybase_ct/tests test_unbuffered_no_full_fetch.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-54084@lists.php.net to get a copy of this message | ||
thekid Sun Nov 9 10:29:52 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/sybase_ct/tests test_unbuffered_no_full_fetch.phpt
Log:
- Added test for sybase_free_result() without full fetch
http://cvs.php.net/viewvc.cgi/php-src/ext/sybase_ct/tests/test_unbuffered_no_full_fetch.phpt?r1=1.1.2.1&r2=1.1.2.2&diff_format=u
Index: php-src/ext/sybase_ct/tests/test_unbuffered_no_full_fetch.phpt
diff -u php-src/ext/sybase_ct/tests/test_unbuffered_no_full_fetch.phpt:1.1.2.1
php-src/ext/sybase_ct/tests/test_unbuffered_no_full_fetch.phpt:1.1.2.2
--- php-src/ext/sybase_ct/tests/test_unbuffered_no_full_fetch.phpt:1.1.2.1 Sat Nov 8 13:21:01 2008
+++ php-src/ext/sybase_ct/tests/test_unbuffered_no_full_fetch.phpt Sun Nov 9 10:29:52 2008
@@ -6,7 +6,7 @@
<?php
/* This file is part of PHP test framework for ext/sybase_ct
*
- * $Id: test_unbuffered_no_full_fetch.phpt,v 1.1.2.1 2008/11/08 13:21:01 thekid Exp $
+ * $Id: test_unbuffered_no_full_fetch.phpt,v 1.1.2.2 2008/11/09 10:29:52 thekid Exp $
*/
require('test.inc');
@@ -21,6 +21,11 @@
// 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 @@
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