CVSROOT:        /cvsroot
Module name:    pgsql-server
Changes by:     [EMAIL PROTECTED]       03/06/25 01:32:03

Modified files:
        src/backend/parser: parse_coerce.c 

Log message:
        Fix up JOIN .. USING with domains
        
        The attached fixes select_common_type() to support the below case:
        
        create table t1( c1 int);
        create domain dom_c1 int;
        create table t2(c1 dom_c1);
        select * from t1 join t2 using( c1 );
        
        I didn't see a need for maintaining the domain as the preferred type. A
        simple getBaseType() call on all elements of the list seems to be
        enough.
        
        --
        Rod Taylor <[EMAIL PROTECTED]>


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [EMAIL PROTECTED] so that your
      message can get through to the mailing list cleanly

Reply via email to