diff options
author | Timothy Warren <tim@timshomepage.net> | 2012-02-20 21:42:45 +0100 |
---|---|---|
committer | Timothy Warren <tim@timshomepage.net> | 2012-02-20 21:42:45 +0100 |
commit | fed2d1ddecae1886486915718cb9878b7d5aea45 (patch) | |
tree | 80e9432a84e5384690e0229eea7f9995042f6a4b | |
parent | 934e853d9a3a491911b72f40cb371edfaddb9c94 (diff) |
Revert previous commit
-rw-r--r-- | system/database/drivers/interbase/interbase_driver.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/system/database/drivers/interbase/interbase_driver.php b/system/database/drivers/interbase/interbase_driver.php index 4044c4529..aeea00d7f 100644 --- a/system/database/drivers/interbase/interbase_driver.php +++ b/system/database/drivers/interbase/interbase_driver.php @@ -310,11 +310,7 @@ class CI_DB_interbase_driver extends CI_DB { public function insert_id($generator_name, $inc_by=0) { //If a generator hasn't been used before it will return 0 - if($id = ibase_gen_id('"'.$generator_name.'"', $inc_by) !== 0) - { - return $id; - } - return ibase_gen_id('"'.$generator_name.'"', 1); + return ibase_gen_id('"'.$generator_name.'"', $inc_by); } // -------------------------------------------------------------------- |