Synchronization code

This commit is contained in:
sunkaixuan 2023-12-15 02:28:26 +08:00
parent de9235d832
commit 67ed83dd27

View File

@ -56,6 +56,10 @@ namespace SqlSugar
}
public override DbCommand GetCommand(string sql, SugarParameter[] parameters)
{
if (sql == "\r\n")
{
sql = "SELECT 0";
}
NpgsqlCommand sqlCommand = new NpgsqlCommand(sql, (NpgsqlConnection)this.Connection);
sqlCommand.CommandType = this.CommandType;
sqlCommand.CommandTimeout = this.CommandTimeOut;