Thread: Dialog box, passing parameter fails
Hi, I am using Postgresql 9.5 as server and Libreoffice BASE 5.2.4 to connect to the server.
The code SQL must be sent directly and not be interpreted by Libo Base because there are some complex syntax (functions, variables, ...).
Also, I need passing parameters to control some ranges. ex: dates.
But, postgresql can not understand passing parameters with either ? or : syntax which open a dialog box.
eg: select * from agenda where date= ?
The execution of code ode fails in direct mode.
What are solutions ? cant postgresql bypass some parts of the code where I put parameters request ?
Thank you
Hi, I am using Postgresql 9.5 as server and Libreoffice BASE 5.2.4 to connect to the server.
The code SQL must be sent directly and not be interpreted by Libo Base because there are some complex syntax (functions, variables, ...).
Also, I need passing parameters to control some ranges. ex: dates.
But, postgresql can not understand passing parameters with either ? or : syntax which open a dialog box.
eg: select * from agenda where date= ?
The execution of code ode fails in direct mode.
What are solutions ? cant postgresql bypass some parts of the code where I put parameters request ?
Thank you
Hi,
Use $1, $2, … for bind parameters.
Regards
From: intmail01@gmail.com <intmail01@gmail.com>
Sent: Saturday, September 21, 2019 12:21 AM
To: pgsql-sql@lists.postgresql.org
Subject: Dialog box, passing parameter fails
Importance: High
CAUTION: This email originated from outside of Moody's. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Hi, I am using Postgresql 9.5 as server and Libreoffice BASE 5.2.4 to connect to the server.
The code SQL must be sent directly and not be interpreted by Libo Base because there are some complex syntax (functions, variables, ...).
Also, I need passing parameters to control some ranges. ex: dates.
But, postgresql can not understand passing parameters with either ? or : syntax which open a dialog box.
eg: select * from agenda where date= ?
The execution of code ode fails in direct mode.
What are solutions ? cant postgresql bypass some parts of the code where I put parameters request ?
Thank you
This email was sent to you by Moody’s Investors Service EMEA Limited
Registered office address:
One Canada Square
Canary Wharf
London, E14 5FA
Registered in England and Wales No: 8922701