File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
APIJSONORM/src/main/java/apijson/orm Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -3979,7 +3979,7 @@ public static String getSQL(AbstractSQLConfig config) throws Exception {
3979
3979
}
3980
3980
return "DELETE FROM " + tablePath + config .getWhereString (true ) + (config .isMySQL () ? config .getLimitString () : "" ); // PostgreSQL 不允许 LIMIT
3981
3981
default :
3982
- String explain = ( config .isExplain () ? (config .isSQLServer () || config .isOracle () ? "SET STATISTICS PROFILE ON " : "EXPLAIN " ) : "" ) ;
3982
+ String explain = config .isExplain () ? (config .isSQLServer () ? "SET STATISTICS PROFILE ON " : ( config .isOracle () ? "EXPLAIN PLAN FOR " : "EXPLAIN " )) : "" ;
3983
3983
if (config .isTest () && RequestMethod .isGetMethod (config .getMethod (), true )) { // FIXME 为啥是 code 而不是 count ?
3984
3984
String q = config .getQuote (); // 生成 SELECT ( (24 >=0 AND 24 <3) ) AS `code` LIMIT 1 OFFSET 0
3985
3985
return explain + "SELECT " + config .getWhereString (false ) + " AS " + q + JSONResponse .KEY_COUNT + q + config .getLimitString ();
You can’t perform that action at this time.
0 commit comments