LCOV - code coverage report
Current view: top level - clients/odbc/driver - SQLPutData.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             : /*
      10             :  * This code was created by Peter Harvey (mostly during Christmas 98/99).
      11             :  * This code is LGPL. Please ensure that this message remains in future
      12             :  * distributions and uses of this code (thats about all I get out of it).
      13             :  * - Peter Harvey pharvey@codebydesign.com
      14             :  *
      15             :  * This file has been modified for the MonetDB project.  See the file
      16             :  * Copyright in this directory for more information.
      17             :  */
      18             : 
      19             : /**********************************************************************
      20             :  * SQLPutData()
      21             :  * CLI Compliance: ISO 92
      22             :  *
      23             :  * Note: this function is not supported (yet), it returns an error.
      24             :  *
      25             :  * Author: Martin van Dinther, Sjoerd Mullender
      26             :  * Date  : 30 aug 2002
      27             :  *
      28             :  **********************************************************************/
      29             : 
      30             : #include "ODBCGlobal.h"
      31             : #include "ODBCStmt.h"
      32             : 
      33             : 
      34             : SQLRETURN SQL_API
      35             : SQLPutData(SQLHSTMT StatementHandle,
      36             :            SQLPOINTER DataPtr,
      37             :            SQLLEN StrLen_or_Ind)
      38             : {
      39             :         ODBCStmt *stmt = (ODBCStmt *) StatementHandle;
      40             : 
      41             : #ifdef ODBCDEBUG
      42           0 :         ODBCLOG("SQLPutData %p\n", StatementHandle);
      43             : #endif
      44             : 
      45             :         (void) DataPtr;         /* Stefan: unused!? */
      46             :         (void) StrLen_or_Ind;   /* Stefan: unused!? */
      47             : 
      48           0 :         if (!isValidStmt(stmt))
      49             :                  return SQL_INVALID_HANDLE;
      50             : 
      51           0 :         clearStmtErrors(stmt);
      52             : 
      53             :         /* TODO: implement this function and corresponding behavior */
      54             : 
      55             :         /* Driver does not support this function */
      56           0 :         addStmtError(stmt, "IM001", NULL, 0);
      57             : 
      58           0 :         return SQL_ERROR;
      59             : }

Generated by: LCOV version 1.14