TADOQuery.Parameters on PostgreSQL
- From: "Hubert Rétif" <retifhubert@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 27 Nov 2006 12:30:32 +0100
Hi,
Before switching on PostgreSQL, I was using MySQL where the following Code
(D7) was working well:
At design time, I have defined 2 parameters, by editing the SQL property:
select * from model where id_ctype = :id_ctype and
id_constructor = :id_constructor
and at run-time Active := True;
Further on, at run time I need to change the SQL property and then bring it
back to the original select:
with dmRef.qyModel do
begin
Close;
SQL.Clear;
SQL.Add('select * from model where id_ctype = :id_ctype and ' +
'id_constructor = :id_constructor');
Open;
end;
With MySQL, no problem. With PostgreSQL, I get an error with Open:
"An object parameter is not correctly defined. Non consistent or incomplete
information input"
Thanks for your answers.
hubert retif
.
- Follow-Ups:
- Re: TADOQuery.Parameters on PostgreSQL
- From: Bill Todd
- Re: TADOQuery.Parameters on PostgreSQL
- Prev by Date: Re: ADOQuery in thread hangs, Solved !!!!!!!!!
- Next by Date: Re: TADOQuery.Parameters on PostgreSQL
- Previous by thread: Refreshing a current record in a DataSet
- Next by thread: Re: TADOQuery.Parameters on PostgreSQL
- Index(es):
Relevant Pages
|