Changeset 812 for pykota/trunk/pykota/storages/sql.py
- Timestamp:
- 02/27/03 09:41:49 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/sql.py
r791 r812 15 15 # 16 16 # $Log$ 17 # Revision 1.19 2003/02/27 08:41:49 jalet 18 # DATETIME is not supported anymore in PostgreSQL 7.3 it seems, but 19 # TIMESTAMP is. 20 # 17 21 # Revision 1.18 2003/02/10 12:07:31 jalet 18 22 # Now repykota should output the recorded total page number for each printer too. … … 184 188 (userid, printerid) = self.getUPIds(username, printername) 185 189 if (userid is not None) and (printerid is not None) : 186 self.doQuery("UPDATE userpquota SET datelimit=%s:: DATETIMEWHERE userid=%s AND printerid=%s;" % (self.doQuote("%04i-%02i-%02i %02i:%02i:%02i" % (datelimit.year, datelimit.month, datelimit.day, datelimit.hour, datelimit.minute, datelimit.second)), self.doQuote(userid), self.doQuote(printerid)))190 self.doQuery("UPDATE userpquota SET datelimit=%s::TIMESTAMP WHERE userid=%s AND printerid=%s;" % (self.doQuote("%04i-%02i-%02i %02i:%02i:%02i" % (datelimit.year, datelimit.month, datelimit.day, datelimit.hour, datelimit.minute, datelimit.second)), self.doQuote(userid), self.doQuote(printerid))) 187 191 188 192 def updateUserPQuota(self, username, printername, pagecount) :