mirror of
https://github.com/ent/ent.git
synced 2026-05-01 07:00:57 +03:00
dialect/sql/sqljson: add dialect-aware Append function
This commit is contained in:
committed by
Ariel Mashraki
parent
5330f87759
commit
eb4ea68356
@@ -1670,7 +1670,7 @@ func TestSelector_SelectExpr(t *testing.T) {
|
||||
AppendSelectExpr(
|
||||
Expr("age + $1", 1),
|
||||
ExprFunc(func(b *Builder) {
|
||||
b.Nested(func(b *Builder) {
|
||||
b.Wrap(func(b *Builder) {
|
||||
b.WriteString("similarity(").Ident("name").Comma().Arg("A").WriteByte(')')
|
||||
b.WriteOp(OpAdd)
|
||||
b.WriteString("similarity(").Ident("desc").Comma().Arg("D").WriteByte(')')
|
||||
|
||||
Reference in New Issue
Block a user