aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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
|
* Merge branch 'master' of github.com:rails/arelAaron Patterson2011-03-216-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 SqlLiteralErnie Miller2011-03-121-1/+1
| |
| * Replace MathOperation with InfixOperation to support more operatorsErnie Miller2011-03-095-31/+51
| |
* | Fixes rails bug #6058.Hugo Peixoto2011-03-211-0/+1
|/ | | | Propagates 'where' clauses when subquerying is triggered on the UpdateManager.
* Merge branch 'master' of github.com:rails/arelAaron Patterson2011-03-073-1/+8
|\ | | | | | | | | * '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-043-1/+8
| | | | | | | | 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).
* | cleaning up math operations on attributesAaron Patterson2011-03-072-9/+4
| |
* | Merge remote branch 'stiff/master' into omgAaron Patterson2011-03-076-3/+61
|\ \ | |/ |/| | | | | * stiff/master: implemented support for math operations in numeric attributes
| * implemented support for math operations in numeric attributesVladimir Meremyanin2011-01-296-3/+61
| |
* | assinging nil to an offset will remove the offset from the ASTAaron Patterson2011-02-251-1/+10
| |
* | Adding SelectManager#limit= and removing limit nodes when nil is assigned to ↵Aaron Patterson2011-02-251-2/+8
| | | | | | | | limit
* | refactoring custom lock logic to use sql literalsAaron Patterson2011-02-213-13/+11
| |
* | Lock should be a unary nodeAaron Patterson2011-02-215-15/+5
| |
* | Merge remote branch 'jstorimer/master' into omgAaron Patterson2011-02-214-3/+15
|\ \ | | | | | | | | | | | | * jstorimer/master: Allow database specific locking clauses to be used
| * | Allow database specific locking clauses to be usedJesse Storimer2011-01-204-3/+15
| | |
* | | Fix #not to stop wrapping in a grouping nodeErnie Miller2011-02-111-1/+1
| | |
* | | Fix modification of input on *_any/*_all predicationsErnie Miller2011-02-081-0/+2
| | |
* | | use the cache mechanism in the connection pool rather than our own cacheAaron Patterson2011-02-071-28/+3
| | |
* | | 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
| |/ /