Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add UpdateManager#key method to access the key | Jon Leighton | 2011-08-11 | 1 | -0/+4 |
| | |||||
* | Make it the responsibility of the connection to hold on to a visitor for ↵ | Jon Leighton | 2011-08-08 | 4 | -15/+15 |
| | | | | generating SQL, rather than the TreeManager. (There is a related commit coming in Active Record.) | ||||
* | Support update statements containing joins | Jon Leighton | 2011-08-08 | 2 | -4/+5 |
| | |||||
* | Remove short circuit evaluation and leave AST as it is | Daniel Cadenas | 2011-08-03 | 2 | -22/+0 |
| | |||||
* | Add nodes for boolean constants | Daniel Cadenas | 2011-08-03 | 6 | -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-update | Aaron Patterson | 2011-07-26 | 1 | -0/+12 |
|\ | | | | | Oracle does not allow ORDER BY/LIMIT in UPDATE queries | ||||
| * | Oracle does not allow ORDER BY/LIMIT in UPDATE queries. | thedarkone | 2011-07-26 | 1 | -0/+12 |
| | | |||||
* | | supressing nested parenthesis in multiple unions on mysql. thanks jhtwong. ↵ | Aaron Patterson | 2011-07-20 | 1 | -0/+22 |
| | | | | | | | | fixes #58 | ||||
* | | fix depth first visitor to support ascending and descending nodes | Aaron Patterson | 2011-06-29 | 1 | -0/+2 |
| | | |||||
* | | Merge branch 'master' into Khronos/master | Aaron Patterson | 2011-06-27 | 13 | -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 #57 | Aaron Patterson | 2011-06-27 | 1 | -4/+8 |
| | | | |||||
| * | | Merge pull request #60 from arkadiyk/master | Aaron Patterson | 2011-06-24 | 1 | -9/+59 |
| |\ \ | | | | | | | | | Better support for MSSQL | ||||
| | * | | remove unnecessary guarding agains literal | arkadiy kraportov | 2011-06-10 | 1 | -10/+0 |
| | | | | |||||
| | * | | LIMIT and OFFSET support for MS SQL | arkadiy kraportov | 2011-06-09 | 1 | -9/+69 |
| | |/ | |||||
| * / | Break Ordering into Ascending/Descending nodes, allow reversal | Ernie Miller | 2011-06-15 | 9 | -22/+59 |
| |/ | |||||
| * | Include Arel::Predicates to Arel::Nodes::Function so you can do ↵ | Samuel Kadolph | 2011-05-27 | 2 | -2/+1 |
| | | | | | | | | table[:id].count.eq(2) | ||||
| * | do not cache sql literal values | Aaron Patterson | 2011-05-17 | 1 | -1/+2 |
| | | |||||
* | | Removed some old dev code | Martin Little | 2011-05-16 | 1 | -7/+0 |
| | | |||||
* | | Added a basic test for the informix visitor | Martin Little | 2011-05-16 | 1 | -0/+2 |
| | | |||||
* | | Added initial informix visitor support | Martin Little | 2011-05-16 | 1 | -0/+40 |
|/ | |||||
* | refactoring to a method | Aaron Patterson | 2011-05-10 | 1 | -3/+11 |
| | |||||
* | Make ToSql more thread safe. | Damon McCormick + Cameron Walters | 2011-05-10 | 1 | -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, and | Ernie Miller | 2011-05-02 | 1 | -0/+1 |
| | | | | should support ordering | ||||
* | Stop calling to_s on aliases, require them to be strings already. | Ernie Miller | 2011-04-29 | 2 | -3/+3 |
| | |||||
* | Move #as to AliasPredication, stop overriding Function's #as. | Ernie Miller | 2011-04-29 | 6 | -6/+12 |
| | |||||
* | Revert "Merged pull request #40 from gmile/master." | Aaron Patterson | 2011-04-29 | 1 | -11/+1 |
| | | | | | This reverts commit 490d6f98f8974c717ddca29df162f5f1ad48e094, reversing changes made to dd07005dceb6641214f7d1166f75acbd379fb570. | ||||
* | Merge branch 'master' of github.com:rails/arel | Aaron Patterson | 2011-04-29 | 3 | -1/+25 |
|\ | | | | | | | | | | | * 'master' of github.com:rails/arel: replace 'LIMIT n' with 'FETCH FIRST n ROWS ONLY' when using ibm_db Generate more sqlish queue. | ||||
| * | Merged pull request #40 from gmile/master. | Aaron Patterson | 2011-04-29 | 1 | -1/+11 |
| |\ | | | | | | | Passing nil in array generates improper SQL | ||||
| | * | Generate more sqlish queue. | gmile | 2011-03-24 | 1 | -1/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | Now, instead of the following SQL code: some_field IN (1, 2, NULL) Arel will generate the proper one: some_field IN (1, 2) OR IS NULL | ||||
| * | | replace 'LIMIT n' with 'FETCH FIRST n ROWS ONLY' when using ibm_db | Shane Emmons | 2011-04-29 | 2 | -0/+14 |
| | | | |||||
* | | | removing the aliased orders method from the pg visitor | Aaron Patterson | 2011-04-28 | 1 | -13/+0 |
|/ / | |||||
* | | Add support for ordering on expressions | Arthur Taylor | 2011-04-28 | 5 | -8/+17 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 attribute#lower for lowercasing an attribute | Aaron Patterson | 2011-04-25 | 1 | -0/+6 |
| | | |||||
* | | add a factory method for production LOWER functions | Aaron Patterson | 2011-04-25 | 1 | -0/+6 |
| | | |||||
* | | raising not implemented exceptions for distinct on where it is not supported | Aaron Patterson | 2011-04-21 | 1 | -0/+4 |
| | | |||||
* | | adding Distinct ON node | Aaron Patterson | 2011-04-21 | 5 | -33/+15 |
| | | |||||
* | | adding a DISTINCT node | Aaron Patterson | 2011-04-21 | 3 | -7/+21 |
| | | |||||
* | | Fixed deep copy bug in SelectManager clone | Arthur Taylor | 2011-04-19 | 1 | -0/+5 |
| | | |||||
* | | Improve performance of grouping_any/grouping_all | Ernie Miller | 2011-04-19 | 1 | -11/+4 |
| | | |||||
* | | deprecating SelectManager#wheres method | Aaron Patterson | 2011-04-11 | 1 | -0/+1 |
| | | |||||
* | | adding a Bin node to emit mysql BINARY keywords | Aaron Patterson | 2011-04-11 | 3 | -0/+9 |
| | | |||||
* | | use TableAlias nodes for aliasing subselects | Aaron Patterson | 2011-03-30 | 3 | -2/+6 |
| | | |||||
* | | fixing the leg order of TableAlias nodes | Aaron Patterson | 2011-03-30 | 2 | -3/+3 |
| | | |||||
* | | Make SelectManager#as act like node predications | John Mileham | 2011-03-25 | 1 | -2/+2 |
|/ | |||||
* | supporting any node in SelectManager#from | Aaron Patterson | 2011-03-23 | 1 | -2/+6 |
| | |||||
* | allowing sql literals for values in insert statements | Aaron Patterson | 2011-03-21 | 1 | -1/+5 |
| | |||||
* | added a factory method for creating values nodes | Aaron Patterson | 2011-03-21 | 1 | -1/+5 |
| | |||||
* | adding create_insert method | Aaron Patterson | 2011-03-21 | 1 | -1/+5 |
| | |||||
* | Merge branch 'master' of github.com:rails/arel | Aaron Patterson | 2011-03-21 | 6 | -32/+52 |
|\ | | | | | | | | | | | * 'master' of github.com:rails/arel: Make as factory method convert alias name to SqlLiteral Replace MathOperation with InfixOperation to support more operators | ||||
| * | Make as factory method convert alias name to SqlLiteral | Ernie Miller | 2011-03-12 | 1 | -1/+1 |
| | |