[CalendarServer-changes] [14504] CalendarServer/trunk/txdav/base/datastore/subpostgres.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Mar 4 14:12:52 PST 2015
Revision: 14504
http://trac.calendarserver.org//changeset/14504
Author: wsanchez at apple.com
Date: 2015-03-04 14:12:52 -0800 (Wed, 04 Mar 2015)
Log Message:
-----------
Set autocommit for create connection.
Modified Paths:
--------------
CalendarServer/trunk/txdav/base/datastore/subpostgres.py
Modified: CalendarServer/trunk/txdav/base/datastore/subpostgres.py
===================================================================
--- CalendarServer/trunk/txdav/base/datastore/subpostgres.py 2015-03-04 20:25:44 UTC (rev 14503)
+++ CalendarServer/trunk/txdav/base/datastore/subpostgres.py 2015-03-04 22:12:52 UTC (rev 14504)
@@ -483,6 +483,9 @@
error=e
)
raise
+
+ createDatabaseConn.realConnection.autocommit = True
+
createDatabaseCursor = createDatabaseConn.cursor()
createDatabaseCursor.execute("commit")
return createDatabaseConn, createDatabaseCursor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20150304/f9e95dfb/attachment.html>
More information about the calendarserver-changes
mailing list