Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't rely on Hash key's ordering | Vitor Baptista | 2013-01-16 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | | | | If we set encoding latin1 for a PostgreSQL database, it calls PostgreSQLAdapter::create_database with options that have, among other things: { 'encoding' => 'latin1' } Then, we use reverse_merge(:encoding => "utf8") to setup the default encoding. In the end, the hash looks like: { :encoding => 'utf8', 'encoding' => 'latin1' } The call to options.symbolize_keys calls to_sym on each_key of this Hash. It usually means that the encoding passed overwrites the default utf8, but it's not guaranteed. So, we shouldn't rely on it. The same was happening in ActiveRecord::ConnectionHandling. | ||||
* | Session variables for mysql, mysql2, and postgresql adapters can be set | Aaron Stone | 2012-12-08 | 1 | -21/+1 |
| | | | | | | | | | in the new 'variables:' hash in each database config section in database.yml. The key-value pairs of this hash will be sent in a 'SET key = value, ...' query on new database connections. The configure_connection methods from mysql and mysql2 into are consolidated into the abstract_mysql base class. | ||||
* | Migration of docs to 1.9 hash syntax | AvnerCohen | 2012-10-23 | 1 | -1/+1 |
| | |||||
* | The default value of a text/blob in mysql strict mode should be nil | Jon Leighton | 2012-10-19 | 1 | -4/+2 |
| | | | | | | | | | In non-strict mode it is '', but if someone is in strict mode then we should honour the strict semantics. Also, this removes the need for a completely horrible hack in dirty.rb. Closes #7780 | ||||
* | Ensure disconnecting or reconnecting resets the transaction state | Jon Leighton | 2012-09-15 | 1 | -0/+2 |
| | |||||
* | Merge pull request #5244 from fotos/myqsl2_wait_timeout | Rafael Mendonça França | 2012-05-25 | 1 | -1/+1 |
|\ | | | | | | | Maximum wait_timeout on Windows is 2147483 | ||||
| * | Maximum wait_timeout on Windows is 2147483 | Fotos Georgiadis | 2012-03-02 | 1 | -1/+1 |
| | | |||||
* | | Add config option, rdoc, tests for mysql(2) STRICT_ALL_TABLES mode. | Michael Pearson | 2012-05-05 | 1 | -2/+4 |
| | | |||||
* | | Default to 'strict mode' in MySQL | Michael Pearson | 2012-05-05 | 1 | -0/+6 |
| | | |||||
* | | update mysql for new exec_insert signature | Doug Cole | 2012-03-31 | 1 | -1/+1 |
|/ | |||||
* | prepared statements can be disabled | Aaron Patterson | 2012-02-21 | 1 | -15/+5 |
| | |||||
* | tag bind params with a bind param object | Aaron Patterson | 2012-02-20 | 1 | -1/+1 |
| | |||||
* | Alias reconnect! to reset! for Mysql2 adapter since they have same | Waseem Ahmad | 2012-02-12 | 1 | -5/+1 |
| | | | | behavior. | ||||
* | made the result set object act more like an array | Aaron Patterson | 2012-01-31 | 1 | -1/+1 |
| | |||||
* | Support establishing connection on ActiveRecord::Model. | Jon Leighton | 2011-12-28 | 1 | -1/+1 |
| | | | | | This is the 'top level' connection, inherited by any models that include ActiveRecord::Model or inherit from ActiveRecord::Base. | ||||
* | I herd you like modules. | Jon Leighton | 2011-12-24 | 1 | -2/+2 |
| | |||||
* | implements automatic EXPLAIN logging for slow queries | Xavier Noria | 2011-12-02 | 1 | -0/+78 |
| | |||||
* | Bump Mysql2! | Arun Agrawal | 2011-11-22 | 1 | -1/+1 |
| | |||||
* | Only use LOWER for mysql case insensitive uniqueness check when column has a ↵ | Joseph Palermo | 2011-10-09 | 1 | -2/+2 |
| | | | | case sensitive collation. | ||||
* | Extract simplified_type into the abstract class | Jon Leighton | 2011-08-29 | 1 | -15/+3 |
| | |||||
* | Create an AbstractMysqlAdapter to abstract the common code between ↵ | Jon Leighton | 2011-08-29 | 1 | -528/+56 |
| | | | | MysqlAdapter and Mysql2Adapter. | ||||
* | prevent sql injection attacks by escaping quotes in column names | Aaron Patterson | 2011-08-16 | 1 | -1/+1 |
| | |||||
* | Use new SelectManager#source method | Jon Leighton | 2011-08-15 | 1 | -1/+1 |
| | |||||
* | Use new SelectManager#projections= method | Jon Leighton | 2011-08-15 | 1 | -1/+1 |
| | |||||
* | use update.key instead of update.ast.key. make better use of select manager. | Jon Leighton | 2011-08-15 | 1 | -12/+8 |
| | |||||
* | Use a SelectCore rather than a full SelectManager | Jon Leighton | 2011-08-15 | 1 | -2/+3 |
| | |||||
* | Refactor building the update manager | Jon Leighton | 2011-08-15 | 1 | -3/+2 |
| | |||||
* | Support for multi-table updates with limits, offsets and orders | Jon Leighton | 2011-08-15 | 1 | -1/+22 |
| | |||||
* | Support updates with joins. Fixes #522. | Jon Leighton | 2011-08-15 | 1 | -0/+4 |
| | |||||
* | Make it the responsibility of the connection to hold onto an ARel visitor ↵ | Jon Leighton | 2011-08-08 | 1 | -0/+4 |
| | | | | for generating SQL. This improves the code architecture generally, and solves some problems with marshalling. Adapter authors please take note: you now need to define an Adapter.visitor_for method, but it degrades gracefully with a deprecation warning for now. | ||||
* | remove deprication warning for ruby 1.9.3-head for unused variables | Vishnu Atrai | 2011-07-26 | 1 | -1/+1 |
| | |||||
* | Bump to mysql2 0.3.6 | Guillermo Iguaran | 2011-06-17 | 1 | -1/+1 |
| | |||||
* | Bump mysql2 to 0.3.5 | Arun Agrawal | 2011-06-16 | 1 | -1/+1 |
| | |||||
* | Bump mysql2 up | Santiago Pastorino and José Ignacio Costa | 2011-06-16 | 1 | -1/+1 |
| | |||||
* | No need to override for just calling super | Akira Matsuda | 2011-05-29 | 1 | -4/+0 |
| | |||||
* | removed deprecated methods, and related tests, from ActiveRecord | Josh Kalderimis | 2011-05-25 | 1 | -18/+0 |
| | |||||
* | Remove extra white-space on some exception messages. | Sebastian Martinez | 2011-05-23 | 1 | -2/+2 |
| | |||||
* | use a null byte as a bind parameter substitute as it is not allowed in ↵ | Aaron Patterson | 2011-05-09 | 1 | -3/+8 |
| | | | | normal SQL. fixes #411, #417 | ||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-05-04 | 1 | -0/+6 |
|\ | |||||
| * | Improves Mysql2 adapter docs | Sebastian Martinez | 2011-05-03 | 1 | -0/+6 |
| | | |||||
* | | added the mysql schema test to mysql2 adapter, and fixed the corresponding ↵ | Josh Kalderimis | 2011-05-03 | 1 | -2/+17 |
| | | | | | | | | failures | ||||
* | | favor collect over each in mysql* adapters | Josh Kalderimis | 2011-05-03 | 1 | -4/+2 |
| | | |||||
* | | Remove schema noise from logging (TODO: Deprecate/remove the name attribute ↵ | David Heinemeier Hansson | 2011-05-01 | 1 | -4/+4 |
|/ | | | | to all these methods -- will take a pull request!) | ||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-05-01 | 1 | -0/+13 |
|\ | | | | | | | | | Conflicts: railties/guides/source/contributing_to_ruby_on_rails.textile | ||||
| * | Merge branch 'master' of github.com:lifo/docrails | Dan Pickett | 2011-04-29 | 1 | -0/+13 |
| |\ | |||||
| | * | Added missing docs to mysql2_adapter | Sebastian Martinez | 2011-04-22 | 1 | -0/+13 |
| | | | |||||
* | | | using bind parameters for updates | Aaron Patterson | 2011-04-30 | 1 | -0/+1 |
|/ / | |||||
* | | supporting delete with bind parameters in mysql2 | Aaron Patterson | 2011-04-29 | 1 | -0/+8 |
| | | |||||
* | | requiring a newer version of the mysql2 gem | Aaron Patterson | 2011-04-27 | 1 | -0/+1 |
|/ | |||||
* | mimic prepared statements in the exec_insert for mysql2 | Aaron Patterson | 2011-04-14 | 1 | -0/+11 |
| |