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
29e3ef0f
Commit
29e3ef0f
authored
Feb 26, 2002
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use quote-marks to try to clarify a plpgsql error message, per
gripe from Dan Langille.
parent
86a07143
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
src/pl/plpgsql/src/pl_exec.c
src/pl/plpgsql/src/pl_exec.c
+14
-14
No files found.
src/pl/plpgsql/src/pl_exec.c
View file @
29e3ef0f
...
...
@@ -3,7 +3,7 @@
* procedural language
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.5
2 2001/11/15 23:31:09
tgl Exp $
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.5
3 2002/02/26 00:00:08
tgl Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
...
...
@@ -1621,7 +1621,7 @@ exec_stmt_raise(PLpgSQL_execstate * estate, PLpgSQL_stmt_raise * stmt)
{
fno
=
SPI_fnumber
(
rec
->
tupdesc
,
recfield
->
fieldname
);
if
(
fno
==
SPI_ERROR_NOATTRIBUTE
)
elog
(
ERROR
,
"record
%s has no field %s
"
,
rec
->
refname
,
recfield
->
fieldname
);
elog
(
ERROR
,
"record
\"
%s
\"
has no field named
\"
%s
\"
"
,
rec
->
refname
,
recfield
->
fieldname
);
extval
=
SPI_getvalue
(
rec
->
tup
,
rec
->
tupdesc
,
fno
);
if
(
extval
==
NULL
)
extval
=
"<NULL>"
;
...
...
@@ -1786,10 +1786,10 @@ exec_prepare_plan(PLpgSQL_execstate * estate,
rec
=
(
PLpgSQL_rec
*
)
(
estate
->
datums
[
recfield
->
recno
]);
if
(
!
HeapTupleIsValid
(
rec
->
tup
))
elog
(
ERROR
,
"record
%s
is unassigned yet"
,
rec
->
refname
);
elog
(
ERROR
,
"record
\"
%s
\"
is unassigned yet"
,
rec
->
refname
);
fno
=
SPI_fnumber
(
rec
->
tupdesc
,
recfield
->
fieldname
);
if
(
fno
==
SPI_ERROR_NOATTRIBUTE
)
elog
(
ERROR
,
"record
%s has no field %s
"
,
rec
->
refname
,
recfield
->
fieldname
);
elog
(
ERROR
,
"record
\"
%s
\"
has no field named
\"
%s
\"
"
,
rec
->
refname
,
recfield
->
fieldname
);
argtypes
[
i
]
=
SPI_gettypeid
(
rec
->
tupdesc
,
fno
);
break
;
...
...
@@ -1871,10 +1871,10 @@ exec_stmt_execsql(PLpgSQL_execstate * estate,
rec
=
(
PLpgSQL_rec
*
)
(
estate
->
datums
[
recfield
->
recno
]);
if
(
!
HeapTupleIsValid
(
rec
->
tup
))
elog
(
ERROR
,
"record
%s
is unassigned yet"
,
rec
->
refname
);
elog
(
ERROR
,
"record
\"
%s
\"
is unassigned yet"
,
rec
->
refname
);
fno
=
SPI_fnumber
(
rec
->
tupdesc
,
recfield
->
fieldname
);
if
(
fno
==
SPI_ERROR_NOATTRIBUTE
)
elog
(
ERROR
,
"record
%s has no field %s
"
,
rec
->
refname
,
recfield
->
fieldname
);
elog
(
ERROR
,
"record
\"
%s
\"
has no field named
\"
%s
\"
"
,
rec
->
refname
,
recfield
->
fieldname
);
if
(
expr
->
plan_argtypes
[
i
]
!=
SPI_gettypeid
(
rec
->
tupdesc
,
fno
))
elog
(
ERROR
,
"type of %s.%s doesn't match that when preparing the plan"
,
rec
->
refname
,
recfield
->
fieldname
);
...
...
@@ -2415,10 +2415,10 @@ exec_stmt_open(PLpgSQL_execstate * estate, PLpgSQL_stmt_open * stmt)
rec
=
(
PLpgSQL_rec
*
)
(
estate
->
datums
[
recfield
->
recno
]);
if
(
!
HeapTupleIsValid
(
rec
->
tup
))
elog
(
ERROR
,
"record
%s
is unassigned yet"
,
rec
->
refname
);
elog
(
ERROR
,
"record
\"
%s
\"
is unassigned yet"
,
rec
->
refname
);
fno
=
SPI_fnumber
(
rec
->
tupdesc
,
recfield
->
fieldname
);
if
(
fno
==
SPI_ERROR_NOATTRIBUTE
)
elog
(
ERROR
,
"record
%s has no field %s
"
,
rec
->
refname
,
recfield
->
fieldname
);
elog
(
ERROR
,
"record
\"
%s
\"
has no field named
\"
%s
\"
"
,
rec
->
refname
,
recfield
->
fieldname
);
if
(
query
->
plan_argtypes
[
i
]
!=
SPI_gettypeid
(
rec
->
tupdesc
,
fno
))
elog
(
ERROR
,
"type of %s.%s doesn't match that when preparing the plan"
,
rec
->
refname
,
recfield
->
fieldname
);
...
...
@@ -2711,7 +2711,7 @@ exec_assign_value(PLpgSQL_execstate * estate,
* structure.
*/
if
(
!
HeapTupleIsValid
(
rec
->
tup
))
elog
(
ERROR
,
"record
%s
is unassigned yet - don't know its tuple structure"
,
rec
->
refname
);
elog
(
ERROR
,
"record
\"
%s
\"
is unassigned yet - don't know its tuple structure"
,
rec
->
refname
);
/*
* Get the number of the records field to change and the
...
...
@@ -2719,7 +2719,7 @@ exec_assign_value(PLpgSQL_execstate * estate,
*/
fno
=
SPI_fnumber
(
rec
->
tupdesc
,
recfield
->
fieldname
);
if
(
fno
==
SPI_ERROR_NOATTRIBUTE
)
elog
(
ERROR
,
"record
%s has no field %s
"
,
rec
->
refname
,
recfield
->
fieldname
);
elog
(
ERROR
,
"record
\"
%s
\"
has no field named
\"
%s
\"
"
,
rec
->
refname
,
recfield
->
fieldname
);
fno
--
;
natts
=
rec
->
tupdesc
->
natts
;
...
...
@@ -2914,10 +2914,10 @@ exec_run_select(PLpgSQL_execstate * estate,
rec
=
(
PLpgSQL_rec
*
)
(
estate
->
datums
[
recfield
->
recno
]);
if
(
!
HeapTupleIsValid
(
rec
->
tup
))
elog
(
ERROR
,
"record
%s
is unassigned yet"
,
rec
->
refname
);
elog
(
ERROR
,
"record
\"
%s
\"
is unassigned yet"
,
rec
->
refname
);
fno
=
SPI_fnumber
(
rec
->
tupdesc
,
recfield
->
fieldname
);
if
(
fno
==
SPI_ERROR_NOATTRIBUTE
)
elog
(
ERROR
,
"record
%s has no field %s
"
,
rec
->
refname
,
recfield
->
fieldname
);
elog
(
ERROR
,
"record
\"
%s
\"
has no field named
\"
%s
\"
"
,
rec
->
refname
,
recfield
->
fieldname
);
if
(
expr
->
plan_argtypes
[
i
]
!=
SPI_gettypeid
(
rec
->
tupdesc
,
fno
))
elog
(
ERROR
,
"type of %s.%s doesn't match that when preparing the plan"
,
rec
->
refname
,
recfield
->
fieldname
);
...
...
@@ -3052,10 +3052,10 @@ exec_eval_simple_expr(PLpgSQL_execstate * estate,
rec
=
(
PLpgSQL_rec
*
)
(
estate
->
datums
[
recfield
->
recno
]);
if
(
!
HeapTupleIsValid
(
rec
->
tup
))
elog
(
ERROR
,
"record
%s
is unassigned yet"
,
rec
->
refname
);
elog
(
ERROR
,
"record
\"
%s
\"
is unassigned yet"
,
rec
->
refname
);
fno
=
SPI_fnumber
(
rec
->
tupdesc
,
recfield
->
fieldname
);
if
(
fno
==
SPI_ERROR_NOATTRIBUTE
)
elog
(
ERROR
,
"record
%s has no field %s
"
,
rec
->
refname
,
recfield
->
fieldname
);
elog
(
ERROR
,
"record
\"
%s
\"
has no field named
\"
%s
\"
"
,
rec
->
refname
,
recfield
->
fieldname
);
if
(
expr
->
plan_argtypes
[
i
]
!=
SPI_gettypeid
(
rec
->
tupdesc
,
fno
))
elog
(
ERROR
,
"type of %s.%s doesn't match that when preparing the plan"
,
rec
->
refname
,
recfield
->
fieldname
);
...
...
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