Procházet zdrojové kódy

Was using wrong variable to retrieve begin keyword

Nimi Wariboko Jr před 11 roky
rodič
revize
6aad082f87
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      conn.go

+ 1 - 1
conn.go

@@ -361,7 +361,7 @@ func (c *Conn) executeQuery(qry *Query) *Iter {
 		stmtType = strings.ToLower(stmtType[:n])
 		switch stmtType {
 		case "begin":
-			stmtTail := strings.TrimSpace(stmtType[n:])
+			stmtTail := strings.TrimSpace(op.Stmt[n:])
 			if n := strings.IndexFunc(stmtTail, unicode.IsSpace); n >= 0 {
 				stmtType = stmtType + " " + strings.ToLower(stmtTail[:n])
 			}