mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Fix
This commit is contained in:
parent
3f3f928c1f
commit
a31e6606c1
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user