PDO Fetch assoc iSeries AS400 unixodbc only returns first letter of column
<p>When using the PDO ASSOC statement I am only getting first letter of the column instead of the full one. Any ideas ? More information below :</p>

<p>Small code block to fetch_assoc via PHP : </p>

<pre><code>$pdo = new PDO("xxx", "user","pwd");
$pdo-&gt;setAttribute(PDO::ATTR_ORACLE_NULLS, PDO::NULL_TO_STRING);
$query = $pdo-&gt;query("SELECT TRND.TRANID FROM PCRMTRND AS TRND");
$query-&gt;execute();
$tmp = array();
while($row=$query-&gt;fetch(PDO::FETCH_ASSOC)) {
        array_push($tmp,$row);
}
</code></pre>

<p>After filling array tmp :</p>

<p><a href="https://i.stack.imgur.com/Oogwe.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Oogwe.jpg" alt="enter image description here"></a></p>

<p>Var DUMP each row  : </p>

<p><a href="https://i.stack.imgur.com/QnnZh.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QnnZh.jpg" alt="enter image description here"></a></p>

<p>Settings of ODBC : </p>

<pre><code>[xxx]
Description             = iSeries ODBC
Driver                  = IBM i Access ODBC Driver
System                  = /
UserID                  = 
Password                = 
Naming                  = 0
DefaultLibraries        = QGPL
Database                =
ConnectionType          = 0
CommitMode              = 2
ExtendedDynamic         = 1
DefaultPkgLibrary       = QGPL
DefaultPackage          = A/DEFAULT(IBM),2,0,1,0,512
AllowDataCompression    = 1
LibraryView             = 0
AllowUnsupportedChar    = 0
ForceTranslation        = 0
Trace                   = 0
</code></pre>