Skip to content

Commit 1b4791f

Browse files
Merge pull request #20 from MPCoreDeveloper/copilot/fix-cli-runner-on-git-note
Fix parameterized queries and update CI to .NET 10.0
2 parents fc3367c + 7487cdb commit 1b4791f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ jobs:
1515
- name: Setup .NET
1616
uses: actions/setup-dotnet@v4
1717
with:
18-
dotnet-version: 9.0.x
18+
dotnet-version: 10.0.x
1919
- name: Restore dependencies
2020
run: dotnet restore
2121
- name: Build
2222
run: dotnet build --no-restore
2323
- name: Test
24-
run: dotnet test --no-build --verbosity normal
24+
run: dotnet test --no-build --verbosity normal
25+
- name: Run Demo CLI
26+
run: dotnet run --project SharpCoreDB.Demo --no-build

SharpCoreDB/Services/SqlParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void Execute(string sql, Dictionary<string, object?> parameters, IWAL? wa
6262

6363
// Proceed with existing logic
6464
var parts = sql.Trim().Split(' ', StringSplitOptions.RemoveEmptyEntries);
65-
this.ExecuteInternal(originalSql ?? sql, parts, wal, originalSql ?? sql);
65+
this.ExecuteInternal(sql, parts, wal, originalSql ?? sql);
6666
}
6767

6868
/// <summary>

0 commit comments

Comments
 (0)