aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/visitors/mssql.rb
Commit message (Collapse)AuthorAgeFilesLines
* mssql visitor is workingAaron Patterson2014-04-081-16/+21
|
* finally stop returning stringsAaron Patterson2014-04-081-2/+3
|
* loop over cores twice to make the collector implementation more convenientAaron Patterson2014-04-081-3/+3
|
* build the ast rather than passing around stringsAaron Patterson2014-04-081-12/+10
|
* move the ORDER BY to the RowNumber methodAaron Patterson2014-04-081-4/+4
|
* move all the "ORDER BY" togetherAaron Patterson2014-04-081-7/+9
|
* use if / else so my brain stops hurtingAaron Patterson2014-04-081-1/+1
|
* refactor mssql nodes to move away from string interpolationAaron Patterson2014-04-081-1/+13
|
* Removed all the fiels in lib/arel/visitors/ which needs dependency on 'a' ↵Alex Lin2014-03-241-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 testsRafael Mendonça França2013-12-051-2/+2
|
* Make visitors threadsafe by removing @last_columnErnie Miller2013-04-281-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 literalarkadiy kraportov2011-06-101-10/+0
|
* LIMIT and OFFSET support for MS SQLarkadiy kraportov2011-06-091-9/+69
|
* adding TOP to sub selects for mssqlAaron Patterson2011-02-021-0/+7
|
* Patched Arel v2.0.6 to support MSSQL SQL queries. Based on work of James ↵Viacheslav Petrenko2011-01-031-0/+16
Abley (https://github.com/jabley/arel).