Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Jul 14, 2015
  1. @tenderlove

    Merge pull request #337 from yahonda/support_oracle12_top_n_2

    tenderlove authored
    Support Oracle 12c top-N query
  2. @tenderlove

    Merge pull request #361 from evgenim/master

    tenderlove authored
    Fix visit_Arel_Nodes_FullOuterJoin/RightOuterJoin
Commits on Jul 13, 2015
  1. @Eric-Guo
Commits on Jul 10, 2015
  1. @byroot

    No need to quote MySQL LIMIT

    byroot authored
Commits on Jun 19, 2015
  1. @yahonda

    Create Arel::Visitors::Oracle12 to provide better top-N query

    yahonda authored
    to support `FETCH FIRST n ROWS` and `OFFSET` for Oracle 12c database
  2. @yahonda
Commits on Jun 18, 2015
  1. @arthurnn

    Dont need to quote limit

    arthurnn authored
Commits on May 31, 2015
  1. @vipulnsward
Commits on Mar 15, 2015
  1. @evgenim

    Fix visit_Arel_Nodes_FullOuterJoin and visit_Arel_Nodes_RightOuterJoi…

    evgenim authored
    …n to make them work with collectors.
Commits on Feb 23, 2015
  1. @tamird
  2. @bfolkens @tamird

    Delete should respect 'limit'

    bfolkens authored tamird committed
Commits on Jan 27, 2015
  1. @sgrif

    Change the interface of `having` to match that of `where`

    sgrif authored
    These two clauses have nearly identical semantics with regards to how
    they would be constructed as an AST. It doesn't make sense for their
    interfaces to be separate.
Commits on Jan 25, 2015
  1. @sgrif

    Implement equality for `BindParam`

    sgrif authored
    It is impossible to test equality of things constructing trees with bind
    params otherwise.
Commits on Dec 29, 2014
  1. @sgrif
  2. @sgrif

    Allow a type caster to be given to the `Arel::Table` object

    sgrif authored
    This will allow most consuming code to avoid the deprecation introduced
    in 008445d. The only code which will be
    affected is code that is building the `Arel::Table` object manually,
    rather than calling `arel_table` on an Active Record class. Hopefully
    this case will be rare enough that we don't need to introduce any
    additional APIs to work around it.
Commits on Dec 27, 2014
  1. @sgrif

    Deprecate automatic type casting within Arel

    sgrif authored
    Rails now performs all casting eagerly, before passing the value into
    Arel. Once we remove this, the code on both sides will be simplified
    greatly. Ideally, we can provide the appropriate public APIs on the
    Rails side to ease this transition for library authors who depend on
    this behavior.
Commits on Dec 26, 2014
  1. @sgrif

    Allow for handling quoted values in ranges

    sgrif authored
    Since Active Record needs to eagerly cast values, we need to check for
    quoted infinity in our range handling
Commits on Dec 25, 2014
  1. @kaznum

    {Matches,DoesNotMatch} support the ESCAPE clause with PostgreSQL

    kaznum authored
    to_SQL already has supported the ESCAPE clause in #318.
    PostgreSQL can use the ESCAPE clause too.
Commits on Dec 4, 2014
  1. @sgrif


    sgrif authored
    `nil?` not `nil`
  2. @sgrif
  3. @sgrif

    Quoted nodes respond to the same method as Casted nodes

    sgrif authored
    We need to be able to not care which we've gotten in ActiveRecord
Commits on Dec 2, 2014
  1. @sgrif

    Don't re-quote nodes which are already quoted

    sgrif authored
    We're going to start working on removing type casting from arel. To
    avoid doing one gigantic commit which moves everything over to eager
    casting, we need a way to tell Arel that we've already cast it. The
    easiest path to that is to give it a quoted node, and then we remove
    this case once we're never returning a Casted node
Commits on Nov 30, 2014
  1. @sgrif

    Remove `engine` from `TreeManager` and subclasses

    sgrif authored
    This constructor parameter was unused for everything except the
    convenience methods `to_sql` and `where_sql`. We can pass the engine
    into those methods directly.
Commits on Nov 29, 2014
  1. @sgrif

    Remove engine from the constructor arguments `Arel::Table`

    sgrif authored
    It is never used outside of convenience methods which are only used in
    tests. In practice, it just made constructing tables more complicated on
    the rails side. This is the minimum possible change to remove the
    constructor argument, but continue to have the tests passing.
    I'm not sure if we have a reason to keep `project` and friends, and the
    solution might actually just be to remove the engine from
    `SelectManager` and friends. As such I've held off on deleting those
    We need to figure out what to do with `Table#from`. It's old invocation,
    which read `table.from(table)` was certainly nonsensical.
Commits on Nov 26, 2014
  1. @sgrif

    Remove deprecated method "Table#primary_key"

    sgrif authored
    The only place this method was still used is on the MSSQL visitor. The
    visitor has all of the objects required to inline this lookup there.
    Since the `primary_key` method on the connection adapter will perform a
    query when called, we can cache the result on the visitor.
  2. @NARKOZ
Commits on Nov 25, 2014
  1. Prepare for 6.0.0

    Rafael Mendonça França authored
Commits on Nov 20, 2014
  1. @yahonda
Commits on Nov 18, 2014
  1. @sgrif

    Use class objects rather than strings for the dispatch cache

    sgrif authored
    The only reason we're using strings is to pre-populate the cache, but
    `Class#name` returns a new string instance on every call. This is a
    pretty major source of memory usage. We don't technically need to
    pre-populate the cache, and not doing so allows us to go back to using
    cache objects
Commits on Nov 17, 2014
  1. @sgrif

    Add order to BindParams in the ToSql collector

    sgrif authored
    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.
Commits on Nov 10, 2014
  1. @tenderlove

    cache the dispatch table on the depth first visitor

    tenderlove authored
    We know the API for the depth first visitor in advance, so it's OK to
    calcuate this cache in advance
Commits on Nov 5, 2014
  1. @tenderlove
Commits on Nov 2, 2014
  1. @sgrif

    Look for `Enumerable` rather than `Array` in predicates

    sgrif authored
    It's not quite duck typed, but it will allow us to pass in our own
    objects with additional logic (like type casting).
Commits on Oct 31, 2014
  1. @sgrif

    Revert "Revert "Merge pull request #300 from jpcody/master""

    sgrif authored
    This reverts commit 9b92af7.
    beta2 is out, and we've fixed the issue that this caused in Rails
Commits on Oct 30, 2014
  1. @chancancode

    Bump to 6.0.0.beta2

    chancancode authored
Something went wrong with that request. Please try again.