mirror of
https://github.com/dg/dibi.git
synced 2025-08-05 13:47:33 +02:00
DibiPdoDriver::getColumnsMeta PHP < 5.2.3 compatibility
This commit is contained in:
committed by
David Grudl
parent
35b8a4f000
commit
7412f8bf65
@@ -414,6 +414,10 @@ class DibiPdoDriver extends DibiObject implements IDibiDriver
|
|||||||
if ($row === FALSE) {
|
if ($row === FALSE) {
|
||||||
throw new DibiDriverException('Driver does not support meta data.');
|
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(
|
$res[] = array(
|
||||||
'name' => $row['name'],
|
'name' => $row['name'],
|
||||||
'table' => $row['table'],
|
'table' => $row['table'],
|
||||||
|
Reference in New Issue
Block a user