Skip to content

Commit ddd0e53

Browse files
committed
Removed void type
Signed-off-by: nithinkdb <nithin.krishnamurthi@databricks.com>
1 parent db3f0f1 commit ddd0e53

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

parameters.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ type DbSqlParam struct {
1818
type SqlType int64
1919

2020
const (
21-
Void SqlType = iota
22-
String
21+
String SqlType = iota
2322
Date
2423
Timestamp
2524
Float
@@ -84,8 +83,6 @@ func inferTypes(params []DbSqlParam) {
8483
for i := range params {
8584
param := &params[i]
8685
switch value := param.Value.(type) {
87-
case nil:
88-
param.Type = Void
8986
case bool:
9087
param.Value = strconv.FormatBool(value)
9188
param.Type = Boolean

0 commit comments

Comments
 (0)