forked from github/dataease
fix: sqlserver 增量sql
This commit is contained in:
parent
1df9c12c60
commit
296d1813ee
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user