ocaml-community / ocaml-mariadb

OCaml bindings to MariaDB, supporting the nonblocking API
55 stars 18 forks source link

Add support for passing NULL parameters. #3

Closed paurkedal closed 7 years ago

paurkedal commented 7 years ago

I'm working on paurkedal/ocaml-caqti#2, I need a way to pass NULL parameters, since I support option types. Mariadb has two ways to do it, with the is_null or by declaring the field to be null by type. The latter seemed natural as it only required adding `Null to the variant used for parameter passing.

andrenth commented 7 years ago

Looks good to me.

paurkedal commented 7 years ago

Thanks!