[postgis-devel] unite_array() error handling
Markus Schaber
schabios at logi-track.com
Tue Feb 8 06:10:14 PST 2005
Hi, David,
David Blasby schrieb:
> "elog(ERROR,...)" causes the function to return, so the next line
> "PG_RETURN_NULL()" never actually gets executed.
>
> Unfortunately, the compiler isnt smart enough to know that its going
> to return, so it will sometimes complain. Adding the
> never-actually-executed "PG_RETURN_NULL()" makes the compiler happy.
So this is the same as calling System.exit() in java, which had bitten
me some times. :-)
Thanks,
Markus
--
markus schaber | dipl. informatiker
logi-track ag | rennweg 14-16 | ch 8001 zürich
phone +41-43-888 62 52 | fax +41-43-888 62 53
mailto:schabios at logi-track.com | www.logi-track.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20050208/0b50251d/attachment.sig>
More information about the postgis-devel
mailing list