Join GitHub today
"Execute SQL" strips newlines #1334
Details for the issue
There seems to be an issue with newlines in the "Execute SQL" feature. If I have more than one, they get stripped out. It seems to work as expected when going through "Browse data" -> "New record".
Any idea how I can get around this problem until a fix is released? (I have hundreds of thousands records I need to import, so manual typing is not an option).
Useful extra information
I'm opening this issue because:
I'm using DB4S on:
I'm using DB4S version:
I have also:
I can reproduce it under Ubuntu 16.04.
This is probably related to issue #1270
In fact, this:
INSERT INTO "Manuel's"("my column") VALUES (' -- Hello -- World ');
added a commit
Mar 5, 2018
@remisture I've made a change that should fix at least the simple cases like the one you have reported. If there are comments, or something that we mistake with comments, in the query, it might still remove your line breaks. Could you try with the next nightly build, when it is available, and report your results?
referenced this issue
Jun 30, 2018
Going to close this issue then because the original problem was solved a while ago and the more complex problem behind it was solved in #1455 a few days ago. If you feel like I closed this issue to early, feel free to reopen it anytime with some details on what still needs be improved
As a thought, if you grab the nightly from Mar 6, that might not have this crash bug with the SQL export.
The multi-threading stuff we've been working on, which might be behind this crash, was added in May with 51dbe72. If that does turn out to be the cause, then grabbing one of the builds before that should do the trick too.