SimpleMachines / converters

Converters to SMF from other forum software
http://www.simplemachines.org
13 stars 20 forks source link

Convertors for MySQLI #1

Closed VBGAMER45 closed 5 years ago

VBGAMER45 commented 5 years ago

Convertors for MySQLI

Seems to fail with the handling at least on windows. Not sure how many now currently use ADO on windows.

Code such as ` // Okay, the hardest is ADO (Windows only, by the way.) if (!is_resource($result) && is_object($result)) { if ($result->EOF) return false;

    $row = array();
    $fields = $result->Fields;
    for ($i = 0, $n = $fields->Count; $i < $n; $i++)
    {
        $field = $fields[$i];
        $row[$field->Name] = $field->Value;
    }
    $result->MoveNext();

    return $row;
}

`

VBGAMER45 commented 5 years ago

Fixed in https://github.com/SimpleMachines/converters/commit/655e8bc2ac3cdcabd1511104b02117fb489b406e

jdarwood007 commented 5 years ago

This is the wrong fix really. birthdate column is not in the select so its not being converted, resulting in that not existing at all and that error.