File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -314,12 +314,6 @@ func (table *table) initColumnData() error {
314314 return err
315315 }
316316
317- info := make ([]sql.NullString , len (cols ))
318- scans := make ([]interface {}, len (cols ))
319- for i := range info {
320- scans [i ] = & info [i ]
321- }
322-
323317 fieldIndex , extraIndex := - 1 , - 1
324318 for i , col := range cols {
325319 switch col {
@@ -336,6 +330,12 @@ func (table *table) initColumnData() error {
336330 return errors .New ("database column information is malformed" )
337331 }
338332
333+ info := make ([]sql.NullString , len (cols ))
334+ scans := make ([]interface {}, len (cols ))
335+ for i := range info {
336+ scans [i ] = & info [i ]
337+ }
338+
339339 var result []string
340340 for colInfo .Next () {
341341 // Read into the pointers to the info marker
You can’t perform that action at this time.
0 commit comments