BedquiltDB / bedquilt-core

A JSON document store on PostgreSQL
http://bedquiltdb.github.io
MIT License
256 stars 14 forks source link

Inserts fail when json payload contains strings with single-quote characters #15

Closed JuneKelly closed 9 years ago

JuneKelly commented 9 years ago

An insert which is built like:

select bq_insert('things', '{"whatever": "Something I've eaten"}')

Will fail miserably. Need to fix it.

Appears to be an issue with how we quote strings while splicing them together with format.