aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/abstract
Commit message (Collapse)AuthorAgeFilesLines
* Avoid deprecated String#to_a by using Array.wrap(...) instead of Array(...)Jeremy Kemper2010-04-101-2/+4
|
* clearing up many warnings, removing unnecessary regular expresion ↵Aaron Patterson2010-04-101-2/+1
| | | | | | comparisons [#4365 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* fix stack trace lines on class_evalSantiago Pastorino2010-04-091-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* remove_index now uses quote_table_name() [#4300 state:resolved]Simon Effenberg2010-04-061-1/+1
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Fix mapping of bigint/smallint/uuid columns in postgresql adapter.Ernie Miller2010-03-311-1/+2
| | | | Signed-off-by: Emilio Tagua <miloops@gmail.com>
* adds missing requires for Object#blank? and Object#present?Xavier Noria2010-03-281-0/+1
|
* adds missing requires for Object#duplicable?Xavier Noria2010-03-281-0/+2
|
* Revert "primary_key now supports :limit for MySQL". Break Sam Ruby app.José Valim2010-03-271-4/+4
| | | | | | To reproduce, start a new application, create a scaffold and run test suite. [#876 state:open] This reverts commit faeca694b3d4afebf6b623b493e86731e773c462.
* primary_key now supports :limit for MySQLRizwan Reza2010-03-271-4/+4
| | | | Signed-off-by: wycats <wycats@gmail.com>
* Revert "primary_key now supports :limit. [#876 state:resolved]" since it ↵José Valim2010-03-271-4/+4
| | | | | | broke AR test suite. This reverts commit 41e5c7ed44fedb95636ef9b7a792c46ea03309bd.
* primary_key now supports :limit. [#876 state:resolved]Rizwan Reza2010-03-271-4/+4
| | | | Signed-off-by: wycats <wycats@gmail.com>
* Add add_limit_offset! to adapters.Emilio Tagua2010-03-251-0/+23
|
* ActiveRecord should raise an error on invalid migration types.José Valim2010-02-281-4/+7
|
* avoid @transaction_joinable not initialized warningSantiago Pastorino2010-02-221-1/+1
|
* Revert "Fix #microseconds conversion and #fast_string_to_time"Pratik Naik2010-01-171-7/+6
| | | | This reverts commit 717a2941e15b32d07cc456bb0d81742ecfc5b4a3. Bunch of failures when running postgresql tests.
* Fix #microseconds conversion and #fast_string_to_timeChris Hapgood2010-01-161-6/+7
| | | | | | | | * Use direct integer parsing in #fast_string_to_time to avoid convoluted conversions and errors due to truncation. * Use Float#round in #microseconds to avoid truncation errors. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Move AR logging responsibilities to ActiveRecord::Railties::Subscriber.José Valim2010-01-131-1/+2
|
* Remove allow_concurrency and verification_timeout from ActiveRecord::Base ↵José Valim2010-01-131-20/+0
| | | | (deprecated since 2.2).
* Set deprecation warnings for RAILS_ENV and RAILS_DEFAULT_LOGGER.José Valim2010-01-131-2/+2
|
* Expose connections available in the connection pool.José Valim2010-01-111-1/+1
|
* Allow AR::Schema's migrations_path to be overwritten by subclasses. Defaults ↵Jeffrey Hardy2010-01-081-2/+2
| | | | | | | | to 'db/migrate' [#3671 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Remove locking related unused codePratik Naik2009-12-281-12/+0
|
* Modify connection pool callbacks to be compatible w/ new styleNick Sieger2009-10-161-6/+8
| | | | Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Merge commit 'rails/master'Emilio Tagua2009-08-102-2/+17
|\ | | | | | | | | | | | | 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
| * 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-091-0/+15
| | | | | | | | | | | | [#1874 state:committed] 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>
* | Merge commit 'rails/master'Emilio Tagua2009-08-061-2/+1
|\|
| * 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>
* | Merge commit 'rails/master'Emilio Tagua2009-08-051-1/+6
|\|
| * 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]
* | Merge commit 'rails/master'Emilio Tagua2009-07-312-1/+9
|\| | | | | | | | | Conflicts: activerecord/lib/active_record/associations.rb
| * Merge docrailsPratik Naik2009-07-252-1/+9
| |
* | Create is now powered by Arel. Removed methods that are no longer used.Emilio Tagua2009-07-011-2/+2
| |
* | Merge commit 'rails/master'Emilio Tagua2009-06-231-1/+1
|\|
| * Fixed a bug where create_table could not be called without a block [#2221 ↵Joseph Wilk2009-06-211-1/+1
| | | | | | | | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* | Removed unused methods.Emilio Tagua2009-06-231-27/+0
| |
* | Arel now buils SQL queries for associations. Removed old code andEmilio Tagua2009-06-231-6/+0
| | | | | | | | updated Arel version to support this.
* | Refactors to work with latest Arel implementation.Emilio Tagua2009-06-021-2/+2
|/
* Cherry-pick core extensionsJeremy Kemper2009-05-132-0/+3
|
* Ensure ActiveRecord::Base.connection_pool.with_connection creates a new ↵steve2009-05-011-5/+6
| | | | | | connection only when needed [#1752 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Use table_exists? in #initialize_schema_migrations_table [#1923 state:resolved]Ken Collins2009-05-011-2/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure ActiveRecord session store's connections are checked in after each ↵Joshua Peek2009-02-241-0/+16
| | | | request [#1927 state:resolved]
* Support true/false in query_attribute for calculated columnsMax Lapshin2009-02-061-0/+1
| | | | | Signed-off-by: Tarmo Tänav <tarmo@itech.ee> Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Fix PostgreSQL unit test failures that only occur when using the old ↵Hongli Lai (Phusion)2009-01-131-4/+8
| | | | | | | | 'postgres' driver. [#1748 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Introduce transaction_joinable flag to mark that the fixtures transaction ↵Jeremy Kemper2009-01-101-15/+16
| | | | | | can't joined, a new savepoint is required even if :requires_new is not set. Use :requires_new option instead of :nest. Update changelog. [#383 state:committed]
* Merge branch 'master' into savepointsJeremy Kemper2009-01-103-31/+34
|\
| * Inline code comments for class_eval/module_eval [#1657 state:resolved]Xavier Noria2008-12-282-30/+30
| | | | | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>