fix: sqlserver 增量sql

This commit is contained in:
taojinlong 2021-11-29 18:50:07 +08:00
parent 1df9c12c60
commit 296d1813ee

View File

@ -700,7 +700,7 @@ public class SqlserverQueryProvider extends QueryProvider {
if (sql.lastIndexOf(";") == (sql.length() - 1)) { if (sql.lastIndexOf(";") == (sql.length() - 1)) {
sql = sql.substring(0, sql.length() - 1); sql = sql.substring(0, sql.length() - 1);
} }
String tmpSql = "SELECT * FROM (" + sql + ") AS tmp " + " LIMIT 0"; String tmpSql = "SELECT TOP 0 * FROM (" + sql + ") AS DE_SQLSERVER_TMP ";
return tmpSql; return tmpSql;
} }