LCOV - code coverage report
Current view: top level - src/interfaces/ecpg/test/preproc - strings.pgc (source / functions) Hit Total Coverage
Test: PostgreSQL 13devel Lines: 8 8 100.0 %
Date: 2019-09-19 23:07:04 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 'abcdef',
      16             :                   N'abcdef' AS foo,
      17             :                   E'abc\bdef' AS "foo",
      18             :                   U&'d\0061t\0061' AS U&"foo",
      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 disconnect;
      26           4 :   return 0;
      27             : }

Generated by: LCOV version 1.13