Fix date format issues on MS SQL Server (#1488918)
| | |
| | | CHANGELOG Roundcube Webmail |
| | | =========================== |
| | | |
| | | - Fix date format issues on MS SQL Server (#1488918) |
| | | - Fix so non-inline images aren't skipped on forward (#1489150) |
| | | - Add imap_cache_ttl option to configure TTL of imap_cache |
| | | - Make LDAP cache engine configurable via ldap_cache and ldap_cache_ttl options |
| | |
| | | */ |
| | | protected function _query($query, $offset, $numrows, $params) |
| | | { |
| | | $query = trim($query); |
| | | |
| | | // Read or write ? |
| | | $mode = preg_match('/^(select|show)/i', ltrim($query)) ? 'r' : 'w'; |
| | | $mode = preg_match('/^(select|show|set)/i', $query) ? 'r' : 'w'; |
| | | |
| | | $this->db_connect($mode); |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * Driver-specific configuration of database connection |
| | | * |
| | | * @param array $dsn DSN for DB connections |
| | | * @param PDO $dbh Connection handler |
| | | */ |
| | | protected function conn_configure($dsn, $dbh) |
| | | { |
| | | // Set date format in case of non-default language (#1488918) |
| | | $this->query("SET DATEFORMAT ymd"); |
| | | } |
| | | |
| | | /** |
| | | * Return SQL function for current time and date |
| | | * |
| | | * @param int $interval Optional interval (in seconds) to add/subtract |
| | |
| | | } |
| | | |
| | | /** |
| | | * Driver-specific configuration of database connection |
| | | * |
| | | * @param array $dsn DSN for DB connections |
| | | * @param PDO $dbh Connection handler |
| | | */ |
| | | protected function conn_configure($dsn, $dbh) |
| | | { |
| | | // Set date format in case of non-default language (#1488918) |
| | | $this->query("SET DATEFORMAT ymd"); |
| | | } |
| | | |
| | | /** |
| | | * Return SQL function for current time and date |
| | | * |
| | | * @param int $interval Optional interval (in seconds) to add/subtract |