LCOV - differential code coverage report
Current view: top level - src/interfaces/ecpg/test/sql - copystdout.pgc (source / functions) Coverage Total Hit UBC CBC
Current: Differential Code Coverage 16@8cea358b128 vs 17@8cea358b128 Lines: 100.0 % 13 13 13
Current Date: 2024-04-14 14:21:10 Functions: 100.0 % 1 1 1
Baseline: 16@8cea358b128 Branches: 50.0 % 14 7 7 7
Baseline Date: 2024-04-14 14:21:09 Line coverage date bins:
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed (240..) days: 100.0 % 13 13 13
Function coverage date bins:
(240..) days: 100.0 % 1 1 1
Branch coverage date bins:
(240..) days: 50.0 % 14 7 7 7

 Age         Owner                    Branch data    TLA  Line data    Source code
                                  1                 :                : #include <stdio.h>
                                  2                 :                : 
                                  3                 :                : EXEC SQL INCLUDE sqlca;
                                  4                 :                : exec sql include ../regression;
                                  5                 :                : 
                                  6                 :                : EXEC SQL WHENEVER SQLERROR sqlprint;
                                  7                 :                : 
                                  8                 :                : int
 6465 meskes@postgresql.or        9                 :CBC           1 : main ()
                                 10                 :                : {
                                 11                 :              1 :   ECPGdebug (1, stderr);
                                 12                 :                : 
                                 13                 :              1 :   EXEC SQL CONNECT TO REGRESSDB1;
                                 14         [ -  + ]:              1 :   EXEC SQL CREATE TABLE foo (a int, b varchar);
                                 15         [ -  + ]:              1 :   EXEC SQL INSERT INTO foo VALUES (5, 'abc');
                                 16         [ -  + ]:              1 :   EXEC SQL INSERT INTO foo VALUES (6, 'def');
                                 17         [ -  + ]:              1 :   EXEC SQL INSERT INTO foo VALUES (7, 'ghi');
                                 18         [ -  + ]:              1 : 
                                 19                 :              1 :   EXEC SQL COPY foo TO STDOUT WITH DELIMITER ',';
                                 20         [ -  + ]:              1 :   printf ("copy to STDOUT : sqlca.sqlcode = %ld\n", sqlca.sqlcode);
                                 21                 :                : 
                                 22                 :              1 :   EXEC SQL DISCONNECT;
                                 23         [ -  + ]:              1 : 
                                 24                 :              1 :   return 0;
                                 25                 :                : }
        

Generated by: LCOV version 2.1-beta2-3-g6141622