LCOV - code coverage report
Current view: top level - clients/odbc/driver - SQLParamOptions.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 7 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             :  * SQLParamOptions()
      25             :  * CLI Compliance: deprecated in ODBC 3.0 (replaced by SQLSetStmtAttr())
      26             :  * Provided here for old (pre ODBC 3.0) applications and driver managers.
      27             :  **********************************************************************/
      28             : 
      29             : #include "ODBCGlobal.h"
      30             : #include "ODBCStmt.h"
      31             : 
      32             : SQLRETURN SQL_API
      33             : SQLParamOptions(SQLHSTMT StatementHandle,
      34             :                 SQLULEN RowNumber,
      35             :                 SQLULEN *RowNumberPtr)
      36             : {
      37           0 :         ODBCStmt *stmt = (ODBCStmt *) StatementHandle;
      38           0 :         RETCODE rc;
      39             : 
      40             : #ifdef ODBCDEBUG
      41           0 :         ODBCLOG("SQLParamOptions %p " ULENFMT "\n",
      42             :                 StatementHandle, ULENCAST RowNumber);
      43             : #endif
      44             : 
      45             :         /* use mapping as described in ODBC 3 SDK Help file */
      46           0 :         rc = MNDBSetStmtAttr(stmt, SQL_ATTR_PARAMSET_SIZE,
      47             :                              (SQLPOINTER) (uintptr_t) RowNumber, 0);
      48             : 
      49           0 :         if (SQL_SUCCEEDED(rc)) {
      50           0 :                 rc = MNDBSetStmtAttr(stmt, SQL_ATTR_PARAMS_PROCESSED_PTR,
      51             :                                      RowNumberPtr, 0);
      52             :         }
      53           0 :         return rc;
      54             : }

Generated by: LCOV version 1.14