aboutsummaryrefslogtreecommitdiffstats
path: root/test/visitors/test_postgres.rb
Commit message (Collapse)AuthorAgeFilesLines
* {Matches,DoesNotMatch} support the ESCAPE clause with PostgreSQLKazuya NUMATA2014-12-251-0/+14
| | | | | to_SQL already has supported the ESCAPE clause in #318. PostgreSQL can use the ESCAPE clause too.
* Add order to BindParams in the ToSql collectorSean Griffin2014-11-171-0/+10
| | | | | | | | | | | | This removes the need for us to do the re-ordering by walking the AST in ActiveRecord. We're using a block to communicate with the collector, since the collector needs to be the thing which knows about the index, while the visitor is the thing that needs to know the syntax. The BindParam needs to know about neither of these things, so it's been changed to stop being a subclass of SqlLiteral I could also see an alternative implementation using format strings if for some reason blocks cause a problem.
* postgresql visitor is workingAaron Patterson2014-04-081-13/+17
|
* Add Regexp and NotRegexp nodes for PostgreSQLJames Le Cuirot2014-04-081-0/+34
|
* add the casting node to the AST at build timeAaron Patterson2014-03-241-3/+3
| | | | | If we add the casting node to the ast at build time, then we can avoid doing the lookup at visit time.
* Add tests for PostgreSLQ bugfix regarding invalid SQL in subqueries when ↵Roel van der Hoorn2014-02-051-0/+36
| | | | using matches() or does_not_match().
* calling cache methods against the connectionAaron Patterson2011-11-191-1/+1
|
* Make it the responsibility of the connection to hold on to a visitor for ↵Jon Leighton2011-08-081-1/+1
| | | | generating SQL, rather than the TreeManager. (There is a related commit coming in Active Record.)
* adding Distinct ON nodeAaron Patterson2011-04-211-0/+11
|
* refactoring custom lock logic to use sql literalsAaron Patterson2011-02-211-2/+2
|
* Lock should be a unary nodeAaron Patterson2011-02-211-1/+1
|
* Merge remote branch 'jstorimer/master' into omgAaron Patterson2011-02-211-4/+13
|\ | | | | | | | | * jstorimer/master: Allow database specific locking clauses to be used
| * Allow database specific locking clauses to be usedJesse Storimer2011-01-201-4/+13
| |
* | Add support for WITH and UNIONPaul Sadauskas2011-01-211-0/+1
|/ | | | | | PostgreSQL WITH RECURSIVE support Make WITH be a unary node
* adding better tests surrounding limits in adapter visitorsAaron Patterson2011-01-031-2/+4
|
* quoting limit nodesAaron Patterson2010-12-071-0/+8
|
* renaming test_helper to helper so that it is not double requiredAaron Patterson2010-10-181-1/+1
|
* Renamed spec_helper to test_helperRyan Davis2010-10-181-1/+1
|
* Fisting arel specs -- still needs tree_manager and cleanupRyan Davis2010-10-181-0/+17