Remove RETURN statement from SELECT query
This commit is contained in:
parent
623d55225c
commit
3ffaec9265
3 changed files with 0 additions and 7 deletions
|
@ -119,7 +119,6 @@ type SelectStatement struct {
|
|||
Limit Expr `cork:"limit" codec:"limit"`
|
||||
Start Expr `cork:"start" codec:"start"`
|
||||
Version Expr `cork:"version" codec:"version"`
|
||||
Echo Token `cork:"echo" codec:"echo"`
|
||||
}
|
||||
|
||||
// CreateStatement represents a SQL CREATE statement.
|
||||
|
|
|
@ -826,7 +826,6 @@ func (this *SelectStatement) MarshalCORK() (dst []byte, err error) {
|
|||
e.Encode(this.Limit)
|
||||
e.Encode(this.Start)
|
||||
e.Encode(this.Version)
|
||||
e.Encode(this.Echo)
|
||||
return b.Bytes(), nil
|
||||
}
|
||||
|
||||
|
@ -841,7 +840,6 @@ func (this *SelectStatement) UnmarshalCORK(src []byte) (err error) {
|
|||
d.Decode(&this.Limit)
|
||||
d.Decode(&this.Start)
|
||||
d.Decode(&this.Version)
|
||||
d.Decode(&this.Echo)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
@ -59,10 +59,6 @@ func (p *parser) parseSelectStatement() (stmt *SelectStatement, err error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if stmt.Echo, err = p.parseEcho(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if _, _, err = p.shouldBe(EOF, RPAREN, SEMICOLON); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue