@@ -327,10 +327,8 @@ dblink_fetch(PG_FUNCTION_ARGS)
327327tupdesc = TypeGetTupleDesc (functypeid ,NIL );
328328else if (functyptype == 'p' && functypeid == RECORDOID )
329329tupdesc = pgresultGetTupleDesc (res );
330- else if (functyptype == 'b' )
331- elog (ERROR ,"dblink_fetch: invalid kind of return type specified for function" );
332330else
333- elog (ERROR ,"dblink_fetch:unknown kind of return typespecified for function " );
331+ elog (ERROR ,"dblink_fetch: return typemust be a row type " );
334332
335333/* store needed metadata for subsequent calls */
336334slot = TupleDescGetSlot (tupdesc );
@@ -506,10 +504,8 @@ dblink_record(PG_FUNCTION_ARGS)
506504tupdesc = TypeGetTupleDesc (functypeid ,NIL );
507505else if (functyptype == 'p' && functypeid == RECORDOID )
508506tupdesc = pgresultGetTupleDesc (res );
509- else if (functyptype == 'b' )
510- elog (ERROR ,"Invalid kind of return type specified for function" );
511507else
512- elog (ERROR ,"Unknown kind of return typespecified for function " );
508+ elog (ERROR ,"dblink: return typemust be a row type " );
513509}
514510
515511/* store needed metadata for subsequent calls */