From c3bb1e38da077b88192f6586033d173a6bc96eee Mon Sep 17 00:00:00 2001 From: James Moger Date: Mon, 15 Oct 2012 10:44:14 -0400 Subject: [PATCH] Fixed create view exception in MySQL --- src/com/iciql/IciqlException.java | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5