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
1d6b681e
Commit
1d6b681e
authored
Feb 17, 2009
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark 3rd argument of validate_tupdesc_compat() for translation, instead of
marking up each instance separately.
parent
b06abb74
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
src/pl/plpgsql/src/nls.mk
src/pl/plpgsql/src/nls.mk
+2
-2
src/pl/plpgsql/src/pl_exec.c
src/pl/plpgsql/src/pl_exec.c
+5
-9
No files found.
src/pl/plpgsql/src/nls.mk
View file @
1d6b681e
# $PostgreSQL: pgsql/src/pl/plpgsql/src/nls.mk,v 1.
3 2009/02/17 09:24:57
petere Exp $
# $PostgreSQL: pgsql/src/pl/plpgsql/src/nls.mk,v 1.
4 2009/02/17 12:51:59
petere Exp $
CATALOG_NAME
:=
plpgsql
AVAIL_LANGUAGES
:=
es
GETTEXT_FILES
:=
pl_comp.c pl_exec.c pl_gram.c pl_funcs.c pl_handler.c pl_scan.c
GETTEXT_TRIGGERS
:=
_ errmsg errdetail errdetail_log errhint errcontext yyerror
GETTEXT_TRIGGERS
:=
_ errmsg errdetail errdetail_log errhint errcontext
validate_tupdesc_compat:3
yyerror
.PHONY
:
gettext-files
gettext-files
:
distprep
src/pl/plpgsql/src/pl_exec.c
View file @
1d6b681e
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.23
2 2009/02/05 15:25:49 momjian
Exp $
* $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.23
3 2009/02/17 12:51:59 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -387,8 +387,7 @@ plpgsql_exec_function(PLpgSQL_function *func, FunctionCallInfo fcinfo)
case
TYPEFUNC_COMPOSITE
:
/* got the expected result rowtype, now check it */
validate_tupdesc_compat
(
tupdesc
,
estate
.
rettupdesc
,
gettext_noop
(
"returned record type does "
"not match expected record type"
));
"returned record type does not match expected record type"
);
break
;
case
TYPEFUNC_RECORD
:
...
...
@@ -707,8 +706,7 @@ plpgsql_exec_trigger(PLpgSQL_function *func,
{
validate_tupdesc_compat
(
trigdata
->
tg_relation
->
rd_att
,
estate
.
rettupdesc
,
gettext_noop
(
"returned tuple structure does "
"not match table of trigger event"
));
"returned tuple structure does not match table of trigger event"
);
/* Copy tuple to upper executor memory */
rettup
=
SPI_copytuple
((
HeapTuple
)
DatumGetPointer
(
estate
.
retval
));
}
...
...
@@ -2201,8 +2199,7 @@ exec_stmt_return_next(PLpgSQL_execstate *estate,
errdetail
(
"The tuple structure of a not-yet-assigned"
" record is indeterminate."
)));
validate_tupdesc_compat
(
tupdesc
,
rec
->
tupdesc
,
gettext_noop
(
"wrong record type supplied "
"in RETURN NEXT"
));
"wrong record type supplied in RETURN NEXT"
);
tuple
=
rec
->
tup
;
}
break
;
...
...
@@ -2310,8 +2307,7 @@ exec_stmt_return_query(PLpgSQL_execstate *estate,
}
validate_tupdesc_compat
(
estate
->
rettupdesc
,
portal
->
tupDesc
,
gettext_noop
(
"structure of query does not match "
"function result type"
));
"structure of query does not match function result type"
);
while
(
true
)
{
...
...
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