Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 0B0AA475F63 for ; Tue, 3 Dec 2002 09:51:47 -0500 (EST) Received: from alpha.alphasoft-bg.com (intbg-alfasoft.internet-bg.net [212.124.67.146]) by postgresql.org (Postfix) with ESMTP id 3F474475E77 for ; Tue, 3 Dec 2002 09:51:42 -0500 (EST) Received: from ico (pool07h-cgate.del.bg [62.176.85.134]) by alpha.alphasoft-bg.com (8.12.3/8.12.1) with SMTP id gB3FG4Ns010905 for ; Tue, 3 Dec 2002 17:16:13 +0200 Message-ID: <000a01c29adb$066fc9e0$0a0546c0@alpha.bg> From: "Alphasoft" To: Subject: problem with view in 7.3 Date: Tue, 3 Dec 2002 16:48:07 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C29AEB.C14C7280" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/39 X-Sequence-Number: 10627 This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C29AEB.C14C7280 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Hi , I am Hristo Neshev From Bulgaria=20 In Version 7.2 this statement works : create view v_impr_check ( ead_no, ead_date,=20 e_no, e_date, sid, number,=20 s_order, cdt, cdt_description,=20 original_qty, used_qty, waste_qty, rest_qty, original_used_qty ) AS select distinct md_custom_number,=20 md_custom_date,=20 md_number , md_date , sni_sid , sni_number ,=20 snig_ord_number_in, cdt_part_number,=20 cdt_description,=20 snig_quantity, (select sum(impo_quantity) from impr_out where impo_store_note_in =3D snig_= store_note_in and impo_ord_number_in =3D snig_ord_number_in), (select sum(impow_quantity) from impr_out_waste where impow_store_note_in= =3D sni_sid and impow_ord_number_in =3D snig_ord_number_in), (select sum(iwnog_quantity) from impr_waste_note_out_goods where iwnog_stor= e_note_in =3D sni_sid and iwnog_ord_number_in =3D snig_ord_number_in and iw= nog_impr_note_out not in (select impow_iwnog_impr_note_out from impr_out_wa= ste where impow_iwnog_impr_note_out is not null) ), snig_used_quantity from=20 store_note_in join md_header on md_sni_sid =3D sni_sid join store_note_in_goods join commodity on (snig_commodity =3D cdt_sid)=20 on sni_sid =3D snig_store_note_in=20 Where sni_type_doc =3D 303; In 7.3 when i am trying to recreate the view I received the folowing error : find_expr_references_walker: bogus varno 8=20 The problem is in subselect statements ------=_NextPart_000_0007_01C29AEB.C14C7280 Content-Type: text/html; charset="koi8-r" Content-Transfer-Encoding: quoted-printable
Hi , I am Hristo Neshev From Bulgaria
 
In Version 7.2 this statement works :
 
create view=20 v_impr_check
(
ead_no,
ead_date,=20
e_no,
e_date,
sid,
number,
s_order,
cdt,
cdt_descrip= tion,=20
original_qty,
used_qty,
waste_qty,
rest_qty,
original_used_= qty
)
AS
select=20 distinct md_custom_number,
md_custom_date,
md_number ,
md_date= =20 ,
sni_sid ,
sni_number ,
snig_ord_number_in,
cdt_part_number,= =20
cdt_description,
snig_quantity,
(select sum(impo_quantity) from= =20 impr_out where impo_store_note_in =3D snig_store_note_in and impo_ord_numbe= r_in =3D=20 snig_ord_number_in),
(select sum(impow_quantity) from impr_out_waste whe= re=20 impow_store_note_in=3D sni_sid and impow_ord_number_in =3D=20 snig_ord_number_in),
(select sum(iwnog_quantity) from=20 impr_waste_note_out_goods where iwnog_store_note_in =3D sni_sid and=20 iwnog_ord_number_in =3D snig_ord_number_in and iwnog_impr_note_out not in (= select=20 impow_iwnog_impr_note_out from impr_out_waste where impow_iwnog_impr_note_o= ut is=20 not null) ),
snig_used_quantity
from
store_note_in join md_header= on=20 md_sni_sid =3D sni_sid
join store_note_in_goods join commodity on=20 (snig_commodity =3D cdt_sid)
on sni_sid =3D snig_store_note_in=20
Where
sni_type_doc =3D 303;
 
In 7.3 when i am trying to recreat= e the=20 view I received the folowing error :
find_expr_references_walker: bogus= varno 8=20
The problem is in subselect=20 statements
------=_NextPart_000_0007_01C29AEB.C14C7280--