]> Cypherpunks repositories - gostls13.git/commit
database/sql: fix unreachable code in ColumnTypes test
authorJulien Schmidt <google@julienschmidt.com>
Wed, 4 Oct 2017 15:26:14 +0000 (17:26 +0200)
committerDaniel Theophanes <kardianos@gmail.com>
Wed, 4 Oct 2017 16:30:44 +0000 (16:30 +0000)
commit678ce976357ef6a60a603d0b0f9d661f8db353c2
tree2ff0fd98f04e56a215500241b6cc3f9bbd528fbc
parentc80338accb7282295f8c607a9b47cf25904fbb19
database/sql: fix unreachable code in ColumnTypes test

Before this change the ct == 0 check could never be true. Moreover the
values were not properly indirected.

Change-Id: Ice47e36e3492babc4b47d2f9099e8772be231c96
Reviewed-on: https://go-review.googlesource.com/68130
Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
Run-TryBot: Daniel Theophanes <kardianos@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/database/sql/sql_test.go