-----------------------------------------------
freechange-# \d accountloginrec
            Table "accountloginrec"
      Attribute       |    Type     | Modifier 
----------------------+-------------+----------
 regaccounttype       | smallint    | not null
 regloginname         | char(20)    | not null
 reglgoinpassword     | varchar(20) | not null
 regaccounthint       | varchar(32) | 
 regaccounteffectdate | date        | 
 regaccountexpireeate | date        | 
 eshopcode            | integer     | not null
 companycode          | integer     | 
freechange-# 
freechange=# select eshopcode from accountloginrec;
 eshopcode 
-----------
        10
        11
        11
        12
        13
        14
(6 rows)

freechange=# insert into accountloginrec values 
(1,'test','test','test',NOW(),NOW()+30,Max(eshopcode)+1,null);
ERROR:  Attribute 'eshopcode' not found
-----------------------------------------------
The same syntax at 6.5.3 is OK !!
It happen at 7.0rc1 and 7.0rc2

Reply via email to