From ecc6c1da2adddddc09d99be582595cd41f98ac16 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 5 Dec 2008 14:46:27 +0000 Subject: - Adjusted the format of create_xid() to repair two-phase commit. We now have field reports of Oracle two-phase commit working properly with this change. --- lib/sqlalchemy/databases/oracle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sqlalchemy/databases') diff --git a/lib/sqlalchemy/databases/oracle.py b/lib/sqlalchemy/databases/oracle.py index 9871f6e0e..d71b129d1 100644 --- a/lib/sqlalchemy/databases/oracle.py +++ b/lib/sqlalchemy/databases/oracle.py @@ -441,8 +441,8 @@ class OracleDialect(default.DefaultDialect): do_commit_twophase(). its format is unspecified.""" id = random.randint(0, 2 ** 128) - return (0x1234, "%032x" % 9, "%032x" % id) - + return (0x1234, "%032x" % id, "%032x" % 9) + def do_release_savepoint(self, connection, name): # Oracle does not support RELEASE SAVEPOINT pass -- cgit v1.2.1