Permalink
Browse files

Enquotes atoms in statements (i.e. table and column names)

  • Loading branch information...
1 parent a8ae6fe commit 2b8ebf6e3e6adc77207d45b836f6ab4e7193d8b2 @yrashk committed Jul 7, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/expr.ex
View
@@ -15,7 +15,8 @@ end
defimpl ExQL.Expression, for: Atom do
def join(nil, _, _delim), do: nil
- def join(value, _, _delim), do: atom_to_binary(value)
+ def join(:*, _, _delim), do: "*"
+ def join(value, _, _delim), do: %b{"#{value}"}
end
defimpl ExQL.Expression, for: List do

0 comments on commit 2b8ebf6

Please sign in to comment.