* master:
avoid potential race-condition with closing a connection
add option for setting the wait_timeout in the AR adapter (this can be done in database.yml)
add some more defaults to the connect flags
add connect_flags to default options and add REMEMBER_OPTIONS to that list. fix NUM2INT to be NUM2ULONG as it should be for flags
free the client after close if we can
forgot to remove this
get rid of double-pointer casting
a couple of minor updates to connection management with some specs
check for error from mysql_affected_rows call
change connection check symantecs
* master:
Detach before executing callbacks.
make sure we don't hit a race condition if this EM spec is taking longer to run than normal
was in a hurry earlier
whoops, lost this line in a previous patch
Dry windows configuration options
Inject 1.8/1.9 pure-ruby entry point during xcompile
Use MySQL 5.1.51 now from available mirror
The original problem of .so files not included in the final
gemspec is because rake-compiler put files in lib_dir/X.Y/extension
while the pure-ruby entry point was looking for lib_dir/XY/extension
Attempting to escape large, untrusted strings cause stack
overflows (easier under Ruby 1.9 using pthreads) leading to
SystemStackError on small overflows and segmentation faults on
large overflows. Instead of allocating on the stack, we'll
allocate a string buffer from the heap.
This has the unfortunate effect of reducing escape performance
for common cases, but in my experience SQL escaping isn't much
of a bottleneck.
For reference, Ruby 1.9.2-p0 with pthreads gets a stack size of
512K and the default process stack size is 8MB on both x86 and
x86_64 Linux.