Skip to content

Commit 2286ddc

Browse files
committed
fix generated code
1 parent 388582b commit 2286ddc

15 files changed

Lines changed: 10 additions & 10 deletions

File tree

examples/QuickStartSqliteDalGen/QuerySql.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public async Task<int> CreateAuthorReturnId(CreateAuthorReturnIdArgs args)
203203
}
204204
}
205205

206-
private const string GetAuthorByIdSql = @"SELECT id, name, bio FROM authors -- test comment
206+
private const string GetAuthorByIdSql = @"SELECT id, name, bio FROM authors -- test rest of line comment
207207
WHERE id = @id LIMIT 1";
208208
public readonly record struct GetAuthorByIdRow(int Id, string Name, string? Bio);
209209
public readonly record struct GetAuthorByIdArgs(int Id);

examples/QuickStartSqliteDalGen/request.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@
361361
}
362362
},
363363
{
364-
"text": "SELECT id, name, bio FROM authors -- test comment\nWHERE id = ? LIMIT 1",
364+
"text": "SELECT id, name, bio FROM authors -- test rest of line comment\nWHERE id = ? LIMIT 1",
365365
"name": "GetAuthorById",
366366
"cmd": ":one",
367367
"columns": [
13 Bytes
Binary file not shown.

examples/SqliteDapperExample/QuerySql.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public async Task<int> CreateAuthorReturnId(CreateAuthorReturnIdArgs args)
155155
return await this.Transaction.Connection.QuerySingleAsync<int>(CreateAuthorReturnIdSql, queryParams, transaction: this.Transaction);
156156
}
157157

158-
private const string GetAuthorByIdSql = @"SELECT id, name, bio FROM authors -- test comment
158+
private const string GetAuthorByIdSql = @"SELECT id, name, bio FROM authors -- test rest of line comment
159159
WHERE id = @id LIMIT 1";
160160
public class GetAuthorByIdRow
161161
{

examples/SqliteDapperExample/request.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@
470470
}
471471
},
472472
{
473-
"text": "SELECT id, name, bio FROM authors -- test comment\nWHERE id = ? LIMIT 1",
473+
"text": "SELECT id, name, bio FROM authors -- test rest of line comment\nWHERE id = ? LIMIT 1",
474474
"name": "GetAuthorById",
475475
"cmd": ":one",
476476
"columns": [
13 Bytes
Binary file not shown.

examples/SqliteDapperLegacyExample/QuerySql.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public async Task<int> CreateAuthorReturnId(CreateAuthorReturnIdArgs args)
156156
return await this.Transaction.Connection.QuerySingleAsync<int>(CreateAuthorReturnIdSql, queryParams, transaction: this.Transaction);
157157
}
158158

159-
private const string GetAuthorByIdSql = @"SELECT id, name, bio FROM authors -- test comment
159+
private const string GetAuthorByIdSql = @"SELECT id, name, bio FROM authors -- test rest of line comment
160160
WHERE id = @id LIMIT 1";
161161
public class GetAuthorByIdRow
162162
{

examples/SqliteDapperLegacyExample/request.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@
470470
}
471471
},
472472
{
473-
"text": "SELECT id, name, bio FROM authors -- test comment\nWHERE id = ? LIMIT 1",
473+
"text": "SELECT id, name, bio FROM authors -- test rest of line comment\nWHERE id = ? LIMIT 1",
474474
"name": "GetAuthorById",
475475
"cmd": ":one",
476476
"columns": [
13 Bytes
Binary file not shown.

examples/SqliteExample/QuerySql.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public async Task<int> CreateAuthorReturnId(CreateAuthorReturnIdArgs args)
206206
}
207207
}
208208

209-
private const string GetAuthorByIdSql = @"SELECT id, name, bio FROM authors -- test comment
209+
private const string GetAuthorByIdSql = @"SELECT id, name, bio FROM authors -- test rest of line comment
210210
WHERE id = @id LIMIT 1";
211211
public readonly record struct GetAuthorByIdRow(int Id, string Name, string? Bio);
212212
public readonly record struct GetAuthorByIdArgs(int Id);

0 commit comments

Comments
 (0)