LCOV - differential code coverage report
Current view: top level - src/interfaces/ecpg/test/sql - quote.pgc (source / functions) Coverage Total Hit UBC CBC DUB DCB
Current: 0e5ff9b9b45a657aea12440478dc002e9b01f138 vs 0123ce131fca454009439dfa3b2266d1d40737d7 Lines: 100.0 % 27 27 27 8
Current Date: 2026-03-14 14:10:32 -0400 Functions: 100.0 % 1 1 1
Baseline: lcov-20260315-024220-baseline Branches: 52.1 % 48 25 23 25 8 8
Baseline Date: 2026-03-14 15:27:56 +0100 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(360..) days: 100.0 % 27 27 27
Function coverage date bins:
(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                 :                : 
 6143 meskes@postgresql.or        7                 :CBC           1 : int main() {
                                  8                 :                :   EXEC SQL BEGIN DECLARE SECTION;
                                  9                 :                :     char var[25];
                                 10                 :                :     int i, loopcount;
                                 11                 :                :   EXEC SQL END DECLARE SECTION;
                                 12                 :                : 
 7165                            13                 :              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                 :                : 
 7128                            20                 :              1 :   EXEC SQL CREATE TABLE "My_Table" ( Item1 int, Item2 text );
 7165                            21   [ -  +  -  + ]:              1 : 
                                 22                 :              1 :   EXEC SQL SET standard_conforming_strings TO on;
                                 23   [ -  +  -  + ]:              1 : 
 5717 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 */
 6788 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                 :                : 
 2607 tgl@sss.pgh.pa.us          39         [ +  - ]:              3 :   for (loopcount = 0; loopcount < 100; loopcount++)
                                 40                 :                :   {
 4508 peter_e@gmx.net            41                 :              3 :     EXEC SQL FETCH C INTO :i, :var;
 6788 meskes@postgresql.or       42   [ +  +  -  +  :              3 :     printf("value: %d %s\n", i, var);
                                              -  + ]
                                 43                 :                :   }
                                 44                 :                : 
                                 45                 :              1 :   EXEC SQL ROLLBACK;
 7128                            46   [ -  +  -  + ]:              1 :   EXEC SQL DROP TABLE "My_Table";
 7165                            47   [ -  +  -  + ]:              1 : 
                                 48                 :              1 :   EXEC SQL DISCONNECT ALL;
                                 49   [ -  +  -  + ]:              1 : 
                                 50                 :              1 :   return 0;
                                 51                 :                : }
        

Generated by: LCOV version 2.4-beta