Repository navigation
Commit bb51c56
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 8a8a23a commit bb51c56
2 files changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
932 | 932 | | |
933 | 933 | | |
934 | 934 | | |
| 935 | + | |
935 | 936 | | |
936 | 937 | | |
937 | 938 | | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
938 | 944 | | |
939 | 945 | | |
940 | 946 | | |
| |||
| 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