Changeset: a764b2bb2187 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a764b2bb2187 Modified Files: clients/python3/monetdb/sql/connections.py Branch: default Log Message:
added missing timeout functions diffs (18 lines): diff --git a/clients/python3/monetdb/sql/connections.py b/clients/python3/monetdb/sql/connections.py --- a/clients/python3/monetdb/sql/connections.py +++ b/clients/python3/monetdb/sql/connections.py @@ -160,6 +160,14 @@ class Connection: raise Error("connection closed") return True + def settimeout(self,timeout): + """ set the amount of time before a connection times out """ + self.mapi.socket.settimeout(timeout) + + + def gettimeout(self): + """ get the amount of time before a connection times out """ + return self.mapi.socket.gettimeout() # these are required by the python DBAPI Warning = Warning _______________________________________________ Checkin-list mailing list Checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list