aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | | | | 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]
* | | | | | Translate foreign key violations to ActiveRecord::InvalidForeignKey exceptions.Michael Schuerig2009-06-262-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* | | | | | Translate adapter errors that indicate a violated uniqueness constraint to ↵Michael Schuerig2009-06-264-1/+36
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | ActiveRecord::RecordNotUnique exception derived from ActiveReecord::StatementInvalid. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* | | | | 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>
* | | | | Ensure table names are quoted while renaming for sqlite3 adapter [#2272 ↵Brian Hogan2009-06-211-1/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* | | | PostgreSQL adapter should call thread safe quote_string functionEugene Pimenov2009-06-091-2/+14
| |_|/ |/| | | | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* | | Cherry-pick core extensionsJeremy Kemper2009-05-137-3/+11
| |/ |/|
* | 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>
* Add microsecond support for sqlite adapter [#1982 state:resolved]Alex Pooley2009-04-211-0/+10
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fixed dumping from postgresql columns in index in wrong order. [#2515 ↵Max Lapshin2009-04-211-15/+18
| | | | | | state:resolved] Signed-off-by: Tarmo Tänav <tarmo@itech.ee>
* Quote table names when casting to regclass so that capitalized tables are ↵Scott Woods2009-04-211-3/+3
| | | | | | supported. [#2418 state:resolved] Signed-off-by: Tarmo Tänav <tarmo@itech.ee>
* Fixed wrong quoting of index names in postgres [#2402 state:resolved]Max Lapshin2009-04-211-1/+1
| | | | Signed-off-by: Tarmo Tänav <tarmo@itech.ee>
* 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
| |\|