diff options
author | Andrey Andreev <narf@devilix.net> | 2016-09-16 11:06:40 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2016-09-16 11:06:40 +0200 |
commit | 0a4dd844b8a3d6edb7712d3bb4edf1b4f0e9dc4c (patch) | |
tree | c0f924a12da9910e82873f6b202bd34e6b9b5ad5 /system/database/drivers/pdo/subdrivers | |
parent | 442ea6861a5fdfb9780e79b00875e55cdab3f6ff (diff) |
[ci skip] Don't try to insert_batch() when we know it's not supported on Firebird
Diffstat (limited to 'system/database/drivers/pdo/subdrivers')
-rw-r--r-- | system/database/drivers/pdo/subdrivers/pdo_firebird_driver.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/system/database/drivers/pdo/subdrivers/pdo_firebird_driver.php b/system/database/drivers/pdo/subdrivers/pdo_firebird_driver.php index 96dcc5ec1..7811d3da4 100644 --- a/system/database/drivers/pdo/subdrivers/pdo_firebird_driver.php +++ b/system/database/drivers/pdo/subdrivers/pdo_firebird_driver.php @@ -260,4 +260,20 @@ class CI_DB_pdo_firebird_driver extends CI_DB_pdo_driver { return preg_replace('`SELECT`i', 'SELECT '.$select, $sql); } + // -------------------------------------------------------------------- + + /** + * Insert batch statement + * + * Generates a platform-specific insert string from the supplied data. + * + * @param string $table Table name + * @param array $keys INSERT keys + * @param array $values INSERT values + * @return string|bool + */ + protected function _insert_batch($table, $keys, $values) + { + return ($this->db->db_debug) ? $this->db->display_error('db_unsupported_feature') : FALSE; + } } |