Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Mar 23, 2015
  1. @rafaelfranca

    Merge pull request #362 from caldwecr/master

    rafaelfranca authored
    Fix a typo in the sql literal spec for grouped "and" equality
  2. @caldwecr
Commits on Feb 24, 2015
  1. @rafaelfranca

    Merge pull request #356 from tamird/limited-delete

    rafaelfranca authored
    Limited delete
Commits on Feb 23, 2015
  1. @bfolkens

    Delete should respect 'limit'

    bfolkens authored Tamir Duberstein 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 Jan 23, 2015
  1. @sgrif

    Merge pull request #352 from splattael/jruby-head

    sgrif authored
    Remove jruby and add jruby-head on Travis
Commits on Jan 21, 2015
  1. @splattael

    Speed up jruby tests

    splattael authored
    Improve startup time and give Java more memory.
  2. @splattael

    Remove jruby and add jruby-head on Travis

    splattael authored
    Arel 7.0 dropped support for 1.9 (see f1a3421).
    We should remove jruby (1.7.18) which only supports 1.9 and test the
    latest jruby head (
    After jruby 9k has been released (and Travis has updated) we can safely
    switch back to jruby.
Commits on Jan 2, 2015
  1. @rafaelfranca

    Merge pull request #346 from vipulnsward/add-default-task

    rafaelfranca authored
    Add default rake task as test.
Commits on Jan 1, 2015
  1. @vipulnsward
Commits on Dec 29, 2014
  1. @sgrif
  2. @sgrif

    Remove 1.9 from the Travis builds

    sgrif authored
    Arel 7.0 will not support Ruby 1.9
  3. @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. @matthewd

    Merge pull request #344 from kaznum/support_the_escape_clause_of_post…

    matthewd authored
    {Matches,DoesNotMatch} support the ESCAPE clause with PostgreSQL
  2. @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. @sgrif

    Merge pull request #177 from NARKOZ/patch-0

    sgrif authored
    remove extra space from select statement
  3. @NARKOZ
Commits on Nov 25, 2014
  1. @rafaelfranca
  2. @rafaelfranca

    Prepare for 6.0.0

    rafaelfranca authored
  3. @rafaelfranca
Commits on Nov 24, 2014
  1. @sgrif

    Merge pull request #338 from yahonda/add_order_to_bindparams_oracle

    sgrif authored
    Support Oracle bind parameter value
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.
Something went wrong with that request. Please try again.