Explorar o código

Merge branch '3.0' of gitee.com:baomidou/mybatis-plus into 3.0

miemie %!s(int64=4) %!d(string=hai) anos
pai
achega
a3ba0c756e

+ 2 - 2
mybatis-plus-extension/src/main/java/com/baomidou/mybatisplus/extension/parser/JsqlParserSupport.java

@@ -49,7 +49,7 @@ public abstract class JsqlParserSupport {
             Statement statement = CCJSqlParserUtil.parse(sql);
             return processParser(statement, 0, sql, obj);
         } catch (JSQLParserException e) {
-            throw ExceptionUtils.mpe("Failed to process, Error SQL: %s", e, sql);
+            throw ExceptionUtils.mpe("Failed to process, Error SQL: %s", e.getCause(), sql);
         }
     }
 
@@ -71,7 +71,7 @@ public abstract class JsqlParserSupport {
             }
             return sb.toString();
         } catch (JSQLParserException e) {
-            throw ExceptionUtils.mpe("Failed to process, Error SQL: %s", e, sql);
+            throw ExceptionUtils.mpe("Failed to process, Error SQL: %s", e.getCause(), sql);
         }
     }