aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters
Commit message (Collapse)AuthorAgeFilesLines
* Add support for Mysql column positioning via #add_column and #change_columnBen Marini2009-12-031-0/+15
| | | | | | | | | | | | | | add_column and change_column in the Mysql adapter now accept some additional options: :first => true # Put the column in front of all the columns :after => column_name # Put the colmn after 'column_name' add_column :new_col, :string, :first => true add_column :another_col, :integer, :default => 0, :after => :new_col [#3286 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fix Rails root in sqlite adapterJoshua Peek2009-10-161-3/+3
|
* Modify connection pool callbacks to be compatible w/ new styleNick Sieger2009-10-161-6/+8
| | | | Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Renamed Orchestra to Notifications once again [#3321 state:resolved]José Valim2009-10-151-1/+1
|
* Update Orchestra instrumentations and move part of logging to Orchestra.José Valim2009-10-151-10/+4
|
* Revert "Rename Orchestra to Notifications [#3321 state:resolved]"José Valim2009-10-151-1/+1
| | | | This reverts commit 8cbf825425dc8ad3770881ea4e100b9023c69ce2.
* Merge branch 'arel'Jeremy Kemper2009-10-145-68/+12
|\
| * Use ActiveSupport::Callbacks instead ofEmilio Tagua2009-10-131-1/+1
| | | | | | | | ActiveSupport::DeprecatedCallbacks.
| * Merge commit 'rails/master'Emilio Tagua2009-10-131-2/+2
| |\
| * \ Merge commit 'rails/master'Emilio Tagua2009-09-221-13/+9
| |\ \
| * \ \ Merge commit 'rails/master'Emilio Tagua2009-09-211-1/+4
| |\ \ \
| * \ \ \ Merge commit 'rails/master'Emilio Tagua2009-09-141-1/+2
| |\ \ \ \
| * \ \ \ \ Merge commit 'rails/master'Emilio Tagua2009-08-172-42/+3
| |\ \ \ \ \
| * \ \ \ \ \ Merge commit 'rails/master'Emilio Tagua2009-08-106-13/+67
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/calculations.rb activerecord/lib/active_record/connection_adapters/mysql_adapter.rb activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
| * \ \ \ \ \ \ Merge commit 'rails/master'Emilio Tagua2009-08-061-2/+1
| |\ \ \ \ \ \ \
| * \ \ \ \ \ \ \ Merge commit 'rails/master'Emilio Tagua2009-08-051-1/+6
| |\ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ Merge commit 'rails/master'Emilio Tagua2009-08-031-1/+0
| |\ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ Merge commit 'rails/master'Emilio Tagua2009-07-312-1/+9
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/associations.rb
| * | | | | | | | | | | Create is now powered by Arel. Removed methods that are no longer used.Emilio Tagua2009-07-012-4/+4
| | | | | | | | | | | |
| * | | | | | | | | | | Merge commit 'rails/master'Emilio Tagua2009-06-304-1/+40
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/test/cases/adapter_test.rb
| * \ \ \ \ \ \ \ \ \ \ \ Merge commit 'rails/master'Emilio Tagua2009-06-232-2/+2
| |\ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | Removed unused methods.Emilio Tagua2009-06-232-39/+0
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | Arel now buils SQL queries for associations. Removed old code andEmilio Tagua2009-06-232-20/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | updated Arel version to support this.
| * | | | | | | | | | | | | Merge commit 'rails/master'Emilio Tagua2009-06-091-2/+14
| |\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | Refactors to work with latest Arel implementation.Emilio Tagua2009-06-024-4/+7
| | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | Merge commit 'rails/master'Emilio Tagua2009-05-187-3/+11
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/base.rb activerecord/lib/active_record/migration.rb activerecord/test/cases/helper.rb
| * | | | | | | | | | | | | | | Refactor to calculations. Migration's versions are string not integer. ARel ↵Emilio Tagua2009-05-061-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | submodule updated.
| * | | | | | | | | | | | | | | Merge commit 'rails/master'Emilio Tagua2009-05-022-7/+8
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | construct_finder_sql now use ArelEmilio Tagua2009-04-241-1/+1
| | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | Rename Orchestra to Notifications [#3321 state:resolved]Joshua Peek2009-10-141-1/+1
| | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | Avoid warning spam by flipping to the new callbacks mechanism. These ↵Michael Koziarski2009-10-151-1/+1
| |_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | callbacks are actually never called by rails itself, merely there for plugins
* | | | | | | | | | | | | | | | Callbacks, DeprecatedCallbacks = NewCallbacks, CallbacksJoshua Peek2009-10-121-2/+2
| |_|_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | |
* | | | | | | | | | | | | | | Instrument process_action, render and sql.José Valim2009-09-201-13/+9
| |_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | |
* | | | | | | | | | | | | | 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>
* | | | | | | | | | | | Remove support for SQLite 2.Pratik Naik2009-08-172-42/+3
| |_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If you're still using it, please install the plugin from git://github.com/rails/sqlite2_adapter.git
* | | | | | | | | | | Use table prefix and suffix for schema_migrations index.Tim Peters2009-08-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [#1543 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* | | | | | | | | | | PostgreSQL: XML datatype supportLeonardo Borges2009-08-092-13/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [#1874 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* | | | | | | | | | | raises exception (ActiveRecord::ConfigurationError with message) on habtm ↵Jaime Bellmyer2009-08-094-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | association creation if join table contains a primary key Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* | | | | | | | | | | Fix that creating a table whose primary key prefix type is :table_name ↵Morgan Schweers2009-08-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | generates an incorrectly pluralized primary key. [#872 state:committed] 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>
* | | | | | | | | | Ruby 1.9.2 compat: Array#* uses to_str instead of to_s to join values since ↵Akira Matsuda2009-08-051-2/+1
| |_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ruby 1.9.2 [#2959 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* | | | | | | | | Revert "fallback_string_to_date sets Date._parse comp arg to true, so that ↵Geoff Buesing2009-08-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | strings with two-digit years, e.g. '1/1/09', are interpreted as modern years" [#2019 state:wontfix] This reverts commit 55d1d12c32a1b99f3f07d2346b49a63650ba2e9d.
* | | | | | | | | fallback_string_to_date sets Date._parse comp arg to true, so that strings ↵Matt Ganderup2009-08-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with two-digit years, e.g. '1/1/09', are interpreted as modern years [#2019 state:resolved]
* | | | | | | | | quoted_date converts time-like objects to ↵Geoff Buesing2009-08-031-1/+6
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | ActiveRecord::Base.default_timezone before serialization. This allows you to use Time.now in find conditions and have it correctly be serialized as the current time in UTC when default_timezone == :utc [#2946 state:resolved]
* | | | | | | | SQLite: drop support for 'dbfile' option in favor of 'database.'Jeremy Kemper2009-08-011-1/+0
| |_|_|_|_|_|/ |/| | | | | |
* | | | | | | Merge docrailsPratik Naik2009-07-252-1/+9
| |_|_|_|_|/ |/| | | | |
* | | | | | Make sure the wrapped exceptions also have the original exception available.Michael Koziarski2009-06-263-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | [#2419 state:committed]