File tree 1 file changed +29
-1
lines changed
1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,35 @@ def visit_Arel_Nodes_UpdateStatement(o, collector)
33
33
if o . orders . any? && o . limit . nil?
34
34
o . limit = Nodes ::Limit . new ( 9_223_372_036_854_775_807 )
35
35
end
36
- super
36
+
37
+
38
+
39
+ collector . retryable = false
40
+ # o = prepare_update_statement(o)
41
+
42
+ collector << "UPDATE "
43
+
44
+
45
+ visit o . relation . left , collector
46
+
47
+ collect_nodes_for o . values , collector , " SET "
48
+
49
+ collector << " FROM "
50
+ visit o . relation . left , collector
51
+
52
+ collector << " "
53
+ collector = visit o . relation . right , collector
54
+
55
+ collect_nodes_for o . wheres , collector , " WHERE " , " AND "
56
+ collect_nodes_for o . orders , collector , " ORDER BY "
57
+ maybe_visit o . limit , collector
58
+
59
+
60
+ #
61
+
62
+
63
+
64
+ # super
37
65
end
38
66
39
67
def visit_Arel_Nodes_Lock ( o , collector )
You can’t perform that action at this time.
0 commit comments