Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fixing BINARY tests | Aaron Patterson | 2014-04-08 | 1 | -2/+3 |
| | |||||
* | fixing mysql visitor | Aaron Patterson | 2014-04-08 | 1 | -19/+42 |
| | |||||
* | Removed all the fiels in lib/arel/visitors/ which needs dependency on 'a' ↵ | Alex Lin | 2014-03-24 | 1 | -15/+15 |
| | | | | 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 | -1/+3 |
| | | | | | If we add the casting node to the ast at build time, then we can avoid doing the lookup at visit time. | ||||
* | Make visitors threadsafe by removing @last_column | Ernie Miller | 2013-04-28 | 1 | -15/+15 |
| | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | Support locking by default and disable it only for SQLite. | Edgars Beigarts | 2011-08-26 | 1 | -4/+0 |
| | |||||
* | supressing nested parenthesis in multiple unions on mysql. thanks jhtwong. ↵ | Aaron Patterson | 2011-07-20 | 1 | -0/+22 |
| | | | | fixes #58 | ||||
* | adding a Bin node to emit mysql BINARY keywords | Aaron Patterson | 2011-04-11 | 1 | -0/+4 |
| | |||||
* | refactoring custom lock logic to use sql literals | Aaron Patterson | 2011-02-21 | 1 | -5/+1 |
| | |||||
* | Lock should be a unary node | Aaron Patterson | 2011-02-21 | 1 | -2/+2 |
| | |||||
* | Allow database specific locking clauses to be used | Jesse Storimer | 2011-01-20 | 1 | -1/+5 |
| | |||||
* | adding better tests surrounding limits in adapter visitors | Aaron Patterson | 2011-01-03 | 1 | -1/+1 |
| | |||||
* | Patched Arel v2.0.6 to support MSSQL SQL queries. Based on work of James ↵ | Viacheslav Petrenko | 2011-01-03 | 1 | -1/+1 |
| | | | | Abley (https://github.com/jabley/arel). | ||||
* | quoting limit nodes | Aaron Patterson | 2010-12-07 | 1 | -1/+1 |
| | |||||
* | mysql will lock for update | Aaron Patterson | 2010-11-22 | 1 | -0/+4 |
| | |||||
* | mysql selects from dual on empty from statements | Aaron Patterson | 2010-11-05 | 1 | -0/+5 |
| | |||||
* | adding default limits when there is an offset for sqlite and mysql [#5316 ↵ | Aaron Patterson | 2010-10-20 | 1 | -0/+7 |
| | | | | state:resolved] | ||||
* | doing a little cleanup on the visitors | Aaron Patterson | 2010-10-19 | 1 | -0/+2 |
| | |||||
* | moving visitors around | Aaron Patterson | 2010-09-23 | 1 | -0/+16 |