Ticket #1484068: roundcube-postgres-bugfix.patch

File roundcube-postgres-bugfix.patch, 0.5 kB (added by bobtfish, 2 years ago)

Fix a bug in the handling of postgres databases.

  • program/include/rcube_db.inc

    === program/include/rcube_db.inc
    ==================================================================
     
    293293      { 
    294294      case 'pgsql': 
    295295        $result = &$this->db_handle->getOne("SELECT CURRVAL('$sequence')"); 
     296        return $result; 
    296297         
    297298      case 'mssql': 
    298299        $result = &$this->db_handle->getOne("SELECT @@IDENTITY"); 
     
    576577 
    577578  }  // end class rcube_db 
    578579 
    579 ?> 
    580  No newline at end of file 
     580?> 
     581