Re: Savepoint or subtransaction support
Markus Schiltknecht <[email protected]> Fri, 06 Oct 2006 17:41:01 +0200
| Newsgroups | gmane.comp.python.db.pypgsql.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, Clarence Gardner wrote: > Actually, PostgreSQL is following the SQL standard in that respect. > Given that, I think your patch has an error when it's searching for the > savepoint name to rollback to. In case the same name is currently active > more than once, you want to search from the end of your list of > savepoint names rather than from the beginning (since savepoint() > appends to the list). Good catch! I didn't think about that. Can we use rindex() or do we have to support python <= 2.3? What's the best way to do it for python 2.3? Does somebody know a more elegant solution than: a = [...] a.reverse() idx = len(a) - a.index(..) - 1 a.reverse() >> (I've tried to upload the page to the 'patches' page on SourceForge, >> but didn't succeed, I've only added a useless comment, sorry. Please >> bear with a SF-first-timer.) >> > I had what may be the same problem. Even if you set the file to upload, > the server ignores it unless you check the checkbox labeled "Upload > file" (or something). Hm... I didn't even get to an 'upload file' dialog. I thought that would show up when confirming your comment. But despite all the other 'confirm' buttons you have to click when subscribing, your comment gets added instantly. Anyway, I now suppose I have to be a member of the project to add patches? Or how do I do that? Regards Markus ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV