aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* PostgreSQL lateral expressionsVille Lautanala2017-04-255-0/+39
| | | | | | | | | | | | | Support for PostgreSQL lateral expressions. This is treated as an unary function applied to a query expression. Lateral is a separate function to provide interoperability with aliases and unions. These are also separate node types that wrap SelectStatements. The lateral option would need to be implemented in these nodes separately if lateral was an option of SelectStatement. When building the query, an alias can be given as an argument. This enables building a lateral query with an table alias without using either Nodes::TableAlias or Nodes::Lateral directly.
* Fix link to SQL-92 grammarVille Lautanala2017-04-251-1/+1
|
* Merge pull request #475 from PedroSena/chainable-insertRafael França2017-02-282-0/+8
|\ | | | | Made InsertManager#insert chainable
| * Made InsertManager#insert chainablePedro Sena2017-02-282-0/+8
|/
* Merge pull request #474 from JaKXz/patch-1Rafael França2017-02-221-1/+8
|\ | | | | docs: add distinct example to README
| * docs(distinct): tweaks [skip ci]Jason Kurian2017-02-221-1/+1
| |
| * docs(distinct): fix distinct example [skip ci]Jason Kurian2017-02-221-2/+2
| |
| * docs: add distinct to READMEJason Kurian2017-02-221-1/+8
|/
* Prepare to 8.0.0Rafael Mendonça França2017-02-212-1/+4
|
* Merge pull request #470 from kmmndr/named_function_eq_nilRafael França2017-02-211-0/+6
|\ | | | | named functions compared to nil
| * named functions compared to nilThomas Kienlen2017-02-021-0/+6
| |
* | Merge pull request #471 from rails/frozen-string-literalRafael França2017-02-14132-1/+138
|\ \ | |/ |/| Enable frozen_string_literal in all files in arel
| * Enable frozen_string_literal in all files in arelRafael Mendonça França2017-02-13132-1/+138
|/
* Merge pull request #468 from zhufenggood/masterRafael França2017-01-301-4/+4
|\ | | | | Update to_sql.rb. Little performance improvement.
| * Performance improvement.zhufenggood2017-01-271-4/+4
|/
* Merge pull request #467 from composerinteralia/custom-errorsRafael França2017-01-176-2/+27
|\ | | | | Raise custom error on empty join
| * Raise custom error on empty joinDaniel Colson2017-01-176-2/+27
|/
* Merge pull request #463 from yahonda/use_assert_nilKasper Timm Hansen2016-12-301-2/+2
|\ | | | | Address `Use assert_nil if expecting nil` warnings
| * Address `Use assert_nil if expecting nil` warningsYasuo Honda2016-12-301-2/+2
|/
* Remove dead code now that attr is not used anymoreRafael Mendonça França2016-12-291-1/+1
|
* Merge pull request #462 from rails/arel-without-deprecationRafael França2016-12-299-157/+23
|\ | | | | Remove deprecated type cast support from Arel
| * Test with Ruby 2.4Rafael Mendonça França2016-12-291-0/+1
| |
| * Fix identationRafael Mendonça França2016-12-291-7/+7
| |
| * 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-296-137/+14
| |
| * 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
* Merge pull request #459 from danielpclark/patch-1Rafael França2016-12-191-1/+1
|\ | | | | missing asterisk
| * missing asteriskDaniel P. Clark2016-12-191-1/+1
|/
* Merge pull request #458 from mcls/patch-1Rafael França2016-12-011-0/+1
|\ | | | | Link to the API docs
| * Link to the API docsMaarten Claes2016-12-011-0/+1
|/
* Merge pull request #451 from kbrock/ignore_rbxMatthew Draper2016-10-151-0/+1
|\ | | | | Fix Build: Allow failures from rubinius
| * Allow failures from rubiniusKeenan Brock2016-10-141-0/+1
|/ | | | | | | | | | | | Per https://github.com/travis-ci/travis-ci/issues/5294 It looks like rvm is having trouble installing rubinius ``` rvm use rbx-2 --install --binary --fuzzy ``` I think this is the culpret for all builds failing since September
* Merge pull request #446 from abonec/deprecated_table_existsRafael França2016-10-102-2/+2
|\ | | | | use #data_source_exists? if possible instead of deprecated #table_exi…
| * use #data_source_exists? instead of deprecated #table_exists?Alexander Baronec2016-10-082-2/+2
|/
* Merge pull request #443 from mgbatchelor/masterRafael França2016-10-072-1/+12
|\ | | | | remove union mapping as :binary node when performing DepthFirst enumeration
| * remove union mapping as :binary node when performing DepthFirst enumerationMichael Batchelor2016-08-192-1/+12
| |
* | Merge pull request #445 from oliverguenther/fix/dot-visitor-casted-nodeRafael França2016-10-072-0/+6
|\ \ | | | | | | Add Arel::Nodes::Casted to dot visitor
| * | Add Arel::Nodes::Casted to dot visitorOliver Günther2016-08-272-0/+6
| |/ | | | | | | | | | | | | 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-0713-3/+15
|\ \ | | | | | | Freeze all the strings in visitors
| * | Drop unneeded assignmentojab2016-08-311-1/+1
| | |
| * | Freeze all the strings in visitorsojab2016-08-3112-2/+14
| | |
* | | Merge pull request #450 from roooodcastro/issue-438Rafael França2016-10-072-3/+28
|\ \ \ | | | | | | | | Use Arel::Nodes::BindParam in Oracle visitor for queries using both LIMIT and OFFSET
| * | | Fix issue #438 when oracle visitor gets BindParamsRodrigo Castro2016-10-072-3/+28
|/ / /
* / / Don't store all aliases to a tableSean Griffin2016-09-132-14/+3
|/ / | | | | | | | | | | | | 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.
* | Merge pull request #444 from alassek/dot-visitor-bind-paramAaron Patterson2016-08-262-1/+8
|\ \ | |/ |/| Fix invalid BindParam output in Dot visitor
| * 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.
| * 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.
* Release 7.1.1Rafael Mendonça França2016-07-272-1/+7
|
* Fix Casted#hashMatthew Draper2016-07-281-1/+1
| | | | There is no @class variable.