Update pgsql

This commit is contained in:
sunkaixuan
2024-07-05 15:51:04 +08:00
parent b97e5ce8b7
commit 44d510e51f

View File

@@ -42,6 +42,10 @@ namespace SqlSugar
{
primaryKey = this.SqlBuilder.GetTranslationColumnName(primaryKey);
}
else if(result.Key?.EndsWith(" returning $PrimaryKey") ==true)
{
result=new KeyValuePair<string, List<SugarParameter>>( result.Key.Replace(" returning $PrimaryKey", null),result.Value);
}
return new KeyValuePair<string, List<SugarParameter>>(result.Key.Replace("$PrimaryKey", primaryKey), result.Value);
}