Changeset 63
- Timestamp:
- 06/14/08 09:43:07 (7 months ago)
- Files:
-
- trunk/sqlite3.c (modified) (8 diffs)
- trunk/tests/sqlite3_11_numrows.phpt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/sqlite3.c
r62 r63 446 446 case SQLITE_ROW: /* Valid Row */ 447 447 { 448 #ifdef scottmac_0 448 449 /* loop through to fill numRows */ 449 450 do … … 451 452 result->num_rows++; 452 453 } while (sqlite3_step(*(result->intern_stmt)) == SQLITE_ROW); 454 #endif 453 455 } 454 456 /* No break is intentional */ … … 1218 1220 switch (return_code) { 1219 1221 case SQLITE_ROW: /* Valid Row */ 1222 #ifdef scottmac_0 1220 1223 /* loop through to fill numRows */ 1221 1224 do … … 1223 1226 num_rows++; 1224 1227 } while (sqlite3_step(internp->stmt) == SQLITE_ROW); 1225 1228 #endif 1226 1229 case SQLITE_DONE: /* Valid but no results */ 1227 1230 { … … 1393 1396 /* }}} */ 1394 1397 1398 #ifdef scottmac_0 1395 1399 /* {{{ proto bool SQLite3_result::numRows() 1396 1400 Returns the number of rows in a result set … … 1406 1410 } 1407 1411 RETURN_LONG(internp->num_rows); 1408 } 1409 /* }}} */ 1412 } 1413 /* }}} */ 1414 #endif 1410 1415 1411 1416 /* {{{ proto bool SQLite3_result::finalize() … … 1572 1577 ZEND_END_ARG_INFO() 1573 1578 1579 #ifdef scottmac_0 1574 1580 static 1575 1581 ZEND_BEGIN_ARG_INFO(arginfo_sqlite3_result_numrows, 0) 1576 1582 ZEND_END_ARG_INFO() 1583 #endif 1577 1584 1578 1585 static … … 1628 1635 PHP_ME(sqlite3_result, fetchArray, arginfo_sqlite3_result_fetcharray, ZEND_ACC_PUBLIC) 1629 1636 PHP_ME(sqlite3_result, reset, arginfo_sqlite3_result_reset, ZEND_ACC_PUBLIC) 1637 #ifdef scottmac_0 1630 1638 PHP_ME(sqlite3_result, numRows, arginfo_sqlite3_result_numrows, ZEND_ACC_PUBLIC) 1639 #endif 1631 1640 PHP_ME(sqlite3_result, finalize, arginfo_sqlite3_result_finalize, ZEND_ACC_PUBLIC) 1632 1641 trunk/tests/sqlite3_11_numrows.phpt
r55 r63 2 2 SQLite3::prepare number of rows 3 3 --SKIPIF-- 4 <?php require_once(dirname(__FILE__) . '/skipif.inc'); ?> 4 <?php require_once(dirname(__FILE__) . '/skipif.inc'); 5 // Create an instance of the ReflectionMethod class 6 try { 7 $method = new ReflectionMethod('sqlite3_result', 'numRows'); 8 } catch (ReflectionException $e) { 9 die("skip"); 10 } 11 ?> 5 12 --FILE-- 6 13 <?php
