Skip to content

Commit 66ad963

Browse files
2 parents 4c7aff7 + 74138f1 commit 66ad963

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

datajoint/connection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def connect(self):
9595
self._conn = client.connect(init_command=self.init_fun,
9696
sql_mode="NO_ZERO_DATE,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,"
9797
"STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION",
98+
charset=config['connection.charset'],
9899
**self.conn_info)
99100

100101
def register(self, schema):

datajoint/declare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def declare(full_table_name, definition, context):
177177
['PRIMARY KEY (`' + '`,`'.join(primary_key) + '`)'] +
178178
foreign_key_sql +
179179
index_sql) +
180-
'\n) ENGINE=InnoDB, CHARACTER SET latin1, COMMENT "%s"' % table_comment), uses_external
180+
'\n) ENGINE=InnoDB, COMMENT "%s"' % table_comment), uses_external
181181

182182

183183
def compile_attribute(line, in_key, foreign_key_sql):

0 commit comments

Comments
 (0)