LCOV - code coverage report
Current view: top level - clients/odbc/driver - SQLDrivers.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 5 0.0 %
Date: 2021-10-13 02:24:04 Functions: 0 0 -

          Line data    Source code
       1             : /*
       2             :  * This Source Code Form is subject to the terms of the Mozilla Public
       3             :  * License, v. 2.0.  If a copy of the MPL was not distributed with this
       4             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       5             :  *
       6             :  * Copyright 1997 - July 2008 CWI, August 2008 - 2021 MonetDB B.V.
       7             :  */
       8             : 
       9             : #include "ODBCGlobal.h"
      10             : #include "ODBCEnv.h"
      11             : 
      12             : SQLRETURN SQL_API
      13             : SQLDrivers(SQLHENV EnvironmentHandle,
      14             :            SQLUSMALLINT Direction,
      15             :            SQLCHAR *DriverDescription,
      16             :            SQLSMALLINT BufferLength1,
      17             :            SQLSMALLINT *DescriptionLengthPtr,
      18             :            SQLCHAR *DriverAttributes,
      19             :            SQLSMALLINT BufferLength2,
      20             :            SQLSMALLINT *AttributesLengthPtr)
      21             : {
      22             :         (void) Direction;
      23             :         (void) DriverDescription;
      24             :         (void) BufferLength1;
      25             :         (void) DescriptionLengthPtr;
      26             :         (void) DriverAttributes;
      27             :         (void) BufferLength2;
      28             :         (void) AttributesLengthPtr;
      29           0 :         addEnvError((ODBCEnv *) EnvironmentHandle, "HY000",
      30             :                     "Driver Manager only function", 0);
      31           0 :         return SQL_ERROR;
      32             : }
      33             : 
      34             : SQLRETURN SQL_API
      35             : SQLDriversA(SQLHENV EnvironmentHandle,
      36             :             SQLUSMALLINT Direction,
      37             :             SQLCHAR *DriverDescription,
      38             :             SQLSMALLINT BufferLength1,
      39             :             SQLSMALLINT *DescriptionLengthPtr,
      40             :             SQLCHAR *DriverAttributes,
      41             :             SQLSMALLINT BufferLength2,
      42             :             SQLSMALLINT *AttributesLengthPtr)
      43             : {
      44           0 :         return SQLDrivers(EnvironmentHandle,
      45             :                           Direction,
      46             :                           DriverDescription,
      47             :                           BufferLength1,
      48             :                           DescriptionLengthPtr,
      49             :                           DriverAttributes,
      50             :                           BufferLength2,
      51             :                           AttributesLengthPtr);
      52             : }
      53             : 
      54             : SQLRETURN SQL_API
      55             : SQLDriversW(SQLHENV EnvironmentHandle,
      56             :             SQLUSMALLINT Direction,
      57             :             SQLWCHAR *DriverDescription,
      58             :             SQLSMALLINT BufferLength1,
      59             :             SQLSMALLINT *DescriptionLengthPtr,
      60             :             SQLWCHAR *DriverAttributes,
      61             :             SQLSMALLINT BufferLength2,
      62             :             SQLSMALLINT *AttributesLengthPtr)
      63             : {
      64             :         (void) Direction;
      65             :         (void) DriverDescription;
      66             :         (void) BufferLength1;
      67             :         (void) DescriptionLengthPtr;
      68             :         (void) DriverAttributes;
      69             :         (void) BufferLength2;
      70             :         (void) AttributesLengthPtr;
      71           0 :         addEnvError((ODBCEnv *) EnvironmentHandle, "HY000",
      72             :                     "Driver Manager only function", 0);
      73           0 :         return SQL_ERROR;
      74             : }

Generated by: LCOV version 1.14