Accept `postgres` for DbClient type as well (#1347)

This commit is contained in:
Ken Matsui 2022-08-12 20:47:22 +09:00 committed by GitHub
parent 5610bd2182
commit 9abc9e5b6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ void DbClientManager::createDbClient(const std::string &dbType,
info.timeout_ = timeout;
info.autoBatch_ = autoBatch;
if (type == "postgresql")
if (type == "postgresql" || type == "postgres")
{
#if USE_POSTGRESQL
info.dbType_ = orm::ClientType::PostgreSQL;