mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-10 09:50:25 +08:00
feat: sql解析器替换、工单统一由‘我的流程’发起、流程定义支持自定义条件触发审批、资源隐藏编号、model支持物理删除等
This commit is contained in:
15
server/internal/db/dbm/sqlparser/sqlstmt/quote_char_test.go
Normal file
15
server/internal/db/dbm/sqlparser/sqlstmt/quote_char_test.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package sqlstmt
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestQuoteCharUnwrap(t *testing.T) {
|
||||
value := "`hehehe`"
|
||||
qc := GetQuoteChar(value)
|
||||
if qc != BACK_QUOTE {
|
||||
t.Fatal("quote char should be BACK_QUOTE")
|
||||
}
|
||||
oriValue := qc.Unwrap(value)
|
||||
t.Log(oriValue)
|
||||
}
|
||||
Reference in New Issue
Block a user