Also, if a cache name contains a semicolon that might break the export (that might be remedied if quotes were added to the cache name).
I think changing the sql statement as follows would solve the quote issue:
Note that
is
Again, this probably won't deal well with cache names containing double or single quotes.
I think changing the sql statement as follows would solve the quote issue:
QUOTE |
$_sql="Select Code, '"' || Name || '"',Latitude,Longitude FROM Caches WHERE RowID IN (Select * From GridTemp)" |
Note that
QUOTE |
'"' || Name || '"' |
is
QUOTE |
(single quote)(double quote)(single quote) || Name || (single quote)(double quote)(single quote) |
Again, this probably won't deal well with cache names containing double or single quotes.