mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Fix bug in recent improvement to type resolution code. Forgot to retain
"best choice" type category when resolving UNKNOWN function and operator arguments. Thanks to Tom Lane for finding test case.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.92 2000/11/06 15:42:30 thomas Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.93 2000/11/11 19:49:26 thomas Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -951,6 +951,8 @@ func_select_candidate(int nargs,
|
||||
/* started out as unknown type, so give preference to string type, if available */
|
||||
if (current_category == STRING_TYPE)
|
||||
{
|
||||
slot_category = current_category;
|
||||
slot_type = current_type;
|
||||
/* forget all previous candidates */
|
||||
candidates = current_candidate;
|
||||
last_candidate = current_candidate;
|
||||
|
Reference in New Issue
Block a user