summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/interbase
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2012-02-20 21:42:45 +0100
committerTimothy Warren <tim@timshomepage.net>2012-02-20 21:42:45 +0100
commitfed2d1ddecae1886486915718cb9878b7d5aea45 (patch)
tree80e9432a84e5384690e0229eea7f9995042f6a4b /system/database/drivers/interbase
parent934e853d9a3a491911b72f40cb371edfaddb9c94 (diff)
Revert previous commit
Diffstat (limited to 'system/database/drivers/interbase')
-rw-r--r--system/database/drivers/interbase/interbase_driver.php6
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);
}
// --------------------------------------------------------------------