I have a NamedQuery type=Update Query with couple of parameters. it works fine in Testing environment, but when I run system.db.runNamedQuery in client, I can see a row to database added with all NULL parameters.
I am using MySQL. The Query is:
INSERT INTO tasks
(Col1 , Col2 , Col3 , Col3 )
VALUES
(:V1, :V2, :V3, :V4)
Any idea What am I missing?
Script:
params = {“Col1”:“Test1”, “Col2”:“Test2”, “Col3”:1, “Col4”:2}
system.db.runNamedQuery(“MyNamedQuery”, params )