Convert value to string before escape it

Originall ftcsv will be failed when encoding a number field content
This commit is contained in:
cch 2016-03-29 14:20:23 +08:00
parent db9941aee8
commit c1a4012027

View File

@ -323,6 +323,7 @@ end
-- a function that delimits " to "", used by the writer
local function delimitField(field)
local field = tostring(field)
if field:find('"') then
return field:gsub('"', '""')
else