LCOV - differential code coverage report
Current view: top level - src/interfaces/ecpg/test/sql - quote.pgc (source / functions) Coverage Total Hit UBC GNC CBC DCB
Current: d36b728949bf4e37ada1cd23e0f2aaa94f609a70 vs 52e118fe2f7e3381bdaa479816a7f72eda2ae517 Lines: 100.0 % 27 27 1 26 9
Current Date: 2026-06-29 16:15:13 +0200 Functions: 100.0 % 1 1 1 1
Baseline: lcov-20260630-baseline Branches: 52.1 % 48 25 23 25
Baseline Date: 2026-06-29 13:01:57 +0200 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(30,360] days: 100.0 % 1 1 1
(360..) days: 100.0 % 26 26 26
Function coverage date bins:
(30,360] days: 100.0 % 1 1 1
Branch coverage date bins:
(360..) days: 52.1 % 48 25 23 25

 Age         Owner                    Branch data    TLA  Line data    Source code
                                  1                 :                : #include <stdio.h>
                                  2                 :                : #include <stdlib.h>
                                  3                 :                : #include <string.h>
                                  4                 :                : 
                                  5                 :                : EXEC SQL INCLUDE ../regression;
                                  6                 :                : 
  106 peter@eisentraut.org        7                 :GNC           1 : int main(void) {
                                  8                 :                :   EXEC SQL BEGIN DECLARE SECTION;
                                  9                 :                :     char var[25];
                                 10                 :                :     int i, loopcount;
                                 11                 :                :   EXEC SQL END DECLARE SECTION;
                                 12                 :                : 
 7272 meskes@postgresql.or       13                 :CBC           1 :   ECPGdebug(1, stderr);
                                 14                 :              1 :   EXEC SQL CONNECT TO REGRESSDB1;
                                 15                 :                : 
                                 16                 :              1 :   EXEC SQL SET AUTOCOMMIT TO ON;
                                 17                 :                :   EXEC SQL WHENEVER SQLWARNING SQLPRINT;
                                 18                 :                :   EXEC SQL WHENEVER SQLERROR STOP;
                                 19                 :                : 
 7235                            20                 :              1 :   EXEC SQL CREATE TABLE "My_Table" ( Item1 int, Item2 text );
 7272                            21   [ -  +  -  + ]:              1 : 
                                 22                 :              1 :   EXEC SQL SET standard_conforming_strings TO on;
                                 23   [ -  +  -  + ]:              1 : 
 5824 rhaas@postgresql.org       24                 :              1 :   EXEC SQL SHOW standard_conforming_strings INTO :var;
                                 25   [ -  +  -  + ]:              1 :   printf("Standard conforming strings: %s\n", var);
                                 26                 :                : 
                                 27                 :                :   /* this is a\\\\b actually */
 6895 meskes@postgresql.or       28                 :              1 :   EXEC SQL INSERT INTO "My_Table" VALUES ( 2, 'a\\\\b' );
                                 29   [ -  +  -  + ]:              1 :   /* this is a\\b */
                                 30                 :              1 :   EXEC SQL INSERT INTO "My_Table" VALUES ( 2, E'a\\\\b' );
                                 31   [ -  +  -  + ]:              1 : 
                                 32                 :              1 :   EXEC SQL BEGIN;
                                 33   [ -  +  -  + ]:              1 :   EXEC SQL DECLARE C CURSOR FOR SELECT * FROM "My_Table";
                                 34                 :                : 
                                 35                 :              1 :   EXEC SQL OPEN C;
                                 36   [ -  +  -  + ]:              1 : 
                                 37                 :                :   EXEC SQL WHENEVER NOT FOUND DO BREAK;
                                 38                 :                : 
 2714 tgl@sss.pgh.pa.us          39         [ +  - ]:              3 :   for (loopcount = 0; loopcount < 100; loopcount++)
                                 40                 :                :   {
 4615 peter_e@gmx.net            41                 :              3 :     EXEC SQL FETCH C INTO :i, :var;
 6895 meskes@postgresql.or       42   [ +  +  -  +  :              3 :     printf("value: %d %s\n", i, var);
                                              -  + ]
                                 43                 :                :   }
                                 44                 :                : 
                                 45                 :              1 :   EXEC SQL ROLLBACK;
 7235                            46   [ -  +  -  + ]:              1 :   EXEC SQL DROP TABLE "My_Table";
 7272                            47   [ -  +  -  + ]:              1 : 
                                 48                 :              1 :   EXEC SQL DISCONNECT ALL;
                                 49   [ -  +  -  + ]:              1 : 
                                 50                 :              1 :   return 0;
                                 51                 :                : }
        

Generated by: LCOV version 2.0-1