[MDEV-6845] Unable to specify escape character for FMT Created: 2014-10-06 Updated: 2014-10-10 Resolved: 2014-10-09 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Connect |
| Affects Version/s: | 10.0.14 |
| Fix Version/s: | 10.0.15 |
| Type: | Bug | Priority: | Major |
| Reporter: | Christian Rishøj | Assignee: | Olivier Bertrand |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Ubuntu trusty |
||
| Description |
|
The request path in the 2nd line of the following sample has a trailing quotation mark, which is escaped with a backslash:
Here's a CREATE string to query the log data using the CONNECT engine:
Querying the first line works well:
For the second line, I get an error:
I suppose the engine chokes on the escaped quotation mark (\"), and assume that this case requires the ability to specify an escape character (which in turn might prove troublesome, in case the parsing is sscanf-based). |
| Comments |
| Comment by Olivier Bertrand [ 2014-10-09 ] | |||||||||||||||||||||||||||||||||
|
Unfortunately the parsing of FMT tables is sscanf-based indeed. I see no solution for this problem so far. However, if the number of such lines is not to big in your table, what you can do temporarily is:
Where maxerr is set to a number larger than the number of bad lines. Doing so the query:
returns:
NOTE: According to the documentation, it would have been enough to specify
However this does not work. This bug will be fixed in next version. By the way, when doing the SELECT command, I got two warnings:
Indeed the result seems truncated. OEM: |