Commit 60e38a2
When databasename is empty it should not be added to prefix. (#1605)
## Why make this change?
- Reference associated issue using `#` syntax. e.g. Closes #XX
- Include summary (1-2 sentences) of linked issue to avoid redirecting
reviewers to different pages.
Fixes issue mentioned in :
#1604
## What is this change?
- Summary of how your changes work to give reviewers context of your
intent.
Added check to see if databasename is null or empty then we will not add
it to the table prefix.
## How was this tested?
- [ ] Integration Tests
existing integration tests test this path of code
- [ ] Unit Tests
Added new test called checkTablePrefix. Chose to go with
internalsvisibleto route as the main goal was to test gettableprefix
method and ROI on moqing out components of the public method
initializeasync to do the test was low.
---------
Co-authored-by: Sean Leonard <[email protected]>1 parent 7696013 commit 60e38a2
2 files changed
Lines changed: 51 additions & 7 deletions
File tree
- src
- Core/Services/MetadataProviders
- Service.Tests/Unittests
Lines changed: 24 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
278 | 280 | | |
279 | 281 | | |
280 | 282 | | |
281 | | - | |
282 | | - | |
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| |||
1140 | 1140 | | |
1141 | 1141 | | |
1142 | 1142 | | |
| 1143 | + | |
1143 | 1144 | | |
1144 | | - | |
| 1145 | + | |
1145 | 1146 | | |
1146 | 1147 | | |
1147 | 1148 | | |
1148 | 1149 | | |
1149 | 1150 | | |
1150 | 1151 | | |
1151 | | - | |
| 1152 | + | |
1152 | 1153 | | |
1153 | | - | |
1154 | | - | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
1155 | 1170 | | |
| 1171 | + | |
1156 | 1172 | | |
1157 | | - | |
| 1173 | + | |
| 1174 | + | |
1158 | 1175 | | |
1159 | 1176 | | |
1160 | 1177 | | |
| |||
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
86 | 113 | | |
87 | 114 | | |
88 | 115 | | |
| |||
0 commit comments