Skip to content

Commit a2ee952

Browse files
committed
Support infix exprs and intervals
1 parent a2afa36 commit a2ee952

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.tool-versions

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
ruby jruby-9.2.11.1
1+
ruby jruby-9.2.19.0
2+
java openjdk-17.0.1

spec/java/unit/select_spec.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,13 @@
102102
end
103103

104104
it "works with DISTINCT queries" do
105-
expect(convert("SELECT DISTINCT id FROM phrases")).to eq(
105+
expect(convert("SELECT DISTINCT id FROM phrases", use_rails_version: "3.2.0")).to eq(
106106
"Phrase.select(:id).uniq"
107107
)
108+
109+
expect(convert("SELECT DISTINCT id FROM phrases", use_rails_version: "4.0.0")).to eq(
110+
"Phrase.select(:id).distinct"
111+
)
108112
end
109113

110114
it "doesn't use the Arel::Nodes namespace when option is given" do

vendor/jars/Scuttle.jar

21.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)