Skip to content

Commit

Permalink
fix: receiver names of dialector are different (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
x1nchen committed Dec 24, 2022
1 parent 6629ecf commit 4343642
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions postgres.go
Expand Up @@ -221,12 +221,12 @@ func (dialector Dialector) getSchemaCustomType(field *schema.Field) string {
return sqlType
}

func (dialectopr Dialector) SavePoint(tx *gorm.DB, name string) error {
func (dialector Dialector) SavePoint(tx *gorm.DB, name string) error {
tx.Exec("SAVEPOINT " + name)
return nil
}

func (dialectopr Dialector) RollbackTo(tx *gorm.DB, name string) error {
func (dialector Dialector) RollbackTo(tx *gorm.DB, name string) error {
tx.Exec("ROLLBACK TO SAVEPOINT " + name)
return nil
}
Expand Down

0 comments on commit 4343642

Please sign in to comment.