diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-12-08 09:16:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-12-08 10:09:01 +0000 |
commit | 6d8b06224cf1819c8af543927d7a80e937c50a94 (patch) | |
tree | 346a41bfad2f972713383280fc426ff5f2c36b08 /connectivity | |
parent | 9d5e53b67c7c131ab4cdc8e103373be2be7830c2 (diff) |
callcatcher: update unused code
Change-Id: I3cd65d112339fa9c67ed462fe39acbbef91d4d8d
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/commontools/predicateinput.cxx | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/connectivity/source/commontools/predicateinput.cxx b/connectivity/source/commontools/predicateinput.cxx index 94a4d3d77860..bbb0863b9a00 100644 --- a/connectivity/source/commontools/predicateinput.cxx +++ b/connectivity/source/commontools/predicateinput.cxx @@ -387,56 +387,6 @@ namespace dbtools return Any(); } - Any OPredicateInputController::getPredicateValue( - const OUString& _sField, const OUString& _rPredicateValue, OUString* _pErrorMessage ) const - { - OUString sError; - OUString sField = _sField; - sal_Int32 nIndex = 0; - sField = sField.getToken(0,'(',nIndex); - if(nIndex == -1) - sField = _sField; - sal_Int32 nType = ::connectivity::OSQLParser::getFunctionReturnType(sField,&m_aParser.getContext()); - if ( nType == DataType::OTHER || sField.isEmpty() ) - { - // first try the international version - OUString sSql = "SELECT * FROM x WHERE " + sField + _rPredicateValue; - boost::scoped_ptr<OSQLParseNode> pParseNode( const_cast< OSQLParser& >( m_aParser ).parseTree( sError, sSql, true ) ); - nType = DataType::DOUBLE; - if ( pParseNode.get() ) - { - OSQLParseNode* pColumnRef = pParseNode->getByRule(OSQLParseNode::column_ref); - if ( pColumnRef ) - { - } - } - } - - Reference<XDatabaseMetaData> xMeta = m_xConnection->getMetaData(); - parse::OParseColumn* pColumn = new parse::OParseColumn( sField, - OUString(), - OUString(), - OUString(), - ColumnValue::NULLABLE_UNKNOWN, - 0, - 0, - nType, - false, - false, - xMeta.is() && xMeta->supportsMixedCaseQuotedIdentifiers(), - OUString(), - OUString(), - OUString()); - Reference<XPropertySet> xColumn = pColumn; - pColumn->setFunction(true); - pColumn->setRealName(sField); - - OSQLParseNode* pParseNode = implPredicateTree( sError, _rPredicateValue, xColumn ); - if ( _pErrorMessage ) - *_pErrorMessage = sError; - return pParseNode ? implParseNode(pParseNode, false) : Any(); - } - Any OPredicateInputController::implParseNode(OSQLParseNode* pParseNode, bool _bForStatementUse) const { if ( ! pParseNode ) |