ocaml-mysql icon indicating copy to clipboard operation
ocaml-mysql copied to clipboard

Fix fetch of FLOAT values from prepared statements

Open everiq opened this issue 10 years ago • 1 comments

MySQL needs a buffer to do conversion to MYSQL_TYPE_STRING. Otherwise length is 0 for FLOAT and DOUBLE.

Ref #3

everiq avatar Jul 24 '15 10:07 everiq

Is static buffer safe here? What about queries in other threads? Do you have pointer to doc why this is needed, I cannot seem to find any explanation..

It's needed to fix https://github.com/ygrek/ocaml-mysql/issues/3 See the comment at line 617 here for why a buffer is required for this.

roddyyaga avatar Dec 10 '19 21:12 roddyyaga