Segfault-Inc / Multicorn

Data Access Library
https://multicorn.org/
PostgreSQL License
701 stars 145 forks source link

Added check for NULL in getRowIDColumn. #161

Closed rbiro closed 5 years ago

rbiro commented 8 years ago

If I create a rowid_column method in python, PyObject_GetAttrString returns NULL. Returning NULL causes a segfault in the calling code. I've seen this reported as a bug and it's bitten me a couple of times.