agora inbox for pgsql-sql@postgresql.orghelp / color / mirror / Atom feed
Dialog box, passing parameter fails 3+ messages / 3 participants [nested] [flat]
* Dialog box, passing parameter fails @ 2019-09-20 22:20 intmail01@gmail.com <intmail01@gmail.com> 2019-09-23 00:24 ` Re: Dialog box, passing parameter fails Steve Midgley <steve.midgley.mixrun@gmail.com> 2019-09-23 06:53 ` RE: Dialog box, passing parameter fails Voillequin, Jean-Marc <Jean-Marc.Voillequin@moodys.com> 0 siblings, 2 replies; 3+ messages in thread From: intmail01@gmail.com @ 2019-09-20 22:20 UTC (permalink / raw) To: pgsql-sql@lists.postgresql.org 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 ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Dialog box, passing parameter fails 2019-09-20 22:20 Dialog box, passing parameter fails intmail01@gmail.com <intmail01@gmail.com> @ 2019-09-23 00:24 ` Steve Midgley <steve.midgley.mixrun@gmail.com> 1 sibling, 0 replies; 3+ messages in thread From: Steve Midgley @ 2019-09-23 00:24 UTC (permalink / raw) To: intmail01@gmail.com; +Cc: pgsql-sql@lists.postgresql.org On Fri, Sep 20, 2019, 8:20 PM intmail01@gmail.com <intmail01@gmail.com> 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 > ^ permalink raw reply [nested|flat] 3+ messages in thread
* RE: Dialog box, passing parameter fails 2019-09-20 22:20 Dialog box, passing parameter fails intmail01@gmail.com <intmail01@gmail.com> @ 2019-09-23 06:53 ` Voillequin, Jean-Marc <Jean-Marc.Voillequin@moodys.com> 1 sibling, 0 replies; 3+ messages in thread From: Voillequin, Jean-Marc @ 2019-09-23 06:53 UTC (permalink / raw) To: intmail01@gmail.com <intmail01@gmail.com>; pgsql-sql@lists.postgresql.org <pgsql-sql@lists.postgresql.org> 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 ----------------------------------------- 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 ----------------------------------------- ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2019-09-23 06:53 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-09-20 22:20 Dialog box, passing parameter fails intmail01@gmail.com <intmail01@gmail.com> 2019-09-23 00:24 ` Steve Midgley <steve.midgley.mixrun@gmail.com> 2019-09-23 06:53 ` Voillequin, Jean-Marc <Jean-Marc.Voillequin@moodys.com>
This inbox is served by agora; see mirroring instructions for how to clone and mirror all data and code used for this inbox