Fix to ensure cursor fields can be defined in the query

This commit is contained in:
Vikram Rangnekar
2020-03-16 01:40:47 -04:00
parent 81338b6123
commit a172193955
3 changed files with 20 additions and 6 deletions

View File

@ -339,6 +339,13 @@ func (p *Parser) parseFields(fields []Field) ([]Field, error) {
if p.peek(itemObjOpen) {
p.ignore()
st.Push(f.ID)
} else if p.peek(itemObjClose) {
if st.Len() == 0 {
break
} else {
continue
}
}
}