mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 00:55:55 +00:00
support null results
This commit is contained in:
parent
1e5f0ecc5d
commit
ceb72fc3a9
2 changed files with 7 additions and 0 deletions
|
|
@ -414,6 +414,10 @@ func pgWriteResult(w pg.QueryResultWriter, result interface{}) error {
|
|||
}
|
||||
|
||||
return nil
|
||||
|
||||
case nil:
|
||||
return nil
|
||||
|
||||
default:
|
||||
return errors.Errorf("result type %T not yet supported", result)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -127,6 +127,9 @@ func (s *SelectHandler) execMappingResult(ctx context.Context, mr *MappingResult
|
|||
},
|
||||
},
|
||||
}
|
||||
case nil:
|
||||
result = pproto.ConstRowser{}
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("unsupported result type %T", res)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue