| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|\
| |
| | |
named functions compared to nil
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
remove union mapping as :binary node when performing DepthFirst enumeration
|
| | |
|
|\ \
| | |
| | | |
Add Arel::Nodes::Casted to dot visitor
|
| |/
| |
| |
| |
| |
| |
| | |
Adds casted node to the dot visitor with outgoing edges to val and
attribute.
Fixes #419
|
|\ \
| | |
| | | |
Freeze all the strings in visitors
|
| | | |
|
| | | |
|
|/ /
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| | |
Fix issue #415 - Should Arel::Nodes::True.new() be 1 in sqlite3?
|
| | |
|
|\ \
| | |
| | | |
Support Oracle bind parameter value for Oracle12 visitor
|
| |/ |
|
|\ \
| | |
| | | |
PG: Add Support for GroupBy's Cube, Rollup and Grouping Set
|
| | |
| | |
| | |
| | | |
Visitor
|
|/ /
| |
| |
| |
| |
| |
| | |
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.
|
|/ |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
*** 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`
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 '.
|
|\
| |
| | |
Added test for verifying proper sql generated by minimum aggregate method
|
| | |
|
|\ \
| | |
| | | |
Improve error message when passed unsupported type
|
| | | |
|
|\ \ \
| | | |
| | | | |
Add OrderPredications back into Nodes::Function
|
| |/ /
| | |
| | |
| | | |
Expression)
|
|\ \ \
| | | |
| | | | |
No need to quote limit for Oracle12 visitor
|
| |/ / |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Explicitly declare if this is case sensitive or not
currently postgres assumes case insensitive regexp
no other databases support regexps
|
|/ /
| |
| |
| |
| |
| |
| | |
Explicitly declare if this is case sensitive or not
most implementation assume case sensitive
postgres assumes case insensitive
|
|\ \
| | |
| | | |
Support Oracle 12c top-N query
|
| | |
| | |
| | |
| | | |
to support `FETCH FIRST n ROWS` and `OFFSET` for Oracle 12c database
|
|\ \ \
| | | |
| | | | |
Fix visit_Arel_Nodes_FullOuterJoin/RightOuterJoin
|
| | | |
| | | |
| | | |
| | | | |
make them work with collectors.
|
| |/ /
|/| | |
|