diff options
-rw-r--r-- | connectivity/inc/connectivity/sqlparse.hxx | 5 | ||||
-rwxr-xr-x | connectivity/source/parse/sqlbison.y | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/inc/connectivity/sqlparse.hxx b/connectivity/inc/connectivity/sqlparse.hxx index 8339d20459bf..b08896003fac 100644 --- a/connectivity/inc/connectivity/sqlparse.hxx +++ b/connectivity/inc/connectivity/sqlparse.hxx @@ -214,11 +214,10 @@ namespace connectivity // TokenIDToStr: token name belonging to a token number. static ::rtl::OString TokenIDToStr(sal_uInt32 nTokenID, const IParseContext* pContext = NULL); - // StrToTokenID: token number belonging to a token name. - // static sal_uInt32 StrToTokenID(const ::rtl::OString & rName); - +#if OSL_DEBUG_LEVEL > 1 // (empty string if not found) static ::rtl::OUString RuleIDToStr(sal_uInt32 nRuleID); +#endif // StrToRuleID calculates the RuleID for a ::rtl::OUString (that is, ::com::sun::star::sdbcx::Index in yytname) // (0 if not found). The search for an ID based on a String is diff --git a/connectivity/source/parse/sqlbison.y b/connectivity/source/parse/sqlbison.y index 41da5b07091d..062b46cdd022 100755 --- a/connectivity/source/parse/sqlbison.y +++ b/connectivity/source/parse/sqlbison.y @@ -4723,12 +4723,13 @@ OSQLParseNode* OSQLParser::parseTree(::rtl::OUString& rErrorMessage, return aStr; } -//----------------------------------------------------------------------------- +#if OSL_DEBUG_LEVEL > 1 ::rtl::OUString OSQLParser::RuleIDToStr(sal_uInt32 nRuleID) { OSL_ENSURE(nRuleID < SAL_N_ELEMENTS(yytname), "OSQLParser::RuleIDToStr: Invalid nRuleId!"); return ::rtl::OUString::createFromAscii(yytname[nRuleID]); } +#endif //----------------------------------------------------------------------------- sal_uInt32 OSQLParser::StrToRuleID(const ::rtl::OString & rValue) |