aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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 branch 'master' of github.com:rails/arelAaron Patterson2011-07-271-0/+12
|\ | | | | | | | | * 'master' of github.com:rails/arel: Oracle does not allow ORDER BY/LIMIT in UPDATE queries.
| * 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
| | |
* | | prepping for 2.1.4 releaseAaron Patterson2011-07-251-1/+1
|/ /
* | 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
| |
* | fixing broken gem buildAaron Patterson2011-06-271-1/+1
| |
* | version bumpAaron Patterson2011-06-271-1/+1
| |
* | Merge branch 'master' into Khronos/masterAaron Patterson2011-06-2714-39/+130
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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)
| * zomg prep releaseAaron Patterson2011-05-171-1/+1
| |
| * 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
* increasing version to 2.1.0Aaron Patterson2011-04-301-1/+1
|
* 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-297-6/+13
|
* Revert "Merged pull request #40 from gmile/master."Aaron Patterson2011-04-291-11/+1
| | | | | This reverts commit 490d6f98f8974c717ddca29df162f5f1ad48e094, reversing changes made to dd07005dceb6641214f7d1166f75acbd379fb570.
* Merge branch 'master' of github.com:rails/arelAaron Patterson2011-04-293-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 Patterson2011-04-291-1/+11
| |\ | | | | | | Passing nil in array generates improper SQL
| | * Generate more sqlish queue.gmile2011-03-241-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_dbShane Emmons2011-04-292-0/+14
| | |
* | | removing the aliased orders method from the pg visitorAaron Patterson2011-04-281-13/+0
|/ /
* | Add support for ordering on expressionsArthur Taylor2011-04-286-8/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 attributeAaron Patterson2011-04-251-0/+6
| |
* | add a factory method for production LOWER functionsAaron Patterson2011-04-251-0/+6
| |
* | raising not implemented exceptions for distinct on where it is not supportedAaron Patterson2011-04-211-0/+4
| |
* | adding Distinct ON nodeAaron Patterson2011-04-215-33/+15
| |
* | adding a DISTINCT nodeAaron Patterson2011-04-213-7/+21
| |
* | Fixed deep copy bug in SelectManager cloneArthur Taylor2011-04-191-0/+5
| |
* | Improve performance of grouping_any/grouping_allErnie Miller2011-04-191-11/+4
| |
* | deprecating SelectManager#wheres methodAaron Patterson2011-04-111-0/+1
| |
* | adding a Bin node to emit mysql BINARY keywordsAaron Patterson2011-04-113-0/+9
| |
* | use TableAlias nodes for aliasing subselectsAaron Patterson2011-03-303-2/+6
| |
* | fixing the leg order of TableAlias nodesAaron Patterson2011-03-302-3/+3
| |
* | Make SelectManager#as act like node predicationsJohn Mileham2011-03-251-2/+2
|/
* supporting any node in SelectManager#fromAaron Patterson2011-03-231-2/+6
|
* allowing sql literals for values in insert statementsAaron Patterson2011-03-211-1/+5
|
* added a factory method for creating values nodesAaron Patterson2011-03-211-1/+5
|
* adding create_insert methodAaron Patterson2011-03-211-1/+5
|