ocaml-community / ocaml-mariadb

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

Close statements in stress tests and tweak failures. #20

Closed paurkedal closed 6 years ago

paurkedal commented 6 years ago

I missed some Stmt.close calls in these tests. I suspect they may be freed when closing the connection, but from https://mariadb.com/kb/en/library/mysql_stmt_init/ I can only conclude that explicitly closing statements are mandatory. I also prefixed module names in or_die, since close is ambiguous.