diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-06-23 19:26:31 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-06-23 19:26:31 +0200 |
commit | fbba54ea6c896e0545d4d20a19abe06d57ffc97b (patch) | |
tree | a4306167666d32609e7cb1ec1217187ddac8073b /system/database/drivers/pdo/pdo_forge.php | |
parent | 7a744a8ba8f07ba1ec3a48f1d5de641b4025ce20 (diff) |
Rename pdodriver property to subdriver and make it available to all drivers
Diffstat (limited to 'system/database/drivers/pdo/pdo_forge.php')
-rw-r--r-- | system/database/drivers/pdo/pdo_forge.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/pdo/pdo_forge.php b/system/database/drivers/pdo/pdo_forge.php index 02ceb74fe..5396282cd 100644 --- a/system/database/drivers/pdo/pdo_forge.php +++ b/system/database/drivers/pdo/pdo_forge.php @@ -78,7 +78,7 @@ class CI_DB_pdo_forge extends CI_DB_forge { if ( ! empty($attributes['CONSTRAINT'])) { // Exception for Postgre numeric which not too happy with constraint within those type - if ( ! ($this->db->pdodriver === 'pgsql' && in_array($attributes['TYPE'], $numeric))) + if ( ! ($this->db->subdriver === 'pgsql' && in_array($attributes['TYPE'], $numeric))) { $sql .= '('.$attributes['CONSTRAINT'].')'; } |