mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
Added comment in code :-)
This commit is contained in:
parent
9e445746e5
commit
dd5b49796c
@ -2201,6 +2201,20 @@ PHP_FUNCTION(ibase_affected_rows)
|
||||
Returns the number of rows in a result */
|
||||
PHP_FUNCTION(ibase_num_rows)
|
||||
{
|
||||
/**
|
||||
* This function relies on the InterBase API function isc_dsql_sql_info()
|
||||
* which has a couple of limitations (which I hope will be fixed in
|
||||
* future releases of Firebird):
|
||||
* - row count is always zero before the first fetch;
|
||||
* - row count for SELECT ... FOR UPDATE is broken -> never returns a
|
||||
* higher number than the number of records fetched so far;
|
||||
* - row count for other statements is merely a lower bound on the number
|
||||
* of records => calling ibase_num_rows() again after a couple of fetches
|
||||
* will most likely return a new (higher) figure for large result sets.
|
||||
*
|
||||
* 12-aug-2003 Ard Biesheuvel
|
||||
*/
|
||||
|
||||
zval **result_arg;
|
||||
ibase_result *ib_result;
|
||||
char info_count[] = {isc_info_sql_records}, result[64];
|
||||
|
Loading…
Reference in New Issue
Block a user