Subject | Re: Bug in firebird 1.5?? left joining |
---|---|
Author | johnsparrowuk |
Post date | 2004-03-18T10:28:31Z |
Can someone put it on the sourceforge bug list, or however you report
it these days..?
It's been 3 years since a reported a firebird bug... grin.
Thanks,
John
--- In firebird-support@yahoogroups.com, "Arno Brinkman"
<firebird@a...> wrote:
it these days..?
It's been 3 years since a reported a firebird bug... grin.
Thanks,
John
--- In firebird-support@yahoogroups.com, "Arno Brinkman"
<firebird@a...> wrote:
> Hi,not
>
> > Is this a bug??
>
> Confirmed, it's indeed a bug :-(
>
> The IS NULL in then where clause seems to be the problem here.
>
> > create table mytable (person varchar(20) not null, status integer
> > null, primary key (person,status));c.person
> >
> > create view currentpeople as select distinct person from mytable
> > where status = 1;
> > create view finishedpeople as select distinct person from mytable
> > where status = 2;
> >
> > insert into mytable values ('john',1);
> > insert into mytable values ('john',2);
> > insert into mytable values ('fred',1);
> >
> > /* This works fine: fred-null, john-john */
> > select * from currentpeople c left join finishedpeople f on
> > = f.personc.person
> >
> > /* This is as expected too: john-john */
> > select * from currentpeople c left join finishedpeople f on
> > = f.personjohn-
> > where f.person = 'john'
> >
> > /* WHATS HAPPENING HERE????? fred-null, JOHN-NULL where does the
> > null come from???*/c.person
> > select * from currentpeople c left join finishedpeople f on
> > = f.personfeatures :
> > where f.person is null
>
> Regards,
> Arno Brinkman
> ABVisie
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> Firebird open source database (based on IB-OE) with many SQL-99
> http://www.firebirdsql.org
> http://www.firebirdsql.info
> http://www.fingerbird.de/
> http://www.comunidade-firebird.org/
>
> Support list for Interbase and Firebird users :
> firebird-support@yahoogroups.com
>
> Nederlandse firebird nieuwsgroep :
> news://80.126.130.81