Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add OrderPredications back into Nodes::Function (removed with deprecation of ↵ | Carson Reinke | 2015-07-23 | 1 | -0/+9 |
| | | | | Expression) | ||||
* | Fix a typo in the sql literal spec for grouped "and" equality | Courtland Caldwell | 2015-03-23 | 1 | -1/+1 |
| | |||||
* | Change the interface of `having` to match that of `where` | Sean Griffin | 2015-01-27 | 1 | -4/+4 |
| | | | | | | These two clauses have nearly identical semantics with regards to how they would be constructed as an AST. It doesn't make sense for their interfaces to be separate. | ||||
* | Implement equality for `BindParam` | Sean Griffin | 2015-01-25 | 1 | -0/+15 |
| | | | | | It is impossible to test equality of things constructing trees with bind params otherwise. | ||||
* | Remove `engine` from `TreeManager` and subclasses | Sean Griffin | 2014-11-29 | 1 | -7/+0 |
| | | | | | | This constructor parameter was unused for everything except the convenience methods `to_sql` and `where_sql`. We can pass the engine into those methods directly. | ||||
* | Remove engine from the constructor arguments `Arel::Table` | Sean Griffin | 2014-11-29 | 1 | -7/+6 |
| | | | | | | | | | | | | | | | It is never used outside of convenience methods which are only used in tests. In practice, it just made constructing tables more complicated on the rails side. This is the minimum possible change to remove the constructor argument, but continue to have the tests passing. I'm not sure if we have a reason to keep `project` and friends, and the solution might actually just be to remove the engine from `SelectManager` and friends. As such I've held off on deleting those methods. We need to figure out what to do with `Table#from`. It's old invocation, which read `table.from(table)` was certainly nonsensical. | ||||
* | Binary nodes should not generate the same hash as nodes of other classes | Sean Griffin | 2014-10-24 | 1 | -0/+26 |
| | |||||
* | `Extract#as` should not mutate the receiver | Tamir Duberstein | 2014-09-13 | 1 | -0/+8 |
| | | | | Fixes https://github.com/rails/rails/issues/16913 | ||||
* | Windowing support for PARTITION BY clause. | Alexander Staubo | 2014-06-20 | 1 | -3/+9 |
| | |||||
* | - Fix ambiguous argument warning | Vipul A M | 2014-05-31 | 1 | -1/+1 |
| | | | | - Fix typo: `test_opertaion_ordering` => `test_operation_ordering` | ||||
* | fixing BINARY tests | Aaron Patterson | 2014-04-08 | 1 | -2/+2 |
| | |||||
* | fixing select core tests | Aaron Patterson | 2014-04-08 | 1 | -7/+7 |
| | |||||
* | fixing sql_literal tests | Aaron Patterson | 2014-04-08 | 1 | -5/+9 |
| | |||||
* | add the casting node to the AST at build time | Aaron Patterson | 2014-03-24 | 3 | -3/+3 |
| | | | | | If we add the casting node to the ast at build time, then we can avoid doing the lookup at visit time. | ||||
* | Remove deprecated Arel::Expression | Rafael Mendonça França | 2014-02-10 | 1 | -6/+0 |
| | |||||
* | Bump minitest to 5.1. | Vipul A M | 2014-01-04 | 7 | -7/+7 |
| | |||||
* | Add :encode_with for proper YAML serialization | Ivan Antropov | 2013-11-09 | 1 | -0/+8 |
| | |||||
* | Add equality to ALL THE THINGS (that matter) | Ernie Miller | 2012-08-18 | 26 | -2/+514 |
| | | | | | | | | | | | | People are often trying to use ARel nodes inside ActiveRecord, and when they do so, lots of things can break, because ActiveRecord relies on Array#uniq and sometimes hash key equality to handle values that end up in wheres, havings, etc. By implementing equality for all the nodes, we should hopefully be able to prevent any nodes (even nodes containing other nodes) from failing an equality check they should otherwise pass, and alleviate many of these errors. Fixes #130 | ||||
* | Add Nodes::TableAlias#engine | Jon Leighton | 2012-07-13 | 1 | -0/+16 |
| | | | | | Eventually #engine should go away, but until that time, this means that Table and Nodes::TableAlias can be used more interchangeably. | ||||
* | Include Predications in Grouping | Ernie Miller | 2012-05-19 | 1 | -0/+13 |
| | | | | | | 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 Staubo | 2012-02-23 | 1 | -0/+9 |
| | |||||
* | Add #extract, which produces ANSI SQL function EXTRACT(<field> from <expr>). | Alexander Staubo | 2012-02-23 | 1 | -0/+19 |
| | |||||
* | Support ANSI SQL2003 window functions. | Alexander Staubo | 2012-02-22 | 1 | -0/+40 |
| | |||||
* | bind parameters can be differentiated from sql literals | Aaron Patterson | 2012-02-20 | 1 | -0/+1 |
| | |||||
* | Make it the responsibility of the connection to hold on to a visitor for ↵ | Jon Leighton | 2011-08-08 | 3 | -13/+12 |
| | | | | generating SQL, rather than the TreeManager. (There is a related commit coming in Active Record.) | ||||
* | Break Ordering into Ascending/Descending nodes, allow reversal | Ernie Miller | 2011-06-15 | 3 | -2/+70 |
| | |||||
* | Include Arel::Predicates to Arel::Nodes::Function so you can do ↵ | Samuel Kadolph | 2011-05-27 | 1 | -0/+9 |
| | | | | table[:id].count.eq(2) | ||||
* | InfixOperations are valid value expressions per SQL99 BNF, and | Ernie Miller | 2011-05-02 | 1 | -0/+30 |
| | | | | should support ordering | ||||
* | Move #as to AliasPredication, stop overriding Function's #as. | Ernie Miller | 2011-04-29 | 1 | -0/+17 |
| | |||||
* | adding a DISTINCT node | Aaron Patterson | 2011-04-21 | 1 | -14/+23 |
| | |||||
* | adding a Bin node to emit mysql BINARY keywords | Aaron Patterson | 2011-04-11 | 1 | -0/+23 |
| | |||||
* | Make as factory method convert alias name to SqlLiteral | Ernie Miller | 2011-03-12 | 1 | -0/+6 |
| | |||||
* | Fix #not to stop wrapping in a grouping node | Ernie Miller | 2011-02-11 | 1 | -7/+4 |
| | |||||
* | Added Arel::Nodes::NamedFunction for representing generic SQL functions | Aaron Patterson | 2011-01-04 | 2 | -0/+14 |
| | |||||
* | adding factory methods to node base class | Aaron Patterson | 2010-12-14 | 1 | -0/+4 |
| | |||||
* | adding node test | Aaron Patterson | 2010-11-30 | 1 | -0/+33 |
| | |||||
* | fixing warnings | Aaron Patterson | 2010-11-29 | 1 | -1/+1 |
| | |||||
* | adding an AS node | Aaron Patterson | 2010-11-23 | 1 | -0/+16 |
| | |||||
* | adding a "not" factory method for creating Not nodes | Aaron Patterson | 2010-11-23 | 1 | -0/+20 |
| | |||||
* | Refactor predication methods to be available to SqlLiterals as well. | Ernie Miller | 2010-10-27 | 1 | -0/+24 |
| | |||||
* | renaming test_helper to helper so that it is not double required | Aaron Patterson | 2010-10-18 | 10 | -10/+10 |
| | |||||
* | got rid of retarded check method. down with rspec | Ryan Davis | 2010-10-18 | 2 | -12/+12 |
| | |||||
* | Renamed spec_helper to test_helper | Ryan Davis | 2010-10-18 | 10 | -10/+10 |
| | |||||
* | Fisting arel specs -- still needs tree_manager and cleanup | Ryan Davis | 2010-10-18 | 10 | -0/+239 |