You are here:

Ingres/returning error

Advertisement


Question
Hello, Jean Pierre.
I can't handle one error because errno neither dbmserror returns its code. The error is:
E_PS0461 A <column reference> contained a <qualifier> 'm'    
   which did not correspond to any of the <table reference>s.
Do you know what can i do?
Thanks.
   within whose scope the <column reference> appeared.  

Answer
Hello Miguel,

First of all, you can find help with error messages from two way :
- in the directory II_SYSTEM ($II_SYSTEM on linux/unix or %II_SYSTEM% on windows) there is always the following ingres\sig\errhelp. In this directory you have a small utility that provide the complete message (but in your case it did not help)
- in the directory $II_SYSTEM\ingres\ingres\files\english\messages you can find a file named messages.txt and sometimes there is here an explanation for some error message

In your case you reference a column with an incorrect qualifier. "qualifiers" are the name of a table has it is mentionned in the FROM clause of your query. For example :
FROM my_table t, my_second_table t2. t & t2 are the qualifiers. If you do not specify thoses aliases, ingres use the name of the table.

The misuse of the qualifier can appears in :
- column list (select clause)
- having clause
- group by clause
- where clause
- check constraint

The text in messages.txt is the following :
E_PS0461_BAD_COL_REF_QUAL:SS42000_SYN_OR_ACCESS_ERR

%
Parameters:
  %0c - <qualifier> found in a <column reference>;
        may be of format <table name>, <correlation name>, or
        <schema name>.<table name>

Explanation:
  A <qualifier> found in a <column reference> did not identify any of the
  <table reference>s within whose scope the <column reference> appeared.
  
  A <column reference> found in a <target list> or <group by clause> of a
  query may only reference tables appearing in the <from list> (or
  equivalent) at the same scope.

  A <column reference> found outside of a <target list> or <group by
  clause> of a query may reference tables appearing in the <from list>
  (or equivalent) at the same scope or in outer subselects.

  A <column reference> in CHECK constraint found outside of subselects,
  must reference the table on which CHECK constraint is being defined.
  
System Status:
  The current statement is aborted; the program continues.

Recommendation:
  Correct the query and reenter.

Hope this help,
Jean-Pierre

Ingres

All Answers


Answers by Expert:


Ask Experts

Volunteer


Jean-Pierre Zuate

Expertise

Any questions about database Ingres (owned by Computer Associates then Ingres Corp) : - Ingres 6.4 - OpenINGRES from 1.0 to 2.0 - IngresII from 2.0 to 2.6 - Ingres R3, Ingres 2006 (Open Source version) - Ingres 9.x, Ingres 10.x - All tool around Ingres : ABF, Report Writer, Replicator, OpenROAD (3.5 to 2006), Ingres/NET Ingres/STAR, ...

Experience

16 years of computing experience as :
- AS400 programmer
- AIX / Ingres administrator and developer (OpenROAD and korn shell)
- Ingres DataBase Administrator
- Ingres expert - Data modelisation - ETL - Reporting - Many of Computer Associates sofwares - ITIL / CMDB / Change Management

Organizations
http://lafageconseil.fr

Education/Credentials
Computing bachelor (1989)

Past/Present Clients
More than 100 customers during my 6 years of CA has an Ingres consultant, all around France and Africa (Togo, Cameroon, Morrocco, ...)

©2012 About.com, a part of The New York Times Company. All rights reserved.