aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/visitors/oracle12.rb
Commit message (Collapse)AuthorAgeFilesLines
* Refactor `substitute_binds` to perform substitution immediatelySean Griffin2017-07-211-1/+1
| | | | | | | | | | | | | | | | | | I'm honestly not sure if replacing bind params with their concrete values is something that belongs in Arel at all, as it's something that will need to be coupled to the quoting mechanism of the caller, and could just be accomplished by using `Quoted` instead. Still, with the new structure we can provide a much simpler API around substitution. The expectation of the quoter responding to `quote` is a reasonably minimal API. I originally used `DelegateClass` here, with the one line override of `add_bind`, but realized that we have some funky code going on where the collector returns the next collector to use (in practice `self` is always returned, and I don't see why we'd ever want to do this). Removing that would likely be worthwhile, but would be a larger refactoring
* Freeze all the strings in visitorsojab2016-08-311-0/+1
|
* Merge pull request #422 from yahonda/oracle12_support_bind_valueSean Griffin2016-05-061-0/+4
|\ | | | | Support Oracle bind parameter value for Oracle12 visitor
| * Support Oracle bind parameter value for Oracle12 visitorYasuo Honda2016-04-111-0/+4
| |
* | Raise ArgumentError if limit and lock are used for Oracle12 visitorYasuo Honda2016-05-021-3/+5
|/ | | | | | | it would generates `SELECT ... FETCH FIRST n ROWS ONLY FOR UPDATE` which causes Oracle 12c database returns this error : ORA-02014: cannot select FOR UPDATE from view with DISTINCT, GROUP BY, etc.
* Create Arel::Visitors::Oracle12 to provide better top-N queryYasuo Honda2015-06-191-0/+53
to support `FETCH FIRST n ROWS` and `OFFSET` for Oracle 12c database