@@ -327,10 +327,8 @@ dblink_fetch(PG_FUNCTION_ARGS)
327
327
tupdesc = TypeGetTupleDesc (functypeid ,NIL );
328
328
else if (functyptype == 'p' && functypeid == RECORDOID )
329
329
tupdesc = pgresultGetTupleDesc (res );
330
- else if (functyptype == 'b' )
331
- elog (ERROR ,"dblink_fetch: invalid kind of return type specified for function" );
332
330
else
333
- elog (ERROR ,"dblink_fetch:unknown kind of return typespecified for function " );
331
+ elog (ERROR ,"dblink_fetch: return typemust be a row type " );
334
332
335
333
/* store needed metadata for subsequent calls */
336
334
slot = TupleDescGetSlot (tupdesc );
@@ -506,10 +504,8 @@ dblink_record(PG_FUNCTION_ARGS)
506
504
tupdesc = TypeGetTupleDesc (functypeid ,NIL );
507
505
else if (functyptype == 'p' && functypeid == RECORDOID )
508
506
tupdesc = pgresultGetTupleDesc (res );
509
- else if (functyptype == 'b' )
510
- elog (ERROR ,"Invalid kind of return type specified for function" );
511
507
else
512
- elog (ERROR ,"Unknown kind of return typespecified for function " );
508
+ elog (ERROR ,"dblink: return typemust be a row type " );
513
509
}
514
510
515
511
/* store needed metadata for subsequent calls */