Question about Boolean and Parameters
Posted: Thu 29 Jan 2009 13:48
Hi,
I'm using such kind of SQL Script :
When setting my parameter like this :
Test is always 'False' !
When setting my parameter like this :
Test is either True or False
How can I get this to work with parameters as boolean ?
I'm using such kind of SQL Script :
Code: Select all
SET @Value = :prvalue;
Select
(case
when @Value then 'True'
when not @Value then 'False'
else '?' end)
as Test
Code: Select all
MyQuery.Parambyname('prvalue').AsBoolean := False;
or
MyQuery.Parambyname('prvalue').AsBoolean := True;When setting my parameter like this :
Code: Select all
MyQuery.Parambyname('prvalue').AsInteger := 0;
or
MyQuery.Parambyname('prvalue').AsInteger := 1;How can I get this to work with parameters as boolean ?