LCOV - code coverage report
Current view: top level - clients/odbc/driver - SQLSetParam.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 2 0.0 %
Date: 2024-12-20 21:24:02 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             : /*
      14             :  * This code was created by Peter Harvey (mostly during Christmas 98/99).
      15             :  * This code is LGPL. Please ensure that this message remains in future
      16             :  * distributions and uses of this code (that's about all I get out of it).
      17             :  * - Peter Harvey pharvey@codebydesign.com
      18             :  *
      19             :  * This file has been modified for the MonetDB project.  See the file
      20             :  * Copyright in this directory for more information.
      21             :  */
      22             : 
      23             : /********************************************************************
      24             :  * SQLSetParam()
      25             :  * CLI Compliance: deprecated in ODCB 2.0 (replaced by SQLBindParameter())
      26             :  * Provided here for old (pre ODBC 3.0) applications and driver managers.
      27             :  *
      28             :  * Author: Martin van Dinther, Sjoerd Mullender
      29             :  * Date  : 30 aug 2002
      30             :  *
      31             :  ********************************************************************/
      32             : 
      33             : #include "ODBCGlobal.h"
      34             : #include "ODBCStmt.h"
      35             : 
      36             : SQLRETURN SQL_API
      37             : SQLSetParam(SQLHSTMT StatementHandle,
      38             :             SQLUSMALLINT ParameterNumber,
      39             :             SQLSMALLINT ValueType,
      40             :             SQLSMALLINT ParameterType,
      41             :             SQLULEN LengthPrecision,
      42             :             SQLSMALLINT ParameterScale,
      43             :             SQLPOINTER ParameterValue,
      44             :             SQLLEN *StrLen_or_Ind)
      45             : {
      46             : #ifdef ODBCDEBUG
      47           0 :         ODBCLOG("SQLSetParam %p %u %s %s " ULENFMT " %d %p %p\n",
      48             :                 StatementHandle, (unsigned int) ParameterNumber,
      49             :                 translateCType(ValueType),
      50             :                 translateSQLType(ParameterType),
      51             :                 ULENCAST LengthPrecision, (int) ParameterScale,
      52             :                 ParameterValue, StrLen_or_Ind);
      53             : #endif
      54             : 
      55             :         /* map this call to SQLBindParameter as described in ODBC 3.0 SDK help */
      56           0 :         return MNDBBindParameter((ODBCStmt *) StatementHandle,
      57             :                                  ParameterNumber,
      58             :                                  SQL_PARAM_INPUT_OUTPUT,
      59             :                                  ValueType,
      60             :                                  ParameterType,
      61             :                                  LengthPrecision,
      62             :                                  ParameterScale,
      63             :                                  ParameterValue,
      64             :                                  SQL_SETPARAM_VALUE_MAX,
      65             :                                  StrLen_or_Ind);
      66             : }

Generated by: LCOV version 1.14