Re: Django (SVN-Version) doesn't execute raw sql-queries

2007-12-29 Thread James Bennett
On Dec 29, 2007 7:18 AM, beewee <[EMAIL PROTECTED]> wrote: > it works now when calling the connection._commit() function (which is > completely undocumentated) after executing the query. (I know that you > shouldn't call functions starting with _ in general) Were you doing anything to disable the

Re: Django (SVN-Version) doesn't execute raw sql-queries

2007-12-29 Thread beewee
Hi! it works now when calling the connection._commit() function (which is completely undocumentated) after executing the query. (I know that you shouldn't call functions starting with _ in general) --~--~-~--~~~---~--~~ You received this message because you are sub

Re: Django (SVN-Version) doesn't execute raw sql-queries

2007-12-28 Thread pength
I have met similar problem, and still don't know why...I have two py scripts to call some model methods using raw sql UPDATE, one script runs correctly when I use transaction, but the other doesn't. really strange.. On 12月27日, 下午11时57分, beewee <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using the la

Django (SVN-Version) doesn't execute raw sql-queries

2007-12-27 Thread beewee
Hi, I'm using the latest svn version of django with mysql. Since some time I have the problem that raw UPDATE-queries I execute don't get really executed. Have a look at this: >>> from django.db import connection as con >>> cur = con.cursor() >>> cur.execute('SELECT topic_id FROM forum_vote') 6L