ocaml-community / ocaml-mariadb

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

Error 1264 Out of range value with Docker/Alpine #27

Closed paurkedal closed 4 months ago

paurkedal commented 5 years ago

After some investigation of paurkedal/ocaml-caqti#23, it is clear that the issue is at a level below caqti, so I'm promoting the issue, as I'm suspecting some memory or compatibility issue with the C bindings, esp. considering the randomness seen for the DELETE statement in the original report.

I made a Docker build mariadb-alpine-issue.tar.gz to remove Caqti and node.js from the equation. In addition to the supplied test, the failures for blocking_stress_test and nonblocking_select_stress_test mentioned in the original bug report can also be reproduced in the same opam environment using a Git checkout of the current master.

paurkedal commented 5 years ago

I used docker run --rm --name db -e MYSQL_ROOT_PASSWORD=i33AHDNI7d mariadb for the DB, but you'll need to adjust the ENV line in the Dockerfile in any case, as I put an IP number there.

paurkedal commented 4 months ago

I am closing this issue, since I can no longer reproduce it. (It may have been resolved by an update to the mariadb-dev library, and in any case this version of Alpine is no longer supported.)