Update 达梦 BUG

This commit is contained in:
sunkaixuan 2022-08-08 12:59:27 +08:00
parent f816840f4e
commit 7b9908fd32
2 changed files with 9 additions and 2 deletions

View File

@ -41,6 +41,13 @@ namespace SqlSugar
return sql; return sql;
}; };
} }
public override string SqlParameterKeyWord
{
get
{
return ":";
}
}
public override IDbConnection Connection public override IDbConnection Connection
{ {
get get

View File

@ -49,9 +49,9 @@ namespace SqlSugar
} }
this.OrderByValue = oldOrderBy; this.OrderByValue = oldOrderBy;
result = GetSqlQuerySql(result); result = GetSqlQuerySql(result);
if (result.IndexOf("-- No table") > 0) if (result.Contains("-- No table") )
{ {
return "-- No table"; return "select * from (select 1 as id) where id=0 -- No table";
} }
return result; return result;
} }