diff options
author | Andrey Andreev <narf@devilix.net> | 2015-01-12 11:33:37 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-01-12 11:33:37 +0100 |
commit | 5350f056698168061ffde1ba62e8db1715101446 (patch) | |
tree | fe3257e417dab12f1f4053308a5a281d0640b721 /system/database/drivers/pdo/subdrivers/pdo_oci_driver.php | |
parent | 50518a3887776b0b2b67f445cc0434017e9b71f6 (diff) |
Change CI_DB_driver::field_data() signature
The parameter is mandatory, it doesn't make sense to have a default
empty string value only to check for it.
Diffstat (limited to 'system/database/drivers/pdo/subdrivers/pdo_oci_driver.php')
-rw-r--r-- | system/database/drivers/pdo/subdrivers/pdo_oci_driver.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/system/database/drivers/pdo/subdrivers/pdo_oci_driver.php b/system/database/drivers/pdo/subdrivers/pdo_oci_driver.php index 33c7c2ac0..b80da33c2 100644 --- a/system/database/drivers/pdo/subdrivers/pdo_oci_driver.php +++ b/system/database/drivers/pdo/subdrivers/pdo_oci_driver.php @@ -184,13 +184,9 @@ class CI_DB_pdo_oci_driver extends CI_DB_pdo_driver { * @param string $table * @return array */ - public function field_data($table = '') + public function field_data($table) { - if ($table === '') - { - return ($this->db_debug) ? $this->display_error('db_field_param_missing') : FALSE; - } - elseif (strpos($table, '.') !== FALSE) + if (strpos($table, '.') !== FALSE) { sscanf($table, '%[^.].%s', $owner, $table); } |