Skip to content

Conversation

paurkedal
Copy link
Collaborator

The blocking calls could only occur if the result set from a previous Stmt.execute has not been fetched.

Fixes #67.

paurkedal added 2 commits May 8, 2025 10:49
The blocking calls could only occur if the result set from a previous
Stmt.execute has not been fetched.

Fixes ocaml-community#67.
@paurkedal paurkedal merged commit 0bac3b1 into ocaml-community:master May 8, 2025
6 checks passed
paurkedal added a commit to paurkedal/opam-repository that referenced this pull request May 8, 2025
CHANGES:

  - The `mariadb_config` and `mysql_config` scripts are now used, if
    available, to discover MariaDB client library (ocaml-community/ocaml-mariadb#65 by Albert Peschar).
  - Added server-side properties `get_server_info`, `get_server_version`,
    `get_host_info` and `get_proto_info` (ocaml-community/ocaml-mariadb#62 by Petter A. Urkedal).
  - Avoid calling `mysql_stmt_free_result` if there is no result set, since
    this is not allowed by recent versions of the client library (by Petter
    A. Urkedal, fixes ocaml-community/ocaml-mariadb#64).
  - Avoid possibly blocking calls to `mysql_free_result` in the nonblocking
    implementation.  This was only an issue if a previous result set had not
    been consumed (ocaml-community/ocaml-mariadb#68 by Petter A. Urkedal, fixes ocaml-community/ocaml-mariadb#67).
  - Fix memory leak in non-blocking test suite (Petter A.  Urkedal, fixes
    ocaml-community/ocaml-mariadb#29).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Non-blocking should not call mysql_free_result
1 participant