Commit 21d308f
committed
Avoid GC run between
Thanks to @kamipo for diagnosing the problem and drafting the first PR.
This fixes a regression caused by brianmario#912 due to calling `rb_funcall`
between `mysql_stmt_execute` and `mysql_stmt_store_result`, it will
cause `mysql_stmt_close` to be called in wrong order.
In further testing, `rb_hash_aref` can also call `rb_funcall` if the
query_options hash has a `default_proc` set, so adding a stronger
comment to remind future maintainers.
Fixes brianmario#956.mysql_stmt_execute and mysql_stmt_store_result
1 parent bf227ac commit 21d308f
1 file changed
+16
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
406 | 422 | | |
407 | 423 | | |
408 | 424 | | |
| |||
421 | 437 | | |
422 | 438 | | |
423 | 439 | | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | 440 | | |
436 | 441 | | |
437 | 442 | | |
| |||
0 commit comments