Brian Lopez
d20bc8dc8b
bring in latest from master (specifically the split out of Mysql2::Result into it's own C file)
2010-07-30 13:58:48 -07:00
Brian Lopez
c6230c3cec
pluck out Mysql2::Client definition into it's own c/h file
2010-07-29 23:25:15 -07:00
Brian Lopez
8a642a3505
ignore pre-compiled scripts from rbx
2010-07-29 23:24:09 -07:00
Brian Lopez
9eb3917328
get rid of some warnings
2010-07-29 23:22:42 -07:00
Brian Lopez
1e258c9d9c
don't forget to turn on time_zone_aware_attributes in AR benchmark
2010-07-29 08:57:05 -07:00
Brian Lopez
89401acff4
make sure we tell AR the proper attribute types for SET and BIT fields as well
2010-07-28 14:54:33 -07:00
Brian Lopez
dd138de8e1
invalidate the file descriptor on close
2010-07-28 11:31:32 -07:00
Brian Lopez
9241f35df3
fixes after merge
2010-07-27 09:26:07 -07:00
Brian Lopez
a45cb10dec
move connection into method
2010-07-27 09:23:50 -07:00
Brian Lopez
56ecff58bf
don't attempt a query unless a connection exists to do it on
2010-07-26 00:10:49 -07:00
Brian Lopez
20ef2e5e27
cleanup connection handling in AR adapter, this should finally resolve GH#31
2010-07-23 23:43:02 -07:00
Brian Lopez
a878ba0272
make sure we create @encoding before setting encoding
2010-07-21 13:17:32 -07:00
Brian Lopez
c614c89216
remove spec checking for exception raised when closing a closed connection as we don't do that anymore
2010-07-21 13:14:43 -07:00
Brian Lopez
3da993ce53
prevent ruby warning when attempting to lookup the @encoding ivar before it exists
2010-07-21 13:13:08 -07:00
Brian Lopez
cd1a2bf9ff
Revert "force reconnect behavior to true, remove open connection checks since libmysql will handle this for us now"
...
This reverts commit 70a7298dc3
.
2010-07-21 12:13:27 -07:00
Brian Lopez
70a7298dc3
force reconnect behavior to true, remove open connection checks since libmysql will handle this for us now
2010-07-21 11:47:16 -07:00
Brian Lopez
678ff1cee9
fall back to blocking behavior for em_mysql2 AR adapter if EM isn't running
2010-07-20 18:48:32 -07:00
Brian Lopez
3ec92096ca
MySQL -> Mysql2 naming in AR adapter
2010-07-20 09:14:37 -07:00
Brian Lopez
9ab1c90d2b
don't raise exception on close, for a closed connection
2010-07-20 09:12:47 -07:00
Brian Lopez
3c262e7328
fix 0.1.9 release date
2010-07-17 18:44:21 -07:00
Brian Lopez
1c02820f4b
updating files for release
2010-07-17 18:11:01 -07:00
Brian Lopez
224e8eff66
Version bump to 0.1.9
2010-07-17 18:10:09 -07:00
Brian Lopez
807875e321
make sure queries run through the Sequel logger
2010-07-16 10:26:53 -07:00
Aaron Patterson
c7515a3e46
Merge branch 'master' into stmt
...
* master:
check for and support field-level encodings
on second thought, we should make sure we were given a string earlier on
no need to Check_Type in these spots since we're using StringValuePtr as well
2010-07-12 08:45:50 -07:00
Brian Lopez
edb742fee7
check for and support field-level encodings
...
raise an exception for invalid encodings passed to Mysql2::Client#new
2010-07-10 23:15:54 -07:00
Brian Lopez
d8f5f4de1d
on second thought, we should make sure we were given a string earlier on
2010-07-10 10:32:46 -07:00
Aaron Patterson
45adf1e23b
prepared statements can pull times
2010-07-09 11:11:31 -07:00
Aaron Patterson
d510ff675e
returning ints from prepared statements works
2010-07-09 11:11:31 -07:00
Aaron Patterson
9b1789fbfc
adding Stmt#fields
2010-07-09 11:11:31 -07:00
Aaron Patterson
27cd68f456
adding a gdb rake task
2010-07-09 11:11:31 -07:00
Aaron Patterson
6e38bff28d
adding a class to wrap fields
2010-07-09 11:11:31 -07:00
Aaron Patterson
a3cdd92a9c
execute raises an exception on error
2010-07-09 11:11:31 -07:00
Aaron Patterson
7e95b543c9
execute is defined on statmenet
2010-07-09 11:11:31 -07:00
Aaron Patterson
2c86f9d72a
prepared statements will tell us the field count
2010-07-09 11:11:31 -07:00
Aaron Patterson
a5d8a087a7
statements can count parameters
2010-07-09 11:11:31 -07:00
Aaron Patterson
2ad51dcac2
we can prepare statements!
2010-07-09 11:11:31 -07:00
Brian Lopez
645b9a1bef
no need to Check_Type in these spots since we're using StringValuePtr as well
2010-07-09 09:59:48 -07:00
Brian Lopez
5cc79feb35
Merge remote branch 'origin/encodingz_4_life'
...
* origin/encodingz_4_life:
make sure the query string is converted to the connection's encoding before it's handed to libmysql
Initial refactor of encoding support to ensure we map Ruby encodings to MySQL encodings properly.
2010-07-09 09:04:08 -07:00
Brian Lopez
f0e7e4a425
fix load path in benchmark scripts
2010-07-08 23:26:18 -07:00
Brian Lopez
023f85704f
sort benchmarks
2010-07-08 23:14:26 -07:00
Brian Lopez
9818f1a0df
tenderlove and mperham deserve some credit for sure
2010-07-08 23:14:15 -07:00
Brian Lopez
52f42ba38b
make sure the setup_db script can find the library
2010-07-08 22:56:42 -07:00
Brian Lopez
ab032b99db
make sure the query string is converted to the connection's encoding before it's handed to libmysql
2010-07-08 22:51:19 -07:00
Brian Lopez
e385e7cf6b
Initial refactor of encoding support to ensure we map Ruby encodings to MySQL encodings properly.
2010-07-08 22:22:20 -07:00
mperham
3f2e948c5f
Support for asynchronous ActiveRecord via Fibers and EM
2010-07-09 05:47:09 +08:00
Brian Lopez
39b4776a67
the AR adapter's #select_rows method should be returning an array of arrays (thanks to r-stu31 for the patch)
2010-07-08 09:18:58 -07:00
Aaron Patterson
a265d36571
spec helper is in the load path, so no need for expand_path funny business
2010-07-06 15:41:44 -07:00
Aaron Patterson
c38525d11a
extracting Mysql2::Result class to be inside result.c
2010-07-06 14:21:58 -07:00
Aaron Patterson
a6b1247ede
partial implementation of result in Ruby
2010-07-06 13:16:49 -07:00
Aaron Patterson
f836d0cf68
forgot to update this
2010-07-04 19:36:06 -07:00