Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Bugs > Re: BUG: aliase...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 4 Topic 3751 of 4031
Post > Topic >>

Re: BUG: aliases does not work ((

by Eugen.Konkov@[EMAIL PROTECTED] May 7, 2008 at 07:15 PM

> Aliases in the select list are not in scope in the having clause.
it will be good if aliases will be in scope of 'having' clause.
Because of dublicating code is cause of bugs when people foget replace
code 
in second place while changing code in first one =(

----- Original Message ----- 
From: "Peter Eisentraut" <peter_e@[EMAIL PROTECTED]
>
To: <pgsql-bugs@[EMAIL PROTECTED]
>
Cc: <Eugen.Konkov@[EMAIL PROTECTED]
>
Sent: Wednesday, May 07, 2008 2:52 PM
Subject: Re: [BUGS] BUG: aliases does not work ((


> Am Mittwoch, 7. Mai 2008 schrieb Eugen.Konkov@[EMAIL PROTECTED]
>>  SELECT
>> MIN(COALESCE(cmp_values(parent_td.value, parent_md.value,
>> parent_cmp.value),0)) as chk_parent, FROM some_table
>>
>> having chk_parent > 0
>>
>> ERROR:  column "chk_parent" does not exist at character 2342
>
> Aliases in the select list are not in scope in the having clause. 
Either
> write out the expression again or use a subquery. 


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
 




 4 Posts in Topic:
BUG: aliases does not work ((
Eugen.Konkov@[EMAIL PROTE  2008-05-07 14:09:33 
Re: BUG: aliases does not work ((
peter_e@[EMAIL PROTECTED]  2008-05-07 13:52:37 
Re: BUG: aliases does not work ((
Eugen.Konkov@[EMAIL PROTE  2008-05-07 19:15:58 
Re: BUG: aliases does not work ((
tgl@[EMAIL PROTECTED] (T  2008-05-07 12:32:28 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Sep 6 15:31:20 CDT 2008.