aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters
Commit message (Collapse)AuthorAgeFilesLines
* Support multiple schemas in table names for postgresql [#390 state:resolved]Max Lapshin2009-04-051-1/+30
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* SQLite adapters now support DDL transactions [#2080 state:resolved]Jason King2009-03-141-22/+33
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure SQLite adapters stores the config [#1947 state:resolved] [John ↵John Aughey2009-03-082-3/+8
| | | | | | Aughey, Pratik Naik] 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>
* Sqlite adapter's copy_table incorrectly attempts to recreate a primary key ↵Jacob Dunphy2009-01-291-1/+1
| | | | | | | | | id (:id => true in the create_table) if an :id column is present, even if it isn't a primary_key. This fix sets :id => false if there is an :id column, but it's not the primary_key. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1766 state:committed]
* 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]
* Fix PostgreSQL unit test failures that only occur when using the old ↵Hongli Lai (Phusion)2009-01-132-10/+12
| | | | | | | | '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-102-25/+25
| | | | | | 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-107-58/+76
|\
| * Add transaction check to SQLite2 adapter to fix ↵Mike Gunderloy2008-12-301-0/+4
| | | | | | | | | | | | test_sqlite_add_column_in_transaction_raises_statement_invalid [#1669 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Inline code comments for class_eval/module_eval [#1657 state:resolved]Xavier Noria2008-12-284-48/+50
| | | | | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Merge docrailsPratik Naik2008-12-192-1/+4
| |
| * 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>
| * Benchmark.msJeremy Kemper2008-12-091-5/+5
| |
* | Merge commit 'origin/master' into savepointsHongli Lai (Phusion)2008-12-092-6/+11
|\|
| * Merge with docrailsPratik Naik2008-12-072-6/+11
| |
* | Merge commit 'origin/master' into savepointsHongli Lai (Phusion)2008-12-033-15/+21
|\| | | | | | | | | | | Conflicts: activerecord/lib/active_record/fixtures.rb activerecord/test/cases/defaults_test.rb
| * Autoload ActiveRecord filesJoshua Peek2008-11-241-0/+1
| |
| * Remove reset! as a connection#checkout callbackPratik Naik2008-11-191-1/+1
| |
| * 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-073-14/+6
| |\|
| | * Don't leave open dangling connections in development mode. [#1335 ↵Pratik Naik2008-11-081-2/+1
| | | | | | | | | | | | state:resolved]
| | * 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>
| | * Revert commit which breaks all the tests.Michael Koziarski2008-11-071-8/+4
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 8adb79b9b5983cda8dbdd4ef401661fbd51d8844. Conflicts: activerecord/CHANGELOG
| * | undef abstract methods instead of raising NotImplementedError. Still need ↵Jeremy Kemper2008-11-071-4/+4
| |/ | | | | | | the definitions for rdoc though.
| * 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 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-032-2/+28
| | | | | | | | | | | | - Fixed compatibility with the old 'postgres' driver which doesn't support transaction state introspection. - Added unit tests for it.
* | Make SQLite3 pass the unit tests for savepoints.Hongli Lai (Phusion)2008-11-033-0/+14
| |
* | Fix a stale typo in the PostgreSQL adapter. Fix a stale mock expection in ↵Hongli Lai (Phusion)2008-11-031-1/+1
| | | | | | | | transaction_test.
* | Revert "PostgreSQL: introduce transaction_active? rather than tracking ↵Hongli Lai (Phusion)2008-11-031-38/+0
| | | | | | | | | | | | | | | | | | | | | | | | activity ourselves" This commit conflicts with savepoint support. This reverts commit 045713ee240fff815edb5962b25d668512649478. Conflicts: activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
* | Improve documentation for DatabaseStatements#transactions and ↵Hongli Lai (Phusion)2008-11-032-6/+72
| | | | | | | | AbstractAdapter#transactional_fixtures, especially with regard to support for nested transactions.
* | Implement savepoints.Jonathan Viney2008-11-034-6/+47
|/
* 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
|
* Remove reference to fformat to restore support for postgres gem.Michael Koziarski2008-10-261-1/+1
|
* Fix binary data corruption bug in PostgreSQL adaptorAdam Majer2008-10-251-68/+79
| | | | | | | | | | | 1. Move the binary escape/unescape from column to the driver - we should store binary data AR just like most other adaptors 2. check to make sure we only unescape bytea data PGresult.ftype( column ) == 17 that is passed to us in escaped format PGresult.fformat( column ) == 0 Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1063 state:committed]
* 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-054-24/+117
|
* 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>
* 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-142-1/+10
| | | | | | [#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-102-0/+8
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Use a more sensible resolution on the new millisecond benchmarksDavid Heinemeier Hansson2008-09-051-1/+1
|