Pass positional arguments instead of keyword arguments to MySQLdb.connect
This commit is contained in:
parent
8717deb169
commit
79b2b93958
1 changed files with 2 additions and 2 deletions
|
|
@ -62,10 +62,10 @@ class Database:
|
|||
'key':frappe.conf.db_ssl_key
|
||||
}
|
||||
if usessl:
|
||||
self._conn = MySQLdb.connect(user=self.user, host=self.host, passwd=self.password,
|
||||
self._conn = MySQLdb.connect(self.host, self.user or '', self.password or '',
|
||||
use_unicode=True, charset='utf8mb4', ssl=self.ssl)
|
||||
else:
|
||||
self._conn = MySQLdb.connect(user=self.user, host=self.host, passwd=self.password,
|
||||
self._conn = MySQLdb.connect(self.host, self.user or '', self.password or '',
|
||||
use_unicode=True, charset='utf8mb4')
|
||||
self._conn.converter[246]=float
|
||||
self._conn.converter[12]=get_datetime
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue