Skip to content

Commit

Permalink
Merge branch 'master' of github.com:runner-mei/GoBatis
Browse files Browse the repository at this point in the history
  • Loading branch information
hengwei-test committed May 16, 2024
2 parents 112b5c0 + 2ac996a commit a93e964
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,17 @@ An easy ORM tool for Golang, support MyBatis-Like XML template SQL
## 已知 bug

1. 当 sql 中含有 xml 标签时 <code>&lt; </code> 号需要转义为 <code>&amp;lt; </code>,而不含 xml 标签时<code>&amp;lt; </code> 又不转义为 <code>&lt; </code>, 这很不一致。
最近我改进了一个像 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 的区别
Expand Down
9 changes: 4 additions & 5 deletions core/xml_expression_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a93e964

Please sign in to comment.