aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Merge pull request #482 from kirs/multiple-insert"Rafael Mendonça França2017-05-044-32/+2
| | | | | | | This reverts commit 6d105c7f891a14316eab47dfff3bf1b94f3204e7, reversing changes made to 437aa3a4bb8ad4f3f4eba299dbb1112852f9c7ac. This broke Active Record when the values are sql literals
* Support multiple insertsKir Shatrov2017-05-014-2/+32
|
* Made InsertManager#insert chainablePedro Sena2017-02-281-0/+1
|
* Enable frozen_string_literal in all files in arelRafael Mendonça França2017-02-1369-1/+70
|
* Performance improvement.zhufenggood2017-01-271-4/+4
|
* Raise custom error on empty joinDaniel Colson2017-01-174-2/+11
|
* Remove dead code now that attr is not used anymoreRafael Mendonça França2016-12-291-1/+1
|
* Bump arel to 8.0.0Rafael Mendonça França2016-12-291-1/+1
|
* Remove deprecated type cast support in ArelRafael Mendonça França2016-12-291-44/+5
|
* Remove dead codeRafael Mendonça França2016-12-291-12/+0
|
* Arel master is alre 7.2Rafael Mendonça França2016-12-281-1/+1
| | | | closes #461
* use #data_source_exists? instead of deprecated #table_exists?Alexander Baronec2016-10-081-1/+1
|
* Merge pull request #443 from mgbatchelor/masterRafael França2016-10-071-1/+0
|\ | | | | remove union mapping as :binary node when performing DepthFirst enumeration
| * remove union mapping as :binary node when performing DepthFirst enumerationMichael Batchelor2016-08-191-1/+0
| |
* | Merge pull request #445 from oliverguenther/fix/dot-visitor-casted-nodeRafael França2016-10-071-0/+5
|\ \ | | | | | | Add Arel::Nodes::Casted to dot visitor
| * | Add Arel::Nodes::Casted to dot visitorOliver Günther2016-08-271-0/+5
| |/ | | | | | | | | | | | | Adds casted node to the dot visitor with outgoing edges to val and attribute. Fixes #419
* | Merge pull request #447 from ojab/masterRafael França2016-10-0712-2/+14
|\ \ | | | | | | Freeze all the strings in visitors
| * | Freeze all the strings in visitorsojab2016-08-3112-2/+14
| | |
* | | Fix issue #438 when oracle visitor gets BindParamsRodrigo Castro2016-10-071-2/+13
| | |
* | | Don't store all aliases to a tableSean Griffin2016-09-131-6/+2
|/ / | | | | | | | | | | | | The aliases property of a table is never used other than for equality. However, the aliases that have been created for a table aren't really something that should affect whether a table is considered to be the same table or not. This removal does not appear to have any affect within Active Record or within Arel.
* / Change BindParam visit method for Dot to a noopAdam Lassek2016-08-261-1/+2
|/ | | | | | Since BindParam contains no information, treating it like a string adds no useful information to the graph, and results in an invalid label format.
* Release 7.1.1Rafael Mendonça França2016-07-271-1/+1
|
* Fix Casted#hashMatthew Draper2016-07-281-1/+1
| | | | There is no @class variable.
* Release 7.1.0Rafael Mendonça França2016-07-191-1/+1
|
* Merge pull request #417 from tlkahn/masterRafael França2016-07-191-0/+9
|\ | | | | Fix issue #415 - Should Arel::Nodes::True.new() be 1 in sqlite3?
| * Fix issue #415 - Should Arel::Nodes::True.new() be 1 in sqlite3?Yong Guo2016-03-011-0/+9
| |
* | Merge pull request #328 from vipulnsward/dryup-collectorsRafael França2016-07-191-33/+13
|\ \ | | | | | | DRY up visit_Arel_Nodes_SelectCore
| * | DRY up visit_Arel_Nodes_SelectCore and extract nodes collection to ↵Vipul A M2016-04-111-33/+13
| | | | | | | | | | | | collect_nodes_for, for collecting wheres, projections, groups, windows
* | | Bump to 7.0.1.pre in anticipation of next releaseJeremy Daer2016-05-291-1/+1
| | | | | | | | | | | | [ci skip]
* | | Support for unified Integer class in Ruby 2.4+yui-knk2016-05-303-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ruby 2.4 unifies Fixnum and Bignum into Integer: https://bugs.ruby-lang.org/issues/12005 Ruby ~2.3 `1234.class` is `Fixnum` and `123456789012345678901234567890.class` is `Bignum`. Ruby 2.4+ `1234.class` is `Integer` and `123456789012345678901234567890.class` is `Integer`. So what we should do is defining `visit_Integer` method to visitors.
* | | 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
| |/ /
* | | Merge pull request #432 from tradegecko/pg-grouping-elements-supportRafael França2016-05-054-2/+50
|\ \ \ | | | | | | | | PG: Add Support for GroupBy's Cube, Rollup and Grouping Set
| * | | Add Support for GroupBy Cube, Rollup and Grouping Set Syntax for PostgreSQL ↵Mohammad Habbab2016-05-044-2/+50
| | | | | | | | | | | | | | | | Visitor
* | | | 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.
* / / Update to_sql.rbzhufenggood2016-04-151-3/+3
|/ / | | | | Update to_sql.rb. Slightly performance improvement.
* / Update to_sql.rb. Slightly performance improment.zhufenggood2016-03-311-1/+1
|/ | | Update to_sql.rb. Slightly performance improment.
* added Casted#hashBert Bruynooghe2016-02-171-0/+4
|
* Delete not used codesyui-knk2016-02-061-23/+0
| | | | | These codes were introduced by 03724fb1789198cc394f6e8b69cf9404e03eddd7, and to be not used by 79411322ae225289e1c051f4f68ed84c6349e4a0.
* * Support for bitwise operations as infix operators. Tests included.Shahbaz Javeed2016-01-065-0/+85
| | | | | | | | | | | | | | | | | | | | | | *** Individual commit messages included below *** * Preliminary support for bitwise operations as infix operators. Tests to follow. * Added bitwise xor, shift left and shift right operators * Fixed the BitwiseOr class so it uses the :| operator instead of :& * All the methods for the bitwise operators in the Arel::Math module now wrap them up in Arel::Nodes::Grouping so the operation becomes isolated like addition and subtraction * Preliminary set of tests for the new operators * Updated README with examples of bitwise operations * Added a new UnaryOperation class which is a riff on the InfixOperation class * Added tests for UnaryOperation (inspired by InfixOperation tests) * Added the bitwise not (~) operator as a UnaryOperation * Added tests for the bitwise not operator * Added documentation for the bitwise not operator * Updated gemspec using `rake arel.gemspec`
* Add database specific string concatenationKeenan Brock2016-01-055-1/+20
|
* Implement CASE Conditional ExpressionFelix Bünemann2016-01-055-1/+102
|
* Release 7.0.0Rafael Mendonça França2015-12-171-1/+1
|
* Inject the visitor rather than relying on other objects internalsSean Griffin2015-12-172-2/+7
| | | | | | This is ultimately messy no matter what, and increases the coupling to the database backend, but we can at least contain it somewhat into an object that's already coupled.
* Delegate to Connection Visitor in WhereSQL VisitorEdward Paget2015-12-171-1/+5
| | | | | | | | | | | | The WhereSQL visitor always uses the generic ToSQL visitor to create the where clause sql statement. This means that it'll miss database specific statements, such as 'ILIKE' in PostgreSQL. Since the `#where_sql` method is mainly used for ActiveRecord error reporting, this discrepancy could be confusing to users. This patch changes the WhereSQL visitor to use the its connection visitor to generate SQL for each statement in the SelectManager's wheres array. Then lets them be joined together with ' AND '.
* Merge pull request #369 from codeodor/patch-1Rafael França2015-12-171-1/+7
|\ | | | | Improve error message when passed unsupported type
| * Use a specific exception for unsupported visitsSammy Larbi2015-07-141-1/+7
| |
| * Improve error message when passed unsupported typeSammy Larbi2015-07-141-1/+1
| |
* | Merge pull request #381 from carsonreinke/function_orderRafael França2015-12-171-0/+1
|\ \ | | | | | | Add OrderPredications back into Nodes::Function
| * | Add OrderPredications back into Nodes::Function (removed with deprecation of ↵Carson Reinke2015-07-231-0/+1
| |/ | | | | | | Expression)