7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.28 1998/09/01 04:30:31 momjian Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.29 1998/09/25 13:36:04 thomas Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -672,34 +672,22 @@ func_select_candidate(int nargs,
672
672
if ((nmatch + nident ) == nargs )
673
673
return current_candidate -> args ;
674
674
675
- #ifdef PARSEDEBUG
676
- printf ("func_select_candidate- candidate has %d matches\n" , nmatch );
677
- #endif
678
675
if ((nmatch > nbestMatch ) || (last_candidate == NULL ))
679
676
{
680
677
nbestMatch = nmatch ;
681
678
candidates = current_candidate ;
682
679
last_candidate = current_candidate ;
683
680
ncandidates = 1 ;
684
- #ifdef PARSEDEBUG
685
- printf ("func_select_candidate- choose candidate as best match\n" );
686
- #endif
687
681
}
688
682
else if (nmatch == nbestMatch )
689
683
{
690
684
last_candidate -> next = current_candidate ;
691
685
last_candidate = current_candidate ;
692
686
ncandidates ++ ;
693
- #ifdef PARSEDEBUG
694
- printf ("func_select_candidate- choose candidate as possible match\n" );
695
- #endif
696
687
}
697
688
else
698
689
{
699
690
last_candidate -> next = NULL ;
700
- #ifdef PARSEDEBUG
701
- printf ("func_select_candidate- reject candidate as possible match\n" );
702
- #endif
703
691
}
704
692
}
705
693
@@ -727,17 +715,10 @@ func_select_candidate(int nargs,
727
715
{
728
716
slot_category = current_category ;
729
717
slot_type = current_type ;
730
- #ifdef PARSEDEBUG
731
- printf ("func_select_candidate- assign column #%d first candidate slot type %s\n" ,
732
- i , typeidTypeName (current_type ));
733
- #endif
734
718
}
735
719
else if ((current_category != slot_category )
736
720
&& IS_BUILTIN_TYPE (current_type ))
737
721
{
738
- #ifdef PARSEDEBUG
739
- printf ("func_select_candidate- multiple possible types for column #%d; unable to choose candidate\n" , i );
740
- #endif
741
722
return NULL ;
742
723
}
743
724
else if (current_type != slot_type )
@@ -746,36 +727,20 @@ func_select_candidate(int nargs,
746
727
{
747
728
slot_type = current_type ;
748
729
candidates = current_candidate ;
749
- #ifdef PARSEDEBUG
750
- printf ("func_select_candidate- column #%d found preferred candidate type %s\n" ,
751
- i , typeidTypeName (slot_type ));
752
- #endif
753
730
}
754
731
else
755
732
{
756
- #ifdef PARSEDEBUG
757
- printf ("func_select_candidate- column #%d found possible candidate type %s\n" ,
758
- i , typeidTypeName (current_type ));
759
- #endif
760
733
}
761
734
}
762
735
}
763
736
764
737
if (slot_type != InvalidOid )
765
738
{
766
739
input_typeids [i ] = slot_type ;
767
- #ifdef PARSEDEBUG
768
- printf ("func_select_candidate- assign column #%d slot type %s\n" ,
769
- i , typeidTypeName (input_typeids [i ]));
770
- #endif
771
740
}
772
741
}
773
742
else
774
743
{
775
- #ifdef PARSEDEBUG
776
- printf ("func_select_candidate- column #%d input type is %s\n" ,
777
- i , typeidTypeName (input_typeids [i ]));
778
- #endif
779
744
}
780
745
}
781
746
0 commit comments