From 0f95329c5a0f54ac0b0d5cead78c48621eac90b1 Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 20 Apr 2019 12:02:02 -0500 Subject: [PATCH] Remove commented out unused one round trip mode --- query.go | 51 --------------------------------------------------- 1 file changed, 51 deletions(-) diff --git a/query.go b/query.go index 71013f40..5f4c9420 100644 --- a/query.go +++ b/query.go @@ -309,57 +309,6 @@ optionLoop: args: args, } - // err = c.initContext(ctx) - // if err != nil { - // rows.fatal(err) - // return rows, rows.err - // } - - // if options != nil && len(options.ParameterOIDs) > 0 { - - // buf, err := c.buildOneRoundTripQueryEx(c.wbuf, sql, options, args) - // if err != nil { - // rows.fatal(err) - // return rows, err - // } - - // buf = appendSync(buf) - - // n, err := c.pgConn.Conn().Write(buf) - // c.lastStmtSent = true - // if err != nil && fatalWriteErr(n, err) { - // rows.fatal(err) - // c.die(err) - // return rows, err - // } - // c.pendingReadyForQueryCount++ - - // fieldDescriptions, err := c.readUntilRowDescription() - // if err != nil { - // rows.fatal(err) - // return rows, err - // } - - // if len(options.ResultFormatCodes) == 0 { - // for i := range fieldDescriptions { - // fieldDescriptions[i].FormatCode = TextFormatCode - // } - // } else if len(options.ResultFormatCodes) == 1 { - // fc := options.ResultFormatCodes[0] - // for i := range fieldDescriptions { - // fieldDescriptions[i].FormatCode = fc - // } - // } else { - // for i := range options.ResultFormatCodes { - // fieldDescriptions[i].FormatCode = options.ResultFormatCodes[i] - // } - // } - - // rows.sql = sql - // rows.fields = fieldDescriptions - // return rows, nil - // } - ps, ok := c.preparedStatements[sql] if !ok { psd, err := c.pgConn.Prepare(ctx, "", sql, nil)