Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In `rb_mysql_query()`, the raw pointer of the sql string is extracted, and it is passed to `do_send_query()` via `args`. `do_send_query()` internally releases the GVL, then ruby might do GC in the function. Then, the sql string may be GC'ed, and causes SEGV. Therefore, should guard the sql string until `do_send_query()` ends.
- Loading branch information