Skip to content

Commit 5096989

Browse files
author
Michal Pisanko
committed
start transaction the beta6 way; resolves #72
1 parent 1e92214 commit 5096989

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/clj/xt_play/transactions.clj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,14 @@
6363
(let [dmls? (dml? (first grp))]
6464
(concat
6565
(when (and dmls? system-time)
66-
[[(format "BEGIN AT SYSTEM_TIME TIMESTAMP '%s'" system-time)]])
66+
[[(format "BEGIN READ WRITE WITH (SYSTEM_TIME = TIMESTAMP '%s')" system-time)]])
6767
(vec
6868
(keep (fn [q] (when-not (empty? q)
6969
[(str/trim q)]))
7070
grp))
7171
(when (and dmls? system-time)
7272
[["COMMIT"]]))))
73-
by-type)
74-
)))))
73+
by-type))))))
7574

7675
(defn format-system-time [s]
7776
(when s (read-instant-date s)))

0 commit comments

Comments
 (0)