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

Commit3bdede3

Browse files
committed
Fix IsBinaryCoercible to not confuse a cast using in/out functions
with binary compatibility.Backpatch to 8.4 where INOUT casts were introduced.
1 parent0ea0afa commit3bdede3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/parser/parse_coerce.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/parser/parse_coerce.c,v 2.181 2010/02/26 02:00:52 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/parser/parse_coerce.c,v 2.182 2010/03/04 09:39:53 heikki Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1792,7 +1792,7 @@ IsBinaryCoercible(Oid srctype, Oid targettype)
17921792
return false;/* no cast */
17931793
castForm= (Form_pg_cast)GETSTRUCT(tuple);
17941794

1795-
result= (castForm->castfunc==InvalidOid&&
1795+
result= (castForm->castmethod==COERCION_METHOD_BINARY&&
17961796
castForm->castcontext==COERCION_CODE_IMPLICIT);
17971797

17981798
ReleaseSysCache(tuple);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp