Changeset 3246 in subversion


Ignore:
Timestamp:
Feb 3, 2010 6:16:18 AM (3 years ago)
Author:
alec
Message:
  • Fix inconsistency when not using default table names (#1486467)
Location:
trunk/roundcubemail
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r3241 r3246  
    22=========================== 
    33 
     4- Fix inconsistency when not using default table names (#1486467) 
    45- Fix folder rename/delete buttons do not appear on creation of first folder (#1486468) 
    56- Fix character set conversion fails on systems where iconv doesn't accept //IGNORE (#1486375) 
  • trunk/roundcubemail/program/include/main.inc

    r3240 r3246  
    7070function get_sequence_name($sequence) 
    7171  { 
    72   // return table name if configured 
     72  // return sequence name if configured 
    7373  $config_key = 'db_sequence_'.$sequence; 
    7474  $opt = rcmail::get_instance()->config->get($config_key); 
  • trunk/roundcubemail/program/include/rcube_mdb2.php

    r3231 r3246  
    332332      return FALSE; 
    333333 
    334     // find sequence name 
    335     if ($table && $this->db_provider == 'pgsql') 
    336       $table = get_sequence_name($table); 
    337  
     334    if ($table) { 
     335      if ($this->db_provider == 'pgsql') 
     336        // find sequence name 
     337        $table = get_sequence_name($table); 
     338      else 
     339        // resolve table name 
     340        $table = get_table_name($table); 
     341    } 
     342     
    338343    $id = $this->db_handle->lastInsertID($table); 
    339344     
Note: See TracChangeset for help on using the changeset viewer.