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

 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
   10 amitlan@postgresql.o        9                 :GNC           1 : main ()
                                 10                 :                : {
                                 11                 :                : EXEC SQL BEGIN DECLARE SECTION;
                                 12                 :                :   int foo;
                                 13                 :                : EXEC SQL END DECLARE SECTION;
                                 14                 :                : 
                                 15                 :              1 :   ECPGdebug (1, stderr);
                                 16                 :                : 
                                 17                 :              1 :   EXEC SQL CONNECT TO REGRESSDB1;
                                 18         [ -  + ]:              1 :   EXEC SQL SET AUTOCOMMIT = ON;
                                 19         [ -  + ]:              1 : 
                                 20                 :              1 :   EXEC SQL SELECT foo INTO :foo FROM JSON_TABLE(jsonb '[{"foo":1}]', '$[*]' AS p0
                                 21                 :                :     COLUMNS (
                                 22                 :                :             foo int
                                 23                 :                :     )) jt (foo);
                                 24         [ -  + ]:              1 :   printf("Found foo=%d\n", foo);
                                 25                 :                : 
    6                            26                 :              1 :   EXEC SQL SELECT foo INTO :foo FROM JSON_TABLE(jsonb '[{"foo":"1"}]', '$[*]' AS p0
                                 27                 :                :     COLUMNS (
                                 28                 :                :         NESTED '$' AS p1 COLUMNS (
                                 29                 :                :             NESTED PATH '$' AS p11 COLUMNS ( foo int )
                                 30                 :                :         )
                                 31                 :                :     )) jt (foo);
                                 32         [ -  + ]:              1 :   printf("Found foo=%d\n", foo);
                                 33                 :                : 
   10                            34                 :              1 :   EXEC SQL DISCONNECT;
                                 35         [ -  + ]:              1 : 
                                 36                 :              1 :   return 0;
                                 37                 :                : }
        

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