Skip to content

Commit

Permalink
feat: Add ARRAY support (#19)
Browse files Browse the repository at this point in the history
* feat: support more options in dsn

* test: add tests with mock server

* refactor: transactions

* feat: add comments parser

* feat: parse parameters correctly

* feat: support null params

* test: add more tests

* docs: add comments

* build: fix integration tests + add GitHub actions

* build: copy testutil to sql-driver and update Spanner version

* chore: update copyright year

* feat: add ARRAY support

* fix: address review comments

* docs: add comment on why we are assigning Null* value
  • Loading branch information
olavloite committed Aug 2, 2021
1 parent 0528e13 commit 6b1556a
Show file tree
Hide file tree
Showing 8 changed files with 722 additions and 89 deletions.
2 changes: 1 addition & 1 deletion driver.go
Expand Up @@ -233,7 +233,7 @@ func (c *conn) Prepare(query string) (driver.Stmt, error) {
return c.PrepareContext(context.Background(), query)
}

func (c *conn) PrepareContext(_ context.Context, query string) (driver.Stmt, error) {
func (c *conn) PrepareContext(ctx context.Context, query string) (driver.Stmt, error) {
args, err := internal.ParseNamedParameters(query)
if err != nil {
return nil, err
Expand Down

0 comments on commit 6b1556a

Please sign in to comment.