Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
96193aa8
Commit
96193aa8
authored
Jul 12, 2008
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More replacements of binary compatible to binary coercible.
parent
c96439b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/backend/commands/functioncmds.c
src/backend/commands/functioncmds.c
+3
-3
src/bin/psql/describe.c
src/bin/psql/describe.c
+3
-3
No files found.
src/backend/commands/functioncmds.c
View file @
96193aa8
...
...
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/functioncmds.c,v 1.9
4 2008/07/11 07:02:43
petere Exp $
* $PostgreSQL: pgsql/src/backend/commands/functioncmds.c,v 1.9
5 2008/07/12 10:44:56
petere Exp $
*
* DESCRIPTION
* These routines take the parse tree and pick out the
...
...
@@ -1407,7 +1407,7 @@ CreateCast(CreateCastStmt *stmt)
if
(
!
IsBinaryCoercible
(
sourcetypeid
,
procstruct
->
proargtypes
.
values
[
0
]))
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_OBJECT_DEFINITION
),
errmsg
(
"argument of cast function must match or be binary-co
mpatible with
source data type"
)));
errmsg
(
"argument of cast function must match or be binary-co
ercible from
source data type"
)));
if
(
nargs
>
1
&&
procstruct
->
proargtypes
.
values
[
1
]
!=
INT4OID
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_OBJECT_DEFINITION
),
...
...
@@ -1419,7 +1419,7 @@ CreateCast(CreateCastStmt *stmt)
if
(
!
IsBinaryCoercible
(
procstruct
->
prorettype
,
targettypeid
))
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_OBJECT_DEFINITION
),
errmsg
(
"return data type of cast function must match or be binary-co
mpatible with
target data type"
)));
errmsg
(
"return data type of cast function must match or be binary-co
ercible to
target data type"
)));
/*
* Restricting the volatility of a cast function may or may not be a
...
...
src/bin/psql/describe.c
View file @
96193aa8
...
...
@@ -8,7 +8,7 @@
*
* Copyright (c) 2000-2008, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.17
5 2008/07/03 15:59:55
petere Exp $
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.17
6 2008/07/12 10:44:56
petere Exp $
*/
#include "postgres_fe.h"
...
...
@@ -2002,14 +2002,14 @@ listCasts(const char *pattern)
initPQExpBuffer
(
&
buf
);
/*
* We need left join here for binary casts. Also note that we don't
* attempt to localize '(binary co
mpat
ible)', because there's too much
* attempt to localize '(binary co
erc
ible)', because there's too much
* risk of gettext translating a function name that happens to match
* some string in the PO database.
*/
printfPQExpBuffer
(
&
buf
,
"SELECT pg_catalog.format_type(castsource, NULL) AS
\"
%s
\"
,
\n
"
" pg_catalog.format_type(casttarget, NULL) AS
\"
%s
\"
,
\n
"
" CASE WHEN castfunc = 0 THEN '(binary co
mpat
ible)'
\n
"
" CASE WHEN castfunc = 0 THEN '(binary co
erc
ible)'
\n
"
" ELSE p.proname
\n
"
" END as
\"
%s
\"
,
\n
"
" CASE WHEN c.castcontext = 'e' THEN '%s'
\n
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment