Hello -
I want to write a very simple User Defined Function in C++ that takes
in a VARCHAR(15) and runs it through inet_addr to return the integer
representation of an IP. My trouble is that I can't seem to call
inet_addr without getting: SQL0430N User defined function
"SECUREWORKS.IP_TO_INT" (specific name
"SQL040617075607700") has abnormally terminated. SQLSTATE=38503
It truly seems to be in the call itself and not my parameters because,
for the sake of testing, I have hard coded an integer return and then
just called inet_addr "on the side" with a simple statement something
like
long lAddress = inet_addr("172.16.55.55");
Has anyone successfully done this before or does anyone have any
helpful suggestions?
Thanks very much
Michael J. Hubbard