aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/visitors/postgresql.rb
Commit message (Collapse)AuthorAgeFilesLines
* postgresql visitor is workingAaron Patterson2014-04-081-10/+11
|
* Add Regexp and NotRegexp nodes for PostgreSQLJames Le Cuirot2014-04-081-0/+8
|
* Removed all the fiels in lib/arel/visitors/ which needs dependency on 'a' ↵Alex Lin2014-03-241-8/+6
| | | | also fixed the test case for : test/visitors/test_to_sql.rb:22 which pass in the parameter attribute e.g the parameter a.
* PostgreSQL bugfix for invalid SQL in subqueriesvanderhoorn2014-02-051-0/+2
| | | | | | | In commit 68a95542e1a7a79d9777223fbffd2b982fed0268 the last_column feature of ToSql was removed. The visit_Arel_Nodes_Matches and visit_Arel_Nodes_DoesNotMatch methods are overwritten in the PostgreSQL class, but were not updated appropriately. This commit fixes the issue accordingly. This bug affects at least all update_all statements in Rails 4.0.2 that have subqueries with ILIKE statements on PostgreSQL. The bug is present in Arel 4.0.1 and later, so it probably affects most Rails 4.0.2 projects. It would be highly appreciated if Arel 4 could get a point release as well. Thanks for your continued work.
* Make visitors threadsafe by removing @last_columnErnie Miller2013-04-281-6/+6
| | | | | | | | | | | | | | | | | | | | | | 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-3/+0
|
* removing the aliased orders method from the pg visitorAaron Patterson2011-04-281-13/+0
|
* adding Distinct ON nodeAaron Patterson2011-04-211-25/+2
|
* 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
|
* quoting limit nodesAaron Patterson2010-12-071-1/+1
|
* add locking support for postgresAaron Patterson2010-10-131-0/+4
|
* Make PostgreSQL play nice with its friends. (matches -> ILIKE instead of LIKE)Ernie Miller2010-09-291-0/+8
|
* reordering order clauses :'(Aaron Patterson2010-09-231-1/+9
|
* writing code that makes me sadAaron Patterson2010-09-231-1/+6
|
* adding a select statment visitorAaron Patterson2010-09-231-0/+27
|
* adding a postgres adapterAaron Patterson2010-09-231-0/+6