alecpl
2009-07-31 44653321b407edc2334a9ec1e1e46a0a03201646
program/include/rcube_mdb2.php
@@ -330,7 +330,9 @@
    if (!$this->db_handle || $this->db_mode=='r')
      return FALSE;
    return $this->db_handle->lastInsertID($sequence);
    $id = $this->db_handle->lastInsertID($sequence);
    return $this->db_handle->isError($id) ? null : $id;
    }
@@ -505,7 +507,7 @@
        break;
      case 'mssql':
        return "datediff(s, '1970-01-01 00:00:00', $field)";
   return "DATEDIFF(second, '19700101', $field) + DATEDIFF(second, GETDATE(), GETUTCDATE())";
      default:
        return "UNIX_TIMESTAMP($field)";
@@ -701,8 +703,6 @@
  {
    $debug_output = $scope . '('.$db->db_index.'): ';
    $debug_output .= $message . $db->getOption('log_line_break');
    write_log('sqllog', $debug_output);
    write_log('sql', $debug_output);
  }
}