Aleksander Machniak
2013-10-14 899e5944740f5583f2796138f8181a5f6500fee6
Key duplicate error on postgres uses SQLSTATE=23505
1 files modified
2 ■■■ changed files
program/lib/Roundcube/rcube_db.php 2 ●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_db.php
@@ -456,7 +456,7 @@
    {
        $error = $this->dbh->errorInfo();
        if (empty($this->options['ignore_key_errors']) || $error[0] != '23000') {
        if (empty($this->options['ignore_key_errors']) || !in_array($error[0], array('23000', '23505'))) {
            $this->db_error = true;
            $this->db_error_msg = sprintf('[%s] %s', $error[1], $error[2]);