We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03d18e9 commit a376afeCopy full SHA for a376afe
src/tarantool/bank.clj
@@ -114,13 +114,11 @@
114
115
:transfer
116
(let [{:keys [from to amount]} (:value op)
117
- from (str table-name from)
118
- to (str table-name to)
119
- con (cl/open (first (db/primaries test)) test)
120
- from_uppercase (clojure.string/upper-case from)
121
- to_uppercase (clojure.string/upper-case to)
+ table_from (str (clojure.string/upper-case table-name) from)
+ table_to (str (clojure.string/upper-case table-name) to)
+ con (cl/open (first (db/primaries test)) test)
122
r (-> con
123
- (sql/query [(str "SELECT _WITHDRAW_MULTITABLE('" from_uppercase "','" to_uppercase "'," amount ")")])
+ (sql/query [(str "SELECT _WITHDRAW_MULTITABLE('" table_from "','" table_to "'," amount ")")])
124
first
125
:COLUMN_1)]
126
(if (false? r)
0 commit comments