aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes
Commit message (Collapse)AuthorAgeFilesLines
* Add Nodes::TableAlias#engineJon Leighton2012-07-131-0/+4
| | | | | Eventually #engine should go away, but until that time, this means that Table and Nodes::TableAlias can be used more interchangeably.
* Remove ArgumentError.Jon Leighton2012-07-131-2/+1
| | | | | | | | | | It is untested. There is no `@frame` variable. Presumably it is supposed to be `@framing`, but changing that shows that some of the tests *are* setting frame twice. I don't see why this level of strictness is necessary. If someone disagrees, they should add a test for this behaviour and make the other tests pass.
* Include Predications in GroupingErnie Miller2012-05-193-7/+7
| | | | | | Also, removed unused ordering.rb file, since it is identical to the one being created in unary.rb already, and isn't required anywhere.
* 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-231-0/+23
|
* Support ANSI SQL2003 window functions.Alexander Staubo2012-02-224-1/+95
|
* bind parameters can be differentiated from sql literalsAaron Patterson2012-02-201-0/+3
|
* 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
* Allow using non-table alias as a rhs relation name, fix for #84 and #59JoelJuliano2011-10-301-1/+1
|
* Make it the responsibility of the connection to hold on to a visitor for ↵Jon Leighton2011-08-081-2/+1
| | | | generating SQL, rather than the TreeManager. (There is a related commit coming in Active Record.)
* Support update statements containing joinsJon Leighton2011-08-081-0/+4
|
* Remove short circuit evaluation and leave AST as it isDaniel Cadenas2011-08-032-22/+0
|
* Add nodes for boolean constantsDaniel Cadenas2011-08-032-0/+34
| | | | | | | | | | | | 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))
* Break Ordering into Ascending/Descending nodes, allow reversalErnie Miller2011-06-154-15/+48
|
* Include Arel::Predicates to Arel::Nodes::Function so you can do ↵Samuel Kadolph2011-05-272-2/+1
| | | | table[:id].count.eq(2)
* 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-291-2/+2
|
* Move #as to AliasPredication, stop overriding Function's #as.Ernie Miller2011-04-293-2/+4
|
* Add support for ordering on expressionsArthur Taylor2011-04-281-0/+1
| | | | | | | | | | | | | | Conflicts: lib/arel.rb lib/arel/attributes/attribute.rb lib/arel/nodes/infix_operation.rb lib/arel/nodes/named_function.rb Conflicts: lib/arel.rb lib/arel/attributes/attribute.rb
* adding Distinct ON nodeAaron Patterson2011-04-212-6/+7
|
* adding a DISTINCT nodeAaron Patterson2011-04-212-7/+16
|
* adding a Bin node to emit mysql BINARY keywordsAaron Patterson2011-04-111-0/+1
|
* fixing the leg order of TableAlias nodesAaron Patterson2011-03-301-2/+2
|
* Replace MathOperation with InfixOperation to support more operatorsErnie Miller2011-03-092-15/+42
|
* Merge branch 'master' of github.com:rails/arelAaron Patterson2011-03-071-0/+4
|\ | | | | | | | | * 'master' of github.com:rails/arel: Add an #table_name method to Table and TableAlias, which always returns the actual table name, not the alias. Then fix ToSql#column_for to use this table name when checking whether the table exists (rather than before, where it was checking whether a table with the alias name exists, which was incorrect).
| * Add an #table_name method to Table and TableAlias, which always returns the ↵Jon Leighton2011-03-041-0/+4
| | | | | | | | actual table name, not the alias. Then fix ToSql#column_for to use this table name when checking whether the table exists (rather than before, where it was checking whether a table with the alias name exists, which was incorrect).
* | Merge remote branch 'stiff/master' into omgAaron Patterson2011-03-071-0/+15
|\ \ | |/ |/| | | | | * stiff/master: implemented support for math operations in numeric attributes
| * implemented support for math operations in numeric attributesVladimir Meremyanin2011-01-291-0/+15
| |
* | Lock should be a unary nodeAaron Patterson2011-02-212-10/+1
| |
* | Merge remote branch 'jstorimer/master' into omgAaron Patterson2011-02-211-0/+4
|\ \ | | | | | | | | | | | | * jstorimer/master: Allow database specific locking clauses to be used
| * | Allow database specific locking clauses to be usedJesse Storimer2011-01-201-0/+4
| | |
* | | Fix #not to stop wrapping in a grouping nodeErnie Miller2011-02-111-1/+1
| | |
* | | Merge branch 'named-function-predicates'Aaron Patterson2011-02-021-0/+2
|\ \ \ | |_|/ |/| | | | | | | | | | | * named-function-predicates: Test for NamedFunction predication chaining Chain predications off of named functions
| * | Chain predications off of named functionsDaniel Azuma2011-01-191-0/+2
| |/
* | Added support for INTERSECT and EXCEPTBrian Cardarella2011-01-221-0/+2
| |
* | WTF, tabs?Paul Sadauskas2011-01-211-6/+6
| |
* | With node takes an array, less code to determine alternative nodesPaul Sadauskas2011-01-211-8/+1
| |
* | Don't need with_recursivePaul Sadauskas2011-01-211-2/+1
| |
* | Add support for WITH and UNIONPaul Sadauskas2011-01-213-6/+27
|/ | | | | | PostgreSQL WITH RECURSIVE support Make WITH be a unary node
* Added Arel::Nodes::NamedFunction for representing generic SQL functionsAaron Patterson2011-01-043-4/+14
|
* limit and top files are not neededAaron Patterson2011-01-032-13/+0
|
* Merge branch '2-0-stable' into mergeAaron Patterson2011-01-034-3/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 2-0-stable: updating history Patched Arel v2.0.6 to support MSSQL SQL queries. Based on work of James Abley (https://github.com/jabley/arel). consolidating dot visitor methods refactoring where, fixing subselect implementation for passing a subquery to #in and #not_in tests for passing a subquery to #in and #not_in limit members of the AST are visited quoting limit nodes Conflicts: History.txt lib/arel/nodes.rb lib/arel/nodes/select_core.rb lib/arel/select_manager.rb lib/arel/visitors/to_sql.rb test/visitors/test_to_sql.rb
| * Patched Arel v2.0.6 to support MSSQL SQL queries. Based on work of James ↵Viacheslav Petrenko2011-01-033-1/+15
| | | | | | | | Abley (https://github.com/jabley/arel).
* | requiring that the primary key be set on the UpdateManager so that databases ↵Aaron Patterson2010-12-241-2/+4
| | | | | | | | which do not support UPDATE with LIMIT will work
* | fixing typo, thanks @devwoutAaron Patterson2010-12-211-1/+1
| |
* | removing commented out codeAaron Patterson2010-12-141-7/+0
| |
* | cleaning up more nodesAaron Patterson2010-12-147-38/+24
| |
* | cleaning up more nodesAaron Patterson2010-12-147-37/+12
| |
* | cleaning up more nodesAaron Patterson2010-12-145-31/+9
| |
* | removing more nodes!Aaron Patterson2010-12-147-31/+16
| |