Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #470 from kmmndr/named_function_eq_nil | Rafael França | 2017-02-21 | 1 | -0/+6 |
|\ | | | | | named functions compared to nil | ||||
| * | named functions compared to nil | Thomas Kienlen | 2017-02-02 | 1 | -0/+6 |
| | | |||||
* | | Enable frozen_string_literal in all files in arel | Rafael Mendonça França | 2017-02-13 | 58 | -0/+58 |
|/ | |||||
* | Raise custom error on empty join | Daniel Colson | 2017-01-17 | 2 | -0/+16 |
| | |||||
* | Address `Use assert_nil if expecting nil` warnings | Yasuo Honda | 2016-12-30 | 1 | -2/+2 |
| | |||||
* | Fix identation | Rafael Mendonça França | 2016-12-29 | 1 | -7/+7 |
| | |||||
* | Remove deprecated type cast support in Arel | Rafael Mendonça França | 2016-12-29 | 4 | -93/+5 |
| | |||||
* | use #data_source_exists? instead of deprecated #table_exists? | Alexander Baronec | 2016-10-08 | 1 | -1/+1 |
| | |||||
* | Merge pull request #443 from mgbatchelor/master | Rafael França | 2016-10-07 | 1 | -0/+12 |
|\ | | | | | remove union mapping as :binary node when performing DepthFirst enumeration | ||||
| * | remove union mapping as :binary node when performing DepthFirst enumeration | Michael Batchelor | 2016-08-19 | 1 | -0/+12 |
| | | |||||
* | | Merge pull request #445 from oliverguenther/fix/dot-visitor-casted-node | Rafael França | 2016-10-07 | 1 | -0/+1 |
|\ \ | | | | | | | Add Arel::Nodes::Casted to dot visitor | ||||
| * | | Add Arel::Nodes::Casted to dot visitor | Oliver Günther | 2016-08-27 | 1 | -0/+1 |
| |/ | | | | | | | | | | | | | Adds casted node to the dot visitor with outgoing edges to val and attribute. Fixes #419 | ||||
* | | Merge pull request #447 from ojab/master | Rafael França | 2016-10-07 | 1 | -1/+1 |
|\ \ | | | | | | | Freeze all the strings in visitors | ||||
| * | | Drop unneeded assignment | ojab | 2016-08-31 | 1 | -1/+1 |
| | | | |||||
* | | | Fix issue #438 when oracle visitor gets BindParams | Rodrigo Castro | 2016-10-07 | 1 | -1/+15 |
| | | | |||||
* | | | Don't store all aliases to a table | Sean Griffin | 2016-09-13 | 1 | -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 BindParam | Adam Lassek | 2016-08-26 | 1 | -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/master | Rafael França | 2016-07-19 | 1 | -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 Guo | 2016-03-01 | 1 | -0/+7 |
| | | |||||
* | | Merge pull request #422 from yahonda/oracle12_support_bind_value | Sean Griffin | 2016-05-06 | 1 | -2/+13 |
|\ \ | | | | | | | Support Oracle bind parameter value for Oracle12 visitor | ||||
| * | | Support Oracle bind parameter value for Oracle12 visitor | Yasuo Honda | 2016-04-11 | 1 | -2/+13 |
| |/ | |||||
* | | Merge pull request #432 from tradegecko/pg-grouping-elements-support | Rafael França | 2016-05-05 | 1 | -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 Habbab | 2016-05-04 | 1 | -0/+78 |
| | | | | | | | | | | | | Visitor | ||||
* | | | Raise ArgumentError if limit and lock are used for Oracle12 visitor | Yasuo Honda | 2016-05-02 | 1 | -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 test | Vipul A M | 2016-04-11 | 1 | -1/+1 |
|/ | |||||
* | added Casted#hash | Bert Bruynooghe | 2016-02-17 | 1 | -0/+16 |
| | |||||
* | * Support for bitwise operations as infix operators. Tests included. | Shahbaz Javeed | 2016-01-06 | 2 | -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 concatenation | Keenan Brock | 2016-01-05 | 3 | -2/+27 |
| | |||||
* | Implement CASE Conditional Expression | Felix Bünemann | 2016-01-05 | 3 | -0/+154 |
| | |||||
* | Delegate to Connection Visitor in WhereSQL Visitor | Edward Paget | 2015-12-17 | 1 | -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-tests | Rafael França | 2015-12-17 | 1 | -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 M | 2014-10-24 | 1 | -1/+10 |
| | | |||||
* | | Merge pull request #369 from codeodor/patch-1 | Rafael França | 2015-12-17 | 1 | -3/+3 |
|\ \ | | | | | | | Improve error message when passed unsupported type | ||||
| * | | Use a specific exception for unsupported visits | Sammy Larbi | 2015-07-14 | 1 | -3/+3 |
| | | | |||||
* | | | Merge pull request #381 from carsonreinke/function_order | Rafael França | 2015-12-17 | 1 | -0/+9 |
|\ \ \ | | | | | | | | | Add OrderPredications back into Nodes::Function | ||||
| * | | | Add OrderPredications back into Nodes::Function (removed with deprecation of ↵ | Carson Reinke | 2015-07-23 | 1 | -0/+9 |
| |/ / | | | | | | | | | | Expression) | ||||
* | | | Merge pull request #390 from yahonda/expr_oracle12 | Rafael França | 2015-12-17 | 1 | -2/+2 |
|\ \ \ | | | | | | | | | No need to quote limit for Oracle12 visitor | ||||
| * | | | No need to quote limit for Oracle12 visitor | Yasuo Honda | 2015-09-01 | 1 | -2/+2 |
| |/ / | |||||
* | | | test match predicate case sensitivity attribute | Keenan Brock | 2015-12-05 | 1 | -0/+6 |
| | | | |||||
* | | | introduce predicate {does_not_}matches_regexp | Keenan Brock | 2015-12-05 | 1 | -6/+13 |
| | | | |||||
* | | | use valid regular expression in regexp test | Keenan Brock | 2015-12-05 | 1 | -12/+12 |
| | | | |||||
* | | | Add case sensitive regexp | Keenan Brock | 2015-12-05 | 1 | -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 match | Keenan Brock | 2015-12-05 | 1 | -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_2 | Aaron Patterson | 2015-07-14 | 1 | -0/+47 |
|\ \ | | | | | | | Support Oracle 12c top-N query | ||||
| * | | Create Arel::Visitors::Oracle12 to provide better top-N query | Yasuo Honda | 2015-06-19 | 1 | -0/+47 |
| | | | | | | | | | | | | to support `FETCH FIRST n ROWS` and `OFFSET` for Oracle 12c database | ||||
* | | | Merge pull request #361 from evgenim/master | Aaron Patterson | 2015-07-14 | 1 | -0/+30 |
|\ \ \ | | | | | | | | | Fix visit_Arel_Nodes_FullOuterJoin/RightOuterJoin | ||||
| * | | | Fix visit_Arel_Nodes_FullOuterJoin and visit_Arel_Nodes_RightOuterJoin to ↵ | evgenim | 2015-03-16 | 1 | -0/+30 |
| | | | | | | | | | | | | | | | | make them work with collectors. | ||||
* | | | | Follow up #370 for Oracle, to fix undefined method `expr' for 10:Fixnum bug. | Eric Guo | 2015-07-14 | 1 | -2/+2 |
| |/ / |/| | | |||||
* | | | Fix a typo in the sql literal spec for grouped "and" equality | Courtland Caldwell | 2015-03-23 | 1 | -1/+1 |
|/ / | |||||
* | | Special limited delete handling in MSSQL | Tamir Duberstein | 2015-02-23 | 1 | -0/+9 |
| | | | | | | | | | | Refernce: https://technet.microsoft.com/en-us/library/ms175486%28v=sql.105%29.aspx |