Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Special Invisible Unicode characters should be highlighted (or replaced) #75
I have a problem when I try to use the SQL Query Textbox to create my database Schema. If I copy my SQL form the PyCharm IDE, there are some signs copied which should not be there. If I run the query, this is the output:
ERROR: syntax error at or near " CREATE" LINE 2: CREATE VIEW "query_view" AS SELECT prov.name AS provenance... ^ Query failed PostgreSQL said: syntax error at or near "‚Ä®CREATE"
Maybe it's a failure of the copy function of PyCharm, but would be great If Postico would "clean" the inserted text.
Here the query:
-- Query View CREATE VIEW "query_view" AS SELECT prov.name AS provenance, pgt.name AS property_group_type, pg.fc_id, pg.time_start, pg.nar, ....
Might be non-breaking spaces or similar. If you email me the query, I can investigate: email@example.com
It looks like the query contains the unicode
Since problems with odd unicode characters appear to be common (another example is issue #25), I'll investigate ways to detect and highlight or remove these types of characters in Postico.