'assign error - Kdb+ / qStudio

Home Forums Kdb+ / qStudio 'assign error

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #163

    Bob
    Guest

    When I try to create a table I get an assign error.


    q)UK_US_ORDERS:([] date:(); time:(); sym:(); size:(); price:(); type:())
    'assign

    #169

    admin
    Keymaster

    The assign error occurs when you try to assign a value to a kdb keyword. “type” is a reserved word. Notice your code works when I change that one word.


    q)UK_US_ORDERS:([] date:(); time:(); sym:(); size:(); price:(); TYPE:())
    q)UK_US_ORDERS
    date time sym size price TYPE
    -----------------------------
    q)

    It is possible to workaround this limitation to make your column named type but it would only leave your table extremely hard to query so it is not recommended.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.