Closed aris-koning closed 4 years ago
small request for adding type information, apart from that looks good! Thanks.
the travis build for python 3.8 is also failing, not sure why the integration is disabled: https://travis-ci.org/github/gijzelaerr/pymonetdb/jobs/733378555
I added the missing new line that Travis was complaining about. But I don't know what ymonetdb/mapi.py:244:49: E741 ambiguous variable name 'l'
means in the failing Travis output.
thanks!
You're welcome.
This pull request is based on previous work from #69. It constitutes some fixes for
SEC_INTERVAL
type and tests for theSEC_INTERVAL
andMONTH_INTERVAL
types.This pull request allows application developers to benefit from a 1-1 correspondence between Python's
datetime.timedelta
class and MonetDB'sINTERVAL SECOND
type.Concerning the
MONTH_INTERVAL
type: unfortunately there is no native Python type that has a natural fit to theMONTH_INTERVAL
. But at least application developers can expect any returned query result of this type to be handled as a normal Pythonint
.