expr_sql_is { SELECT { $_->foo, 1 } }
# the extra space here is a little icky but Naive's _flatten_structure
# will need rewriting to fix it - commit bits available if you do it first
- [ "SELECT foo , ?", binding(1) ],
+ [ "SELECT foo, ?", binding(1) ],
"Identifier and literal";
expr_sql_is { SELECT { $_->foo => AS("foom"), 1 } }
- [ "SELECT foo AS foom , ?", binding(1) ],
+ [ "SELECT foo AS foom, ?", binding(1) ],
"AS with parens";
expr_sql_is { SELECT { $_->foo => AS "foom", 1 } }
- [ "SELECT foo AS foom , ?", binding(1) ],
+ [ "SELECT foo AS foom, ?", binding(1) ],
"AS without parens";