mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-23 21:59:01 -05:00
fix nil panic in infer schema
This commit is contained in:
+5
-2
@@ -82,9 +82,12 @@ OUTER:
|
||||
}
|
||||
|
||||
// always process last row
|
||||
if err := i.processRow(prev); err != nil {
|
||||
return nil, err
|
||||
if prev != nil {
|
||||
if err := i.processRow(prev); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
return i.inferColumnTypes()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user