diff --git a/internal/postgres/custom.go b/internal/postgres/custom.go index e7e9245..919184f 100644 --- a/internal/postgres/custom.go +++ b/internal/postgres/custom.go @@ -16,7 +16,7 @@ func ExecuteRawStatement(ctx context.Context, db *gorm.DB, query string, args .. return nil, errors.New("arguments can not be nil") } - result, err := db.WithContext(ctx).Raw(query, args...).Rows() + result, err := db.WithContext(ctx).Exec(query, args...).Rows() if err != nil { return nil, err }