ADODB AutoExecute() problem with mssqlnative driver
description
Hi,
I'm trying to use this new driver with adodb5.11(latest version) and everything works fine except when using AutoExecute().
This happens because &FetchField() (file -> adodb-mssqlnative.inc.php) doesn't return the right values to construct the query.
It should return the name, type and max_lenght of a field but instead it's returning the value posted to that same field.....
Using the old mssql driver, this works just fine
mssqlnative uses this:
$arrKeys = array_keys($this->fields);
$f = $this->fields[$arrKeys[$this->fieldOffset]]; //this only returns the current field value
mssql uses:
$f = @mssql_fetch_field($this->_queryID, $fieldOffset); //this works fine
So, what am i doing wrong????????????
I'm a newbie so please go easy on me....
P.S.1: The attached file has a little modification i made to the &FetchField() function. It works but i don't know if it's the best option...
P.S.2: I'm Portuguese, sorry for my english....