LCOV - code coverage report
Current view: top level - clients/odbc/driver - SQLCancel.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             :  * SQLCancel()
      21             :  * CLI Compliance: ISO 92
      22             :  **********************************************************************/
      23             : 
      24             : #include "ODBCGlobal.h"
      25             : #include "ODBCStmt.h"
      26             : #include "ODBCDbc.h"
      27             : #include "ODBCEnv.h"
      28             : 
      29             : SQLRETURN SQL_API
      30             : SQLCancel(SQLHSTMT StatementHandle)
      31             : {
      32             :         ODBCStmt *stmt = (ODBCStmt *) StatementHandle;
      33             : 
      34             : #ifdef ODBCDEBUG
      35           0 :         ODBCLOG("SQLCancel %p\n", StatementHandle);
      36             : #endif
      37             : 
      38           0 :         if (!isValidStmt(stmt))
      39             :                  return SQL_INVALID_HANDLE;
      40             : 
      41           0 :         clearStmtErrors(stmt);
      42             : 
      43           0 :         if (stmt->Dbc->Env->sql_attr_odbc_version == SQL_OV_ODBC2)
      44           0 :                 return MNDBFreeStmt(stmt, SQL_CLOSE);
      45             :         return SQL_SUCCESS;
      46             : }

Generated by: LCOV version 1.14