Dialog box, passing parameter fails

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Dialog box, passing parameter fails

intmail01@gmail.com

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

Reply | Threaded
Open this post in threaded view
|

Re: Dialog box, passing parameter fails

Steve Midgley-5


On Fri, Sep 20, 2019, 8:20 PM [hidden email] <[hidden email]> wrote:

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


Can you get your sql code to work from psql command line? Seems like maybe it's just syntax? Send a complete sql statement including parameters that is failing.. 

Steve 

Reply | Threaded
Open this post in threaded view
|

RE: Dialog box, passing parameter fails

Voillequin, Jean-Marc
In reply to this post by intmail01@gmail.com

Hi,

 

Use $1, $2, … for bind parameters.

 

Regards

 

From: [hidden email] <[hidden email]>
Sent: Saturday, September 21, 2019 12:21 AM
To: [hidden email]
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

-----------------------------------------
Moody's monitors email communications through its networks for regulatory compliance purposes and to protect its customers, employees and business and where allowed to do so by applicable law. The information contained in this e-mail message, and any attachment thereto, is confidential and may not be disclosed without our express permission. If you are not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution or copying of this message, or any attachment thereto, in whole or in part, is strictly prohibited. If you have received this message in error, please immediately notify us by telephone, fax or e-mail and delete the message and all of its attachments. Every effort is made to keep our network free from viruses. You should, however, review this e-mail message, as well as any attachment thereto, for viruses. We take no responsibility and have no liability for any computer virus which may be transferred via this e-mail message.

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
-----------------------------------------