Re: cursor.execute throws exception on MySql warning

2008-04-08 Thread Malcolm Tredinnick
On Mon, 2008-04-07 at 21:49 -0700, shabda wrote: > I have a call like, > > crsr = connection.cursor() > crsr.execute('DROP TABLE IF EXISTS news_linksearch') > > when table news_linksearch does not exists this would lead to a mysql > warning, (Not an error, as it has a IF EXISTS clause), but th

cursor.execute throws exception on MySql warning

2008-04-07 Thread shabda
I have a call like, crsr = connection.cursor() crsr.execute('DROP TABLE IF EXISTS news_linksearch') when table news_linksearch does not exists this would lead to a mysql warning, (Not an error, as it has a IF EXISTS clause), but this leads to a django exception. Should not the behaviour in this