Fixes for Oracle

pull/221/head
Aleksander Machniak 10 years ago
parent b84a04336b
commit 83a64265a7

@ -141,7 +141,7 @@ class rcube_db_oracle extends rcube_db
{
if ($interval) {
$interval = intval($interval);
return "current_timestamp + INTERVAL $interval SECOND";
return "current_timestamp + INTERVAL '$interval' SECOND";
}
return "current_timestamp";

@ -341,7 +341,7 @@ class rcube_user
$insert_cols[] = $this->db->quote_identifier($col);
$insert_values[] = $value;
}
$insert_cols[] = 'user_id';
$insert_cols[] = $this->db->quote_identifier('user_id');
$insert_values[] = $this->ID;
$sql = "INSERT INTO ".$this->db->table_name('identities', true).

Loading…
Cancel
Save