LCOV - code coverage report
Current view: top level - export/scratch1/home/monet/testing/b50e8e2d6f02-1-1-1/build/sql/backends/monet5 - 23_skyserver.sql.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 2 2 100.0 %
Date: 2021-10-13 02:24:04 Functions: 1 1 100.0 %

          Line data    Source code
       1             : unsigned char _23_skyserver_sql[1108] = {
       2             : "CREATE FUNCTION MS_STUFF( s1 varchar(32), st int, len int, s3 varchar(32))\n"
       3             : "RETURNS varchar(32)\n"
       4             : "BEGIN\n"
       5             : "  DECLARE res varchar(32), aux varchar(32);\n"
       6             : "  DECLARE ofset int;\n"
       7             : "  IF ( st < 0 or st > LENGTH(s1))\n"
       8             : "          THEN RETURN '';\n"
       9             : "  END IF;\n"
      10             : "  SET ofset = 1;\n"
      11             : "  SET res = SUBSTRING(s1,ofset,st-1);\n"
      12             : "  SET res = res || s3;\n"
      13             : "  SET ofset = st + len;\n"
      14             : "  SET aux = SUBSTRING(s1,ofset,LENGTH(s1)-ofset+1);\n"
      15             : "  SET res = res || aux;\n"
      16             : "  RETURN res;\n"
      17             : "END;\n"
      18             : "grant execute on function MS_STUFF to public;\n"
      19             : "CREATE FUNCTION MS_TRUNC(num double, prc int)\n"
      20             : "RETURNS double\n"
      21             : "external name sql.ms_trunc;\n"
      22             : "grant execute on function MS_TRUNC to public;\n"
      23             : "CREATE FUNCTION MS_ROUND(num double, prc int, truncat int)\n"
      24             : "RETURNS double\n"
      25             : "BEGIN\n"
      26             : "  IF (truncat = 0)\n"
      27             : "          THEN RETURN ROUND(num, prc);\n"
      28             : "          ELSE RETURN MS_TRUNC(num, prc);\n"
      29             : "  END IF;\n"
      30             : "END;\n"
      31             : "grant execute on function MS_ROUND to public;\n"
      32             : "CREATE FUNCTION MS_STR(num float, prc int, truncat int)\n"
      33             : "RETURNS string\n"
      34             : "BEGIN\n"
      35             : "  RETURN CAST(num as string);\n"
      36             : "END;\n"
      37             : "grant execute on function MS_STR to public;\n"
      38             : "CREATE FUNCTION alpha(pdec double, pradius double)\n"
      39             : "RETURNS double EXTERNAL NAME sql.alpha;\n"
      40             : "grant execute on function alpha to public;\n"
      41             : };
      42             : #include "monetdb_config.h"
      43             : #include "sql_import.h"
      44             : #ifdef _MSC_VER
      45             : #undef read
      46             : #pragma section(".CRT$XCU",read)
      47             : #endif
      48         256 : LIB_STARTUP_FUNC(init_23_skyserver_sql)
      49         256 : { sql_register("23_skyserver", _23_skyserver_sql); }

Generated by: LCOV version 1.14