Update sqlite group first object

This commit is contained in:
sunkaixuan 2025-06-03 08:39:42 +08:00
parent 2cff612818
commit 31166acae6

View File

@ -24,6 +24,10 @@ namespace SqlSugar
}
public override string RemoveParentheses(string sql)
{
if (sql.StartsWith("(") && sql.EndsWith(")") && sql.ToLower().Contains("limit"))
{
sql = $" select * from {sql} sqlite_temp_table ";
}
if (sql.StartsWith("(") && sql.EndsWith(")"))
{
sql = sql.Substring(1, sql.Length - 2);