1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-05 05:37:39 +02:00

DibiPdoDriver::getColumnsMeta PHP < 5.2.3 compatibility

This commit is contained in:
Roman Sklenar
2009-11-27 20:51:28 +08:00
committed by David Grudl
parent 35b8a4f000
commit 7412f8bf65

View File

@@ -414,6 +414,10 @@ class DibiPdoDriver extends DibiObject implements IDibiDriver
if ($row === FALSE) {
throw new DibiDriverException('Driver does not support meta data.');
}
// 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;
$res[] = array(
'name' => $row['name'],
'table' => $row['table'],