Merge pull request #94 from daimiaopeng/master

修复查询数据库中结果不能编码到UTF-8的问题
This commit is contained in:
SiYuan 2023-12-07 18:58:06 +08:00 committed by GitHub
commit a5187345fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ def merge_databases(source_paths, target_path):
if not os.path.exists(source_path):
break
db = sqlite3.connect(source_path)
# db.text_factory = bytes
db.text_factory = str
cursor = db.cursor()
sql = '''
SELECT TalkerId,MsgsvrID,Type,SubType,IsSender,CreateTime,Sequence,StrTalker,StrContent,DisplayContent,BytesExtra