With other "funny" characters, the result is somewhat different.
For example the "bell" char 0x07.
Error: Invalid character '"'
at or before """ in path "." file "test.db" line 3
Error: Invalid character 0x07
Error: Invalid character '"'
Error: Invalid character ')'
Error: syntax error
At least 0x07 is mentioned, but the message is still misleading.
With other "funny" characters, the result is somewhat different.
For example the "bell" char 0x07.
Error: Invalid character '"'
at or before """ in path "." file "test.db" line 3
Error: Invalid character 0x07
Error: Invalid character '"'
Error: Invalid character ')'
Error: syntax error
At least 0x07 is mentioned, but the message is still misleading.