Segfault-Inc / Multicorn

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

Error if explain returns None #158

Closed oscardssmith closed 3 years ago

oscardssmith commented 8 years ago

I had implemented the following function for explain. def explain(self, quals, columns, sortkeys=None, verbose=False): if verbose: return self.qual_list(quals) The problem is that if verbose is false, None will be returned, which causes the connection to be reset. I know that it expects a return of a string, but a quick check for a None return would probably be a good idea.