aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
Commit message (Collapse)AuthorAgeFilesLines
* Check if the SQL is not a prepared statementRafael Mendonça França2013-09-111-1/+1
| | | | | | | | | When the adapter is with prepared statement disabled and the binds array is not empty the connection adapter will try to set the binds values and will fail. Now we are checking if the adapter has the prepared statement disabled. Fixes #12023
* Revert "Do not dup the binds when visiting the AST"Rafael Mendonça França + Kassio Borges2013-08-311-1/+1
| | | | | | This reverts commit 71ff7d9c6592b93e2c810a1f464943dd7bd02c7f. Reason: I need to check with @jeremy if we can do this.
* Do not dup the binds when visiting the ASTRafael Mendonça França2013-08-311-1/+1
| | | | | | | The visitor have to consume the bind parameters to make the statements work when the prepared statement option is disabled. Fixes #12023
* chmod -xAkira Matsuda2013-08-121-0/+0
|
* Set field encoding to client_encoding for mysql adapter.Koichi Sasada2013-08-081-0/+4
|
* Uses mysql2 0.3.13 or laterkennyj2013-07-231-1/+1
|
* Defines the return type of select / select_all method.kennyj2013-07-231-2/+1
|
* regression test + mysql2 adapter raises correct error if conn is closed.Yves Senn2013-06-151-3/+5
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2013-03-301-1/+1
|\ | | | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb activerecord/test/cases/adapter_test.rb guides/source/testing.md [ci skip]
| * nodoc AR::ConnectionHandling for adapters [ci skip]Francesco Rodriguez2013-03-151-1/+1
| |
* | respect auto_increment in rename_column for mysqlVipul A M2013-03-271-2/+2
| |
* | sets limit 191 for schema_migrations#version in mysql2 if the encoding is ↵Xavier Noria2013-03-171-0/+9
|/ | | | | | "utf8mb4" Please, see rationale in the included CHANGELOG patch.
* Don't rely on Hash key's orderingVitor Baptista2013-01-161-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 setAaron Stone2012-12-081-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 syntaxAvnerCohen2012-10-231-1/+1
|
* The default value of a text/blob in mysql strict mode should be nilJon Leighton2012-10-191-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 stateJon Leighton2012-09-151-0/+2
|
* Merge pull request #5244 from fotos/myqsl2_wait_timeoutRafael Mendonça França2012-05-251-1/+1
|\ | | | | | | Maximum wait_timeout on Windows is 2147483
| * Maximum wait_timeout on Windows is 2147483Fotos Georgiadis2012-03-021-1/+1
| |
* | Add config option, rdoc, tests for mysql(2) STRICT_ALL_TABLES mode.Michael Pearson2012-05-051-2/+4
| |
* | Default to 'strict mode' in MySQLMichael Pearson2012-05-051-0/+6
| |
* | update mysql for new exec_insert signatureDoug Cole2012-03-311-1/+1
|/
* prepared statements can be disabledAaron Patterson2012-02-211-15/+5
|
* tag bind params with a bind param objectAaron Patterson2012-02-201-1/+1
|
* Alias reconnect! to reset! for Mysql2 adapter since they have sameWaseem Ahmad2012-02-121-5/+1
| | | | behavior.
* made the result set object act more like an arrayAaron Patterson2012-01-311-1/+1
|
* Support establishing connection on ActiveRecord::Model.Jon Leighton2011-12-281-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 Leighton2011-12-241-2/+2
|
* implements automatic EXPLAIN logging for slow queriesXavier Noria2011-12-021-0/+78
|
* Bump Mysql2!Arun Agrawal2011-11-221-1/+1
|
* Only use LOWER for mysql case insensitive uniqueness check when column has a ↵Joseph Palermo2011-10-091-2/+2
| | | | case sensitive collation.
* Extract simplified_type into the abstract classJon Leighton2011-08-291-15/+3
|
* Create an AbstractMysqlAdapter to abstract the common code between ↵Jon Leighton2011-08-291-528/+56
| | | | MysqlAdapter and Mysql2Adapter.
* prevent sql injection attacks by escaping quotes in column namesAaron Patterson2011-08-161-1/+1
|
* Use new SelectManager#source methodJon Leighton2011-08-151-1/+1
|
* Use new SelectManager#projections= methodJon Leighton2011-08-151-1/+1
|
* use update.key instead of update.ast.key. make better use of select manager.Jon Leighton2011-08-151-12/+8
|
* Use a SelectCore rather than a full SelectManagerJon Leighton2011-08-151-2/+3
|
* Refactor building the update managerJon Leighton2011-08-151-3/+2
|
* Support for multi-table updates with limits, offsets and ordersJon Leighton2011-08-151-1/+22
|
* Support updates with joins. Fixes #522.Jon Leighton2011-08-151-0/+4
|
* Make it the responsibility of the connection to hold onto an ARel visitor ↵Jon Leighton2011-08-081-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 variablesVishnu Atrai2011-07-261-1/+1
|
* Bump to mysql2 0.3.6Guillermo Iguaran2011-06-171-1/+1
|
* Bump mysql2 to 0.3.5Arun Agrawal2011-06-161-1/+1
|
* Bump mysql2 upSantiago Pastorino and José Ignacio Costa2011-06-161-1/+1
|
* No need to override for just calling superAkira Matsuda2011-05-291-4/+0
|
* removed deprecated methods, and related tests, from ActiveRecordJosh Kalderimis2011-05-251-18/+0
|
* Remove extra white-space on some exception messages.Sebastian Martinez2011-05-231-2/+2
|
* use a null byte as a bind parameter substitute as it is not allowed in ↵Aaron Patterson2011-05-091-3/+8
| | | | normal SQL. fixes #411, #417