Brian Lopez
957b0bac1b
default application_timezone to nil
2010-08-05 23:09:13 -07:00
Brian Lopez
f4fb9e8034
sync up with sequel adapter from my Sequel fork until it's officially merged in
2010-08-05 22:53:36 -07:00
Brian Lopez
ad34357e57
convert :timezone option into two new ones
...
:database_timezone - the timezone (:utc or :local) Mysql2 will assume time/datetime fields are stored in the db. This modifies what initial timezone your Time objects will be in when creating them from libmysql in C
and
:application_timezone - the timezone (:utc or :local) you'd finally like the Time objects converted to before you get them
2010-08-05 22:50:45 -07:00
Brian Lopez
1bdf44ce7f
can't call literal here because it'll try to join it's own thread
2010-08-05 01:20:42 -07:00
Brian Lopez
04932b549b
Mysql2::Client uses the :username key, set it to :user if that was used instead
2010-08-05 01:20:15 -07:00
Brian Lopez
93fabe2b24
heh
2010-08-05 00:45:56 -07:00
Brian Lopez
86302eb1f1
fix typo in comment
2010-08-05 00:45:33 -07:00
Brian Lopez
d1b2f98b7c
major refactor of Sequel adapter - it's now green in Sequel
2010-08-05 00:44:01 -07:00
Brian Lopez
2514fafa53
add :cast_booleans option for automatically casting tinyint(1) fields into true/false for ruby
2010-08-05 00:39:11 -07:00
Brian Lopez
12c022c8aa
move most previously global symbols to static to prevent conflicts (thanks for catching this Eric)
2010-08-04 19:32:14 -07:00
Brian Lopez
2bb8721e84
respect :symbolize_keys option for Mysql2::Result#fields if it's called before the first row is built
2010-08-04 00:54:05 -07:00
Brian Lopez
923393351a
initialize @active early on to prevent warnings later
2010-08-03 20:45:00 -07:00
Brian Lopez
c0cf2f13a0
let's try that again - libmysql only allows one query be sent at a time per connection, bail early if that's attempted
2010-08-03 20:37:49 -07:00
Brian Lopez
1a70e83a74
Revert "libmysql only allows one query be sent at a time per connection, bail early if that's attempted"
...
This reverts commit 3ff7baa5f8
.
2010-08-03 20:22:44 -07:00
Brian Lopez
3ff7baa5f8
libmysql only allows one query be sent at a time per connection, bail early if that's attempted
2010-08-03 20:21:51 -07:00
Brian Lopez
94ae2a781d
no need to carry over options twice as we're already doing it up in rb_mysql_client_async_result
2010-08-03 19:04:30 -07:00
Brian Lopez
5f81996122
fixes for 1.9
2010-08-02 02:07:11 -07:00
Brian Lopez
9756a3f410
fix typo
2010-08-02 01:43:25 -07:00
Brian Lopez
074885cca1
cleanup in AR adapter
2010-08-02 01:26:15 -07:00
Brian Lopez
00ab233606
remove performance overrides of select_one, select_value, and select_values in the AR adapter for now
2010-08-02 01:26:04 -07:00
Brian Lopez
1086233cc3
bugfix for how arel resolves compiler paths
2010-08-02 01:21:09 -07:00
Brian Lopez
fc6c24a20c
add support for configuring which timezone Time objects should be created in
2010-08-02 01:20:03 -07:00
Brian Lopez
f3151db928
update gemspec to include client.c/h
2010-08-01 23:18:38 -07:00
Brian Lopez
a9e2fbcc78
update readme to reflect recent API changes
2010-08-01 22:05:11 -07:00
Brian Lopez
6142336e59
use a default (year 2000) for TIME field casting to a Time object, like AR does
2010-08-01 20:23:27 -07:00
Brian Lopez
36c243be71
Add cascading options hash at Mysql2::Client.default_query_options, which can be overridden by passing options to Mysql2::Client#query and/or Mysql2::Result#each
...
Tune up specs, benchmarks and AR adapter to conform
2010-08-01 20:20: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
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