Zero-length string in predicate causes TADOQuery to blow
Has anyone else experienced this problem?:
with MyAdoQuery do
begin
Close;
SQL.Clear;
SQL.Add('SELECT * FROM table WHERE column1 = :AValue');
Parameters[0].Value := AValue;
Open;
end;
If AValue is zero-length, when Open is called, this message is returned:
EOleException 'Parameter object is improperly defined. Inconsistent or
incomplete information was provided'.
This problem doesn't exist under BDE. Is this something I'll have to trap
for when using ADO, or am I missing some configuration parameter somewhere?
Regards,
Dan Brewer