diff options
author | James Moger <james.moger@gmail.com> | 2012-10-15 10:44:14 -0400 |
---|---|---|
committer | James Moger <james.moger@gmail.com> | 2012-10-15 10:44:14 -0400 |
commit | c3bb1e38da077b88192f6586033d173a6bc96eee (patch) | |
tree | b5fd3c791573cfafd4aabcd6725594a936288be3 | |
parent | a55a01aea6086c547eacd81127971ab9d9a00a2e (diff) | |
download | iciql-c3bb1e38da077b88192f6586033d173a6bc96eee.tar.gz iciql-c3bb1e38da077b88192f6586033d173a6bc96eee.zip |
Fixed create view exception in MySQL
-rw-r--r-- | src/com/iciql/IciqlException.java | 3 |
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;
|