Re: [HACKERS] Plpython bug with int8 - Found, need advice

2001-10-04 Thread Tom Lane
Bradley McLean <[EMAIL PROTECTED]> writes: > 1) All of the conversion functions that return NULL ( line 1463 as > an example, page up and down from there) will cause the backend to terminate > abnormally. I'm not sure if this is considered a correct behavior, > or if elog(ERROR, ...) is a better

Re: [HACKERS] Plpython bug with int8 - Found, need advice

2001-10-01 Thread Bradley McLean
Replying to my own method. In src/pl/plpython/plpython.c around line 1381, PLy_input_datum_func2 erroneously assigns PLyInt_FromString to handle int8 types. Because PLyInt_FromString uses strtol at line 1461, it fails as soon as you pass it a parameter exceed the bounds of an int4. There are tw