mirror of
https://github.com/ent/ent.git
synced 2026-05-22 09:31:45 +03:00
dialect/sql: override RETURNING clause on postgres
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/192 Reviewed By: dlvhdr Differential Revision: D18685852 fbshipit-source-id: 90ddd1057a7d6cfa00470a7b11fb237862edcc2b
This commit is contained in:
committed by
Facebook Github Bot
parent
038dc2899a
commit
d2fb1b5548
@@ -539,7 +539,7 @@ func (i *InsertBuilder) Default() *InsertBuilder {
|
||||
|
||||
// Returning adds the `RETURNING` clause to the insert statement. PostgreSQL only.
|
||||
func (i *InsertBuilder) Returning(columns ...string) *InsertBuilder {
|
||||
i.returning = append(i.returning, columns...)
|
||||
i.returning = columns
|
||||
return i
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user