Commit Graph

8 Commits

Author SHA1 Message Date
Eric Wong
fa213c9892 wrap mysql_real_connect with rb_thread_blocking_region
mysql_real_connect() is a blocking function that issues
blocking-but-interruptible connect(), read(), and write() system
calls.  So we'll allow other threads in the VM to run while
calling it since it can block indefinitely.

This introduces a rb_thread_blocking_region() wrapper for 1.8
which ensures any received signals can be handled gracefully
while inside blocking function calls.
2010-05-05 11:57:37 -07:00
Brian Lopez
80a8602fbb borrow the more flexible extconf from the mysqlplus project 2010-04-07 07:03:31 -07:00
Brian Lopez
11216551cd typo 2010-04-06 15:32:36 -07:00
Brian Lopez
db454d3f15 initial stab at finding mysql headers easier 2010-04-06 15:26:09 -07:00
Brian Lopez
7e64570770 turn off debug symbols again, put back benchmark script 2010-03-31 08:56:07 -07:00
Brian Lopez
1848b0da4a mostly flesh out mysql type to ruby type conversion mapping 2010-03-30 23:30:06 -07:00
Brian Lopez
736c0d6cd3 result hash keys can be symbols using the :symbolize_keys option with #fetch_row, #fetch_rows or #each. Renamed extension from MySQL to Mysql2. Initial Rakefile and spec dir 2010-03-30 09:56:24 -07:00
Brian Lopez
e6ab4c089a move files into ext/ 2010-03-30 09:19:05 -07:00