Commit b77a19f
committed
SqlBuilder: tryDelimite() warns about unsupported string literals
Values belong in parameters. A literal written straight into a SQL fragment
is not recognized, so its content gets delimited as if it were an identifier
(name = 'abc' becomes [name] = '[abc]'), which silently returns wrong rows
instead of failing. Whether it happens at all depends on the content: 'x'
breaks, '!' does not, so the trap is impossible to guess.1 parent d1951d8 commit b77a19f
2 files changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
| 925 | + | |
925 | 926 | | |
926 | 927 | | |
927 | 928 | | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
928 | 934 | | |
929 | 935 | | |
930 | 936 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments