diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2013-11-06 11:59:52 +0100 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2013-11-06 11:59:52 +0100 |
| commit | 6e476cfded15af3d41bcefadecbae51aa65f82ec (patch) | |
| tree | c19d84959252e4f55e5815680193b67189ef0628 /tests/test_parse.py | |
| parent | 5bc149823c2e271ad3a7cf42dac49985d02a1acc (diff) | |
| download | sqlparse-6e476cfded15af3d41bcefadecbae51aa65f82ec.tar.gz | |
Fix incorrect parsing of string literals with line breaks (fixes #118).
Diffstat (limited to 'tests/test_parse.py')
| -rw-r--r-- | tests/test_parse.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_parse.py b/tests/test_parse.py index ea29f88..a6145d8 100644 --- a/tests/test_parse.py +++ b/tests/test_parse.py @@ -169,3 +169,9 @@ def test_double_quotes_are_identifiers(): p = sqlparse.parse('"foo"')[0].tokens assert len(p) == 1 assert isinstance(p[0], sqlparse.sql.Identifier) + + +def test_single_quotes_with_linebreaks(): # issue118 + p = sqlparse.parse("'f\nf'")[0].tokens + assert len(p) == 1 + assert p[0].ttype is T.String.Single |
