Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove deprecated method "Table#primary_key" | Sean Griffin | 2014-11-26 | 1 | -3/+18 |
| | | | | | | | The only place this method was still used is on the MSSQL visitor. The visitor has all of the objects required to inline this lookup there. Since the `primary_key` method on the connection adapter will perform a query when called, we can cache the result on the visitor. | ||||
* | mssql visitor is working | Aaron Patterson | 2014-04-08 | 1 | -16/+21 |
| | |||||
* | finally stop returning strings | Aaron Patterson | 2014-04-08 | 1 | -2/+3 |
| | |||||
* | loop over cores twice to make the collector implementation more convenient | Aaron Patterson | 2014-04-08 | 1 | -3/+3 |
| | |||||
* | build the ast rather than passing around strings | Aaron Patterson | 2014-04-08 | 1 | -12/+10 |
| | |||||
* | move the ORDER BY to the RowNumber method | Aaron Patterson | 2014-04-08 | 1 | -4/+4 |
| | |||||
* | move all the "ORDER BY" together | Aaron Patterson | 2014-04-08 | 1 | -7/+9 |
| | |||||
* | use if / else so my brain stops hurting | Aaron Patterson | 2014-04-08 | 1 | -1/+1 |
| | |||||
* | refactor mssql nodes to move away from string interpolation | Aaron Patterson | 2014-04-08 | 1 | -1/+13 |
| | |||||
* | Removed all the fiels in lib/arel/visitors/ which needs dependency on 'a' ↵ | Alex Lin | 2014-03-24 | 1 | -12/+12 |
| | | | | also fixed the test case for : test/visitors/test_to_sql.rb:22 which pass in the parameter attribute e.g the parameter a. | ||||
* | Remove deprecated calls from the tests | Rafael Mendonça França | 2013-12-05 | 1 | -2/+2 |
| | |||||
* | Make visitors threadsafe by removing @last_column | Ernie Miller | 2013-04-28 | 1 | -12/+12 |
| | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | 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 |
| | |||||
* | adding TOP to sub selects for mssql | Aaron Patterson | 2011-02-02 | 1 | -0/+7 |
| | |||||
* | Patched Arel v2.0.6 to support MSSQL SQL queries. Based on work of James ↵ | Viacheslav Petrenko | 2011-01-03 | 1 | -0/+16 |
Abley (https://github.com/jabley/arel). |