LCOV - code coverage report
Current view: top level - src/interfaces/ecpg/test/preproc - strings.pgc (source / functions) Hit Total Coverage
Test: PostgreSQL 18devel Lines: 10 10 100.0 %
Date: 2024-10-10 04:14:55 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #include <../regression.h>
       2             : 
       3             : exec sql begin declare section;
       4             : #include <strings.h>
       5             : exec sql end declare section;
       6             : 
       7           4 : int main(void)
       8             : {
       9           4 :   ECPGdebug(1, stderr);
      10             : 
      11           4 :   exec sql connect to REGRESSDB1;
      12             : 
      13           4 :   exec sql set standard_conforming_strings to on;
      14             : 
      15           4 :   exec sql select 'abc''d\ef',
      16             :                   N'abc''d\ef' AS foo,
      17             :                   E'abc''d\\ef' AS "foo""bar",
      18             :                   U&'d\0061t\0061' AS U&"foo""bar",
      19             :                   U&'d!+000061t!+000061' uescape '!',
      20             :                   $foo$abc$def$foo$
      21             :                   into :s1, :s2, :s3, :s4, :s5, :s6;
      22             : 
      23           4 :   printf("%s %s %s %s %s %s\n", s1, s2, s3, s4, s5, s6);
      24             : 
      25           4 :   exec sql select b'0010', X'019ABcd'
      26             :                   into :s7, :s8;
      27             : 
      28           4 :   printf("%s %s\n", s7, s8);
      29             : 
      30           4 :   exec sql disconnect;
      31           4 :   return 0;
      32             : }

Generated by: LCOV version 1.14