Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81647

Re: Db transactions and locking

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!bcyclone02.am1.xlned.com!bcyclone02.am1.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.062
X-Spam-Evidence '*H*': 0.88; '*S*': 0.00; 'happens.': 0.09; 'python': 0.11; 're-read': 0.16; 'wrote:': 0.18; 'starts': 0.20; 'work,': 0.20; 'specifies': 0.24; '&gt;': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'open': 0.33; 'transaction': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'nov': 0.38; 'to:addr:python-list': 0.38; 'anything': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'statement,': 0.68; '4:26': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=xcq2s3PdpIIl7+KH0DDrHcgO+1Zumby8vbsoKWZKKJI=; b=wJegIutHG/cO39IH6MsyfzlhrSty2ETW6k5lGOHFLSwOQkQXrakOhheoDwk3sr17+s 6P2dxEfDwGuI3q949meATvZvGXbSaAziJKAvZRh2R660T81DVlp84shkPChhIwW/l9vR 7n+WgumipzWE0AV/rG3u1+7mgbgMvvfakXJyvFQ7Bk8e9MXo7Hl3MMPnmgFNgz0zdU4K X8o8SpOnKgWMhat0tdXyrN4cL0GFnq63hl7wW5CUgwm24YroIh3dqa9xqC1/Sw+Lm+ON 7KP6Bp2mPTW0biwlh4a7iKneHaQy54F5OD+3y4ONtPknpzd7OkbpiaGRr60FjN29+3D0 QVBQ==
MIME-Version 1.0
X-Received by 10.66.232.70 with SMTP id tm6mr66885421pac.120.1417111368247; Thu, 27 Nov 2014 10:02:48 -0800 (PST)
In-Reply-To <m56u4s$baa$1@ger.gmane.org>
References <m56u4s$baa$1@ger.gmane.org>
Date Thu, 27 Nov 2014 11:02:48 -0700
Subject Re: Db transactions and locking
From Ian Kelly <ian.g.kelly@gmail.com>
To Python <python-list@python.org>
Content-Type multipart/alternative; boundary=047d7b111e09b632300508daf308
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.16379.1417111373.18130.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1417111373 news.xs4all.nl 2973 [2001:888:2000:d::a6]:60431
X-Complaints-To abuse@xs4all.nl
X-Received-Bytes 3829
X-Received-Body-CRC 1849339324
Xref csiph.com comp.lang.python:81647

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Nov 27, 2014 4:26 AM, "Frank Millman" <frank@chagford.com> wrote:
> All Python database adaptors that I have used start a transaction when you
> open a cursor. I have just re-read DB-API 2.0, and I cannot see anything
> that specifies this behaviour, but AFAICT this is what happens.

I don't know how others work, but cx_Oracle starts a transaction when you
execute a statement, not when you open a cursor.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Db transactions and locking Ian Kelly <ian.g.kelly@gmail.com> - 2014-11-27 11:02 -0700

csiph-web