We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f106779 commit 45cc0e9Copy full SHA for 45cc0e9
src/pl/plpgsql/src/pl_exec.c
@@ -3,7 +3,7 @@
3
* procedural language
4
*
5
* IDENTIFICATION
6
- * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.20 2000/04/12 17:17:19 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.21 2000/04/28 00:12:44 tgl Exp $
7
8
* This software is copyrighted by Jan Wieck - Hamburg.
9
@@ -1587,6 +1587,8 @@ exec_stmt_raise(PLpgSQL_execstate * estate, PLpgSQL_stmt_raise * stmt)
1587
if (fno == SPI_ERROR_NOATTRIBUTE)
1588
elog(ERROR, "record %s has no field %s", rec->refname, recfield->fieldname);
1589
extval = SPI_getvalue(rec->tup, rec->tupdesc, fno);
1590
+ if (extval == NULL)
1591
+ extval = "<NULL>";
1592
}
1593
plpgsql_dstring_append(&ds, extval);
1594
break;
0 commit comments