aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Temporarily revert "Update after_commit and after_rollback docs and ↵Jeremy Kemper2010-06-081-0/+56
| | | | | | | | tests to use new style API with an :on options instead of on_* suffix." and "Add after_commit and after_rollback callbacks to ActiveRecord that are called after transactions either commit or rollback on all records saved or destroyed in the transaction."" This reverts commit 1b2941cba1165b0721f57524645fe378bee2a950. [#2991]
* Temporarily revert "Update after_commit and after_rollback docs and tests to ↵Jeremy Kemper2010-06-081-56/+0
| | | | | | | | | | | | | | use new style API with an :on options instead of on_* suffix." and "Add after_commit and after_rollback callbacks to ActiveRecord that are called after transactions either commit or rollback on all records saved or destroyed in the transaction." This reverts commits d2a49e4b1f30c5997e169110eed94a55aee53f56 and da840d13da865331297d5287391231b1ed39721b. [#2991] Conflicts: activerecord/CHANGELOG activerecord/lib/active_record/transactions.rb activerecord/test/cases/transaction_callbacks_test.rb
* forcing encoding on 1.9 when dealing with "binary" columns [#4612 ↵Aaron Patterson2010-06-081-0/+4
| | | | | | state:resolved] Signed-off-by: wycats <wycats@gmail.com>
* MySQL: require 2.7 or later so we can rely on result.each_hashJeremy Kemper2010-06-051-49/+8
|
* Whoops. _run_*_callbacks is privatewycats2010-06-041-1/+1
|
* Use faster form of running callbackswycats2010-06-041-1/+1
|
* Revert "Don't carry default value when changing column for a binary type on ↵Jeremy Kemper2010-05-181-5/+1
| | | | | | | | | | | | | | MySQL" Broke mysql tests. This reverts commit edec1afe25014749f0e2df86d27477b45586a9e3. Conflicts: activerecord/test/cases/migration_test.rb [#3234 state:open]
* make add_index and remove_index more resilient; new rename_index method; ↵Étienne Barrié2010-05-185-11/+106
| | | | | | | | track database limits [#3452 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Don't carry default value when changing column for a binary type on MySQL ↵Elomar França2010-05-161-1/+5
| | | | | | [#3234 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Better code formatting and proper line numbers for stack tracesNeeraj Singh2010-05-142-17/+17
| | | | | | [#4596 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Revert "Revert "Add index length support for MySQL [#1852 state:open]""Pratik Naik2010-05-093-3/+37
| | | | This reverts commit 6626833db13a69786f9f6cd56b9f53c4017c3e39.
* eliminate alias_method_chain from ActiveRecordwycats2010-05-091-17/+10
|
* get the rescue error page back [#4536 state:resolved]Sam Ruby2010-05-081-1/+1
|
* Revert "Add index length support for MySQL [#1852 state:open]"José Valim2010-05-083-37/+3
| | | | | | | | | | | | | This commit breaks dumping a few tables, as the sessions table. To reproduce, just create a new application and: rake db:sessions:create rake db:migrate rake db:test:prepare And then look at the db/schema.rb file (ht: Sam Ruby). This reverts commit 5b95730edc33ee97f53da26a3868eb983305a771.
* Add index length support for MySQL [#1852 state:resolved]Emili Parreno2010-05-083-3/+37
| | | | | | | | | | | | Example: add_index(:accounts, :name, :name => 'by_name', :length => 10) => CREATE INDEX by_name ON accounts(name(10)) add_index(:accounts, [:name, :surname], :name => 'by_name_surname', :length => {:name => 10, :surname => 15}) => CREATE INDEX by_name_surname ON accounts(name(10), surname(15)) Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Use class_inheritable_accessor for connection_handlerPratik Naik2010-05-041-3/+3
|
* Change event namespace ordering to most-significant first [#4504 state:resolved]Justin George2010-05-022-2/+2
| | | | | | | | | More work still needs to be done on some of these names (render_template.action_view and render_template!.action_view particularly) but this allows (for example) /^sql/ to subscribe to all the various ORMs without further modification Signed-off-by: José Valim <jose.valim@gmail.com>
* AR: fixed postgres transaction tests [#4519 state:commited]Cezary Baginski2010-05-011-6/+2
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Add after_commit and after_rollback callbacks to ActiveRecord that are ↵Brian Durand2010-04-291-0/+56
| | | | | | | | called after transactions either commit or rollback on all records saved or destroyed in the transaction. [#2991 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Remove quoted_string_prefix entirely since PostgreSQL was the only database ↵Jeremy Kemper2010-04-241-7/+3
| | | | adapter relying on it.
* PostgreSQL: always rely on pg driver for escape/unescape and quoting dutiesJeremy Kemper2010-04-241-88/+7
|
* PostgreSQL: use standard-conforming strings if possibleJeremy Kemper2010-04-241-30/+14
|
* Drop support for postgres driver. Use pg >= 0.9.0.Jeremy Kemper2010-04-241-16/+2
|
* mode postgresql adapters table_exists? method take the schema in to account. ↵Aaron Patterson2010-04-111-1/+23
| | | | | | [#4341 state:resolved] Signed-off-by: wycats <wycats@gmail.com>
* 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-103-25/+24
| | | | | | 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>
* Revert "When creating database with rake, create schemas in ↵Michael Koziarski2010-04-091-21/+0
| | | | | | | | | | | | | schema_search_path if it doesn't exist." This reverts commit 6c2a0675f11a9b5b8e88ed7dbccd65cb51be8029. Reverting because it breaks the ability to run tests using a non-superuser. Conflicts: activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb activerecord/lib/active_record/railties/databases.rake
* 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-312-1/+8
| | | | Signed-off-by: Emilio Tagua <miloops@gmail.com>
* PostgreSQL adapter: escape_bytea, quote_string and unescape_bytea aren't ↵Eugene Pimenov2010-03-281-6/+6
| | | | | thread-safe in Ruby 1.8 [#3237 state:resolved] Signed-off-by: wycats <wycats@gmail.com>
* adds missing requires for Object#blank? and Object#present?Xavier Noria2010-03-283-0/+3
|
* adds missing requires for Object#duplicable?Xavier Noria2010-03-281-0/+2
|
* Oops, a docfix.Rizwan Reza2010-03-281-1/+1
|
* When creating database with rake, create schemas in schema_search_path if it ↵Rizwan Reza2010-03-281-0/+21
| | | | doesn't exist.
* Revert "primary_key now supports :limit for MySQL". Break Sam Ruby app.José Valim2010-03-272-20/+14
| | | | | | 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-272-14/+20
| | | | Signed-off-by: wycats <wycats@gmail.com>
* Revert "primary_key now supports :limit. [#876 state:resolved]" since it ↵José Valim2010-03-272-20/+14
| | | | | | broke AR test suite. This reverts commit 41e5c7ed44fedb95636ef9b7a792c46ea03309bd.
* primary_key now supports :limit. [#876 state:resolved]Rizwan Reza2010-03-272-14/+20
| | | | Signed-off-by: wycats <wycats@gmail.com>
* In PostgreSQLAdapter, switch tables query to use current_schemas function ↵Kris Selden2010-03-261-3/+1
| | | | | | [#918 state:resolved] Signed-off-by: wycats <wycats@gmail.com>
* Better MySQL Error message. [#3775 state:resolved]Rizwan Reza2010-03-261-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Add add_limit_offset! to adapters.Emilio Tagua2010-03-252-0/+35
|
* 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
|
* avoid active not initialized warningSantiago Pastorino2010-02-221-0/+1
|
* Silenced "SHOW FIELDS" and "SET SQL_AUTO_IS_NULL=0" statements from the ↵David Heinemeier Hansson2010-02-061-4/+8
| | | | MySQL driver to improve log signal to noise ration in development [DHH]
* Added encoding qery support for SQLite3 to make rake db:charset work on all ↵Mikel Lindsaar2010-02-031-0/+11
| | | | databases shipping with Rails 3
* future proofing the sqlite3 adapter codeAaron Patterson2010-01-261-3/+3
| | | | Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
* PostgreSQLAdapter: set time_zone to UTC when Base.default_timezone == :utc ↵Jack Christensen2010-01-251-1/+5
| | | | so that Postgres doesn't incorrectly offset-adjust values inserted into TIMESTAMP WITH TIME ZONE columns [#3777 state:resolved]
* 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.