Skip to content

Commit

Permalink
#39: Supressing warning messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermechapiewski committed Mar 24, 2009
1 parent 385a579 commit 8e20e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simple_db_migrate/mysql.py
Expand Up @@ -41,7 +41,7 @@ def __mysql_connect(self, connect_using_db_name=True):
def __execute(self, sql):
db = self.__mysql_connect()
cursor = db.cursor()
#cursor._defer_warnings = True
cursor._defer_warnings = True
try:
sql_statements = sql.split(";")
sql_statements = [s.strip() for s in sql_statements if s.strip() != ""]
Expand Down

0 comments on commit 8e20e48

Please sign in to comment.