alecpl
2010-02-03 e1ac217397bfc23a5c059aaa12bba8c1fc018cbb
program/include/rcube_mdb2.php
@@ -331,9 +331,14 @@
    if (!$this->db_handle || $this->db_mode=='r')
      return FALSE;
    if ($table) {
      if ($this->db_provider == 'pgsql')
    // find sequence name
    if ($table && $this->db_provider == 'pgsql')
      $table = get_sequence_name($table);
      else
        // resolve table name
        $table = get_table_name($table);
    }
    $id = $this->db_handle->lastInsertID($table);