Skip to content

Commit 280e61d

Browse files
committed
packets: grammar in err message
1 parent 11d51ab commit 280e61d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packets.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ func (mc *mysqlConn) readColumns(count int) ([]mysqlField, error) {
563563
if i == count {
564564
return columns, nil
565565
}
566-
return nil, fmt.Errorf("columns count mismatch n:%d len:%d", count, len(columns))
566+
return nil, fmt.Errorf("column count mismatch n:%d len:%d", count, len(columns))
567567
}
568568

569569
// Catalog
@@ -809,7 +809,7 @@ func (stmt *mysqlStmt) writeCommandLongData(paramID int, arg []byte) error {
809809
func (stmt *mysqlStmt) writeExecutePacket(args []driver.Value) error {
810810
if len(args) != stmt.paramCount {
811811
return fmt.Errorf(
812-
"arguments count mismatch (got: %d; has: %d)",
812+
"argument count mismatch (got: %d; has: %d)",
813813
len(args),
814814
stmt.paramCount,
815815
)

0 commit comments

Comments
 (0)