From 49c770b5b9b018beaa7e4582d3dea1da34826e97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Thu, 11 Nov 2021 13:49:23 +0100 Subject: [PATCH] Added new test case for 'test_tokenizer-t' for space removal before string literal --- test/tap/tests/test_tokenizer-t.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/tap/tests/test_tokenizer-t.cpp b/test/tap/tests/test_tokenizer-t.cpp index 3186c647d..ab1621cf3 100644 --- a/test/tap/tests/test_tokenizer-t.cpp +++ b/test/tap/tests/test_tokenizer-t.cpp @@ -144,6 +144,8 @@ const vector> query_digest_pairs { { "select (-'89')", "select (?)", }, { "select 10,-'89'", "select ?,?", }, { "select 10, -'89' ", "select ?,?", }, + // string - leading strings get it's extra spaces removed, but not firsts + { "select '10', -'89' ", "select ?,?", }, { "select 10, -'89 ',+'5'", "select ?,?,?", }, // TODO: KnownIssue - 7: Spaces not removed after parenthesis when literal strings are preceded by '+|-' { "select CONCAT( -'89'+'10')", "select CONCAT( ?+?)", },