wbh1 / grafana-sqlite-to-postgres

Grafana SQLite to Postgres Database Migrator
MIT License
100 stars 26 forks source link

Fix sqlite's char() to postgresql's chr() #9

Closed nbuchwitz closed 4 years ago

nbuchwitz commented 4 years ago

SQLite sometimes make use of the replace('\n', '\n', char(1)) pattern which fails, because it's called chr() in PostgreSQL. This PR adds a little fix for this problem.