gangly/datafaker

oracle造数据显示编码问题

Opened this issue · 2 comments

按照demo例子 所有编码都是utf8,
datafaker rdb oracle://:@ip:port/sid stu 10 --meta meta2.txt
导入报错
UnicodeEncodeError: 'ascii' codec can't encode characters in position 115-118: ordinal not in range(128)

datafaker rdb oracle+cx_Oracle://:@ip:port/sid stu 10 --meta meta2.txt
导入报错
NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:oracle.cx_Oracle

Can't load plugin: sqlalchemy.dialects:oracle.cx_Oracle
Exception AttributeError: "'RdbDB' object has no attribute 'session'" in <bound method RdbDB.del of <datafaker.dbs.rdbdb.RdbDB object at 0x7f03636a9310>> ignored

按照demo例子 所有编码都是utf8,
datafaker rdb oracle://:@ip:port/sid stu 10 --meta meta2.txt
导入报错
UnicodeEncodeError: 'ascii' codec can't encode characters in position 115-118: ordinal not in range(128)

datafaker rdb oracle+cx_Oracle://:@ip:port/sid stu 10 --meta meta2.txt
导入报错
NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:oracle.cx_Oracle

Can't load plugin: sqlalchemy.dialects:oracle.cx_Oracle
Exception AttributeError: "'RdbDB' object has no attribute 'session'" in <bound method RdbDB.del of <datafaker.dbs.rdbdb.RdbDB object at 0x7f03636a9310>> ignored

bug已修复 请使用最新版本

好的,感谢