Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Postgres globalMap query help

I am trying to update two columns based on globalMap (which gets the jobs ID).

 

This is my query that I have in query editor:

UPDATE jobs
SET succ_flag = 'success',
	last_exec_complete = current_timestamp
WHERE job_id ='" + ((String)globalMap.get("myJob")) +"'

But that gives me this error:

ERROR: invalid input syntax for integer: "" + ((String)globalMap.get("myJob")) +""
Position: 94

 

How am I supposed to add globalMap to my query?

Labels (1)
  • v7.x

13 Replies
Anonymous
Not applicable
Author

int4

TRF
Champion II
Champion II

Strange...
I suggest you to construct the query into a global variable and to display it before the tDBRow component
Anonymous
Not applicable
Author

Yep, that helped me see the issue. It basically just showed me that in this case I didn't even have to use the global variable. Thanks.
TRF
Champion II
Champion II

Great!
Thanks to mark your case as solved.