Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-10858

$db->sql_fetchfield returns false with mssqlnative

XMLWordPrintable

      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.

            bantu Andreas Fischer [X] (Inactive)
            Sajaki Sajaki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: