1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-05 21:58:10 +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
parent 9001afe7ca
commit cbca529ff8

View File

@@ -451,7 +451,10 @@ class DibiPdoDriver extends DibiObject implements IDibiDriver, IDibiResultDriver
} }
// PHP < 5.2.3 compatibility // PHP < 5.2.3 compatibility
// @see: http://php.net/manual/en/pdostatement.getcolumnmeta.php#pdostatement.getcolumnmeta.changelog // @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( $columns[] = array(
'name' => $row['name'], 'name' => $row['name'],