Re: [Info-Ingres] When where clause *Really* alters what you select

This is a discussion on Re: [Info-Ingres] When where clause *Really* alters what you select within the Ingres Database forums in Other Databases category; Hi Steve et al, It looks like a brand new bug. I'm very proud! Thanks for playing. Marty > > Hi Martin, > I also get the same results on all three of the select count(*) > selections.. HP-UX 11.11 II 2.6/0305 (hp2.us5/00) patch 11013 > > On May 16, 1:54 pm, martin.bo...@ctsu.ox.ac.uk wrote: > > Hi Everyone, > > > > I'm running II 9.0.4 (a64.lnx/105)NPTL patch12125. > > > > On a brand new database try this...Don't worry it won't crash > > anything. > > > > sql your_new_db > \r > > \continue > > set autocommit on > > \g > > drop view ...

Go Back   Database Forum > Other Databases > Ingres Database

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 05-18-2007, 11:16 AM
Default Re: [Info-Ingres] When where clause *Really* alters what you select

Hi Steve et al,

It looks like a brand new bug. I'm very proud!

Thanks for playing.

Marty
>
> Hi Martin,
> I also get the same results on all three of the select count(*)
> selections.. HP-UX 11.11 II 2.6/0305 (hp2.us5/00) patch 11013
>
> On May 16, 1:54 pm, martin.bo...@ctsu.ox.ac.uk wrote:
> > Hi Everyone,
> >
> > I'm running II 9.0.4 (a64.lnx/105)NPTL patch12125.
> >
> > On a brand new database try this...Don't worry it won't crash
> > anything.
> >
> > sql your_new_db << SQL_END
> > \r
> > \continue
> > set autocommit on
> > \g
> > drop view named_object_view;
> > \p\g
> > create view named_object_view as
> > select reltid, trim(relid) as description from iirelation
> > union
> > select reltid, relowner as description from iirelation;
> >
> > \p\g
> > create view summary_view as
> > select reltid, n1.description, table_owner, table_type
> > from iitables left join named_object_view n1
> > on table_name = description;
> > \p\g
> > /* If the bug is present then the following counts will not add up!
> > ** There will be as many null cases as not null cases and each will
> > be ** equal to the total number of rows in the view! */ select
> > count(*) from summary_view; select count(*) from summary_view where
> > description is null; select count(*) from summary_view where
> > description is not null; \p\g /* even more fun... ** If the bug is
> > present then the 'where description is null' clause makes ** the
> > query return null for the descriptions the first query insists
> > aren't ** null. */ select reltid, description from summary_view
> > order by 1; select reltid, description from summary_view where
> > description is null order by 1; \p\g \q SQL_END
> >
> > Could people let me know if the selects are OK or not and on what
> > Ingres Versions they ran against. Anyone seen this before? Gotta Bug
> > number etc...
> >
> > Thanks Heaps.
> >
> > Martin Bowes
> > --
> > Random Farscape Quote #31:
> > John - I've either gotta stop pointing guns at people...or get a
> > bigger gun



Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 09:32 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Integrated by bbpixel2009 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.