Skip to content

Commit b6b6d56

Browse files
Merge pull request #732 from ptakpiotr/master
Bump Dapper version & fix SqlResult errors
2 parents 950fd01 + 908233e commit b6b6d56

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

QueryBuilder/Compilers/Compiler.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ protected Compiler()
3232
/// <summary>
3333
/// Whether the compiler supports the `SELECT ... FILTER` syntax
3434
/// </summary>
35-
/// <value></value>
35+
/// <value></value>
3636
public virtual bool SupportsFilterClause { get; set; } = false;
3737

3838
/// <summary>
3939
/// If true the compiler will remove the SELECT clause for the query used inside WHERE EXISTS
4040
/// </summary>
41-
/// <value></value>
41+
/// <value></value>
4242
public virtual bool OmitSelectInsideExists { get; set; } = true;
4343

4444
protected virtual string SingleRowDummyTableName { get => null; }
@@ -229,7 +229,7 @@ protected virtual SqlResult CompileSelectQuery(Query query)
229229

230230
protected virtual SqlResult CompileAdHocQuery(AdHocTableFromClause adHoc)
231231
{
232-
var ctx = new SqlResult();
232+
var ctx = new SqlResult(parameterPlaceholder, EscapeCharacter);
233233

234234
var row = "SELECT " + string.Join(", ", adHoc.Columns.Select(col => $"{parameterPlaceholder} AS {Wrap(col)}"));
235235

@@ -295,7 +295,7 @@ protected virtual SqlResult CompileDeleteQuery(Query query)
295295
}
296296
else
297297
{
298-
// check if we have alias
298+
// check if we have alias
299299
if (fromClause is FromClause && !string.IsNullOrEmpty(fromClause.Alias))
300300
{
301301
ctx.RawSql = $"DELETE {Wrap(fromClause.Alias)} FROM {table} {joins}{where}";

QueryBuilder/Compilers/SqlServerCompiler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ protected override string CompileBasicDateCondition(SqlResult ctx, BasicDateCond
173173

174174
protected override SqlResult CompileAdHocQuery(AdHocTableFromClause adHoc)
175175
{
176-
var ctx = new SqlResult();
176+
var ctx = new SqlResult(parameterPlaceholder, EscapeCharacter);
177177

178178
var colNames = string.Join(", ", adHoc.Columns.Select(Wrap));
179179

SqlKata.Execution/SqlKata.Execution.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<ProjectReference Include="..\QueryBuilder\QueryBuilder.csproj" />
3333
</ItemGroup>
3434
<ItemGroup>
35-
<PackageReference Include="dapper" Version="2.0.123" />
35+
<PackageReference Include="dapper" Version="2.1.35" />
3636
<PackageReference Include="Humanizer.Core" Version="2.8.26" />
3737
</ItemGroup>
3838
</Project>

0 commit comments

Comments
 (0)