瀏覽代碼

Basically it wants a non-empty catch statement

Co-authored-by: Austin Huang <im@austinhuang.me>
El RIDO 4 年之前
父節點
當前提交
b8e8755fb1
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      lib/Data/Database.php

+ 3 - 1
lib/Data/Database.php

@@ -833,7 +833,9 @@ class Database extends AbstractData
                 begin
                     execute immediate \'create index "comment_parent" on "' . self::_sanitizeIdentifier('comment') . '" ("pasteid")\';
                 exception
-                end'
+                    when already_exists or columns_indexed then
+                    NULL;
+                end;'
             );
         } else {
             self::$_db->exec(