Skip to content

Commit 9030cfe

Browse files
Leave executionParams nil if no args
1 parent deba71c commit 9030cfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/connection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ type Connection struct {
5353

5454
// buildExecutionParams converts Go data types into strings for query arguments in parameterized queries.
5555
func (c *Connection) buildExecutionParams(args []driver.Value) ([]*string, error) {
56-
executionParams := []*string{}
56+
var executionParams []*string
5757
for _, arg := range args {
5858
if arg == nil {
5959
val := "NULL"

0 commit comments

Comments
 (0)