RE: Dialog box, passing parameter fails

From: "Voillequin, Jean-Marc" <Jean-Marc(dot)Voillequin(at)moodys(dot)com>
To: "intmail01(at)gmail(dot)com" <intmail01(at)gmail(dot)com>, "pgsql-sql(at)lists(dot)postgresql(dot)org" <pgsql-sql(at)lists(dot)postgresql(dot)org>
Subject: RE: Dialog box, passing parameter fails
Date: 2019-09-23 06:53:17
Message-ID: BYAPR20MB2614E42280AA8AF5F10D1E8DBE850@BYAPR20MB2614.namprd20.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

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

Regards

From: intmail01(at)gmail(dot)com <intmail01(at)gmail(dot)com>
Sent: Saturday, September 21, 2019 12:21 AM
To: pgsql-sql(at)lists(dot)postgresql(dot)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
-----------------------------------------

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

-----------------------------------------

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Eisentraut 2019-09-24 07:05:16 Re: AW: German "umlaut insensitive" query
Previous Message Jakob.Witczak 2019-09-23 05:57:19 AW: German "umlaut insensitive" query