aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Test concurrency of visitor superclass fallbackMatthew Draper2017-06-051-0/+49
|
* Enable frozen_string_literal in all files in arelRafael Mendonça França2017-02-1358-0/+58
|
* Raise custom error on empty joinDaniel Colson2017-01-172-0/+16
|
* Address `Use assert_nil if expecting nil` warningsYasuo Honda2016-12-301-2/+2
|
* Fix identationRafael Mendonça França2016-12-291-7/+7
|
* Remove deprecated type cast support in ArelRafael Mendonça França2016-12-294-93/+5
|
* 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-0/+12
|\ | | | | remove union mapping as :binary node when performing DepthFirst enumeration
| * remove union mapping as :binary node when performing DepthFirst enumerationMichael Batchelor2016-08-191-0/+12
| |
* | Merge pull request #445 from oliverguenther/fix/dot-visitor-casted-nodeRafael França2016-10-071-0/+1
|\ \ | | | | | | Add Arel::Nodes::Casted to dot visitor
| * | Add Arel::Nodes::Casted to dot visitorOliver Günther2016-08-271-0/+1
| |/ | | | | | | | | | | | | 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-071-1/+1
|\ \ | | | | | | Freeze all the strings in visitors
| * | Drop unneeded assignmentojab2016-08-311-1/+1
| | |
* | | Fix issue #438 when oracle visitor gets BindParamsRodrigo Castro2016-10-071-1/+15
| | |
* | | Don't store all aliases to a tableSean Griffin2016-09-131-8/+1
|/ / | | | | | | | | | | | | 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.
* / Add failing test for Dot visitor and BindParamAdam Lassek2016-08-261-0/+6
|/ | | | | | | | | Since BindParam has no value, treating it like a string causes it to fallback to Object#to_s, leading to output like `#<Arel::Nodes::BindParam:0x007fa43c866108>`. Since angle brackets are significant in Dot labels, this causes `Error: bad label format` when passing the graph into dot.
* Merge pull request #417 from tlkahn/masterRafael França2016-07-191-0/+7
|\ | | | | 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/+7
| |
* | Merge pull request #422 from yahonda/oracle12_support_bind_valueSean Griffin2016-05-061-2/+13
|\ \ | | | | | | Support Oracle bind parameter value for Oracle12 visitor
| * | Support Oracle bind parameter value for Oracle12 visitorYasuo Honda2016-04-111-2/+13
| |/
* | Merge pull request #432 from tradegecko/pg-grouping-elements-supportRafael França2016-05-051-0/+78
|\ \ | | | | | | 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-041-0/+78
| | | | | | | | | | | | Visitor
* | | Raise ArgumentError if limit and lock are used for Oracle12 visitorYasuo Honda2016-05-021-3/+4
|/ / | | | | | | | | | | | | 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.
* / Fix warnings from test_to_sql testVipul A M2016-04-111-1/+1
|/
* added Casted#hashBert Bruynooghe2016-02-171-0/+16
|
* * Support for bitwise operations as infix operators. Tests included.Shahbaz Javeed2016-01-062-0/+76
| | | | | | | | | | | | | | | | | | | | | | *** 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-053-2/+27
|
* Implement CASE Conditional ExpressionFelix Bünemann2016-01-053-0/+154
|
* Delegate to Connection Visitor in WhereSQL VisitorEdward Paget2015-12-171-0/+21
| | | | | | | | | | | | 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 #329 from vipulnsward/add-attribute-aggregate-testsRafael França2015-12-171-1/+10
|\ | | | | Added test for verifying proper sql generated by minimum aggregate method
| * - Added test for verifying proper sql generated by minimum aggregate method.Vipul A M2014-10-241-1/+10
| |
* | Merge pull request #369 from codeodor/patch-1Rafael França2015-12-171-3/+3
|\ \ | | | | | | Improve error message when passed unsupported type
| * | Use a specific exception for unsupported visitsSammy Larbi2015-07-141-3/+3
| | |
* | | Merge pull request #381 from carsonreinke/function_orderRafael França2015-12-171-0/+9
|\ \ \ | | | | | | | | Add OrderPredications back into Nodes::Function
| * | | Add OrderPredications back into Nodes::Function (removed with deprecation of ↵Carson Reinke2015-07-231-0/+9
| |/ / | | | | | | | | | Expression)
* | | Merge pull request #390 from yahonda/expr_oracle12Rafael França2015-12-171-2/+2
|\ \ \ | | | | | | | | No need to quote limit for Oracle12 visitor
| * | | No need to quote limit for Oracle12 visitorYasuo Honda2015-09-011-2/+2
| |/ /
* | | test match predicate case sensitivity attributeKeenan Brock2015-12-051-0/+6
| | |
* | | introduce predicate {does_not_}matches_regexp Keenan Brock2015-12-051-6/+13
| | |
* | | use valid regular expression in regexp testKeenan Brock2015-12-051-12/+12
| | |
* | | Add case sensitive regexpKeenan Brock2015-12-051-0/+14
| | | | | | | | | | | | | | | | | | | | | Explicitly declare if this is case sensitive or not currently postgres assumes case insensitive regexp no other databases support regexps
* | | Add case sensitive matchKeenan Brock2015-12-051-0/+14
|/ / | | | | | | | | | | | | Explicitly declare if this is case sensitive or not most implementation assume case sensitive postgres assumes case insensitive
* | Merge pull request #337 from yahonda/support_oracle12_top_n_2Aaron Patterson2015-07-141-0/+47
|\ \ | | | | | | Support Oracle 12c top-N query
| * | Create Arel::Visitors::Oracle12 to provide better top-N queryYasuo Honda2015-06-191-0/+47
| | | | | | | | | | | | to support `FETCH FIRST n ROWS` and `OFFSET` for Oracle 12c database
* | | Merge pull request #361 from evgenim/masterAaron Patterson2015-07-141-0/+30
|\ \ \ | | | | | | | | Fix visit_Arel_Nodes_FullOuterJoin/RightOuterJoin
| * | | Fix visit_Arel_Nodes_FullOuterJoin and visit_Arel_Nodes_RightOuterJoin to ↵evgenim2015-03-161-0/+30
| | | | | | | | | | | | | | | | make them work with collectors.
* | | | Follow up #370 for Oracle, to fix undefined method `expr' for 10:Fixnum bug.Eric Guo2015-07-141-2/+2
| |/ / |/| |
* | | Fix a typo in the sql literal spec for grouped "and" equalityCourtland Caldwell2015-03-231-1/+1
|/ /
* | Special limited delete handling in MSSQLTamir Duberstein2015-02-231-0/+9
| | | | | | | | | | Refernce: https://technet.microsoft.com/en-us/library/ms175486%28v=sql.105%29.aspx
* | Delete should respect 'limit'Bradford Folkens2015-02-231-0/+8
| | | | | | | | | | Conflicts: lib/arel/visitors/to_sql.rb