LCOV - differential code coverage report
Current view: top level - src/interfaces/ecpg/test/sql - quote.pgc (source / functions) Coverage Total Hit UBC CBC
Current: Differential Code Coverage 16@8cea358b128 vs 17@8cea358b128 Lines: 100.0 % 35 35 35
Current Date: 2024-04-14 14:21:10 Functions: 100.0 % 1 1 1
Baseline: 16@8cea358b128 Branches: 51.6 % 64 33 31 33
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 % 35 35 35
Function coverage date bins:
(240..) days: 100.0 % 1 1 1
Branch coverage date bins:
(240..) days: 51.6 % 64 33 31 33

 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                 :                : 
 5443 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                 :                : 
 6465                            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                 :                : 
 6428                            20                 :              1 :   EXEC SQL CREATE TABLE "My_Table" ( Item1 int, Item2 text );
 6465                            21   [ -  +  -  + ]:              1 : 
 5017 rhaas@postgresql.org       22                 :              1 :   EXEC SQL SET standard_conforming_strings TO off;
                                 23   [ -  +  -  + ]:              1 : 
 6465 meskes@postgresql.or       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 */
 6428                            28                 :              1 :   EXEC SQL INSERT INTO "My_Table" VALUES ( 1, 'a\\\\b' );
 6088                            29   [ +  -  -  + ]:              1 :   /* this is a\\b */
 6428                            30                 :              1 :   EXEC SQL INSERT INTO "My_Table" VALUES ( 1, E'a\\\\b' );
 6465                            31   [ -  +  -  + ]:              1 : 
                                 32                 :              1 :   EXEC SQL SET standard_conforming_strings TO on;
                                 33   [ -  +  -  + ]:              1 : 
 5017 rhaas@postgresql.org       34                 :              1 :   EXEC SQL SHOW standard_conforming_strings INTO :var;
                                 35   [ -  +  -  + ]:              1 :   printf("Standard conforming strings: %s\n", var);
                                 36                 :                : 
                                 37                 :                :   /* this is a\\\\b actually */
 6088 meskes@postgresql.or       38                 :              1 :   EXEC SQL INSERT INTO "My_Table" VALUES ( 2, 'a\\\\b' );
                                 39   [ -  +  -  + ]:              1 :   /* this is a\\b */
                                 40                 :              1 :   EXEC SQL INSERT INTO "My_Table" VALUES ( 2, E'a\\\\b' );
                                 41   [ -  +  -  + ]:              1 : 
                                 42                 :              1 :   EXEC SQL BEGIN;
                                 43   [ -  +  -  + ]:              1 :   EXEC SQL DECLARE C CURSOR FOR SELECT * FROM "My_Table";
                                 44                 :                : 
                                 45                 :              1 :   EXEC SQL OPEN C;
                                 46   [ -  +  -  + ]:              1 : 
                                 47                 :                :   EXEC SQL WHENEVER NOT FOUND DO BREAK;
                                 48                 :                : 
 1907 tgl@sss.pgh.pa.us          49         [ +  - ]:              5 :   for (loopcount = 0; loopcount < 100; loopcount++)
                                 50                 :                :   {
 3808 peter_e@gmx.net            51                 :              5 :     EXEC SQL FETCH C INTO :i, :var;
 6088 meskes@postgresql.or       52   [ +  +  -  +  :              5 :     printf("value: %d %s\n", i, var);
                                              -  + ]
                                 53                 :                :   }
                                 54                 :                : 
                                 55                 :              1 :   EXEC SQL ROLLBACK;
 6428                            56   [ -  +  -  + ]:              1 :   EXEC SQL DROP TABLE "My_Table";
 6465                            57   [ -  +  -  + ]:              1 : 
                                 58                 :              1 :   EXEC SQL DISCONNECT ALL;
                                 59   [ -  +  -  + ]:              1 : 
                                 60                 :              1 :   return 0;
                                 61                 :                : }
        

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