Brian Lopez
80697d11b2
we don't need to print the error here as the caller should be handling that on their own the way they want to
2010-11-27 11:10:18 -08:00
Youhei Kondou
550c68cade
Fix to install with MariDB on Windows
2010-11-13 17:47:58 +09:00
Brian Lopez
d48846f13b
add support for :read_timeout to be set on a connection
2010-11-09 12:27:04 -08:00
Brian Lopez
99766a2303
mysql_num_fields returns an unsigned int
2010-10-31 12:37:53 -07:00
Brian Lopez
badc5e04e3
resultFreed flag only needs to be one byte
2010-10-31 12:34:18 -07:00
Brian Lopez
974a5658d6
active and closed flags only need to be one byte
2010-10-31 12:31:54 -07:00
Brian Lopez
60b8d061ac
mysql_errno returns an unsigned int
2010-10-31 12:24:27 -07:00
Brian Lopez
2b37ace3dc
only set binary ruby encoding on fields that have a binary flag *and* encoding set
2010-10-31 12:11:20 -07:00
Brian Lopez
1057f976d0
ensure the query is a string earlier in the Mysql2::Client#query codepath for 1.9
2010-10-31 10:11:59 -07:00
Brian Lopez
90ddb63e52
use our own index def class for better compatibility across ActiveRecord versions
2010-10-27 15:36:25 -07:00
Brian Lopez
426cff8adc
bump to 0.2.6 to push fixed win32 gems
2010-10-19 17:24:55 -07:00
Brian Lopez
f79bf6261e
Version bump to 0.2.6
2010-10-19 17:23:43 -07:00
Brian Lopez
05df9e312d
update files for 0.2.5 release
2010-10-19 16:33:07 -07:00
Brian Lopez
60fd02ebe6
Version bump to 0.2.5
2010-10-19 16:32:42 -07:00
Brian Lopez
7e75f5ed4c
make sure we always set wait_timeout even if a bad value was given
2010-10-19 08:21:41 -07:00
Anko painting
e7dcf37bd4
fix to CFLAGS to allow compilation on SPARC with sunstudio compiler
2010-10-18 18:33:34 -07:00
Brian Lopez
0b3b63305e
only use wait_timeout if it's a Fixnum
2010-10-18 12:15:16 -07:00
Brian Lopez
47405ae1f0
update gemspec from file updates
2010-10-18 06:59:19 -07:00
Brian Lopez
a8041fed21
no need to invalidate the FD now that we're only modifying it once, in one place
2010-10-17 18:13:04 -07:00
Brian Lopez
e823b9ec0d
no need to check if the FD is >= 0 now that we centralized the close/free logic. Once closed, none of that code will run again
2010-10-17 18:12:02 -07:00
Brian Lopez
c8020f29ac
wording fix in readme
2010-10-17 17:58:00 -07:00
Brian Lopez
3c6959a8bb
prevent the GC from freeing a connection that hasn't been allocated yet
2010-10-17 17:35:41 -07:00
Brian Lopez
410e914411
only run the EM specs if EM is installed
2010-10-17 17:34:34 -07:00
Brian Lopez
3b6229771a
remove benchmark that tested code that has since been removed
2010-10-17 17:34:21 -07:00
Brian Lopez
0ae583fe64
since we free the connection on close, there's no reason to have both flags
2010-10-17 16:59:50 -07:00
Brian Lopez
22c9ff48a8
some more rspec2 changes, organize rake tasks
2010-10-17 16:51:14 -07:00
Brian Lopez
0a7e7ee475
centralize closing and freeing logic for connections
2010-10-17 16:34:49 -07:00
Brian Lopez
ba4f3612b6
move to rspec2
2010-10-17 16:34:09 -07:00
Brian Lopez
841ee2bba4
make sure we invalidate the closed FD in case it's value is reused on a new connection
2010-10-15 22:37:51 -07:00
Brian Lopez
6e5cda6a52
avoid potential race-condition with closing a connection
2010-10-15 12:27:52 -07:00
Brian Lopez
832eb2d247
add option for setting the wait_timeout in the AR adapter (this can be done in database.yml)
2010-10-15 07:45:07 -07:00
Brian Lopez
c394122fd9
add some more defaults to the connect flags
2010-10-14 23:38:25 -07:00
Brian Lopez
a6b5e9c28c
add connect_flags to default options and add REMEMBER_OPTIONS to that list. fix NUM2INT to be NUM2ULONG as it should be for flags
2010-10-14 08:12:52 -07:00
Brian Lopez
7169649857
free the client after close if we can
2010-10-13 15:25:37 -07:00
Brian Lopez
225ddadaf7
forgot to remove this
2010-10-13 15:18:12 -07:00
Brian Lopez
0d1e9916bf
get rid of double-pointer casting
2010-10-13 15:17:35 -07:00
Brian Lopez
a17ba07c75
a couple of minor updates to connection management with some specs
2010-10-06 10:33:52 -07:00
Brian Lopez
f9d30e8f85
check for error from mysql_affected_rows call
2010-10-05 23:36:37 -07:00
Brian Lopez
40f0cd012c
change connection check symantecs
2010-10-05 23:36:05 -07:00
Anton Mironov
687487d5a5
Detach before executing callbacks.
...
This allows to make queries in callbacks.
2010-09-28 13:47:19 +08:00
Brian Lopez
2ae908c512
make sure we don't hit a race condition if this EM spec is taking longer to run than normal
2010-09-27 13:25:10 -07:00
Brian Lopez
4383885634
was in a hurry earlier
2010-09-27 13:24:37 -07:00
Brian Lopez
307b92b966
whoops, lost this line in a previous patch
2010-09-27 11:17:47 -07:00
Luis Lavena
685538ce52
Dry windows configuration options
2010-09-26 17:25:23 -03:00
Luis Lavena
553c9a77c3
Inject 1.8/1.9 pure-ruby entry point during xcompile
...
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
2010-09-26 17:14:52 -03:00
Luis Lavena
95db3c74df
Use MySQL 5.1.51 now from available mirror
2010-09-26 17:09:25 -03:00
Brian Lopez
ba41a5a24e
final rake task changes for fat binary support on windows
2010-09-18 23:50:05 -07:00
Aaron Patterson
84dc998a3b
adding a task for fat binary shim
2010-09-18 13:36:39 -07:00
Brian Lopez
50775163ed
prepare for 0.2.4 release
2010-09-17 10:19:16 -07:00
Brian Lopez
26650c8c05
Version bump to 0.2.4
2010-09-17 10:13:10 -07:00