From: James Moger Date: Mon, 15 Oct 2012 14:44:14 +0000 (-0400) Subject: Fixed create view exception in MySQL X-Git-Tag: v1.2.0~22 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c3bb1e38da077b88192f6586033d173a6bc96eee;p=iciql.git Fixed create view exception in MySQL --- diff --git a/src/com/iciql/IciqlException.java b/src/com/iciql/IciqlException.java index 07fd363..320604d 100644 --- a/src/com/iciql/IciqlException.java +++ b/src/com/iciql/IciqlException.java @@ -130,6 +130,9 @@ public class IciqlException extends RuntimeException { } else if ("42P07".equals(state)) { // PostgreSQL table or index already exists iciqlCode = CODE_OBJECT_ALREADY_EXISTS; + } else if ("42S01".equals(state)) { + // MySQL view already exists + iciqlCode = CODE_OBJECT_ALREADY_EXISTS; } else if ("42S11".equals(state)) { // H2 index already exists iciqlCode = CODE_OBJECT_ALREADY_EXISTS;