Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Connection handling methods extracted out into separate ConnectionHandler class | Nick Sieger | 2008-08-29 | 3 | -105/+117 | |
| | | | | - delegating methods left behind | |||||
* | Fix failure to retain value of allow_concurrency | Nick | 2008-08-29 | 2 | -1/+3 | |
| | | | | | - Also carry allow_concurrency value through to connection adapter (for postgresql) | |||||
* | Add synchronization to connection pool also | Nick | 2008-08-29 | 2 | -4/+14 | |
| | ||||||
* | Introduce synchronization around connection pool access | Nick | 2008-08-29 | 2 | -21/+43 | |
| | | | | | | - use new active support Module#synchronize - allow_concurrency now switches between a null monitor and a regular monitor (defaulting to null monitor to avoid overhead) | |||||
* | Rename defined_connections to connection_pools | Nick | 2008-08-29 | 1 | -10/+20 | |
| | | | | | - Distinguis meaning of "active_connections" to always mean connections associated with the current thread | |||||
* | Initial conversion to connection pool | Nick | 2008-08-29 | 3 | -171/+156 | |
| | | | | | | So far so good, tests still run clean. Next steps: synchronize connection pool access and modification, and change allow_concurrency to simply switch a real lock for a null lock. | |||||
* | Make query-cache thread-local | Nick Sieger | 2008-08-29 | 1 | -14/+29 | |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | |||||
* | PostgreSQL: fix quote_string for certain old pg drivers. [#94 state:resolved] | Lars Kanis | 2008-08-27 | 1 | -1/+1 | |
| | ||||||
* | PostgreSQL: pg driver expects nil instead of empty string for missing user/pass | Jeremy Kemper | 2008-08-26 | 1 | -2/+2 | |
| | ||||||
* | Don't set "NULL" as a constraint on nullable columns [#398 state:resolved] | Tarmo Tänav | 2008-08-23 | 1 | -6/+2 | |
| | | | | This is already the default and adding it breaks SQL standards compatibility. | |||||
* | coerce blank strings to nil values for boolean and integer fields | Josh Susser | 2008-08-22 | 1 | -1/+5 | |
| | | | | [#860 state:resolved] | |||||
* | Made migrations transactional for PostgreSQL [#834 state:resolved] | Tarmo Tänav | 2008-08-22 | 2 | -0/+11 | |
| | | | | Patch originally from http://dev.rubyonrails.org/ticket/5470 | |||||
* | Ensure t.timestamps respects options. [#828 state:resolved] | Patrick Reagan | 2008-08-22 | 1 | -3/+4 | |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Properly quote CREATE DATABASE parameters in postgresql [#771 state:resolved] | Tarmo Tänav | 2008-08-22 | 1 | -3/+3 | |
| | ||||||
* | Revert "Performance: freeze cached rows instead of duping" | Jeremy Kemper | 2008-08-21 | 1 | -4/+13 | |
| | | | | This reverts commit cd8e653d5b18e6d3c3acc9930832f8e23945e392. | |||||
* | Revert "coerce blank strings to nil values for boolean and integer fields" | Jeremy Kemper | 2008-08-21 | 1 | -5/+1 | |
| | | | | | | This reverts commit aee14630d4dc0856e597794cc731fac68c2d2e34. [#860 state:incomplete] | |||||
* | coerce blank strings to nil values for boolean and integer fields | Josh Susser | 2008-08-21 | 1 | -1/+5 | |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | |||||
* | Fix postgres bug when change_column is called with invalid parameters. [#861 ↵ | Miles Georgi | 2008-08-21 | 1 | -1/+2 | |
| | | | | | | | state:resolved] Signed-off-by: Tarmo Tänav <tarmo@itech.ee> Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Performance: freeze cached rows instead of duping | Jeremy Kemper | 2008-08-18 | 1 | -13/+4 | |
| | ||||||
* | Fix file permissions | Tarmo Tänav | 2008-07-31 | 2 | -0/+0 | |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | |||||
* | validates_uniqueness_of uses database case sensitivity support instead of ↵ | Tarmo Tänav | 2008-07-31 | 2 | -0/+8 | |
| | | | | | | using ruby Signed-off-by: Michael Koziarski <michael@koziarski.com> | |||||
* | Fixed negative default integer parsing for Postgresql 8.3.3 | Tarmo Tänav | 2008-07-31 | 1 | -2/+2 | |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | |||||
* | Revert "Ensure adapater specific code is loaded on ↵ | Joshua Peek | 2008-07-27 | 1 | -1/+0 | |
| | | | | | | ActiveRecord::Base.establish_connection" This reverts commit 8b858782fa693e89a47fc3dd5ae38d842ede6d04. | |||||
* | Ensure adapater specific code is loaded on ↵ | Joshua Peek | 2008-07-21 | 1 | -0/+1 | |
| | | | | ActiveRecord::Base.establish_connection | |||||
* | Merge with docrails. | Pratik Naik | 2008-07-16 | 2 | -2/+2 | |
| | ||||||
* | Move the transaction counter to the connection object rather than ↵ | Jonathan Viney | 2008-07-15 | 1 | -0/+13 | |
| | | | | | | | maintaining it on the current Thread. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#533 state:resolved] | |||||
* | SQLite: rename_column raises if the column doesn't exist. | Tarmo Tänav | 2008-07-14 | 1 | -0/+3 | |
| | | | | [#622 state:resolved] | |||||
* | Fixed mysql change_column_default to not make the column always nullable. | Tarmo Tänav | 2008-07-14 | 2 | -7/+35 | |
| | | | | | | Also added change_column_null to both mysql and sqlite to keep the api features closer to postgresql. [#617 state:resolved] | |||||
* | PostgreSQL: don't dump :limit => 4 for integers | Jeremy Kemper | 2008-07-14 | 1 | -1/+0 | |
| | ||||||
* | Faster and clearer value_to_boolean | Jeremy Kemper | 2008-07-14 | 1 | -5/+4 | |
| | ||||||
* | Fixed that create database statements would always include "DEFAULT NULL" ↵ | David Heinemeier Hansson | 2008-07-14 | 1 | -1/+4 | |
| | | | | (Nick Sieger) [#334 status:committed] | |||||
* | Added db:charset support to PostgreSQL. [#556 state:resolved] | Sebastian A. Espindola | 2008-07-14 | 1 | -0/+13 | |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Ensure MysqlAdapter allows SSL connection when only sslca is supplied. [#253 ↵ | Micah Wedemeyer | 2008-07-11 | 1 | -2/+5 | |
| | | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Boolean type casting creates fewer objects | Jeremy Kemper | 2008-07-09 | 1 | -1/+1 | |
| | ||||||
* | MySQL: treat integer with :limit => 11 as a display width, not byte size, ↵ | Jeremy Kemper | 2008-06-27 | 3 | -11/+15 | |
| | | | | for backward-compatibility. | |||||
* | Performance: minor Column#text? and #number? speedups | Jeremy Kemper | 2008-06-25 | 1 | -2/+2 | |
| | ||||||
* | Treat any limit > 4 as bigint | Jeremy Kemper | 2008-06-23 | 1 | -6/+8 | |
| | ||||||
* | Always treat integer :limit as byte length. [#420 state:resolved] | Tarmo Tänav | 2008-06-22 | 2 | -16/+21 | |
| | ||||||
* | Oops, already had a postgresql_version method! | Jeremy Kemper | 2008-06-22 | 1 | -6/+1 | |
| | ||||||
* | Only use DROP ... IF EXISTS for PostgreSQL 8.2 or later. [#400 state:resolved] | ian | 2008-06-22 | 1 | -1/+9 | |
| | ||||||
* | MySQL: rename_column preserves default values. [#466 state:resolved] | Diego Algorta | 2008-06-22 | 1 | -1/+9 | |
| | ||||||
* | supports_insert_with_returning? caches false result also | Jeremy Kemper | 2008-06-11 | 1 | -3/+6 | |
| | ||||||
* | PostgreSQL: use 'INSERT ... RETURNING id' for 8.2 and later. | Jeremy Kemper | 2008-06-10 | 1 | -3/+20 | |
| | ||||||
* | PostgreSQL: insert looks up pk and sequence name if not given. [#384 ↵ | Jeremy Kemper | 2008-06-10 | 1 | -2/+17 | |
| | | | | state:resolved] | |||||
* | Enable autoreconnect if available. Freeze constants. | Jeremy Kemper | 2008-06-08 | 1 | -2/+7 | |
| | ||||||
* | Give a more informative error message instead of just raising a load error ↵ | Jeremy Kemper | 2008-06-08 | 1 | -1/+8 | |
| | | | | when mysql gem isn't installed | |||||
* | Don't append limit to primary key column definition. Freeze some constants. | Jeremy Kemper | 2008-06-08 | 3 | -32/+40 | |
| | ||||||
* | Remove vendor/mysql.rb. Deprecated in 2.1 stable, gone in 2.2. | Jeremy Kemper | 2008-06-08 | 1 | -25/+4 | |
| | ||||||
* | PostgreSQL: quote bare table names | Jeremy Kemper | 2008-06-07 | 1 | -3/+3 | |
| | ||||||
* | Give a nice message if there are duplicate migrations instead of raising a ↵ | Jeremy Kemper | 2008-06-04 | 1 | -3/+14 | |
| | | | | strange insert error |