Skip to content

Commit

Permalink
some windows tests fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sleygin committed Jan 28, 2024
1 parent c9b46fa commit 11a4bfc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"encoding/hex"
"errors"
"fmt"
"log"
"strconv"
"strings"
"time"
Expand Down Expand Up @@ -764,6 +765,7 @@ optionLoop:
sd, err = c.getStatementDescription(ctx, mode, sql)
if err != nil {
rows.fatal(err)
log.Println("fatallllll ", err.Error())
return rows, err
}
}
Expand All @@ -777,6 +779,7 @@ optionLoop:

err = c.eqb.Build(c.typeMap, sd, args)
if err != nil {
log.Println("build failed %w", err.Error())
rows.fatal(err)
return rows, rows.err
}
Expand All @@ -795,6 +798,7 @@ optionLoop:
if !explicitPreparedStatement && mode == QueryExecModeCacheDescribe {
rows.resultReader = c.pgConn.ExecParams(ctx, sql, c.eqb.ParamValues, sd.ParamOIDs, c.eqb.ParamFormats, resultFormats)
} else {
log.Println("prepared ")
rows.resultReader = c.pgConn.ExecPrepared(ctx, sd.Name, c.eqb.ParamValues, c.eqb.ParamFormats, resultFormats)
}
} else if mode == QueryExecModeExec {
Expand Down

0 comments on commit 11a4bfc

Please sign in to comment.