Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-10858

$db->sql_fetchfield returns false with mssqlnative

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: