Skip to content

Commit 2feffb2

Browse files
committed
fix substring
1 parent 260e691 commit 2feffb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/metabase/driver/databend.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,10 @@
327327
[driver [_ arg start length]]
328328
(let [str [:'toString (sql.qp/->honeysql driver arg)]]
329329
(if length
330-
[:'substring str
330+
[:'substr str
331331
(sql.qp/->honeysql driver start)
332332
(sql.qp/->honeysql driver length)]
333-
[:'substring str
333+
[:'substr str
334334
(sql.qp/->honeysql driver start)])))
335335

336336
;; metabase.query-processor-test.count-where-test

0 commit comments

Comments
 (0)