SQL error when there is a comment on the first line.
Affected version: 3.5 only (a colleague with very similar setup tried on 3.4.1 and did not reproduce).
Steps to reproduce:
In a file example.sql write the following:
-- 1.0.0 --
CREATE TABLE test
(
test_name VARCHAR(255)
);
Then from the cli run \i example.sql.
OR
Activate the multi line function.
paste the same sql (with the comment -- 1.0.0 --)
OUTPUT:
syntax error at end of input
LINE 1: CREATE TABLE test
^
Time: 0.006s
Description
SQL error when there is a comment on the first line.
Affected version: 3.5 only (a colleague with very similar setup tried on 3.4.1 and did not reproduce). Steps to reproduce: In a file
example.sql
write the following:Then from the cli run
\i example.sql
.OR
-- 1.0.0 --
)OUTPUT:
EXPECTED OUTPUT:
My environment
pip freeze: