[CalendarServer-changes] [8440] CalendarServer/branches/users/glyph/shared-pool-fixes
source_changes at macosforge.org
source_changes at macosforge.org
Tue Dec 13 13:50:54 PST 2011
Revision: 8440
http://trac.macosforge.org/projects/calendarserver/changeset/8440
Author: glyph at apple.com
Date: 2011-12-13 13:50:54 -0800 (Tue, 13 Dec 2011)
Log Message:
-----------
Don't depend on pickleability of columns, when all we need is the typeID.
Modified Paths:
--------------
CalendarServer/branches/users/glyph/shared-pool-fixes/twext/enterprise/dal/syntax.py
Property Changed:
----------------
CalendarServer/branches/users/glyph/shared-pool-fixes/
Modified: CalendarServer/branches/users/glyph/shared-pool-fixes/twext/enterprise/dal/syntax.py
===================================================================
--- CalendarServer/branches/users/glyph/shared-pool-fixes/twext/enterprise/dal/syntax.py 2011-12-13 21:50:51 UTC (rev 8439)
+++ CalendarServer/branches/users/glyph/shared-pool-fixes/twext/enterprise/dal/syntax.py 2011-12-13 21:50:54 UTC (rev 8440)
@@ -1012,7 +1012,7 @@
implements(IDerivedParameter)
def __init__(self, columnSyntax):
- self.columnSyntax = columnSyntax
+ self.typeID = columnSyntax.model.type.name.lower()
def preQuery(self, cursor):
@@ -1020,8 +1020,7 @@
'text': cx_Oracle.NCLOB,
'varchar': cx_Oracle.STRING,
'timestamp': cx_Oracle.TIMESTAMP}
- typeID = self.columnSyntax.model.type.name.lower()
- self.var = cursor.var(typeMap[typeID])
+ self.var = cursor.var(typeMap[self.typeID])
return self.var
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20111213/e61b4974/attachment-0001.html>
More information about the calendarserver-changes
mailing list