Closed alrocar closed 7 years ago
Found the issue... it happens when sending a query with accents.
Since we are not guessing queries encoding, I'm going to leave this out of the SDK implementation.
One way of solving it is by properly encoding the query before sending it to the SQLClient.
sql.send(query.decode('iso-8859-1').encode('utf-8'))
The
carto-etl
script preparesinsert
sql queries that when going through the SQLClient produce this error in the sql-api:WARNING:carto-etl:Chunk #4: Retrying ([u'syntax error at or near "+"'])
Seems that the query is encoded in this way: