From b493ca653f8fc256feb17f45fe82e8f796c7118b Mon Sep 17 00:00:00 2001 From: meifakun Date: Wed, 15 May 2024 18:15:07 +0800 Subject: [PATCH 1/2] test: add some tests --- core/xml_expression_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/xml_expression_test.go b/core/xml_expression_test.go index a962faf..c796abc 100644 --- a/core/xml_expression_test.go +++ b/core/xml_expression_test.go @@ -193,11 +193,10 @@ func TestReplaceAndOr(t *testing.T) { result: "a \"and\" && b", }, - - - - - + { + txt: "Area==8 and isNotEmpty(Name)", + result: "Area==8 && isNotEmpty(Name)", + }, { txt: "c gt b", From 2ac996a4dae1f58cf0c71bcb4d1a00201b7bd936 Mon Sep 17 00:00:00 2001 From: rune Date: Wed, 15 May 2024 18:20:20 +0800 Subject: [PATCH 2/2] Update README.md --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e062305..126784c 100644 --- a/README.md +++ b/README.md @@ -58,8 +58,17 @@ An easy ORM tool for Golang, support MyBatis-Like XML template SQL ## 已知 bug 1. 当 sql 中含有 xml 标签时 < 号需要转义为 &lt; ,而不含 xml 标签时&lt; 又不转义为 < , 这很不一致。 + 最近我改进了一个像 mybatis 一样用 gt, gte,lt 和 lte 代替 >,>=, < 和 <=, 如 -2. 达梦数据库实现 upsert 时无法返回 insert id (达梦数据库的问题)。 + a > 8 写成 a gt 8 + + a >= 8 写成 a gte 8 + + a < 8 写成 a lt 8 + + a <= 8 写成 a lte 8 + +3. 达梦数据库实现 upsert 时无法返回 insert id (达梦数据库的问题)。 ## 和 MyBatis 的区别