error on Rows(field=<int>)

This commit is contained in:
Travis 2020-08-11 18:07:03 -05:00
parent 96c2364c1b
commit eae038a07e
No known key found for this signature in database
GPG key ID: 37080CC2042BA34E

View file

@ -2597,8 +2597,11 @@ func (e *executor) executeRowsShard(ctx context.Context, tx Tx, index string, fi
// in order to represent `Rows` for the field.
var views = []string{viewStandard}
// Handle `time` fields.
if f.Type() == FieldTypeTime {
// Handle `int` and `time` fields.
switch f.Type() {
case FieldTypeInt:
return nil, errors.New("int fields not supported by Rows() query")
case FieldTypeTime:
var err error
// Parse "from" time, if set.