Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcfa4d4d

Browse files
committed
Tweak select_common_type() to deal with possibility of multiple preferred
types in a category --- it was taking the last preferred type among theinputs, rather than the first one as intended.
1 parent0c2629e commitcfa4d4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/backend/parser/parse_coerce.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.51 2000/12/15 18:02:47 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.52 2000/12/17 04:32:29 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -364,6 +364,7 @@ select_common_type(List *typeids, const char *context)
364364
context,typeidTypeName(ptype),typeidTypeName(ntype));
365365
}
366366
elseif (IsPreferredType(pcategory,ntype)
367+
&& !IsPreferredType(pcategory,ptype)
367368
&&can_coerce_type(1,&ptype,&ntype))
368369
{
369370
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp