1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-04 13:17:58 +02:00

PdoDriver: fix notice undefined index native_type

This commit is contained in:
Filip Procházka
2013-03-01 17:03:17 +01:00
committed by David Grudl
parent 6e4a6474cd
commit 669ce73096

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'],