3
3
* procedural language (PL)
4
4
*
5
5
* IDENTIFICATION
6
- * $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.20 2000/04/12 17:17:20 momjian Exp $
6
+ * $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.21 2000/04/16 04:19:41 tgl Exp $
7
7
*
8
8
* This software is copyrighted by Jan Wieck - Hamburg.
9
9
*
@@ -473,7 +473,8 @@ pltcl_func_handler(FmgrInfo *proinfo,
473
473
{
474
474
free (prodesc -> proname );
475
475
free (prodesc );
476
- elog (ERROR , "pltcl: cache lookup from pg_proc failed" );
476
+ elog (ERROR , "pltcl: cache lookup for proc %u failed" ,
477
+ proinfo -> fn_oid );
477
478
}
478
479
procStruct = (Form_pg_proc ) GETSTRUCT (procTup );
479
480
@@ -488,7 +489,8 @@ pltcl_func_handler(FmgrInfo *proinfo,
488
489
{
489
490
free (prodesc -> proname );
490
491
free (prodesc );
491
- elog (ERROR , "pltcl: cache lookup for return type failed" );
492
+ elog (ERROR , "pltcl: cache lookup for return type %u failed" ,
493
+ procStruct -> prorettype );
492
494
}
493
495
typeStruct = (Form_pg_type ) GETSTRUCT (typeTup );
494
496
@@ -517,7 +519,8 @@ pltcl_func_handler(FmgrInfo *proinfo,
517
519
{
518
520
free (prodesc -> proname );
519
521
free (prodesc );
520
- elog (ERROR , "pltcl: cache lookup for argument type failed" );
522
+ elog (ERROR , "pltcl: cache lookup for argument type %u failed" ,
523
+ procStruct -> proargtypes [i ]);
521
524
}
522
525
typeStruct = (Form_pg_type ) GETSTRUCT (typeTup );
523
526
@@ -803,7 +806,8 @@ pltcl_trigger_handler(FmgrInfo *proinfo)
803
806
{
804
807
free (prodesc -> proname );
805
808
free (prodesc );
806
- elog (ERROR , "pltcl: cache lookup from pg_proc failed" );
809
+ elog (ERROR , "pltcl: cache lookup for proc %u failed" ,
810
+ proinfo -> fn_oid );
807
811
}
808
812
procStruct = (Form_pg_proc ) GETSTRUCT (procTup );
809
813
@@ -1123,9 +1127,9 @@ pltcl_trigger_handler(FmgrInfo *proinfo)
1123
1127
0 , 0 , 0 );
1124
1128
if (!HeapTupleIsValid (typeTup ))
1125
1129
{
1126
- elog (ERROR , "pltcl: Cache lookup for attribute '%s' type %ld failed" ,
1130
+ elog (ERROR , "pltcl: Cache lookup for attribute '%s' type %u failed" ,
1127
1131
ret_values [-- i ],
1128
- ObjectIdGetDatum ( tupdesc -> attrs [attnum - 1 ]-> atttypid ) );
1132
+ tupdesc -> attrs [attnum - 1 ]-> atttypid );
1129
1133
}
1130
1134
typinput = (Oid ) (((Form_pg_type ) GETSTRUCT (typeTup ))-> typinput );
1131
1135
typelem = (Oid ) (((Form_pg_type ) GETSTRUCT (typeTup ))-> typelem );
@@ -2137,8 +2141,8 @@ pltcl_set_tuple_values(Tcl_Interp *interp, char *arrayname,
2137
2141
0 , 0 , 0 );
2138
2142
if (!HeapTupleIsValid (typeTup ))
2139
2143
{
2140
- elog (ERROR , "pltcl: Cache lookup for attribute '%s' type %ld failed" ,
2141
- attname , ObjectIdGetDatum ( tupdesc -> attrs [i ]-> atttypid ) );
2144
+ elog (ERROR , "pltcl: Cache lookup for attribute '%s' type %u failed" ,
2145
+ attname , tupdesc -> attrs [i ]-> atttypid );
2142
2146
}
2143
2147
2144
2148
typoutput = (Oid ) (((Form_pg_type ) GETSTRUCT (typeTup ))-> typoutput );
@@ -2210,8 +2214,8 @@ pltcl_build_tuple_argument(HeapTuple tuple, TupleDesc tupdesc,
2210
2214
0 , 0 , 0 );
2211
2215
if (!HeapTupleIsValid (typeTup ))
2212
2216
{
2213
- elog (ERROR , "pltcl: Cache lookup for attribute '%s' type %ld failed" ,
2214
- attname , ObjectIdGetDatum ( tupdesc -> attrs [i ]-> atttypid ) );
2217
+ elog (ERROR , "pltcl: Cache lookup for attribute '%s' type %u failed" ,
2218
+ attname , tupdesc -> attrs [i ]-> atttypid );
2215
2219
}
2216
2220
2217
2221
typoutput = (Oid ) (((Form_pg_type ) GETSTRUCT (typeTup ))-> typoutput );
0 commit comments