From 84aeb52d3a177560cbe128754c29e8df8f42817e Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 29 Jan 2006 23:26:48 +0000 Subject: [PATCH] Insert ID is now computed correctly --- api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.php b/api.php index d3ab9f4..b1af22c 100644 --- a/api.php +++ b/api.php @@ -396,7 +396,7 @@ class API $this->registry->modules[ISSO_DB_LAYER]->query("INSERT INTO {$this->prefix}{$this->table} (" . implode(',', $fields) . ") VALUES (" . implode(',', $values) . ")"); - if (ISSO_DB_LAYER == 'DB_PostgreSQL') + if (strcasecmp(ISSO_DB_LAYER, 'DB_PostgreSQL') == 0) { foreach ($this->fields AS $field => $info) { @@ -407,7 +407,7 @@ class API } } - $this->insertid = $this->registry->modules[ISSO_DB_LAYER]->insert_id($this->table, $autofield); + $this->insertid = $this->registry->modules[ISSO_DB_LAYER]->insert_id($this->prefix . $this->table, $autofield); } else { -- 2.22.5