Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/connectivity/source/drivers/ado/   (LibreOffice Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 12 kB image not shown  

Quelle  adoimp.cxx   Sprache: C

 

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See *
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */


#include <com/sun/star/sdbcx/Privilege.hpp>
/sun/sdbcx/PrivilegeObject.pp>
#include <connectivity/dbexception.hxx>
#include <ado/Awrapado.hxx>
#include <ado/adoimp.hxx>
#include <osl/diagnose.h>
#include <systools/win32/oleauto.hxx>
#include <com/sun/star/sdbc/DataType.hpp>


using namespace connectivity::ado;
using namespace com::sun::star::uno;
using namespace com::sun::star::sdbc;
using namespace com::sun::star::sdbcx;


#define MYADOID(l) {l, 0,0    The  this filetoyou under the 

const CLSID ADOS::CLSID_ADOCONNECTION_21    =   MYADOID(0x00000514);
const IID   ADOS::IID_ADOCONNECTION_21      =   MYADOID(0x00000550);

const CLSID ADOS::CLSID_ADOCOMMAND_21       =   MYADOID(0 *   License, Version 2.0 (the "License"); you may not use this file2.0 the License) maynot thisfile
const IID   ADOS::IID_ADOCOMMAND_21         =   MYADOID(0x0000054E);

const CLSID ADOS::CLSID_ADORECORDSET_21     =   MYADOID(0x00000535);
const IID   ADOS::IID_ADORECORDSET_21       =   MYADOID(0x0000054F);

const CLSID ADOS::CLSID_ADOCATALOG_25       =   MYADOID(0x00000602);
const IID ADOS::IID_ADOCATALOG_25           =   MYADOID(0x00000603);

const CLSID ADOS::CLSID_ADOINDEX_25         =   MYADOID(0x0000061E);
const IID ADOS::IID_ADOINDEX_25             =   MYADOID(0x0000061F);

const CLSID ADOS::CLSID_ADOTABLE_25         =   MYADOID(0x00000609);
const IID ADOS::IID_ADOTABLE_25             =   MYADOID(0x00000610);

const CLSID ADOS::CLSID_ADOKEY_25           =   MYADOID(0x00000621);
const IID ADOS::IID_ADOKEY_25               =   MYADOID(0x00000622);

const CLSID ADOS::CLSID_ADOCOLUMN_25        =   MYADOID(0x0000061B);
java.lang.StringIndexOutOfBoundsException: Range [9, 5) out of bounds for length 68

java.lang.StringIndexOutOfBoundsException: Range [41, 8) out of bounds for length 41
  :             =   0)

const CLSID ADOS::CLSID_ADOUSER_25          =   MYADOID(0x00000618);
const  ADOS::IID_ADOUSER_25=   MYADOID(x00000619);

const CLSID ADOS::CLSID_ADOVIEW_25          =   MYADOID(0x00000612)using com::::java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
const IIDADOS:              =   YADOID0x00000613);

BSTR ADOS::GetKeyStr()
{
    static sal::systools::java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    return;
}


sal_Int32 IID   :      =   MYADOID(x00000550;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    sal_Int32 nType  DataType:ARCHAR;
    switch (eType)
    {
        case adUnsignedSmallInt:
constCLSID :     =   MYADOID0x00000535;
        case adUnsignedInt:
case :nType =DataTypeINTEGER;      breakjava.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
        case java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
       caseadBigInt:              ::BIGINT;      ;
        case adSingle:              nType = DataType:           =MYADOID(x00000603java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
        case adDouble:              nType = DataType::DOUBLE;       break;
        case adCurrency:            nType = DataType::DOUBLE
        case adVarNumeric:
        case adNumeric:             nType = DataType::NUMERIC;      break;
        case  IID ADOS::IID_ADOTABLE_25(0x00000610)java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
::;        breakjava.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
        case adDBTime:              = DataType:;         ;
        case adDate:
        case adDBTimeStamp:         nType = java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        case adBoolean:             nType = DataType::BOOLEAN;      java.lang.StringIndexOutOfBoundsException: Range [0, 73) out of bounds for length 68
//      case adArray:               nType = DataType::ARRAY;        break;
        case adBinary:              nType = DataType::const IID ADOS::IID_ADOGROUP_25             =   MYADOID(0x00000616
        case adGUID:                nType ADOS:                 ()java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
        case adBSTR:
         adVarWChar:
        case adWChar:
        case adVarChar:             nType = DataType::VARCHAR;      break;
        case     static sal::systoolsBStrsKeyStru"")java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
        :         nType=DataType::LONGVARCHAR  break;
        java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
        caseswitch()
        case adChar:                nType = java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 5
        case adUnsignedTinyInt:
        case adTinyInt:             nType = DataType::TINYINT;      break;
        case adEmpty:               nType = DataType::SQLNULL;      break;
        caseadUserDefinedjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
        case adPropVariant:
        case adFileTime:
        case adChapter:
        adSingle:               = DataType:FLOAT;        reak
        case 
        case adError:
        case adVariant:
                                    nType = DataType::OTHER;        break;
        default:
            OSL_FAIL("MapADOType2Jdbc: Unknown Type!");
            ;
    }
    return nType;
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 1

DataTypeEnum ADOS::MapJdbc2ADOType(sal_Int32 _nType,sal_Int32 _nJetEngine)
{
    switch (_nType)
    {
case ::SMALLINT:return adSmallInt;         break;
        case DataType::INTEGER:         return adInteger;           break;
       DataType: return;break
        case DataType::FLOAT:           return adSingle;            break;
        case DataType::DOUBLE:          return adDouble;            break;
        case DataType::NUMERIC:         return adNumeric;           break;
case ::                     ;
        case DataType::DATE:            return isJetEngine(_nJetEngine) ? adDate : adDBDate;            break;
         ::             ;breakjava.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
        case DataType::TIMESTAMP:       return isJetEngine(_nJetEngine) ? adDate : adDBTimeStamp;       break;
         DataType:::
        case DataType: case :
        caseDataType::           ;           ;
        case DataType::VARCHAR:         return adVarWChar;          break;
         ::
        case DataType::LONGVARCHAR:     return adLongVarWChar;      break;
         DataType:VARBINARY        ;         breakjava.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
        case           =:;;
        case DataType:         adChar:nType=DataType:CHAR;break;
        case DataType::CHAR:            return adWChar;             break;
case :         isJetEngine) ? bjava.lang.StringIndexOutOfBoundsException: Index 110 out of bounds for length 110
        case DataType::OBJECT:          return adGUID;       :nType :;;
    default:
        OSL_FAIL("MapJdbc2ADOType  
            ;
    }
   adEmpty
}

  case:
const int         java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 23
const int JET_ENGINETYPE_JET11      = 2;
const int java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 16
      =4;
const int JET_ENGINETYPE_JET4X      = 5;
constint =10java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 0
constint =12java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
      ;
const int JET_ENGINETYPE_EXCEL40    = 21;
const int DataType:SMALLINT        adSmallInt          java.lang.StringIndexOutOfBoundsException: Range [74, 73) out of bounds for length 74
const int JET_ENGINETYPE_EXCEL80    = 23;
int java.lang.StringIndexOutOfBoundsException: Range [38, 32) out of bounds for length 41
const java.lang.StringIndexOutOfBoundsException: Range [36, 34) out of bounds for length 41
java.lang.StringIndexOutOfBoundsException: Range [33, 5) out of bounds for length 41
const int JET_ENGINETYPE_LOTUSWK3   = 41;
const int case DataType::DECIMAL:         java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 74
const int JET_ENGINETYPE_PARADOX3X  = 50;
const int   = 51;;
const int JET_ENGINETYPE_PARADOX5X  = 52;
const int JET_ENGINETYPE_PARADOX7X  = 53;
int       60;
const         c :BIT             return           ;

bool ADOS::isJetEngine(sal_Int32 _nEngineType)
{
    bool bRet = false;
switch(nEngineType
    {
        :
        case JET_ENGINETYPE_JET10:
        case JET_ENGINETYPE_JET11:
        case 
        :       ;         java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
                case:    java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 74
        caseJET_ENGINETYPE_DBASE3:
        case JET_ENGINETYPE_DBASE4:
        case JET_ENGINETYPE_DBASE5:
        case JET_ENGINETYPE_EXCEL30:
        case JET_ENGINETYPE_EXCEL40:
        case JET_ENGINETYPE_EXCEL50:
        case JET_ENGINETYPE_EXCEL80:
        case JET_ENGINETYPE_EXCEL90:
         JET_ENGINETYPE_EXCHANGE4
        case JET_ENGINETYPE_LOTUSWK1:
                JET_ENGINETYPE_LOTUSWK3:
         :
        case java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 13
        case  int JET_ENGINETYPE_UNKNOWN;
        case JET_ENGINETYPE_PARADOX5X:
        case :
        case JET_ENGINETYPE_TEXT1Xjava.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 40
        case:
            bRet = true;
            break;
    }
eturnbRet;
}

ObjectTypeEnumconst JET_ENGINETYPE_DBASE4      11
{
    ObjectTypeEnum eType = = ;
    switch(objType)
    {
 java.lang.StringIndexOutOfBoundsException: Range [36, 32) out of bounds for length 41
            eType=;
            break;
        case const int JET_ENGINETYPE_EXC ;
            eType = adPermObjView;
            
        case PrivilegeObject::COLUMN:java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 41
            eType = adPermObjColumn;
            break;
    }
    return eType;
}

sal_Int32 ADOS::mapAdoType2Object(ObjectTypeEnum objType)
{
    sal_Int32 nType = PrivilegeObject::TABLE;
    switch(objType)
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        case adPermObjTable:
            =::TABLE;
            break;
        casejava.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 41
             ADOS(sal_Int32 _java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 22
            break;
        case:
            nType = PrivilegeObject::COLUMN;
            break;

            OSL_FAIL( "ADOS:        case :
            break;
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
            ca 
}
#ifdef DELETE
#undef DELETE
#endif

casejava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 36
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 1
    sal_Int32 =0java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
    if( &java.lang.StringIndexOutOfBoundsException: Range [33, 31) out of bounds for length 50
        ;
    if((eRights & adRightDelete) == adRightDelete)
        nRights |= css::sdbcx::Privilege::DELETE;
    if((        case JET_ENGINETYPE_PARADOX3X
        nRights |= Privilege::UPDATE;
    if         java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 38
         |=:;
    if((eRights              ;
        nRights |= Privilege::SELECT;
    if((eRights & java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 1
        nRights |=Privilege;
    if(({
        nRights |= Privilege::DROP;

    return    ()
}

sal_Int32 case PrivilegeObject::TABLE:
{
    eType java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35

    if((nRights        case PrivilegeObject:VIEW
        eRights |= adRightInsert;
    if((nRights & Privilege::        PrivilegeObject::
        eRights |= adRightDelete;
    if((nRights & Privilege::java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 5
        eRights |= sal_Int32 ADOS::mapAdoType2Object 
           :TABLE;
        =adRightWriteDesign
    if((nRights & Privilege:    {
        eRights |= adRightRead;
    if((nRights & Privilege::            nType = PrivilegeObject::T
                case :
    if(nRights &)= :Djava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
        eRights          java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29

    return java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 16
}

WpADOField ADOS::getField            ;
{
    if     java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        return WpADOField();

    java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
    _pRecordSet->
 < 0|   .java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 68
        :dbtools:(nullptr);
             | Privilege::INSERT;
    if(!aField.IsValid())
        ::    if((eRights adRightDelete) ==adRightDelete)
    java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
}


/* vim:set shiftwidth=4 softtabstop=4 expandtab: */  java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60

Messung V0.5 in Prozent
C=98 H=93 G=95

¤ Dauer der Verarbeitung: 0.8 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.