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 {
314
314
return err
315
315
}
316
316
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
-
323
317
fieldIndex , extraIndex := - 1 , - 1
324
318
for i , col := range cols {
325
319
switch col {
@@ -336,6 +330,12 @@ func (table *table) initColumnData() error {
336
330
return errors .New ("database column information is malformed" )
337
331
}
338
332
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
+
339
339
var result []string
340
340
for colInfo .Next () {
341
341
// Read into the pointers to the info marker
You can’t perform that action at this time.
0 commit comments