aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel
Commit message (Collapse)AuthorAgeFilesLines
* Remove deprecated Relation moduleJuanjo Bazán2012-03-272-8/+0
|
* Adds visit_Arel_Nodes_InfixOperation to Arel::Visitors::DepthFirstBenedikt Deicke2012-03-221-0/+1
|
* Patch Informix Visitor so that it includes joinsJordan2012-02-291-1/+1
|
* Must support aliases for OVER operator.Alexander Staubo2012-02-231-0/+2
|
* Add #extract, which produces ANSI SQL function EXTRACT(<field> from <expr>).Alexander Staubo2012-02-235-0/+38
|
* Support ANSI SQL2003 window functions.Alexander Staubo2012-02-2210-1/+189
|
* added a module for visiting and transforming bind valuesAaron Patterson2012-02-212-2/+26
|
* bind parameters can be differentiated from sql literalsAaron Patterson2012-02-204-0/+6
|
* Oracle limit and offset issue when query is ordered, issue #99 solved.babinho2012-02-171-2/+1
|
* Borked the tests, so I'm reverting for now.Aaron Patterson2012-02-091-0/+10
| | | | | | | Revert "Merge pull request #81 from parndt/master" This reverts commit f3214d9ff0b7a3efb14f7e9cb93c51d3468c16d8, reversing changes made to fc787a42c0febcee41e13d16e06b72492ab00468.
* Merge pull request #81 from parndt/masterAaron Patterson2012-02-091-10/+0
|\ | | | | Removed lib/arel/sql/engine.rb
| * Merge remote-tracking branch 'rails/master'Philip Arndt2011-11-031-1/+1
| |\
| * | Removed lib/arel/sql/engine.rb because it's not required anymore.Philip Arndt2011-09-141-10/+0
| | |
* | | while using activerecord-sqlserver-adapter 3.1.5 with Rails 3.1 with Arel ↵Adam H2012-01-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2.2.1 we encountered the error uninitialized constant Arel::Nodes::Visitors::DepthFirst apparently Arel was trying to call a relative namespace with Visitors::DepthFirst.new(block).accept self we fixed this by making it call an absolute namespace with ::Arel::Visitors::DepthFirst.new(block).accept self
* | | bumping to 3.0.0Aaron Patterson2012-01-124-12/+12
| | |
* | | Ensure @last_column is cleared after visiting objectNorman Clarke2012-01-071-1/+1
| | |
* | | calling cache methods against the connectionAaron Patterson2011-11-192-22/+16
| | |
* | | Add SelectManager#distinct to set/unset the Arel::Nodes::Distinct.new quantifierJon Leighton2011-11-041-0/+8
| |/ |/|
* | Allow using non-table alias as a rhs relation name, fix for #84 and #59JoelJuliano2011-10-301-1/+1
|/
* Proposed fix for issue 79 - https://github.com/rails/arel/issues/79 - Pass ↵jsanders2011-08-291-1/+1
| | | | the connection_pool to the ToSql initializer, rather than the engine itself.
* Support locking by default and disable it only for SQLite.Edgars Beigarts2011-08-265-13/+6
|
* Support locking in OracleEdgars Beigarts2011-08-261-0/+4
|
* Add SelectManager#source method to get the source of the ctxJon Leighton2011-08-111-0/+4
|
* Add SelectManager#projections= method to overwrite projectionsJon Leighton2011-08-111-0/+4
|
* add UpdateManager#key method to access the keyJon Leighton2011-08-111-0/+4
|
* Make it the responsibility of the connection to hold on to a visitor for ↵Jon Leighton2011-08-084-15/+15
| | | | generating SQL, rather than the TreeManager. (There is a related commit coming in Active Record.)
* Support update statements containing joinsJon Leighton2011-08-082-4/+5
|
* Remove short circuit evaluation and leave AST as it isDaniel Cadenas2011-08-032-22/+0
|
* Add nodes for boolean constantsDaniel Cadenas2011-08-036-1/+52
| | | | | | | | | | | | This is useful for dynamically created predicates e.g: expr1 = table.create_false expr2 = table.create_false expr1 = create_a_predicate() if some_condition expr2 = create_another_predicate() if some_other_condition table.where(expr1.and(expr2))
* Merge pull request #69 from thedarkone/oracle-order-by-updateAaron Patterson2011-07-261-0/+12
|\ | | | | Oracle does not allow ORDER BY/LIMIT in UPDATE queries
| * Oracle does not allow ORDER BY/LIMIT in UPDATE queries.thedarkone2011-07-261-0/+12
| |
* | supressing nested parenthesis in multiple unions on mysql. thanks jhtwong. ↵Aaron Patterson2011-07-201-0/+22
| | | | | | | | fixes #58
* | fix depth first visitor to support ascending and descending nodesAaron Patterson2011-06-291-0/+2
| |
* | Merge branch 'master' into Khronos/masterAaron Patterson2011-06-2713-38/+129
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: visitors can define their own cache strategy for dispatch. fixes #57 Break Ordering into Ascending/Descending nodes, allow reversal remove unnecessary guarding agains literal LIMIT and OFFSET support for MS SQL Include Arel::Predicates to Arel::Nodes::Function so you can do table[:id].count.eq(2) updating spec zomg prep release make sure thread runs do not cache sql literal values no longer use this instance variable
| * | visitors can define their own cache strategy for dispatch. fixes #57Aaron Patterson2011-06-271-4/+8
| | |
| * | Merge pull request #60 from arkadiyk/masterAaron Patterson2011-06-241-9/+59
| |\ \ | | | | | | | | Better support for MSSQL
| | * | remove unnecessary guarding agains literalarkadiy kraportov2011-06-101-10/+0
| | | |
| | * | LIMIT and OFFSET support for MS SQLarkadiy kraportov2011-06-091-9/+69
| | |/
| * / Break Ordering into Ascending/Descending nodes, allow reversalErnie Miller2011-06-159-22/+59
| |/
| * Include Arel::Predicates to Arel::Nodes::Function so you can do ↵Samuel Kadolph2011-05-272-2/+1
| | | | | | | | table[:id].count.eq(2)
| * do not cache sql literal valuesAaron Patterson2011-05-171-1/+2
| |
* | Removed some old dev codeMartin Little2011-05-161-7/+0
| |
* | Added a basic test for the informix visitorMartin Little2011-05-161-0/+2
| |
* | Added initial informix visitor supportMartin Little2011-05-161-0/+40
|/
* refactoring to a methodAaron Patterson2011-05-101-3/+11
|
* Make ToSql more thread safe.Damon McCormick + Cameron Walters2011-05-101-5/+4
| | | | | | | Because the ToSql visitor instance is shared across all threads, there is a race condition around column types for binary nodes. It's possible, for instance, to end up with ActiveRecord converting a string value in the final SQL to an integer during heavy concurrent operations.
* InfixOperations are valid value expressions per SQL99 BNF, andErnie Miller2011-05-021-0/+1
| | | | should support ordering
* Stop calling to_s on aliases, require them to be strings already.Ernie Miller2011-04-292-3/+3
|
* Move #as to AliasPredication, stop overriding Function's #as.Ernie Miller2011-04-296-6/+12
|
* Revert "Merged pull request #40 from gmile/master."Aaron Patterson2011-04-291-11/+1
| | | | | This reverts commit 490d6f98f8974c717ddca29df162f5f1ad48e094, reversing changes made to dd07005dceb6641214f7d1166f75acbd379fb570.