aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Moger <james.moger@gmail.com>2012-10-15 10:44:14 -0400
committerJames Moger <james.moger@gmail.com>2012-10-15 10:44:14 -0400
commitc3bb1e38da077b88192f6586033d173a6bc96eee (patch)
treeb5fd3c791573cfafd4aabcd6725594a936288be3
parenta55a01aea6086c547eacd81127971ab9d9a00a2e (diff)
downloadiciql-c3bb1e38da077b88192f6586033d173a6bc96eee.tar.gz
iciql-c3bb1e38da077b88192f6586033d173a6bc96eee.zip
Fixed create view exception in MySQL
-rw-r--r--src/com/iciql/IciqlException.java3
1 files changed, 3 insertions, 0 deletions
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;