Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

Commit

Permalink
Fix go report card warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
F21 committed Jun 18, 2017
1 parent 27b9cd3 commit 5950454
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compat_go18.go
Expand Up @@ -14,7 +14,7 @@ func driverNamedValueToNamedValue(values []driver.NamedValue) ([]namedValue, err
list[i] = namedValue(nv)

if nv.Name != "" {
return list, fmt.Errorf("named paramters are not supported: %s given", nv.Name)
return list, fmt.Errorf("named parameters are not supported: %s given", nv.Name)
}
}

Expand Down
4 changes: 4 additions & 0 deletions driver_test.go
Expand Up @@ -683,6 +683,10 @@ func TestPreparedStatements(t *testing.T) {

queryStmt, err := dbt.db.Prepare(`SELECT * FROM ` + dbt.tableName + ` WHERE int = ?`)

if err != nil{
dbt.Fatal(err)
}

var res int

for i := 1; i <= totalRows; i++ {
Expand Down
2 changes: 1 addition & 1 deletion dsn.go
Expand Up @@ -11,7 +11,7 @@ import (
type authentication int

const (
none authentication = iota
none authentication = iota
basic
digest
)
Expand Down
6 changes: 5 additions & 1 deletion errors.go
@@ -1,9 +1,10 @@
package avatica

import (
"github.com/Boostport/avatica/message"
"regexp"
"strconv"

"github.com/Boostport/avatica/message"
)

// Error severity codes
Expand All @@ -19,7 +20,10 @@ type RPCMetadata struct {
ServerAddress string
}

// ErrorCode represents the error code returned by the avatica server
type ErrorCode uint32

// SQLState represents the SQL code returned by the avatica server
type SQLState string

// ResponseError is an error type that contains detailed information on
Expand Down

0 comments on commit 5950454

Please sign in to comment.