-
Bug
-
Resolution: Fixed
-
Blocker
-
3.0.10
-
mssql 2008r2 express, phpbb 3.0.10, win7
hi,
I'm debugging a mod in mssql and have trouble with sql_fetchfield in mssql. it returns false every time. However the query is ok when i run it in a session.
$db->sql_fetchfield calls sql_rowseek and then the result_mssqlnative class is initialised. Thereby it calls sqlsrv_fetch_array a first time and loops the row once.
After that it passes through the sql_fetchrow function in mssqlnative.php and calls sqlsrv_fetch_array a second time. this time the $row is empty because there is no next row to be fetched.
$db->sql_fetchfield then returns false to the caller.
So i think there's a bug in this class.