Hi, i'm using ADS 11.10/PHP 5.4.16/PDO:
$pdoConnection = new PDO(DSN);
$pdoConnection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$pdoStatement = $pdoConnection->query($sql);
while ($record = $pdoStatement->fetch(PDO::FETCH_ASSOC)) {
echo $record['name'];
}
$pdoStatement->closeCursor();
$pdoConnection= null;
If $sql = "SELECT name FROM demo" all works fine, as expected but if $sql = "SELECT name INTO #result FROM demo" then an error appears:
Notice: Undefined index: name... in line echo $record['name'];
Debugging the code i find that the column name was changed from name to NAME when i use INTO, this is a bug?
Thanks.