Add KV, NS, DB to LET and RETURN SQL ASTs
All queries which manipulate the data layer in any way, should at least store the authenticated/selected NS and DB options, even if they do not actually use them when running the SQL statement.
This commit is contained in:
parent
d8a2d40d34
commit
b0ab86c4ef
1 changed files with 7 additions and 1 deletions
|
@ -75,12 +75,18 @@ type InfoStatement struct {
|
|||
|
||||
// LetStatement represents a SQL LET statement.
|
||||
type LetStatement struct {
|
||||
KV string `cork:"-" codec:"-"`
|
||||
NS string `cork:"-" codec:"-"`
|
||||
DB string `cork:"-" codec:"-"`
|
||||
Name string `cork:"-" codec:"-"`
|
||||
What Expr `cork:"-" codec:"-"`
|
||||
}
|
||||
|
||||
// ReturnStatement represents a SQL RETURN statement.
|
||||
type ReturnStatement struct {
|
||||
KV string `cork:"-" codec:"-"`
|
||||
NS string `cork:"-" codec:"-"`
|
||||
DB string `cork:"-" codec:"-"`
|
||||
What Expr `cork:"-" codec:"-"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue