LCOV - code coverage report
Current view: top level - connectivity/source/drivers/file - FNoException.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 36 0.0 %
Date: 2014-04-14 Functions: 0 9 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #include "file/FCatalog.hxx"
      21             : #include "file/fcomp.hxx"
      22             : #include "file/fanalyzer.hxx"
      23             : #include "file/FResultSet.hxx"
      24             : #include "file/FPreparedStatement.hxx"
      25             : #include <connectivity/FValue.hxx>
      26             : #include <tools/debug.hxx>
      27             : #include "TKeyValue.hxx"
      28             : 
      29             : using namespace connectivity;
      30             : using namespace connectivity::file;
      31             : 
      32           0 : void OFileCatalog::refreshViews()
      33           0 : {}
      34           0 : void OFileCatalog::refreshGroups()
      35           0 : {}
      36           0 : void OFileCatalog::refreshUsers()
      37             : {
      38           0 : }
      39             : 
      40           0 : OPredicateInterpreter::~OPredicateInterpreter()
      41             : {
      42           0 :     while(!m_aStack.empty())
      43             :     {
      44           0 :         delete m_aStack.top();
      45           0 :         m_aStack.pop();
      46             :     }
      47             :     //  m_aStack.clear();
      48           0 : }
      49             : 
      50           0 : void OPredicateCompiler::Clean()
      51             : {
      52           0 :     for(OCodeList::reverse_iterator aIter = m_aCodeList.rbegin(); aIter != m_aCodeList.rend();++aIter)
      53             :     {
      54           0 :         delete *aIter;
      55             :     }
      56           0 :     m_aCodeList.clear();
      57           0 : }
      58             : 
      59           0 : void OSQLAnalyzer::bindParameterRow(OValueRefRow& _pRow)
      60             : {
      61           0 :     OCodeList& rCodeList    = m_aCompiler->m_aCodeList;
      62           0 :     for(OCodeList::iterator aIter = rCodeList.begin(); aIter != rCodeList.end();++aIter)
      63             :     {
      64           0 :         OOperandParam* pParam = PTR_CAST(OOperandParam,(*aIter));
      65           0 :         if ( pParam )
      66           0 :             pParam->bindValue(_pRow);
      67             :     }
      68           0 : }
      69             : 
      70           0 : void OPreparedStatement::scanParameter(OSQLParseNode* pParseNode,::std::vector< OSQLParseNode*>& _rParaNodes)
      71             : {
      72             :     SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::scanParameter" );
      73             :     DBG_ASSERT(pParseNode != NULL,"OResultSet: interner Fehler: ungueltiger ParseNode");
      74             : 
      75             :     // found parameter Name-Rule?
      76           0 :     if (SQL_ISRULE(pParseNode,parameter))
      77             :     {
      78             :         DBG_ASSERT(pParseNode->count() >= 1,"OResultSet: Parse Tree fehlerhaft");
      79             :         DBG_ASSERT(pParseNode->getChild(0)->getNodeType() == SQL_NODE_PUNCTUATION,"OResultSet: Parse Tree fehlerhaft");
      80             : 
      81           0 :         _rParaNodes.push_back(pParseNode);
      82             :         // Further descend not nessesary
      83           0 :         return;
      84             :     }
      85             : 
      86             :     // Further descend in Parse Tree
      87           0 :     for (sal_uInt32 i = 0; i < pParseNode->count(); i++)
      88           0 :         scanParameter(pParseNode->getChild(i),_rParaNodes);
      89             : }
      90             : 
      91           0 : OKeyValue* OResultSet::GetOrderbyKeyValue(OValueRefRow& _rRow)
      92             : {
      93             :     SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::GetOrderbyKeyValue" );
      94           0 :     sal_uInt32 nBookmarkValue = std::abs((sal_Int32)(_rRow->get())[0]->getValue());
      95             : 
      96           0 :     OKeyValue* pKeyValue = OKeyValue::createKeyValue((sal_uInt32)nBookmarkValue);
      97             : 
      98           0 :     ::std::vector<sal_Int32>::iterator aIter = m_aOrderbyColumnNumber.begin();
      99           0 :     for (;aIter != m_aOrderbyColumnNumber.end(); ++aIter)
     100             :     {
     101             :         OSL_ENSURE(*aIter < static_cast<sal_Int32>(_rRow->get().size()),"Invalid index for orderkey values!");
     102           0 :         pKeyValue->pushKey(new ORowSetValueDecorator((_rRow->get())[*aIter]->getValue()));
     103             :     }
     104             : 
     105           0 :     return pKeyValue;
     106             : }
     107             : 
     108             : 
     109             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10