LCOV - code coverage report
Current view: top level - clients/odbc/driver - SQLSetScrollOptions.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             :  * SQLSetScrollOptions()
      21             :  * CLI Compliance: deprecated in ODBC 3.0 (replaced by SQLSetStmtAttr()
      22             :  * Provided here for old (pre ODBC 3.0) applications and driver managers.
      23             :  *
      24             :  * Author: Martin van Dinther, Sjoerd Mullender
      25             :  * Date  : 30 aug 2002
      26             :  *
      27             :  ********************************************************************/
      28             : 
      29             : #include "ODBCGlobal.h"
      30             : #include "ODBCStmt.h"
      31             : 
      32             : SQLRETURN SQL_API
      33             : SQLSetScrollOptions(SQLHSTMT StatementHandle,
      34             :                     SQLUSMALLINT fConcurrency,
      35             :                     SQLLEN crowKeyset,
      36             :                     SQLUSMALLINT crowRowset)
      37             : {
      38             : #ifdef ODBCDEBUG
      39           0 :         ODBCLOG("SQLSetScrollOptions %p %u " LENFMT " %u\n",
      40             :                 StatementHandle, (unsigned int) fConcurrency,
      41             :                 LENCAST crowKeyset, (unsigned int) crowRowset);
      42             : #endif
      43             : 
      44             :         (void) fConcurrency;    /* Stefan: unused!? */
      45             :         (void) crowKeyset;      /* Stefan: unused!? */
      46             :         (void) crowRowset;      /* Stefan: unused!? */
      47             : 
      48           0 :         if (!isValidStmt((ODBCStmt *) StatementHandle))
      49             :                 return SQL_INVALID_HANDLE;
      50             : 
      51           0 :         clearStmtErrors((ODBCStmt *) StatementHandle);
      52             : 
      53             :         /* TODO: implement the mapping to multiple SQLSetStmtAttr() calls */
      54             :         /* See ODBC 3.5 SDK Help file for details */
      55             : 
      56             :         /* for now return error */
      57             :         /* Driver does not support this function */
      58           0 :         addStmtError((ODBCStmt *) StatementHandle, "IM001", NULL, 0);
      59           0 :         return SQL_ERROR;
      60             : }

Generated by: LCOV version 1.14