Closed mcfunley closed 4 years ago
Methods already defined on the Module class can't be used as query names. disconnect is one example.
Module
disconnect
The exception when you try this isn't helpful:
... File "/Users/dmckinley/.pyenv/versions/duesbot/lib/python3.7/site-packages/pugsql/compiler.py", line 50, in __init__ sqlfile, s.name, self._statements[s.name].filename)) KeyError: 'disconnect'
The exception clause is assuming there's a conflict with a query. Need to update this to explain that the method names are reserved.
Methods already defined on the
Module
class can't be used as query names.disconnect
is one example.The exception when you try this isn't helpful:
The exception clause is assuming there's a conflict with a query. Need to update this to explain that the method names are reserved.