LCOV - code coverage report
Current view: top level - clients/odbc/driver - SQLPutData.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 8 0.0 %
Date: 2024-11-15 19:37:45 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             :  * SQLPutData()
      25             :  * CLI Compliance: ISO 92
      26             :  *
      27             :  * Note: this function is not supported (yet), it returns an error.
      28             :  *
      29             :  * Author: Martin van Dinther, Sjoerd Mullender
      30             :  * Date  : 30 aug 2002
      31             :  *
      32             :  **********************************************************************/
      33             : 
      34             : #include "ODBCGlobal.h"
      35             : #include "ODBCStmt.h"
      36             : 
      37             : 
      38             : SQLRETURN SQL_API
      39             : SQLPutData(SQLHSTMT StatementHandle,
      40             :            SQLPOINTER DataPtr,
      41             :            SQLLEN StrLen_or_Ind)
      42             : {
      43           0 :         ODBCStmt *stmt = (ODBCStmt *) StatementHandle;
      44             : 
      45             : #ifdef ODBCDEBUG
      46           0 :         ODBCLOG("SQLPutData %p\n", StatementHandle);
      47             : #endif
      48             : 
      49           0 :         (void) DataPtr;         /* Stefan: unused!? */
      50           0 :         (void) StrLen_or_Ind;   /* Stefan: unused!? */
      51             : 
      52           0 :         if (!isValidStmt(stmt))
      53             :                  return SQL_INVALID_HANDLE;
      54             : 
      55           0 :         clearStmtErrors(stmt);
      56             : 
      57             :         /* TODO: implement this function and corresponding behavior */
      58             : 
      59             :         /* Driver does not support this function */
      60           0 :         addStmtError(stmt, "IM001", NULL, 0);
      61             : 
      62           0 :         return SQL_ERROR;
      63             : }

Generated by: LCOV version 1.14