This commit is contained in:
Yuce Tekol 2017-09-18 16:41:13 +03:00
parent b9a3197c2c
commit a27262b242
No known key found for this signature in database
GPG key ID: CB59E46D2FB90573
2 changed files with 3 additions and 1 deletions

View file

@ -139,7 +139,7 @@ SetColumnAttrs(<frame=STRING>, <ROW_LABEL=UINT>,
**Result Type:** null
SetColumnAttrs queries always return `null` upon success. Setting a value of `null`, without quotes, deletes an attribute. Note that, `frame` cannot be used as an attribute name.
SetColumnAttrs queries always return `null` upon success. Setting a value of `null`, without quotes, deletes an attribute. To avoid confusion, `frame` cannot be used as an attribute name.
**Examples:**

View file

@ -1040,6 +1040,8 @@ func (e *Executor) executeSetFieldValue(ctx context.Context, index string, c *pq
// Copy args and remove reserved fields.
args := pql.CopyArgs(c.Args)
delete(args, "frame")
// While frame could technically work as a ColumnAttr argument, we are treating it as a reserved word primarily to avoid confusion.
// Also, if we ever need to make ColumnAttrs frame-specific, then having this reserved word prevents backward incompatibility.
delete(args, columnLabel)
// Set values.