File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,11 @@ func TestBuilder(t *testing.T) {
129129 AddColumn ("b\n a\n z" ).AddLiteral (" == " ).
130130 AddFunction ("f_u_n\u1234 c" ).AddLiteral ("()" ),
131131 `database("f\"\"o").["b\\a\\r"] | where ["b\na\nz"] == ["f_u_n\u1234c"]()` },
132+ {
133+ "Test Empty String" ,
134+ New (`myTable | where col = ` ).AddString ("" ),
135+ `myTable | where col = ""` ,
136+ },
132137 }
133138 for _ , test := range tests {
134139 t .Run (test .name , func (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -26,10 +26,6 @@ func RequiresQuoting(value string) bool {
2626}
2727
2828func QuoteString (value string , hidden bool ) string {
29- if value == "" {
30- return value
31- }
32-
3329 var literal strings.Builder
3430
3531 if hidden {
You can’t perform that action at this time.
0 commit comments