Quantcast
Channel: SCN: Message List - SAP Advantage Database Server
Viewing all articles
Browse latest Browse all 997

Column Name Bug? with ADS 11.10/PHP 5.4.16/PDO

$
0
0

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.


Viewing all articles
Browse latest Browse all 997

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>