Commit eefc57a
Support quoted table names (#2616)
## Why make this change?
- Fixes #2385
## What is this change?
- In [SqlMetadataProvider.PopulateColumnDefinitionsWithReadOnlyFlag](https://github.com/Azure/data-api-builder/blob/c9e836b551eb6bc729e88e71b3aa4d1c1b235345/src/Core/Services/MetadataProviders/SqlMetadataProvider.cs#L1355) the QuoteIdentifier-method of the SqlQueryBuilder was not used to add quotes to the table name
## How was this tested?
- [ ] Integration Tests -> I'm happy to extend the integration tests, if this fix seems like a good idea
- [ ] Unit Tests
- [x] manually
## Sample Request(s)
Sample configuraiton:
```
"MyTable": {
"source": {
"object": "schema.\"MyTable\"",
"type": "table"
}
}
```
---------
Co-authored-by: Thomas Fröhle <[email protected]>
Co-authored-by: Aniruddh Munde <[email protected]>
Co-authored-by: aaronburtle <[email protected]>
Co-authored-by: aaron burtle <[email protected]>1 parent 6c55993 commit eefc57a
File tree
6 files changed
+33
-1
lines changed- src/Core
- Resolvers
- Services/MetadataProviders
6 files changed
+33
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
435 | 441 | | |
436 | 442 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
87 | 93 | | |
88 | 94 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
597 | 603 | | |
598 | 604 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
370 | 376 | | |
371 | 377 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
244 | 251 | | |
245 | 252 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1355 | 1355 | | |
1356 | 1356 | | |
1357 | 1357 | | |
| 1358 | + | |
1358 | 1359 | | |
1359 | 1360 | | |
1360 | 1361 | | |
1361 | 1362 | | |
1362 | 1363 | | |
1363 | | - | |
| 1364 | + | |
1364 | 1365 | | |
1365 | 1366 | | |
1366 | 1367 | | |
| |||
0 commit comments