[MDEV-6217] CONNECT engine cannot handle varchar fields containing newline Created: 2014-05-07 Updated: 2023-11-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.10 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Martin WaIte | Assignee: | Andrew Hutchings |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | connect-engine | ||
| Environment: |
windows 7 64 bit (actually v10.0.10 without galera) |
||
| Description |
|
Given a CSV file with a varchar field containing a newline:
I can create a CONNECT CSV table:
But selecting from the table fails:
This makes the CONNECT CSV table unusable for my application. |
| Comments |
| Comment by Olivier Bertrand [ 2014-05-10 ] | |
|
Sure enough for most file table types (except BIN, VEC and XML) CONNECT regards a physical line of the file as a table row.
Giving a MAXERR value big enough to skip all wrong lines (each newline character will make 2 wrong lines) I will see if I can do the same in the special case of CSV tables but it is not in my list of priorities, sorry about that... |