From a31e6606c130ca94b8711b9d022c329ea450f70b Mon Sep 17 00:00:00 2001 From: kssenii Date: Sat, 17 Apr 2021 10:40:48 +0000 Subject: [PATCH] Fix --- programs/odbc-bridge/getIdentifierQuote.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/programs/odbc-bridge/getIdentifierQuote.cpp b/programs/odbc-bridge/getIdentifierQuote.cpp index d16d2a9eea0..2ee4167e2fc 100644 --- a/programs/odbc-bridge/getIdentifierQuote.cpp +++ b/programs/odbc-bridge/getIdentifierQuote.cpp @@ -19,7 +19,18 @@ namespace ErrorCodes std::string getIdentifierQuote(nanodbc::connection & connection) { - return connection.get_info(SQL_IDENTIFIER_QUOTE_CHAR); + std::string quote; + try + { + quote = connection.get_info(SQL_IDENTIFIER_QUOTE_CHAR); + } + catch (...) + { + LOG_WARNING(&Poco::Logger::get("ODBCGetIdentifierQuote"), "Cannot fetch identifier quote. Default double quote is used"); + return "\""; + } + + return quote; }