forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2e4cb70
committed
Disallow digits and lower-case ASCII letters as the delimiter in non-CSV
COPY. We need a restriction here because when the delimiter occurs as adata character, it is emitted with a backslash, and that will only workas desired if CopyReadAttributesText() will interpret the backslash sequenceas representing the second character literally. This is currently untruefor 'b', 'f', 'n', 'r', 't', 'v', 'x', and octal digits. For future-proofingand simplicity of explanation, it seems best to disallow a-z and 0-9.We must also disallow dot, since "\." by itself would look like copy EOF.Note: "\N" is by default the null print string, so N would also cause aproblem, but that is already tested for.1 parentf1d1ca9 commit2e4cb70
1 file changed
+15
-4
lines changedLines changed: 15 additions & 4 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 |
| |
| |||
872 | 872 |
| |
873 | 873 |
| |
874 | 874 |
| |
875 |
| - | |
876 |
| - | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
877 | 888 |
| |
878 | 889 |
| |
879 |
| - | |
| 890 | + | |
880 | 891 |
| |
881 | 892 |
| |
882 | 893 |
| |
|
0 commit comments
Comments
(0)