aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/visitors/mysql.rb
Commit message (Collapse)AuthorAgeFilesLines
* always add a space before keywords (it is easier)Aaron Patterson2014-04-111-9/+3
|
* fix spacing so that Rails is happyAaron Patterson2014-04-091-3/+9
|
* fix bind values in insert statementsAaron Patterson2014-04-091-4/+4
|
* fixing BINARY testsAaron Patterson2014-04-081-2/+3
|
* fixing mysql visitorAaron Patterson2014-04-081-19/+42
|
* Removed all the fiels in lib/arel/visitors/ which needs dependency on 'a' ↵Alex Lin2014-03-241-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 timeAaron Patterson2014-03-241-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_columnErnie Miller2013-04-281-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 Beigarts2011-08-261-4/+0
|
* supressing nested parenthesis in multiple unions on mysql. thanks jhtwong. ↵Aaron Patterson2011-07-201-0/+22
| | | | fixes #58
* adding a Bin node to emit mysql BINARY keywordsAaron Patterson2011-04-111-0/+4
|
* refactoring custom lock logic to use sql literalsAaron Patterson2011-02-211-5/+1
|
* Lock should be a unary nodeAaron Patterson2011-02-211-2/+2
|
* Allow database specific locking clauses to be usedJesse Storimer2011-01-201-1/+5
|
* adding better tests surrounding limits in adapter visitorsAaron Patterson2011-01-031-1/+1
|
* Patched Arel v2.0.6 to support MSSQL SQL queries. Based on work of James ↵Viacheslav Petrenko2011-01-031-1/+1
| | | | Abley (https://github.com/jabley/arel).
* quoting limit nodesAaron Patterson2010-12-071-1/+1
|
* mysql will lock for updateAaron Patterson2010-11-221-0/+4
|
* mysql selects from dual on empty from statementsAaron Patterson2010-11-051-0/+5
|
* adding default limits when there is an offset for sqlite and mysql [#5316 ↵Aaron Patterson2010-10-201-0/+7
| | | | state:resolved]
* doing a little cleanup on the visitorsAaron Patterson2010-10-191-0/+2
|
* moving visitors aroundAaron Patterson2010-09-231-0/+16