Skip to content

Commit

Permalink
Adjust to current package
Browse files Browse the repository at this point in the history
  • Loading branch information
jsha committed Mar 27, 2024
1 parent 980e50d commit bfdc9c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions dialect_postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.

package gorp
package borp

import (
"context"
"fmt"
"reflect"
"strings"
Expand Down Expand Up @@ -103,7 +104,7 @@ func (d PostgresDialect) BindVar(i int) string {
}

func (d PostgresDialect) InsertAutoIncrToTarget(exec SqlExecutor, insertSql string, target interface{}, params ...interface{}) error {
rows, err := exec.Query(insertSql, params...)
rows, err := exec.QueryContext(context.TODO(), insertSql, params...)
if err != nil {
return err
}
Expand Down
5 changes: 3 additions & 2 deletions dialect_postgres_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.

//go:build !integration
// +build !integration

package gorp_test
package borp_test

import (
"database/sql"
"reflect"
"testing"
"time"

"github.com/go-gorp/gorp/v3"
"github.com/letsencrypt/borp"
"github.com/poy/onpar"
"github.com/poy/onpar/expect"
"github.com/poy/onpar/matchers"
Expand Down

0 comments on commit bfdc9c3

Please sign in to comment.