Replace null atom with string. Thanks to Jacek Złydach
This commit is contained in:
sergey-miryanov
2010-07-14 14:08:16 +06:00
parent 7c5e9ad167
commit 092f6934e3

View File

@@ -53,7 +53,7 @@ write_value_sql(Values) ->
StrValues = lists:map(fun
(X) when is_integer(X) -> integer_to_list(X);
(X) when is_float(X) -> float_to_list(X);
(?NULL_ATOM) -> 'null';
(?NULL_ATOM) -> "null";
(X) -> io_lib:format("'~s'", [X])
end, Values),
string:join(StrValues, ",").