dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

Select returned multiple values. - Ingres Database

This is a discussion on Select returned multiple values. - Ingres Database ; My colleague has just found something strange... We have a procedure in the form declare global temporary table session.temp as select from tablea a, tableb b tablec c where and not exists (select * from tabled d where d.column1 = ...


Home > Database Forum > Other Databases > Ingres Database > Select returned multiple values.

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 10-29-2008, 07:36 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Select returned multiple values.

My colleague has just found something strange...
We have a procedure in the form

declare global temporary table session.temp as
select from tablea a, tableb b tablec c
where
and not exists (select * from tabled d
where d.column1 = a.column1
and d.column2 = c.column2)
on commit preserve rows with norecovery

tabled is a btree table whose primary unique key is (column1,column2)

He wanted to amend and, in order to test the changes
tried to run just the select part of the statement (not creating the
temporary table) in ISQL on a test database.

The query failed with error E_US1196 SELECT returned multiple values

reinstating the creation of the temporary table allows the SQL to
complete successfully

A quick glance at the QEP's from the two versions (with and without
the temporary table) suggests they are quite different, which seems
odd as the actual "select" is the same in both cases

Can anyone offer any insight as to why this might be...
Reply With Quote
  #2  
Old 11-09-2008, 06:34 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Select returned multiple values.

Hi TIm,

I don't know whether you have had any responses, but I have seen one
case of an E_US1196 error. It appears to have been resolved by a patch
containing the fix for bug 113519. This was back in March 2006, on
2.6. What version and platform are you running?

John


On Oct 29, 10:36 pm, Tim Ellis wrote:
> My colleague has just found something strange...
> We have a procedure in the form
>
> declare global temporary table session.temp as
> select from tablea a, tableb b tablec c
> where
> and not exists (select * from tabled d
> where d.column1 = a.column1
> and d.column2 = c.column2)
> on commit preserve rows with norecovery
>
> tabled is a btree table whose primary unique key is (column1,column2)
>
> He wanted to amend and, in order to test the changes
> tried to run just the select part of the statement (not creating the
> temporary table) in ISQL on a test database.
>
> The query failed with error E_US1196 SELECT returned multiple values
>
> reinstating the creation of the temporary table allows the SQL to
> complete successfully
>
> A quick glance at the QEP's from the two versions (with and without
> the temporary table) suggests they are quite different, which seems
> odd as the actual "select" is the same in both cases
>
> Can anyone offer any insight as to why this might be...


Reply With Quote
  #3  
Old 11-13-2008, 09:22 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Select returned multiple values.

On Nov 9, 10:34*am, John Dennis wrote:
> Hi TIm,
>
> I don't know whether you have had any responses, but I have seen one
> case of an E_US1196 error. It appears to have been resolved by a patch
> containing the fix for bug 113519. This was back in March 2006, on
> 2.6. *What version and platform are you running?


Thanks John
we are still currently on II2.0/0308 (axm.vms), though we should be
upgrading soon to the current release.
Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 11:50 AM.