From e80012837b406ca45a57dc134ce5494a56e00713 Mon Sep 17 00:00:00 2001 From: Michael Berlin Date: Wed, 9 Dec 2015 20:48:40 -0800 Subject: [PATCH] vitessdriver: Document NumInput() implementation. --- go/vt/vitessdriver/driver.go | 1 + 1 file changed, 1 insertion(+) diff --git a/go/vt/vitessdriver/driver.go b/go/vt/vitessdriver/driver.go index 47bc437292..85a5227740 100644 --- a/go/vt/vitessdriver/driver.go +++ b/go/vt/vitessdriver/driver.go @@ -202,6 +202,7 @@ func (s *stmt) Close() error { } func (s *stmt) NumInput() int { + // -1 = Golang sql won't sanity check argument counts before Exec or Query. return -1 }