This commit is contained in:
kssenii 2021-04-17 10:40:48 +00:00
parent 3f3f928c1f
commit a31e6606c1

View File

@ -19,7 +19,18 @@ namespace ErrorCodes
std::string getIdentifierQuote(nanodbc::connection & connection)
{
return connection.get_info<std::string>(SQL_IDENTIFIER_QUOTE_CHAR);
std::string quote;
try
{
quote = connection.get_info<std::string>(SQL_IDENTIFIER_QUOTE_CHAR);
}
catch (...)
{
LOG_WARNING(&Poco::Logger::get("ODBCGetIdentifierQuote"), "Cannot fetch identifier quote. Default double quote is used");
return "\"";
}
return quote;
}