aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
Commit message (Collapse)AuthorAgeFilesLines
* fix nodocsVijay Dev2011-12-091-3/+3
|
* Use new SelectManager#projections= methodJon Leighton2011-08-151-2/+2
|
* use update.key instead of update.ast.key. make better use of select manager.Jon Leighton2011-08-151-2/+2
|
* Refactor building the update managerJon Leighton2011-08-151-5/+3
|
* Support for multi-table updates with limits, offsets and ordersJon Leighton2011-08-151-0/+3
|
* Support updates with joins. Fixes #522.Jon Leighton2011-08-151-0/+9
|
* Make it the responsibility of the connection to hold onto an ARel visitor ↵Jon Leighton2011-08-081-14/+23
| | | | for generating SQL. This improves the code architecture generally, and solves some problems with marshalling. Adapter authors please take note: you now need to define an Adapter.visitor_for method, but it degrades gracefully with a deprecation warning for now.
* Merge branch 'master' of github.com:rails/railsXavier Noria2011-05-251-29/+2
|\
| * removed deprecated methods, and related tests, from ActiveRecordJosh Kalderimis2011-05-251-29/+2
| |
* | Remove extra white spaces on ActiveRecord docs.Sebastian Martinez2011-05-231-2/+2
|/
* use a null byte as a bind parameter substitute as it is not allowed in ↵Aaron Patterson2011-05-091-9/+1
| | | | normal SQL. fixes #411, #417
* using bind parameters for updatesAaron Patterson2011-04-301-4/+11
|
* postgresql supports prepare statement deletesAaron Patterson2011-04-291-2/+9
|
* Use existing #empty_insert_statement_value for an insert with no columns.Ken Collins2011-04-241-4/+0
|
* Move #exec_insert to abstract adapter's database statements.Ken Collins2011-04-221-0/+7
|
* insert statements are prepared, but values are not escaped properlyAaron Patterson2011-04-141-2/+20
|
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-03-231-1/+0
|\
| * remove bank linePaco Guzman2011-03-181-1/+0
| |
* | pushing id insertion and prefetch primary keys down to Relation#insertAaron Patterson2011-03-221-0/+4
|/
* fixture should quack like a hashAaron Patterson2011-02-111-1/+9
|
* Allow limit values to accept an ARel SQL literal.Ken Collins2011-02-091-3/+7
|
* limit() should sanitize limit valuesAaron Patterson2011-02-081-15/+15
| | | | This fixes CVE-2011-0448
* require ActiveSupport deprecatation file before using deprecate method in ↵Raimonds Simanovskis2011-01-041-0/+2
| | | | | database_statements otherwise when using external ActiveRecord adapters (e.g. Oracle) database_statements might be loaded before active_support/core_ext/module/deprecation which results in NoMethodError (commit 60cf65def805995bcca184c40b44bb01d86a48aa added "deprecate" call to database_statements.rb)
* herp derpricating add_limit_offset!Aaron Patterson2011-01-031-0/+3
|
* converted exec to exec_query for sqliteAaron Patterson2010-11-051-1/+1
|
* renaming bind_values to binds where it makes senseAaron Patterson2010-10-261-6/+6
|
* adding backwards compatibility for non-prepare statement handling driversAaron Patterson2010-10-261-2/+16
|
* exec returns an AR::ResultAaron Patterson2010-10-261-3/+3
|
* adding the abstract methodAaron Patterson2010-10-261-0/+6
|
* third parameter is not usedAaron Patterson2010-09-261-1/+1
|
* Fix bug with rolling back frozen attributes.Brian Durand2010-06-181-2/+2
| | | | | | [#2991] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* 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
* 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>
* Add add_limit_offset! to adapters.Emilio Tagua2010-03-251-0/+23
|
* avoid @transaction_joinable not initialized warningSantiago Pastorino2010-02-221-1/+1
|
* Remove locking related unused codePratik Naik2009-12-281-12/+0
|
* Create is now powered by Arel. Removed methods that are no longer used.Emilio Tagua2009-07-011-2/+2
|
* Removed unused methods.Emilio Tagua2009-06-231-27/+0
|
* Refactors to work with latest Arel implementation.Emilio Tagua2009-06-021-2/+2
|
* Fix PostgreSQL unit test failures that only occur when using the old ↵Hongli Lai (Phusion)2009-01-131-4/+8
| | | | | | | | '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-101-15/+16
| | | | | | 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 commit 'origin/master' into savepointsHongli Lai (Phusion)2008-12-031-4/+4
|\ | | | | | | | | | | Conflicts: activerecord/lib/active_record/fixtures.rb activerecord/test/cases/defaults_test.rb
| * undef abstract methods instead of raising NotImplementedError. Still need ↵Jeremy Kemper2008-11-071-4/+4
| | | | | | | | the definitions for rdoc though.
* | Reimplement Jeremy's PostgreSQL automatic transaction state introspection code.Hongli Lai (Phusion)2008-11-031-2/+18
| | | | | | | | | | | | - Fixed compatibility with the old 'postgres' driver which doesn't support transaction state introspection. - Added unit tests for it.
* | Improve documentation for DatabaseStatements#transactions and ↵Hongli Lai (Phusion)2008-11-031-6/+69
| | | | | | | | AbstractAdapter#transactional_fixtures, especially with regard to support for nested transactions.
* | Implement savepoints.Jonathan Viney2008-11-031-6/+10
|/
* 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-051-1/+7
|
* Support :limit on update_all so that has_many with :limit can be safely updatedTarmo Tänav2008-09-101-0/+4
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>