I have following table:
q) t:([s:`symbol$()] id:();id2:`int$())
where 's' is a primary key and 'id' col has general type. I am trying to understand following behavior when inserting a list (string in this ex.) in 'id' column:
a) Upsert works but Insert fails:
q) `t insert (`a;"gg";4) // 'type
q) `t upsert (`a;"gg";4) // works
b) Insert requires primary key to be enlisted as well:
q)`t insert (`a;enlist "gg";4) // 'length
q)`t insert (enlist `a;enlist "gg";4) // works
What's going on behind the scene?
Now insert works
q) `t insert (`a;4;"gg") / works
--
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to personal-kdbpl...@googlegroups.com.
To post to this group, send email to personal...@googlegroups.com.
Visit this group at http://groups.google.com/group/personal-kdbplus.
For more options, visit https://groups.google.com/d/optout.