Re: Dialog box, passing parameter fails - Mailing list pgsql-sql

From Steve Midgley
Subject Re: Dialog box, passing parameter fails
Date
Msg-id CAJexoS+n+kjwdZbuv4-CxYB5DWX7YLnNLHGNmB=xfJsyKdqaaw@mail.gmail.com
Whole thread Raw
In response to Dialog box, passing parameter fails  ("intmail01@gmail.com" <intmail01@gmail.com>)
List pgsql-sql


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 

pgsql-sql by date:

Previous
From: "intmail01@gmail.com"
Date:
Subject: Dialog box, passing parameter fails
Next
From:
Date:
Subject: AW: German "umlaut insensitive" query