Accept `postgres` for DbClient type as well (#1347)
This commit is contained in:
parent
5610bd2182
commit
9abc9e5b6c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue