cvs diff -u -r1.1 -r1.2 money.c Index: money.c =================================================================== RCS file: /var/cvs/postgresql/contrib/money/money.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -u -r1.1 -r1.2 --- money.c 2001/06/20 20:58:40 1.1 +++ money.c 2001/06/27 20:17:48 1.2 @@ -61,7 +61,7 @@ #endif if (!PointerIsValid(money)) - elog(ERROR, "moneytoint2: Invalid pointer to money"); + return (int16) NULL; value = *money; @@ -107,7 +107,7 @@ #endif if (!PointerIsValid(money)) - elog(ERROR, "moneytoint4: Invalid pointer to money"); + return (int32) NULL; value = *money; @@ -153,7 +153,7 @@ #endif if (!PointerIsValid(money)) - elog(ERROR, "moneytoint8: Invalid pointer to money"); + return NULL; if (!PointerIsValid(result = palloc(sizeof(int64)))) elog(ERROR, "moneytoint8: Memory allocation failed"); @@ -197,7 +197,7 @@ #endif if (!PointerIsValid(money)) - elog(ERROR, "moneytofloat4: Invalid pointer to money"); + return NULL; if (!PointerIsValid(result = palloc(sizeof(float32data)))) elog(ERROR, "moneytofloat4: Memory allocation failed"); @@ -239,7 +239,7 @@ #endif if (!PointerIsValid(money)) - elog(ERROR, "moneytofloat8: Invalid pointer to money"); + return NULL; if (!PointerIsValid(result = palloc(sizeof(float64data)))) elog(ERROR, "moneytofloat8: Memory allocation failed");