feat: entgo.

This commit is contained in:
Bobo
2025-02-08 00:00:50 +08:00
parent 23dcad60a3
commit d549d305ae
2 changed files with 2 additions and 2 deletions

View File

@@ -588,7 +588,7 @@ func filterJsonbField(s *sql.Selector, jsonbField, field string) string {
p := sql.P()
switch s.Builder.Dialect() {
case dialect.Postgres:
p.Ident(s.C(field)).WriteString(" -> ").WriteString(jsonbField)
p.Ident(s.C(field)).WriteString(" ->> ").WriteString("'" + jsonbField + "'")
//b.Arg(strings.ToLower(value))
break

View File

@@ -3,7 +3,7 @@ git tag v1.1.13
git tag bank_card/v1.1.3
git tag geoip/v1.1.3
git tag entgo/v1.1.18
git tag entgo/v1.1.19
git tag gorm/v1.1.3
git push origin --tags