aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable use of MySQL stored procedures by default.Justin Bailey2009-09-171-1/+4
| | | | | | [#3204 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Ruby 1.9 compat: corrected instance_methods checksdsykes2009-09-131-1/+2
| | | | | | [#3156 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* raises exception (ActiveRecord::ConfigurationError with message) on habtm ↵Jaime Bellmyer2009-08-091-0/+10
| | | | | | association creation if join table contains a primary key Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* AR should respect default values for MySQL BINARY and VARBINARY columns.Jatinder Singh2009-08-091-2/+2
| | | | | | [#1273 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* No longer require database name for MySQL to allow cross database selects.Tristan Dunn2009-08-091-6/+1
| | | | | | [#1122 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Allow connect_timeout, read_timeout and write_timeout settings for MySQL ↵Matt Conway2009-08-091-0/+4
| | | | | | [#2544 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Make sure the wrapped exceptions also have the original exception available.Michael Koziarski2009-06-261-2/+2
| | | | [#2419 state:committed]
* Translate foreign key violations to ActiveRecord::InvalidForeignKey exceptions.Michael Schuerig2009-06-261-0/+2
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Translate adapter errors that indicate a violated uniqueness constraint to ↵Michael Schuerig2009-06-261-0/+11
| | | | | | ActiveRecord::RecordNotUnique exception derived from ActiveReecord::StatementInvalid. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Cherry-pick core extensionsJeremy Kemper2009-05-131-0/+1
|
* Mysql#reconnect is set according to the 'reconnect' key in the connection spec.Dov Murik2009-01-271-2/+5
| | | | | | | | | | | | The 'reconenct' boolean option is read from the connection specification and is used to set the reconnect attribute of Mysql. The default is false in order not to change existing application behaviour. Also, reconnect is set AFTER real_connect is called, so its value sticks (the mysql gem sets reconnect to false inside real_connect). Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1797 state:committed]
* Merge branch 'master' into savepointsJeremy Kemper2009-01-101-15/+26
|\
| * Inline code comments for class_eval/module_eval [#1657 state:resolved]Xavier Noria2008-12-281-11/+13
| | | | | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Free MySQL::Result objects after a call to execute [#1416 state:resolved]Manfred Stienstra2008-12-181-4/+13
| | | | | | | | | | | | | | | | No freeing Result objects causes the MySQL driver to free result sets at undefined times, this can lead to erratic performance in your application. Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com>
* | Merge commit 'origin/master' into savepointsHongli Lai (Phusion)2008-12-091-6/+9
|\|
| * Merge with docrailsPratik Naik2008-12-071-6/+9
| |
| * Revert commit which breaks all the tests.Michael Koziarski2008-11-071-8/+4
| | | | | | | | | | | | | | | | This reverts commit 8adb79b9b5983cda8dbdd4ef401661fbd51d8844. Conflicts: activerecord/CHANGELOG
| * Stop logging SHOW FIELDS and SET SQL_AUTO_IS_NULL=0 for the MysqlAdapter as ↵David Heinemeier Hansson2008-11-061-4/+8
| | | | | | | | they only clutter up the log and offer no value [DHH]
* | Make SQLite3 pass the unit tests for savepoints.Hongli Lai (Phusion)2008-11-031-0/+4
| |
* | Implement savepoints.Jonathan Viney2008-11-031-0/+11
|/
* don't quote decimal values for mysql. It doesn't make sense and breaks in ↵Aliaksey Kandratsenka2008-10-041-1/+1
| | | | | | | newer versions of mysql Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1168 state:committed]
* Make sure recreate MySQL test database with the proper encoding and ↵Luca Guidi2008-10-031-2/+2
| | | | | | | collation [#1165 state:resolved] Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1165 state:committed]
* Deal with MySQL's quirky handling of defaults and blob/text columnsFrederick Cheung2008-09-141-1/+6
| | | | | | [#1043 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Support :limit on update_all so that has_many with :limit can be safely updatedTarmo Tänav2008-09-101-0/+4
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Remove flawed execute("ROLLBACK") approach; #reset! defaults to nothingNick Sieger2008-09-041-2/+0
| | | | | | Will need community help to fill out what #reset! should do for each adapter Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Remove CachedConnectionPerThread per-thread pooling mechanism in favor of a ↵Nick Sieger2008-08-291-0/+5
| | | | fixed pool with default maximum of 5 connections
* Add connection reset and verification upon each connection checkoutNick Sieger2008-08-291-0/+9
|
* Fix file permissionsTarmo Tänav2008-07-311-0/+0
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* validates_uniqueness_of uses database case sensitivity support instead of ↵Tarmo Tänav2008-07-311-0/+4
| | | | | | using ruby Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Fixed mysql change_column_default to not make the column always nullable.Tarmo Tänav2008-07-141-7/+26
| | | | | | Also added change_column_null to both mysql and sqlite to keep the api features closer to postgresql. [#617 state:resolved]
* Ensure MysqlAdapter allows SSL connection when only sslca is supplied. [#253 ↵Micah Wedemeyer2008-07-111-2/+5
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* MySQL: treat integer with :limit => 11 as a display width, not byte size, ↵Jeremy Kemper2008-06-271-5/+6
| | | | for backward-compatibility.
* Treat any limit > 4 as bigintJeremy Kemper2008-06-231-6/+8
|
* Always treat integer :limit as byte length. [#420 state:resolved]Tarmo Tänav2008-06-221-10/+11
|
* MySQL: rename_column preserves default values. [#466 state:resolved]Diego Algorta2008-06-221-1/+9
|
* Enable autoreconnect if available. Freeze constants.Jeremy Kemper2008-06-081-2/+7
|
* Give a more informative error message instead of just raising a load error ↵Jeremy Kemper2008-06-081-1/+8
| | | | when mysql gem isn't installed
* Don't append limit to primary key column definition. Freeze some constants.Jeremy Kemper2008-06-081-15/+19
|
* Remove vendor/mysql.rb. Deprecated in 2.1 stable, gone in 2.2.Jeremy Kemper2008-06-081-25/+4
|
* Added SQL escaping for :limit and :offset in MySQL [Jonathan Wiess]David Heinemeier Hansson2008-06-011-1/+2
|
* Merge docrails:Pratik Naik2008-05-091-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit e6afd8b2736364322b673bbdcca3e9b38b6d3da0 Author: Xavier Noria <fxn@hashref.com> Date: Thu May 8 23:49:36 2008 +0200 Overall documentation improvement and markup corrections. Zillion changes. commit 2fead68b3192332eee27945ed95a94a64ca73f70 Author: Austin Putman <austin@emmanuel.local> Date: Wed May 7 19:35:46 2008 -0700 Documented class methods on ActionController::Routing. These are dangerous, and mostly used for testing. commit f5b84182dbc39bea79c8ee319c688d00fa99f9d1 Author: Teflon Ted <github@rudiment.net> Date: Wed May 7 16:08:49 2008 -0400 Added explanation about errant inflections not being patched in the future in order to avoid breaking legacy applications. commit 370f4f51722cec49ace17093d29e9ce9e8f15cfb Author: Sunny Ripert <negatif@gmail.com> Date: Wed May 7 14:00:59 2008 +0200 Applied list conventions in AR::Base commit 5bd18429f09d44e75191bec42a6db04bd33f3030 Author: Sunny Ripert <negatif@gmail.com> Date: Wed May 7 13:53:35 2008 +0200 Renamed Options list to Attributes list whenever they weren't option hashes in AR::Base commit d912bd5672316454457ae83f6e9dda5197beeb6f Author: Yaroslav Markin <yaroslav@markin.net> Date: Wed May 7 13:50:28 2008 +0400 Add a filter_parameter_logging usage hint to generated ApplicationController. This may help to remind the developer to filter sensitive information from application logs. Closes #11578 commit b243de0db3c2605121e055079854af5090d06374 Author: Jack Danger Canty <git@6brand.com> Date: Tue May 6 23:39:47 2008 -0700 doc: disambiguating an example ActiveRecord class commit f81d771f0657ae8375b84a77a059812cce5d6fd9 Author: Jack Danger Canty <git@6brand.com> Date: Tue May 6 23:35:05 2008 -0700 doc: ActiveRecord::Reflection::AssociationReflection#through_reflection Added documentation demonstrating the use of #through_reflection for finding intervening reflection objects for HasManyThrough and HasOneThrough. commit ae6b46f00b5b8b2939c6b37ce3329c83de7e71db Author: Cheah Chu Yeow <chuyeow@gmail.com> Date: Wed May 7 13:47:41 2008 +0800 Document AttributeAssignmentError and MultiparameterAssignmentErrors. commit 8f463550b597db2156b67733f31aed13487fbc3a Author: John Barnette <jbarnette@gmail.com> Date: Tue May 6 22:46:44 2008 -0700 Killing/fixing a bunch of outdated language in the AR README. commit aca44bcd92ef783abdf484b58abdde6786db0f89 Author: Cheah Chu Yeow <chuyeow@gmail.com> Date: Wed May 7 13:34:52 2008 +0800 Make a note about ActiveResource::Timeouterror being raised when ARes calls timeout. commit 284a930a93fbee16e25d06392779dbf2f03e9e12 Author: Jonathan Dance <jd@wuputah.com> Date: Tue May 6 14:58:26 2008 -0400 improvements to the page caching docs commit 9482da621390c874da7c921c8bd6230caae7035a Author: Sunny Ripert <negatif@gmail.com> Date: Mon May 5 18:13:40 2008 +0200 validates_numericality_of() "integer" option really is "only_integer" commit e9afd6790a8f530528f6597a7f59bb283be754f6 Author: Sunny Ripert <negatif@gmail.com> Date: Mon May 5 12:11:59 2008 +0200 Harmonized hash notation in AR::Base commit 67ebf14a91ffd970b582be4ff2991d691a9cf3e1 Author: Sunny Ripert <negatif@gmail.com> Date: Mon May 5 12:06:19 2008 +0200 Turned options into rdoc-lists in AR::Base commit 0ec7c0a41d889d4e5382b9dff72f1aaba89bf297 Author: Marshall Huss <mwhuss@Macbook.local> Date: Sun May 4 23:21:33 2008 -0400 Added information of how to set element_name in the case the user has a name confliction with an existing model Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Improve documentation coverage and markupXavier Noria2008-05-021-1/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Default integer need not specify a limit [#20371 state:resolved] (matthuhiggins)David Heinemeier Hansson2008-04-291-1/+1
|
* Added that the MySQL adapter should map integer to either smallint, int, or ↵David Heinemeier Hansson2008-04-251-0/+16
| | | | bigint depending on the :limit just like PostgreSQL [DHH]
* Make the mysql schema dumper roundtrip the limits of text/blob columns. ↵Michael Koziarski2008-03-021-0/+17
| | | | | | Closes #7424 [will.bryant] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8969 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* MySQL: memoize column and table name quoting to reduce garbageJeremy Kemper2008-02-031-7/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8794 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* MySQL: omit text/blob defaults from the schema instead of using an empty ↵Jeremy Kemper2008-01-301-1/+1
| | | | | | string. Closes #10963. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8757 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Foxy fixtures. Adapter#disable_referential_integrity. Closes #9981.Jeremy Kemper2007-10-261-0/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8036 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove superfluous code and quote table name. References #9971 [jkit, nzkoz]Michael Koziarski2007-10-251-2/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8015 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure that the Schema Dumper supports non-standard primary keys with ↵Michael Koziarski2007-10-251-0/+10
| | | | | | MySQL. Closes #9971 [RubyRedRick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8012 5ecf4fe2-1ee6-0310-87b1-e25e094e27de