summaryrefslogtreecommitdiff
path: root/src/pl
diff options
context:
space:
mode:
authorBruce Momjian1999-05-10 00:46:32 +0000
committerBruce Momjian1999-05-10 00:46:32 +0000
commit4853495e033245bbfc1d212ba8f2286008873f64 (patch)
tree230beedec9848a1f462adbdf0dd1877c5d304fd5 /src/pl
parentb7332c92438a518c7845a42f8892d2bd4a4f3258 (diff)
Change error messages to oids come out as %u and not %d. Change has no
real affect now.
Diffstat (limited to 'src/pl')
-rw-r--r--src/pl/plpgsql/src/pl_comp.c12
-rw-r--r--src/pl/plpgsql/src/pl_exec.c8
-rw-r--r--src/pl/plpgsql/src/pl_funcs.c4
3 files changed, 12 insertions, 12 deletions
diff --git a/src/pl/plpgsql/src/pl_comp.c b/src/pl/plpgsql/src/pl_comp.c
index 08176cb280..d494b5fe4c 100644
--- a/src/pl/plpgsql/src/pl_comp.c
+++ b/src/pl/plpgsql/src/pl_comp.c
@@ -3,7 +3,7 @@
* procedural language
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_comp.c,v 1.5 1999/01/28 11:48:31 wieck Exp $
+ * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_comp.c,v 1.6 1999/05/10 00:46:29 momjian Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
@@ -182,7 +182,7 @@ plpgsql_compile(Oid fn_oid, int functype)
if (!HeapTupleIsValid(typeTup))
{
plpgsql_comperrinfo();
- elog(ERROR, "cache lookup for return type %d failed",
+ elog(ERROR, "cache lookup for return type %u failed",
procStruct->prorettype);
}
typeStruct = (Form_pg_type) GETSTRUCT(typeTup);
@@ -213,7 +213,7 @@ plpgsql_compile(Oid fn_oid, int functype)
if (!HeapTupleIsValid(typeTup))
{
plpgsql_comperrinfo();
- elog(ERROR, "cache lookup for argument type %d failed",
+ elog(ERROR, "cache lookup for argument type %u failed",
procStruct->proargtypes[i]);
}
typeStruct = (Form_pg_type) GETSTRUCT(typeTup);
@@ -451,7 +451,7 @@ plpgsql_compile(Oid fn_oid, int functype)
break;
default:
- elog(ERROR, "unknown function type %d in plpgsql_compile()",
+ elog(ERROR, "unknown function type %u in plpgsql_compile()",
functype);
break;
}
@@ -1074,7 +1074,7 @@ plpgsql_parse_dblwordtype(char *string)
if (!HeapTupleIsValid(typetup))
{
plpgsql_comperrinfo();
- elog(ERROR, "cache lookup for type %d of %s.%s failed",
+ elog(ERROR, "cache lookup for type %u of %s.%s failed",
attrStruct->atttypid, word1, word2);
}
@@ -1189,7 +1189,7 @@ plpgsql_parse_wordrowtype(char *string)
if (!HeapTupleIsValid(typetup))
{
plpgsql_comperrinfo();
- elog(ERROR, "cache lookup for type %d of %s.%s failed",
+ elog(ERROR, "cache lookup for type %u of %s.%s failed",
attrStruct->atttypid, word1,
nameout(&(attrStruct->attname)));
}
diff --git a/src/pl/plpgsql/src/pl_exec.c b/src/pl/plpgsql/src/pl_exec.c
index edb7e381a6..250171b873 100644
--- a/src/pl/plpgsql/src/pl_exec.c
+++ b/src/pl/plpgsql/src/pl_exec.c
@@ -3,7 +3,7 @@
* procedural language
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.9 1999/04/20 02:19:57 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.10 1999/05/10 00:46:30 momjian Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
@@ -1557,7 +1557,7 @@ exec_stmt_raise(PLpgSQL_execstate * estate, PLpgSQL_stmt_raise * stmt)
typetup = SearchSysCacheTuple(TYPOID,
ObjectIdGetDatum(var->datatype->typoid), 0, 0, 0);
if (!HeapTupleIsValid(typetup))
- elog(ERROR, "cache lookup for type %d failed (1)", var->datatype->typoid);
+ elog(ERROR, "cache lookup for type %u failed (1)", var->datatype->typoid);
typeStruct = (Form_pg_type) GETSTRUCT(typetup);
fmgr_info(typeStruct->typoutput, &finfo_output);
@@ -1962,7 +1962,7 @@ exec_assign_value(PLpgSQL_execstate * estate,
typetup = SearchSysCacheTuple(TYPOID,
ObjectIdGetDatum(atttype), 0, 0, 0);
if (!HeapTupleIsValid(typetup))
- elog(ERROR, "cache lookup for type %d failed", atttype);
+ elog(ERROR, "cache lookup for type %u failed", atttype);
typeStruct = (Form_pg_type) GETSTRUCT(typetup);
fmgr_info(typeStruct->typinput, &finfo_input);
@@ -2393,7 +2393,7 @@ exec_cast_value(Datum value, Oid valtype,
typetup = SearchSysCacheTuple(TYPOID,
ObjectIdGetDatum(valtype), 0, 0, 0);
if (!HeapTupleIsValid(typetup))
- elog(ERROR, "cache lookup for type %d failed", valtype);
+ elog(ERROR, "cache lookup for type %u failed", valtype);
typeStruct = (Form_pg_type) GETSTRUCT(typetup);
fmgr_info(typeStruct->typoutput, &finfo_output);
diff --git a/src/pl/plpgsql/src/pl_funcs.c b/src/pl/plpgsql/src/pl_funcs.c
index d8dd645a26..5416d0d689 100644
--- a/src/pl/plpgsql/src/pl_funcs.c
+++ b/src/pl/plpgsql/src/pl_funcs.c
@@ -3,7 +3,7 @@
* procedural language
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_funcs.c,v 1.3 1999/01/28 11:48:31 wieck Exp $
+ * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_funcs.c,v 1.4 1999/05/10 00:46:31 momjian Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
@@ -703,7 +703,7 @@ plpgsql_dumptree(PLpgSQL_function * func)
{
PLpgSQL_var *var = (PLpgSQL_var *) d;
- printf("VAR %-16s type %s (typoid %d) atttypmod %d\n",
+ printf("VAR %-16s type %s (typoid %u) atttypmod %d\n",
var->refname, var->datatype->typname,
var->datatype->typoid,
var->datatype->atttypmod);