]> source.dussan.org Git - iciql.git/commitdiff
Fixed create view exception in MySQL
authorJames Moger <james.moger@gmail.com>
Mon, 15 Oct 2012 14:44:14 +0000 (10:44 -0400)
committerJames Moger <james.moger@gmail.com>
Mon, 15 Oct 2012 14:44:14 +0000 (10:44 -0400)
src/com/iciql/IciqlException.java

index 07fd363f3fe57041a93c4d473eb7405f48d94ea0..320604d1c4748dca6439698ba5c0ec24e371b8b7 100644 (file)
@@ -130,6 +130,9 @@ public class IciqlException extends RuntimeException {
                        } else if ("42P07".equals(state)) {\r
                                // PostgreSQL table or index already exists\r
                                iciqlCode = CODE_OBJECT_ALREADY_EXISTS;\r
+                       } else if ("42S01".equals(state)) {\r
+                               // MySQL view already exists\r
+                               iciqlCode = CODE_OBJECT_ALREADY_EXISTS;\r
                        } else if ("42S11".equals(state)) {\r
                                // H2 index already exists\r
                                iciqlCode = CODE_OBJECT_ALREADY_EXISTS;\r