exxeleron / qPython

interprocess communication between Python and kdb+
http://www.devnet.de
Apache License 2.0
152 stars 89 forks source link

QLambda is causing some kdb+ systems to crash #7

Closed maciejlach closed 9 years ago

maciejlach commented 9 years ago

Code sample:

q.async(".gw.asyncfunc", QLambda("raze"))
q)type raze
107h

is not a lambda. The users code should be:

q.async(".gw.asyncfunc", QLambda("{raze x}"))

Solution: add validation to QLambda to ensure that expression is enclosed in { and }.