| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
closes #461
|
| |
|
|\
| |
| | |
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 contains no information, treating it like a string
adds no useful information to the graph, and results in an invalid
label format.
|
| |
|
|
|
|
| |
There is no @class variable.
|
| |
|
|\
| |
| | |
Fix issue #415 - Should Arel::Nodes::True.new() be 1 in sqlite3?
|
| | |
|
|\ \
| | |
| | | |
DRY up visit_Arel_Nodes_SelectCore
|
| | |
| | |
| | |
| | | |
collect_nodes_for, for collecting wheres, projections, groups, windows
|
| | |
| | |
| | |
| | | |
[ci skip]
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Ruby 2.4 unifies Fixnum and Bignum into Integer: https://bugs.ruby-lang.org/issues/12005
Ruby ~2.3 `1234.class` is `Fixnum` and `123456789012345678901234567890.class`
is `Bignum`.
Ruby 2.4+ `1234.class` is `Integer` and `123456789012345678901234567890.class`
is `Integer`.
So what we should do is defining `visit_Integer` method to visitors.
|
|\ \ \
| | | |
| | | | |
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.
|
|/ /
| |
| | |
Update to_sql.rb. Slightly performance improvement.
|
|/
|
| |
Update to_sql.rb. Slightly performance improment.
|
| |
|
|
|
|
|
| |
These codes were introduced by 03724fb1789198cc394f6e8b69cf9404e03eddd7,
and to be not used by 79411322ae225289e1c051f4f68ed84c6349e4a0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
*** 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`
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This is ultimately messy no matter what, and increases the coupling to the
database backend, but we can at least contain it somewhat into an object
that's already coupled.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 '.
|
|\
| |
| | |
Improve error message when passed unsupported type
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Add OrderPredications back into Nodes::Function
|
| |/
| |
| |
| | |
Expression)
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | | |
|