aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/abstract
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* 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]
* Merge docrailsPratik Naik2009-07-252-1/+9
|
* 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>
* 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>
| * Merge docrailsPratik Naik2008-12-192-1/+4
| |
* | Merge commit 'origin/master' into savepointsHongli Lai (Phusion)2008-12-091-0/+2
|\|
| * Merge with docrailsPratik Naik2008-12-071-0/+2
| |
* | Merge commit 'origin/master' into savepointsHongli Lai (Phusion)2008-12-032-12/+18
|\| | | | | | | | | | | Conflicts: activerecord/lib/active_record/fixtures.rb activerecord/test/cases/defaults_test.rb
| * Merge branch 'master' into testingJeremy Kemper2008-11-081-3/+11
| |\
| | * Timeout the connection pool monitor on ruby 1.8 onlyJeremy Kemper2008-11-081-3/+11
| | |
| * | Merge branch 'master' into testingJeremy Kemper2008-11-071-4/+1
| |\|
| | * Simplify dispatcher callbacks to eliminate unnecessary stale thread purging. ↵Nick Sieger2008-11-081-4/+1
| | | | | | | | | | | | | | | | | | [Nick Sieger, Pratik Naik] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * | undef abstract methods instead of raising NotImplementedError. Still need ↵Jeremy Kemper2008-11-071-4/+4
| |/ | | | | | | the definitions for rdoc though.
| * Make sure ActiveRecord::Base.connected? doesn't raise an exception for ↵Pratik Naik2008-11-061-1/+2
| | | | | | | | defined connections
| * Ensure ActiveRecord::ConnectionPool.connected? handles undefined ↵Wes Oldenbeuving2008-11-061-1/+1
| | | | | | | | | | | | connections. [#936 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* | Reimplement Jeremy's PostgreSQL automatic transaction state introspection code.Hongli Lai (Phusion)2008-11-031-2/+18
| | | | | | | | | | | | - Fixed compatibility with the old 'postgres' driver which doesn't support transaction state introspection. - Added unit tests for it.
* | Improve documentation for DatabaseStatements#transactions and ↵Hongli Lai (Phusion)2008-11-031-6/+69
| | | | | | | | AbstractAdapter#transactional_fixtures, especially with regard to support for nested transactions.
* | Implement savepoints.Jonathan Viney2008-11-031-6/+10
|/
* It is not necessary to store QueryCache in a thread local since the cache is ↵Joshua Peek2008-10-301-27/+14
| | | | local to the connection object which is managed by the connection pool
* Use database name in query cache thread local key [#1283 state:resolved]Joshua Peek2008-10-301-3/+2
|
* Add documentation for AbstractAdapter#sanitize_limit, and make its code more ↵Hongli Lai (Phusion)2008-10-091-4/+15
| | | | | | | readable. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1068 status:committed]
* Merge docrailsPratik Naik2008-10-053-6/+86
|
* made ConnectionPool#checkout more robust by trying to loot dead threads when ↵Aliaksey Kandratsenka2008-10-041-1/+5
| | | | | | | | pool is empty Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1169 state:committed]
* Fix race in ConnectionPool#checkoutAliaksey Kandratsenka2008-10-041-15/+14
| | | | | | | After releasing monitor some connection(s) may appear in pool before monitor is re-aquired. When this happens we'll wait for connection which is already available. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Deal with MySQL's quirky handling of defaults and blob/text columnsFrederick Cheung2008-09-141-0/+4
| | | | | | [#1043 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Merge docrailsPratik Naik2008-09-131-2/+36
|
* 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>
* Handle connection timeouts with a slightly nicer error message.Michael Koziarski2008-09-041-1/+1
|
* Default connection allow_concurrency to false (for PostgreSQL)Nick Sieger2008-09-041-2/+1
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Deprecate verification_timeout and verify before resetNick Sieger2008-09-042-9/+12
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Minor tweak to retrieve_connection_pool -- recurse instead of loopNick Sieger2008-08-291-6/+4
|
* Remove some synchronization that's probably overkill, assuming one doesn't ↵Nick Sieger2008-08-291-10/+1
| | | | establish connections frequently
* Collapse connection pool class hierarchy; YAGNI.Nick Sieger2008-08-291-112/+48
| | | | | - Add connection checkin and checkout callbacks to adapter to allow adapter-specific customization of behavior (e.g., JRuby w/ JNDI)
* Make clear_active_connections! also return stale connections back to the poolNick Sieger2008-08-292-33/+25
| | | | - also clean up some cruft remaining from per-thread connection cache
* Remove CachedConnectionPerThread per-thread pooling mechanism in favor of a ↵Nick Sieger2008-08-291-17/+4
| | | | fixed pool with default maximum of 5 connections
* Deprecate allow_concurrency and make it have no effectNick Sieger2008-08-292-39/+16
|