diff options
author | Olivier Bertrand <bertrandop@gmail.com> | 2017-06-11 17:22:56 +0200 |
---|---|---|
committer | Olivier Bertrand <bertrandop@gmail.com> | 2017-06-11 17:22:56 +0200 |
commit | c51548d6b4234d1b9bf7548125f63c5975f37d35 (patch) | |
tree | 5aaa9514d62dcaca3a5580dcc8edd6dbdcad1748 /storage/connect/array.cpp | |
parent | f3452fcd844d6477968c3feb982e30612aa34f4d (diff) | |
download | mariadb-git-c51548d6b4234d1b9bf7548125f63c5975f37d35.tar.gz |
Fix unhandled exception:
Force type int for ENUMs.
Replace remaining longjmp.
modified: storage/connect/array.cpp
modified: storage/connect/colblk.cpp
modified: storage/connect/connect.cc
modified: storage/connect/filter.cpp
modified: storage/connect/jdbconn.cpp
modified: storage/connect/plgdbutl.cpp
modified: storage/connect/tabdos.cpp
modified: storage/connect/tabvir.cpp
modified: storage/connect/tabxml.cpp
modified: storage/connect/value.cpp
modified: storage/connect/xobject.cpp
Diffstat (limited to 'storage/connect/array.cpp')
-rw-r--r-- | storage/connect/array.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/storage/connect/array.cpp b/storage/connect/array.cpp index 4b6e1df8e32..285469462fa 100644 --- a/storage/connect/array.cpp +++ b/storage/connect/array.cpp @@ -519,7 +519,7 @@ bool ARRAY::FilTest(PGLOBAL g, PVAL valp, OPVAL opc, int opm) } else if (opc != OP_EXIST) { sprintf(g->Message, MSG(MISSING_ARG), opc); - throw TYPE_ARRAY; + throw (int)TYPE_ARRAY; } else // OP_EXIST return Nval > 0; @@ -681,14 +681,14 @@ void ARRAY::SetPrecision(PGLOBAL g, int p) { if (Vblp == NULL) { strcpy(g->Message, MSG(PREC_VBLP_NULL)); - throw TYPE_ARRAY; + throw (int)TYPE_ARRAY; } // endif Vblp bool was = Vblp->IsCi(); if (was && !p) { strcpy(g->Message, MSG(BAD_SET_CASE)); - throw TYPE_ARRAY; + throw (int)TYPE_ARRAY; } // endif Vblp if (was || !p) @@ -699,7 +699,7 @@ void ARRAY::SetPrecision(PGLOBAL g, int p) if (!was && Type == TYPE_STRING) // Must be resorted to eliminate duplicate strings if (Sort(g)) - throw TYPE_ARRAY; + throw (int)TYPE_ARRAY; } // end of SetPrecision |