paurkedal / ocaml-caqti

Cooperative-threaded access to relational data
https://paurkedal.github.io/ocaml-caqti/index.html
GNU Lesser General Public License v3.0
299 stars 36 forks source link

sqlite3 driver: assertion fails for queries with optional argument #78

Closed reynir closed 2 years ago

reynir commented 2 years ago

The below assertion can fail and #77 contains a case for reproducing this assertion failure. https://github.com/paurkedal/ocaml-caqti/blob/46ffb8f840875da5ef67df51063443ff6ad2d2c1/caqti-driver-sqlite3/lib/caqti_driver_sqlite3.ml#L476

paurkedal commented 2 years ago

Yes, this and two other cases were fixed by 6fd7be2fa4537f7ee8f990cbe43c0134cef2807b. Thanks.