X-Git-Url: https://git.jsancho.org/?p=mojodb.git;a=blobdiff_plain;f=MySQL.py;h=ba00c333349485a6fd7d2549826d1e7cc5654734;hp=98365b4d50d22629584ae39db071cd33cf8e7ae2;hb=50430eeab5d7e3c1fbb3a130f2d26dc28d5f45da;hpb=8893f5128b8e8790f186c8bf354a3bb721d69bcb diff --git a/MySQL.py b/MySQL.py index 98365b4..ba00c33 100644 --- a/MySQL.py +++ b/MySQL.py @@ -84,7 +84,7 @@ class Connection(connection.Connection): Constraint = Constraint Literal = Literal - def __init__(self, host="localhost", user=None, passwd=None, *args, **kwargs): + def __init__(self, host="localhost", user="", passwd="", *args, **kwargs): self._db_con = MySQLdb.connect(host=host, user=user, passwd=passwd) self._db_con_autocommit = MySQLdb.connect(host=host, user=user, passwd=passwd) super(Connection, self).__init__(*args, **kwargs)