LCOV - code coverage report
Current view: top level - src/odbc/unittests - empty_query.c (source / functions) Hit Total Coverage
Test: FreeTDS coverage Lines: 8 8 100.0 %
Date: 2025-04-26 20:22:58 Functions: 1 1 100.0 %

          Line data    Source code
       1             : #include "common.h"
       2             : 
       3             : /* Check that on queries returning 0 rows and NOCOUNT active SQLExecDirect returns success.
       4             :  * Also SQLFetch should return NO_DATA for these queries. */
       5             : 
       6          10 : TEST_MAIN()
       7             : {
       8          10 :         odbc_use_version3 = 1;
       9          10 :         odbc_connect();
      10             : 
      11          10 :         odbc_command2("SET NOCOUNT ON\nSELECT 123 AS foo WHERE 0=1", "S");
      12          10 :         CHKFetch("No");
      13          10 :         CHKMoreResults("No");
      14             : 
      15          10 :         odbc_disconnect();
      16          10 :         return 0;
      17             : }

Generated by: LCOV version 1.13