penberg / limbo

Limbo is a work-in-progress, in-process OLTP database management system, compatible with SQLite.
MIT License
993 stars 60 forks source link

testing: Fix do_execsql_test() for JSON #231

Closed penberg closed 3 months ago

penberg commented 3 months ago

The current scheme of combining SQL statements corrupts JSON by dropping the curly braces. Fix the issue by passing the SQL statement almost as-is to the database. However, for ".schema" to work, we need to trim extra whitespace.