| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
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.
|
| |/ /
|/| | |
|
|/ / |
|
| |
| |
| |
| |
| | |
Refernce:
https://technet.microsoft.com/en-us/library/ms175486%28v=sql.105%29.aspx
|
| |
| |
| |
| |
| | |
Conflicts:
lib/arel/visitors/to_sql.rb
|
| |
| |
| |
| |
| |
| | |
These two clauses have nearly identical semantics with regards to how
they would be constructed as an AST. It doesn't make sense for their
interfaces to be separate.
|
| |
| |
| |
| |
| | |
It is impossible to test equality of things constructing trees with bind
params otherwise.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This will allow most consuming code to avoid the deprecation introduced
in 008445d6fd5f825d9b445ac75a7be67f0f7ab52c. The only code which will be
affected is code that is building the `Arel::Table` object manually,
rather than calling `arel_table` on an Active Record class. Hopefully
this case will be rare enough that we don't need to introduce any
additional APIs to work around it.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Rails now performs all casting eagerly, before passing the value into
Arel. Once we remove this, the code on both sides will be simplified
greatly. Ideally, we can provide the appropriate public APIs on the
Rails side to ease this transition for library authors who depend on
this behavior.
|
| |
| |
| |
| |
| | |
Since Active Record needs to eagerly cast values, we need to check for
quoted infinity in our range handling
|
| |
| |
| |
| |
| | |
to_SQL already has supported the ESCAPE clause in #318.
PostgreSQL can use the ESCAPE clause too.
|