Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fixing insert manager | Aaron Patterson | 2014-04-08 | 1 | -5/+9 |
| | |||||
* | fixing test_table.rb | Aaron Patterson | 2014-04-08 | 1 | -9/+9 |
| | |||||
* | informix is working | Aaron Patterson | 2014-04-08 | 1 | -2/+1 |
| | |||||
* | postgresql visitor is working | Aaron Patterson | 2014-04-08 | 1 | -2/+2 |
| | |||||
* | push reduction visitors to a reduction base class | Aaron Patterson | 2014-04-08 | 1 | -1/+2 |
| | | | | this lets our old depth first and dot visitors to work normally | ||||
* | select manager tests are passing | Aaron Patterson | 2014-04-08 | 1 | -14/+25 |
| | |||||
* | more select manager tests passing | Aaron Patterson | 2014-04-08 | 1 | -11/+22 |
| | |||||
* | making some of the sql manager tests pass | Aaron Patterson | 2014-04-08 | 1 | -46/+88 |
| | |||||
* | Merge branch 'master' into collector | Aaron Patterson | 2014-04-08 | 1 | -2/+18 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: remove order_clauses since we do not use it fix whitespace and unsupported method args Add Regexp and NotRegexp nodes for PostgreSQL Revert "Merge pull request #253 from corrupt952/master" flatten object.children in visit_Arel_Node_And Added right and full outer joins Conflicts: lib/arel/visitors/to_sql.rb lib/arel/visitors/visitor.rb | ||||
| * | Merge pull request #248 from chewi/master | Aaron Patterson | 2014-04-07 | 1 | -0/+8 |
| |\ | | | | | | | Add Regexp and NotRegexp nodes for PostgreSQL | ||||
| | * | Add Regexp and NotRegexp nodes for PostgreSQL | James Le Cuirot | 2014-04-08 | 1 | -0/+8 |
| | | | |||||
| * | | fix whitespace and unsupported method args | Aaron Patterson | 2014-04-07 | 1 | -1/+1 |
| |/ | |||||
| * | Revert "Merge pull request #253 from corrupt952/master" | Aaron Patterson | 2014-04-07 | 1 | -1/+1 |
| | | | | | | | | | | This reverts commit 6d3ed6d96c4a3ac85b97d81bad95b7254b2aa2d4, reversing changes made to a35fede61ac1a2fcff519ad052f2fcb8808922b9. | ||||
| * | flatten object.children in visit_Arel_Node_And | Kazuki Hasegawa | 2014-04-03 | 1 | -1/+1 |
| | | |||||
| * | Added right and full outer joins | Stephen Prater & Fire-Dragon-DoL | 2014-03-30 | 1 | -0/+8 |
| | | |||||
* | | to_sql is passing | Aaron Patterson | 2014-04-08 | 1 | -57/+97 |
| | | |||||
* | | fixing some tests in to_sql | Aaron Patterson | 2014-04-08 | 1 | -67/+112 |
| | | |||||
* | | bind visitor working with collector object | Aaron Patterson | 2014-04-08 | 1 | -2/+3 |
|/ | |||||
* | Removed all the fiels in lib/arel/visitors/ which needs dependency on 'a' ↵ | Alex Lin | 2014-03-24 | 1 | -170/+159 |
| | | | | also fixed the test case for : test/visitors/test_to_sql.rb:22 which pass in the parameter attribute e.g the parameter a. | ||||
* | add the casting node to the AST at build time | Aaron Patterson | 2014-03-24 | 1 | -14/+26 |
| | | | | | If we add the casting node to the ast at build time, then we can avoid doing the lookup at visit time. | ||||
* | Merge pull request #246 from cmohanprasath/assign_value_from_attribute_test | Aaron Patterson | 2014-02-24 | 1 | -2/+7 |
|\ | | | | | Assign value from attribute test | ||||
| * | Allow assignment right member to reference columns | Loic Nageleisen | 2014-02-11 | 1 | -2/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | Such queries become possible for mortals: ```ruby table.where(table[:qux].eq 'zomg').compile_update(table[:foo] => table[:bar]) ``` Arguably much more sane than using `engine.connection.quote_column_name` or `engine.connection.visitor.accept` on the right hand (bar), which is totally leaking the abstraction. | ||||
* | | Remove deprecated Arel::SqlLiteral | Rafael Mendonça França | 2014-02-10 | 1 | -1/+0 |
|/ | |||||
* | Documented the case-insensitive nature of the match feature. | Robb Shecter | 2013-12-05 | 1 | -0/+4 |
| | | | Documenting the library's behavior. People and other libraries (cf. Squeel) have come to depend on this behavior, and so am submitting this pull request to specify it authoritatively. | ||||
* | Remove deprecated calls to using `UpdateManager` without setting ↵ | Vipul A M | 2013-11-10 | 1 | -11/+1 |
| | | | | `UpdateManager#key` | ||||
* | fix one deprecation warning | Aaron Patterson | 2013-10-14 | 1 | -1/+1 |
| | |||||
* | Make visitors threadsafe by removing @last_column | Ernie Miller | 2013-04-28 | 1 | -167/+171 |
| | | | | | | | | | | | | | | | | | | | | | | The last_column feature of the ToSql visitor and its descendants is what enabled quoting based on the column last visited -- in other words, if you have a standard condition like an equality with a string attribute on the left side and an integer on the right side, then when ARel visits the node, it'll first visit the left side attribute, setting the column of the string attribute as the last column, and resulting in the right side of the condition getting the appropriate quoting. The downside is that this means that visitors can't be shared between threads, because of the state mutation. It also makes for some really weird behavior in the event that the visitor visits a node that happens to contain an attribute you weren't expecting to be there, since it'll potentially quote something based on that attribute. So, it prevents reversing an equality condition. column = value will work, but not value = column, since the last column wouldn't be the column you're hoping for. This is a first pass at fixing this by changing the signature of the visit methods to accept the currently-relevant attribute, if any. | ||||
* | ARel -> Arel | Xavier Noria | 2013-04-14 | 1 | -1/+1 |
| | | | | | | | The project uses "Arel" most of the time, but there were a few "ARel" here and there. I checked with @brynary back in 2010 to pick one for the Rails documentation guidelines and "Arel" was chosen and documented. This patch chooses "Arel" vs "ARel" based on that. | ||||
* | call the columns hash method | Aaron Patterson | 2013-03-14 | 1 | -3/+3 |
| | |||||
* | Denied the quoting of SqlLiterals | Noemj | 2013-01-29 | 1 | -0/+1 |
| | |||||
* | avoid extra string objects in the inner join case | Aaron Patterson | 2012-10-15 | 1 | -1/+6 |
| | |||||
* | more roflscaling strings in the visitor | Aaron Patterson | 2012-10-12 | 1 | -8/+26 |
| | |||||
* | adding some roflscale to the sql visitor | Aaron Patterson | 2012-10-12 | 1 | -13/+96 |
| | |||||
* | Merge pull request #140 from sunaku/GH-139 | Aaron Patterson | 2012-09-24 | 1 | -4/+4 |
|\ | | | | | bugfix: some aggregations lacked DISTINCT emission | ||||
| * | GH-139: some aggregations lacked DISTINCT emission | Suraj N. Kurapati | 2012-09-21 | 1 | -4/+4 |
| | | |||||
* | | to_sql: add support for emitting SQL subqueries | Suraj N. Kurapati | 2012-09-22 | 1 | -0/+4 |
|/ | |||||
* | Fix in [] to be false, in [] to be true | Ernie Miller | 2012-06-14 | 1 | -2/+10 |
| | | | | This is in response to discussion on 62207fa | ||||
* | Do not generate NOT IN (NULL) when empty right | Santiago Pastorino | 2012-06-13 | 1 | -1/+1 |
| | |||||
* | Add #extract, which produces ANSI SQL function EXTRACT(<field> from <expr>). | Alexander Staubo | 2012-02-23 | 1 | -0/+4 |
| | |||||
* | Support ANSI SQL2003 window functions. | Alexander Staubo | 2012-02-22 | 1 | -0/+54 |
| | |||||
* | added a module for visiting and transforming bind values | Aaron Patterson | 2012-02-21 | 1 | -2/+2 |
| | |||||
* | bind parameters can be differentiated from sql literals | Aaron Patterson | 2012-02-20 | 1 | -0/+1 |
| | |||||
* | bumping to 3.0.0 | Aaron Patterson | 2012-01-12 | 1 | -1/+1 |
| | |||||
* | Ensure @last_column is cleared after visiting object | Norman Clarke | 2012-01-07 | 1 | -1/+1 |
| | |||||
* | calling cache methods against the connection | Aaron Patterson | 2011-11-19 | 1 | -18/+12 |
| | |||||
* | Support locking by default and disable it only for SQLite. | Edgars Beigarts | 2011-08-26 | 1 | -2/+1 |
| | |||||
* | Make it the responsibility of the connection to hold on to a visitor for ↵ | Jon Leighton | 2011-08-08 | 1 | -4/+2 |
| | | | | 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 | 1 | -4/+1 |
| | |||||
* | Add nodes for boolean constants | Daniel Cadenas | 2011-08-03 | 1 | -0/+8 |
| | | | | | | | | | | | | 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 reversal | Ernie Miller | 2011-06-15 | 1 | -2/+6 |
| |