comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Prepared_Statement :(
Date: Sat, 24 Nov 2018 20:00:12 +0000
Date: 2018-11-24T20:00:12+00:00	[thread overview]
Message-ID: <lyva4m2qlv.fsf@pushface.org> (raw)
In-Reply-To: e75fd330-c195-498b-a776-86f23541aae7@googlegroups.com

briot.emmanuel@gmail.com writes:

>> > >        Conn   : Database_Connection := Build_Database_Connection;
>
> You only show part of your code, this always makes things difficult.
> I don't know how you build the connection, but my guess is that you
> actually build a sqlite connection, not postgresql.
>
> "?" is how sqlite represents parameters. Postgresql uses $1, $2,... So
> the query is not working.
>
> https://www.postgresql.org/docs/10/sql-prepare.html

But that doesn't explain a compiler error report pointing at the middle
of a string!

OH! OH! OH! it's not a compiler error at all! (or if it is, it's when
the DBC compiles the prepared statement).

OP, it helps if you post the exact error message in context.

  reply	other threads:[~2018-11-24 20:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-24 10:45 Prepared_Statement :( eduardsapotski
2018-11-24 10:48 ` eduardsapotski
2018-11-24 11:05 ` Dmitry A. Kazakov
2018-11-24 11:20   ` eduardsapotski
2018-11-24 17:56     ` briot.emmanuel
2018-11-24 20:00       ` Simon Wright [this message]
2018-11-24 20:45       ` Dmitry A. Kazakov
2018-11-26  6:52       ` eduardsapotski
2018-11-27  0:27         ` Dennis Lee Bieber
2018-11-27  8:46           ` Dmitry A. Kazakov
2018-11-27  8:51             ` briot.emmanuel
2018-11-24 11:29 ` eduardsapotski
2018-11-27  9:58 ` eduardsapotski
2018-11-27 18:00   ` Dmitry A. Kazakov
2018-11-27 19:02     ` Björn Lundin
2018-11-28  5:04 ` eduardsapotski
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox