1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-12 09:04:24 +02:00

Merge pull request #81 from HosipLan/bugfix/notice

PdoDriver: fix notice undefined index native_type
This commit is contained in:
David Grudl
2013-03-14 05:59:34 -07:00

View File

@@ -451,7 +451,10 @@ class DibiPdoDriver extends DibiObject implements IDibiDriver, IDibiResultDriver
}
// PHP < 5.2.3 compatibility
// @see: http://php.net/manual/en/pdostatement.getcolumnmeta.php#pdostatement.getcolumnmeta.changelog
$row['table'] = isset($row['table']) ? $row['table'] : NULL;
$row = $row + array(
'table' => NULL,
'native_type' => 'VAR_STRING',
);
$columns[] = array(
'name' => $row['name'],