Skip to content

Commit

Permalink
feat: remove mariadb-connector-c
Browse files Browse the repository at this point in the history
  • Loading branch information
futrime committed Jan 22, 2024
1 parent 2767f0a commit d0193f0
Show file tree
Hide file tree
Showing 6 changed files with 920 additions and 918 deletions.
8 changes: 4 additions & 4 deletions src/legacyapi/db/Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ SharedPointer<Session> Session::_Create(DBType type, const ConnParams& params) {
case DBType::SQLite:
session = params.empty() ? new SQLiteSession() : new SQLiteSession(params);
break;
case DBType::MySQL:
session = params.empty() ? new MySQLSession() : new MySQLSession(params);
break;
// case DBType::MySQL:
// session = params.empty() ? new MySQLSession() : new MySQLSession(params);
// break;
default:
throw std::runtime_error("Session::_Create: Unknown/Unsupported database type");
}
Expand All @@ -119,4 +119,4 @@ SharedPointer<Session> Session::_Create(DBType type, const ConnParams& params) {

std::vector<std::weak_ptr<Session>> Session::sessionPool = std::vector<std::weak_ptr<Session>>();

} // namespace DB
} // namespace DB
Loading

0 comments on commit d0193f0

Please sign in to comment.