Skip to content

PostgreSQL statement parsing fails on string literals with newline characters #1730

@olavloite

Description

@olavloite

The PostgreSQL statement parser that removes comments and determines how many query parameters are in a query fails if the statement contains one or more string literals or quoted identifiers that contain a newline character.

So the following statements fail with an INVALID_ARGUMENT: SQL statement contains an unclosed literal error:

select 'test1 test2'; select "foo bar" from some_table;

Metadata

Metadata

Assignees

Labels

priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions