LCOV - code coverage report
Current view: top level - clients/odbc/driver - SQLDrivers.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 19 0.0 %
Date: 2024-04-26 00:35:57 Functions: 0 0 -

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

Generated by: LCOV version 1.14