From 2a3f0afa6e5f3976b0df1d54ca58de4e5264b1d0 Mon Sep 17 00:00:00 2001 From: what Date: Tue, 2 Jun 2026 15:57:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20DuckDB=20REGEXP=5FMATCHES=20=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E5=90=8D=E6=94=B9=E4=B8=BA=E5=A4=A7=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dialect/duckdb/duckdb.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dialect/duckdb/duckdb.go b/dialect/duckdb/duckdb.go index fa7d7bf..fafa09c 100644 --- a/dialect/duckdb/duckdb.go +++ b/dialect/duckdb/duckdb.go @@ -33,8 +33,8 @@ func DialectOptions() *db.SQLDialectOptions { // regexp_matches(col, pattern) 做部分匹配,等价于 MySQL REGEXP do.BooleanFunctionLookup = map[exp.BooleanOperation][]byte{ - exp.RegexpLikeOp: []byte("regexp_matches"), - exp.RegexpILikeOp: []byte("regexp_matches"), + exp.RegexpLikeOp: []byte("REGEXP_MATCHES"), + exp.RegexpILikeOp: []byte("REGEXP_MATCHES"), } return do