Skip to content

Commit

Permalink
fix: 数据库连接名称
Browse files Browse the repository at this point in the history
  • Loading branch information
csthenry committed Jun 27, 2023
1 parent c4c9ba7 commit 6ef8406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usermanagework.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

UserManageWork::UserManageWork(QObject* parent) : QObject(parent)
{
db_service.addDatabase(DB, "AttendManageWork_DB");
db_service.addDatabase(DB, "UserManageWork_DB");
DB.setConnectOptions("MYSQL_OPT_RECONNECT=1"); //超时重连
}

Expand Down

0 comments on commit 6ef8406

Please sign in to comment.