Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Apr 23, 2015
  1. @edpaget

    Merge pull request #160 from AndrewSwerlick/master

    edpaget authored
    add ability to build with statement from raw arel
Commits on Apr 6, 2015
  1. add ability to build with statement from raw arel

    Andrew Swerlick authored
    This is particularly important when trying to to do bulk updates since
    we need to create a table with a defined schema e.g
    "WITH update(id,new_value)", and that's not currently supported.
    Implemented by changing the case statement in with build to return
    with_statement of type Arel::Nodes::As.
Commits on Feb 3, 2015
  1. @edpaget
  2. @danmcclain

    Merge pull request #155 from edpaget/fix-sti-join-errors

    danmcclain authored
    Fix error when creating a join on STI relationship
Commits on Feb 1, 2015
  1. @edpaget

    Fix error when creating a join on STI relationship

    edpaget authored
    The visit_Array method in the Arel < version 4.1 PostgreSQL visitor
    tries to query the schema cache to get the type the column. When querying
    with an STI model using a JOIN statement the Arel node that gets passed
    to this method is an Arel::Nodes::TableAlias with a name that is not in
    the connection's schema cache. Attempting to query the schema cache results
    in a database error.
    
    This workaround simply tests if the relation type passed to the
    visit_Array method is nil or a Arel::Nodes::TableAlias and, if so, does
    not query the schema cache for the column type.
    
    Closes #154
Commits on Jan 27, 2015
  1. @edpaget

    Merge pull request #153 from fourseven/master

    edpaget authored
    Check for respond_to?(:array) for other DB adaptors.
  2. @fourseven

    When mysql2 is used alongside pg, postgres_ext expects that the column

    fourseven authored
    will respond_to? :array, which it doesn’t.
Commits on Jan 13, 2015
  1. @danmcclain
  2. @danmcclain

    Bundler caching

    danmcclain authored
  3. @danmcclain

    Changes dev pg version

    danmcclain authored
  4. @danmcclain
  5. @danmcclain

    Merge pull request #151 from edpaget/fix-nested-queries

    danmcclain authored
    Fix WhereChain operators to work on joins
  6. @edpaget

    Fix WhereChain operators to work on joins

    edpaget authored
    Regular ActiveRecord where queries can work on joined relations, ie
    `Relation.joins(:join).where(join: { has_value: 1 })`, which also
    works with the the WhereChain `#not` method. This adapts the `#overlap`
    and `#contains_*` methods added in this gem to also work on join queries.
Commits on Dec 12, 2014
  1. @danmcclain

    Merge pull request #147 from eidge/master

    danmcclain authored
    Fix postgres_ext for rails 4.1
Commits on Dec 9, 2014
  1. @eidge
  2. @danmcclain

    Merge pull request #145 from MatthewRDodds/master

    danmcclain authored
    Avoid errors caused by missing active record files
  3. @danmcclain

    Merge pull request #146 from azomazo/fix-support-rails-4.2

    danmcclain authored
    Changing the way of support for arrays in rails 4.2
Commits on Dec 7, 2014
  1. @eidge

    Fix postgres_ext for rails 4.1

    eidge authored
Commits on Dec 6, 2014
  1. @azomazo

    For ActiveRecord 4.2 change class ActiveRecord::PredicateBuilder::Arr…

    azomazo authored
    …ayHandler instead of changing the class ActiveRecord::PredicateBuilder.
  2. @azomazo
Commits on Dec 5, 2014
  1. @MatthewRDodds
Commits on Oct 13, 2014
  1. @danmcclain

    Version bump

    danmcclain authored
  2. @danmcclain

    Merge pull request #141 from edpaget/ar-4.2-support

    danmcclain authored
    ActiveRecord 4.2 Support
  3. @edpaget

    Fix for ActiveRecord ~> 4.2 compatibility

    edpaget authored
    Arel 6.0.0 introduced new methods for handling literals in SQL
    (strings, array, etc) and also seperated Visitors into two types,
    ones that map and ones that reduce. This fixes postgres_ext to
    hook into the Arel PostgreSQL visitor in a way that's compatible
    with the new reducing visitor calling style. This also makes sure
    literal arguments to Arel Nodes are wrapped in the new Quoted
    object. Changes to support ActiveRecord 4.2 are only conditionally
    included so the library remains compatible with older versions of
    AR.
    
    In a few minor changes:
    - Rewrite CTEProxy class to use delegate
    - Rename and combine the old visitor to patch the Arel PostgreSQL
    visitor
    - Change tests to use Regexes that match sql output from all AR
    versions
    
    An additional note: The version check in lib/postgres_ext/arel.rb will
    need to be updated when the final version of ActiveRecord 4.2 is
    released.
Commits on Jul 21, 2014
  1. @danmcclain

    Merge pull request #134 from rainerborene/rails4.1

    danmcclain authored
    Use schema cache to look up predicate columns
Commits on Jul 20, 2014
  1. @rainerborene
Commits on Jul 18, 2014
  1. @danmcclain

    Version bump!

    danmcclain authored
  2. @danmcclain

    Merge pull request #133 from dockyard/quote-ctes

    danmcclain authored
    Quotes CTE names
  3. @danmcclain

    Quotes CTE names

    danmcclain authored
    Fixes #130
  4. @danmcclain

    Merge pull request #132 from dockyard/add-hash-contains

    danmcclain authored
    Adds hstore contains support
  5. @danmcclain

    Adds hstore contains support

    danmcclain authored
    Fixes #120
  6. @danmcclain

    Merge pull request #131 from dockyard/rails4.1

    danmcclain authored
    Rails 4.1 compat
  7. @danmcclain

    Fixes to CTEProxy for Rails 4.1

    danmcclain authored
    Adds model name to CTEs
    
    Fixes @(_)reflections
  8. @danmcclain

    Merge pull request #126 from trumaker/prepare_for_rails4

    danmcclain authored
    Prepare for Rails 4:
Commits on Jul 14, 2014
  1. @danmcclain

    Merge pull request #119 from dockyard/remove-rspec

    danmcclain authored
    Remove .rspec
Something went wrong with that request. Please try again.