Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.069 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.02; 'from:addr:yahoo.co.uk': 0.04; 'lawrence': 0.09; 'modifies': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'attempted': 0.16; 'mirror.': 0.16; 'operation,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'red,': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'driver': 0.24; 'query': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'invoke': 0.31; 'another': 0.32; 'fri,': 0.33; 'could': 0.34; 'connection': 0.35; 'but': 0.35; '+0200,': 0.36; 'much.': 0.36; 'subject:data': 0.36; 'thanks': 0.36; 'subject:?': 0.36; 'thank': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'removing': 0.60; 'most': 0.60; 'here': 0.66; 'url:co': 0.67; 'it!': 0.67; 'compliant': 0.68; 'received:2': 0.84; 'sooo': 0.84; 'subject:Where': 0.84; 'rear': 0.91; 'url:bbc': 0.91; 'works!': 0.91; 'miracle': 0.93; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Where does MySQLdb put inserted data? Date: Sat, 05 Oct 2013 12:39:16 +0100 References: <524E7081.3080308@bluewin.ch> <8mhu49dobl4dg99am35dcri2qegp0ssbrc@4ax.com> <524FD027.6040202@bluewin.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-2-98-207-126.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.0 In-Reply-To: <524FD027.6040202@bluewin.ch> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1380973172 news.xs4all.nl 16009 [2001:888:2000:d::a6]:54400 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:56181 On 05/10/2013 09:39, F.R. wrote: > On 10/05/2013 12:55 AM, Dennis Lee Bieber wrote: >> On Fri, 04 Oct 2013 09:38:41 +0200, "F.R." >> declaimed the following: >> >> >> >> MySQLdb, as with all DB-API compliant adapters, does NOT do >> "auto-commit" -- you MUST execute a con.commit() after any query >> (sequence) >> that modifies data. Without it, closing the connection will invoke a >> ROLLBACK operation, removing any attempted changes. > > That's it! It works! Thank you sooo much. A miracle how I could go > without commits for years and never have missing data. Anyway, another > lesson learned . . . > > Thanks > > Frederic > Reminds me of the people who've never had an accident but have seen thousands in their rear view mirror. Perhaps the driver here http://www.bbc.co.uk/news/uk-england-hampshire-24367601 ? -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence