aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/abstract
Commit message (Collapse)AuthorAgeFilesLines
* This method is actually not used, it's implemented on the concrete adaptersSantiago Pastorino2010-08-131-8/+0
| | | | [#5331 state:committed]
* Removing most of the symbol to proc usage in Active RecordPrem Sichanugrist2010-08-132-2/+2
| | | | This will hopefully make Active Record run a bit more faster.
* reduce the number of times current_connection_id is called in with_connection()Aaron Patterson2010-08-061-4/+5
|
* Merge remote branch 'docrails/master'Xavier Noria2010-08-052-2/+2
|\
| * standarizes the use of the article "an" for "SQL" and "SQLite"Xavier Noria2010-08-052-2/+2
| |
* | query value is converted to_s instead of to_yamlRainerBlessing2010-08-031-1/+1
| | | | | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Allow :name to be a Symbol (was this removed by accident?)wycats2010-08-031-0/+2
|/
* ensuring that description does not exceed 100 columnsNeeraj Singh2010-08-021-4/+6
|
* unfactoring clear_stale_cached_connections!Aaron Patterson2010-07-161-16/+7
|
* only test for existence of +pool+ onceAaron Patterson2010-07-161-2/+4
|
* use an attr_reader for performanceAaron Patterson2010-07-161-4/+2
|
* Remove old rubygems require.José Valim2010-07-121-7/+1
|
* copy-edits some docsXavier Noria2010-07-081-6/+5
|
* clarifying how to create non standard primary keyNeeraj Singh2010-07-081-1/+7
|
* Fixed error when removing an index from a table name values, which is a ↵J. Pablo Fernández2010-06-291-1/+1
| | | | | | reserved word, with test. Signed-off-by: José Valim <jose.valim@gmail.com>
* Refactor of column_exists? method and this works with PostgreSQLSantiago Pastorino2010-06-261-12/+6
|
* Add column and index query methods to ActiveRecord::SchemaAndrew White2010-06-262-4/+63
| | | | | | [#4219 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* remove_column should raise an ArgumentError when no columns are passed ↵Jeff Dean2010-06-231-0/+1
| | | | | | [#4803 state:resolved] Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Fix connection reloading in development mode. [#4929 state:resolved]Edgars Beigarts2010-06-221-1/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix bug with rolling back frozen attributes.Brian Durand2010-06-181-2/+2
| | | | | | [#2991] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* edit pass: the names of Rails components have a space, ie, "Active Record", ↵Xavier Noria2010-06-142-7/+7
| | | | not "ActiveRecord"
* 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
* Whoops. _run_*_callbacks is privatewycats2010-06-041-1/+1
|
* Use faster form of running callbackswycats2010-06-041-1/+1
|
* make add_index and remove_index more resilient; new rename_index method; ↵Étienne Barrié2010-05-182-6/+96
| | | | | | | | track database limits [#3452 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Better code formatting and proper line numbers for stack tracesNeeraj Singh2010-05-141-2/+2
| | | | | | [#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-092-2/+23
| | | | 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-082-23/+2
| | | | | | | | | | | | | 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-082-2/+23
| | | | | | | | | | | | 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-021-1/+1
| | | | | | | | | 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>
* 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.
* 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-101-2/+1
| | | | | | 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>
* 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-311-1/+2
| | | | Signed-off-by: Emilio Tagua <miloops@gmail.com>
* adds missing requires for Object#blank? and Object#present?Xavier Noria2010-03-281-0/+1
|
* adds missing requires for Object#duplicable?Xavier Noria2010-03-281-0/+2
|
* Revert "primary_key now supports :limit for MySQL". Break Sam Ruby app.José Valim2010-03-271-4/+4
| | | | | | 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-271-4/+4
| | | | Signed-off-by: wycats <wycats@gmail.com>
* Revert "primary_key now supports :limit. [#876 state:resolved]" since it ↵José Valim2010-03-271-4/+4
| | | | | | broke AR test suite. This reverts commit 41e5c7ed44fedb95636ef9b7a792c46ea03309bd.
* primary_key now supports :limit. [#876 state:resolved]Rizwan Reza2010-03-271-4/+4
| | | | Signed-off-by: wycats <wycats@gmail.com>
* Add add_limit_offset! to adapters.Emilio Tagua2010-03-251-0/+23
|
* 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
|