1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116
|
/* This file is automatically generated by sql_to_c.awk */
#include "sqlnode.h"
#include "sqlfn.h"
#include "sqltype.h"
/* replddk.sql */
static const char *tbl0 =
"create table SYS_TP_ITEM (\n"
"TI_SERVER varchar,\n"
"TI_ACCT varchar,\n"
"TI_TYPE integer,\n"
"TI_ITEM varchar,\n"
"TI_OPTIONS any,\n"
"TI_IS_COPY integer,\n"
"TI_DAV_USER varchar,\n"
"TI_DAV_GROUP varchar,\n"
"primary key (TI_SERVER, TI_ACCT, TI_TYPE, TI_ITEM)\n"
")\n";
static const char *view0 =
"create view TP_ITEM as select * from SYS_TP_ITEM where TI_SERVER = repl_this_server ()\n";
static const char *other0 =
"exec (\'grant select on TP_ITEM to PUBLIC\')\n";
static const char *view1 =
"create view REPL_ACCOUNTS as select SERVER, ACCOUNT from SYS_REPL_ACCOUNTS\n"
"where SERVER = repl_this_server () and ACCOUNT <> repl_this_server ()\n";
static const char *other1 =
"exec (\'grant select on REPL_ACCOUNTS to PUBLIC\')\n";
static const char *tbl1 =
"create table SYS_TP_GRANT (\n"
"TPG_ACCT varchar,\n"
"TPG_GRANTEE varchar,\n"
"primary key (TPG_ACCT, TPG_GRANTEE)\n"
")\n";
static const char *tbl2 =
"create table SYS_REPL_CR (\n"
"CR_ID integer,\n"
"CR_TABLE_NAME varchar,\n"
"CR_TYPE char,\n"
"CR_PROC varchar,\n"
"CR_ORDER integer,\n"
"\n"
"primary key (CR_ID)\n"
")\n";
static const char *other2 =
"exec (\'grant select on SYS_REPL_CR to PUBLIC\')\n";
/* davddk.sql */
static const char *tbl3 =
"create table WS.WS.SYS_DAV_COL (\n"
"COL_ID integer,\n"
"COL_NAME varchar (256),\n"
"COL_OWNER integer,\n"
"COL_GROUP integer,\n"
"COL_PARENT integer,\n"
"COL_CR_TIME datetime,\n"
"COL_MOD_TIME datetime,\n"
"COL_PERMS char (11),\n"
"COL_DET varchar,\n"
"COL_ACL long varbinary,\n"
"COL_IID IRI_ID_8,\n"
"COL_AUTO_VERSIONING char(1),\n"
"COL_FORK integer not null default 0,\n"
"COL_INHERIT char(1) default \'N\',\n"
"primary key (COL_NAME, COL_PARENT)\n"
")\n"
"alter index SYS_DAV_COL on WS.WS.SYS_DAV_COL partition (COL_PARENT int)\n"
"create index SYS_DAV_COL_PARENT_ID on WS.WS.SYS_DAV_COL (COL_PARENT) partition (COL_PARENT int)\n"
"create unique index SYS_DAV_COL_ID on WS.WS.SYS_DAV_COL (COL_ID) partition (COL_ID int)\n"
"create index SYS_DAV_COL_IID on WS.WS.SYS_DAV_COL (COL_IID) partition (COL_IID int (0hexffff00))\n";
static const char *tbl4 =
"create table WS.WS.SYS_DAV_RES (\n"
"RES_ID integer,\n"
"RES_NAME varchar (256),\n"
"RES_OWNER integer,\n"
"RES_GROUP integer,\n"
"RES_COL integer,\n"
"RES_CONTENT long varbinary IDENTIFIED BY RES_FULL_PATH,\n"
"RES_TYPE varchar,\n"
"RES_CR_TIME datetime,\n"
"RES_MOD_TIME datetime,\n"
"RES_PERMS char (11),\n"
"RES_FULL_PATH varchar,\n"
"ROWGUID varchar,\n"
"RES_ACL long varbinary,\n"
"RES_IID IRI_ID_8,\n"
"RES_STATUS varchar,\n"
"RES_VCR_ID integer,\n"
"RES_VCR_CO_VERSION integer,\n"
"RES_VCR_STATE integer,\n"
"primary key (RES_ID)\n"
")\n"
"create unique index SYS_DAV_RES_COL on WS.WS.SYS_DAV_RES (RES_COL, RES_NAME) partition (RES_COL int)\n"
"create index SYS_DAV_RES_FULL_PATH on WS.WS.SYS_DAV_RES (RES_FULL_PATH) partition (RES_FULL_PATH varchar (-10, 0hexffff))\n"
"alter index SYS_DAV_RES on WS.WS.SYS_DAV_RES partition (RES_ID int)\n"
"create index SYS_DAV_RES_IID on WS.WS.SYS_DAV_RES (RES_IID) partition (RES_IID int (0hexffff00))\n";
static const char *proc0 =
"#line 113 \"[executable]/davddk.sql\"\n"
"create procedure\n"
"WS.WS.SYS_DAV_RES_RES_CONTENT_INDEX_HOOK (inout vtb any, inout d_id integer)\n"
"{\n"
"return 0;\n"
"}\n"
"--src davddk.sql:111\n";
static const char *proc1 =
"#line 120 \"[executable]/davddk.sql\"\n"
"create procedure\n"
"WS.WS.SYS_DAV_RES_RES_CONTENT_UNINDEX_HOOK (inout vtb any, inout d_id integer)\n"
"{\n"
"return 0;\n"
"}\n"
"--src davddk.sql:118\n";
static const char *other3 =
"DB.DBA.vt_create_text_index (\'WS.WS.SYS_DAV_RES\', \'RES_CONTENT\', \'RES_ID\', 2, 0, vector (\'RES_FULL_PATH\', \'RES_OWNER\', \'RES_MOD_TIME\', \'RES_TYPE\'), 1, \'*ini*\', \'*ini*\')\n";
static const char *other4 =
"DB.DBA.vt_create_ftt (\'WS.WS.SYS_DAV_RES\', \'RES_ID\', \'RES_CONTENT\', 2)\n";
static const char *tbl5 =
"create table WS.WS.SYS_DAV_PROP (\n"
"PROP_ID integer,\n"
"PROP_NAME char (256),\n"
"PROP_TYPE char (1),\n"
"PROP_PARENT_ID integer,\n"
"PROP_VALUE long varchar,\n"
"primary key (PROP_PARENT_ID, PROP_TYPE, PROP_NAME)\n"
")\n"
"alter index SYS_DAV_PROP on WS.WS.SYS_DAV_PROP partition (PROP_PARENT_ID int)\n"
"\n"
"create unique index SYS_DAV_PROP_ID on WS.WS.SYS_DAV_PROP (PROP_ID) partition (PROP_ID int)\n";
static const char *tbl6 =
"create table WS.WS.SYS_DAV_LOCK (\n"
"LOCK_TYPE char (1),\n"
"LOCK_SCOPE char (1),\n"
"LOCK_TOKEN char (256),\n"
"LOCK_PARENT_TYPE char (1),\n"
"LOCK_PARENT_ID integer,\n"
"LOCK_TIME datetime not null,\n"
"LOCK_TIMEOUT integer not null,\n"
"LOCK_OWNER integer,\n"
"LOCK_OWNER_INFO varchar,\n"
"primary key (LOCK_PARENT_ID, LOCK_PARENT_TYPE, LOCK_TOKEN)\n"
")\n"
"alter index SYS_DAV_LOCK on WS.WS.SYS_DAV_LOCK partition (LOCK_PARENT_ID int)\n"
"create unique index SYS_DAV_LOCKTOKEN on WS.WS.SYS_DAV_LOCK (LOCK_TOKEN) partition (LOCK_TOKEN varchar)\n";
static const char *view2 =
"create view WS.WS.SYS_DAV_USER (U_ID, U_NAME, U_FULL_NAME, U_E_MAIL, U_PWD,\n"
"U_GROUP, U_LOGIN_TIME, U_ACCOUNT_DISABLED, U_METHODS, U_DEF_PERMS, U_HOME)\n"
"as select U_ID, U_NAME, U_FULL_NAME, U_E_MAIL, U_PASSWORD as U_PWD,\n"
"U_GROUP, U_LOGIN_TIME, U_ACCOUNT_DISABLED, U_METHODS, U_DEF_PERMS, U_HOME\n"
"from DB.DBA.SYS_USERS where U_IS_ROLE = 0 and U_DAV_ENABLE = 1\n";
static const char *view3 =
"create view WS.WS.SYS_DAV_GROUP (G_ID, G_NAME)\n"
"as select U_ID as G_ID, U_NAME as G_NAME\n"
"from DB.DBA.SYS_USERS where U_IS_ROLE = 1 and U_DAV_ENABLE = 1\n";
static const char *view4 =
"create view WS.WS.SYS_DAV_USER_GROUP (UG_UID, UG_GID) as select GI_SUPER, GI_SUB from DB.DBA.SYS_ROLE_GRANTS\n";
static const char *tbl7 =
"create table WS.WS.SYS_DAV_RES_TYPES (\n"
"T_EXT varchar not null,\n"
"T_TYPE varchar not null,\n"
"T_DESCRIPTION varchar,\n"
"primary key (T_EXT)\n"
")\n"
"alter index SYS_DAV_RES_TYPES on WS.WS.SYS_DAV_RES_TYPES partition cluster replicated\n";
static const char *tbl8 =
"create table WS.WS.SYS_MIME_TYPES (\n"
"MT_IDENT varchar not null,\n"
"MT_DESCRIPTION varchar not null,\n"
"MT_DEFAULT_EXT varchar not null,\n"
"MT_BADMAGIC_IDENT varchar,\n"
"primary key (MT_IDENT)\n"
")\n"
"alter index SYS_MIME_TYPES on WS.WS.SYS_MIME_TYPES partition cluster replicated\n";
static const char *tbl9 =
"create table WS.WS.SYS_RDF_SCHEMAS (\n"
"RS_URI varchar not null,\n"
"RS_LOCATION varchar,\n"
"RS_LOCAL_ADDONS varchar,\n"
"RS_PRECOMPILED long xml,\n"
"RS_COMPILATION_DATE datetime,\n"
"RS_CATNAME varchar,\n"
"RS_PROP_CATNAMES long varchar,\n"
"RS_DEPRECATED integer,\n"
"primary key (RS_URI)\n"
")\n"
"alter index SYS_RDF_SCHEMAS on WS.WS.SYS_RDF_SCHEMAS partition cluster replicated\n"
"create unique index SYS_RDF_SCHEMAS_CATNAME on WS.WS.SYS_RDF_SCHEMAS (RS_CATNAME) partition cluster replicated\n";
static const char *tbl10 =
"create table WS.WS.SYS_MIME_RDFS (\n"
"MR_MIME_IDENT varchar not null,\n"
"MR_RDF_URI varchar not null,\n"
"MR_DEPRECATED integer,\n"
"primary key (MR_MIME_IDENT, MR_RDF_URI)\n"
")\n"
"alter index SYS_MIME_RDFS on WS.WS.SYS_MIME_RDFS partition cluster replicated\n";
static const char *tbl11 =
"create table WS.WS.SYS_RDF_PROP_NAME (\n"
"RPN_URI varchar not null primary key,\n"
"RPN_CATID integer\n"
")\n"
"alter index SYS_RDF_PROP_NAME on WS.WS.SYS_RDF_PROP_NAME partition cluster replicated\n"
"create unique index SYS_RDF_PROP_NAME_CATID on WS.WS.SYS_RDF_PROP_NAME (RPN_CATID) partition cluster replicated\n";
static const char *tbl12 =
"create table WS.WS.SYS_DAV_CATFILTER\n"
"(\n"
"CF_ID integer not null primary key,\n"
"CF_SEARCH_PATH varchar not null\n"
")\n"
"alter index SYS_DAV_CATFILTER on WS.WS.SYS_DAV_CATFILTER partition cluster replicated\n"
"create unique index SYS_DAV_CATFILTER_SEARCH_PATH on WS.WS.SYS_DAV_CATFILTER (CF_SEARCH_PATH) partition cluster replicated\n";
static const char *tbl13 =
"create table WS.WS.SYS_DAV_CATFILTER_DETS\n"
"(\n"
"CFD_CF_ID integer not null,\n"
"CFD_DET_SUBCOL_ID integer not null,\n"
"CFD_DET varchar not null,\n"
"primary key (CFD_CF_ID, CFD_DET_SUBCOL_ID)\n"
")\n"
"alter index SYS_DAV_CATFILTER_DETS on WS.WS.SYS_DAV_CATFILTER_DETS partition (CFD_CF_ID int)\n";
static const char *tbl14 =
"create table WS.WS.SYS_DAV_RDF_INVERSE\n"
"(\n"
"DRI_CATF_ID integer not null,\n"
"DRI_PROP_CATID integer not null,\n"
"DRI_CATVALUE varchar not null,\n"
"DRI_RES_ID integer not null,\n"
"primary key (DRI_CATF_ID, DRI_PROP_CATID, DRI_CATVALUE, DRI_RES_ID)\n"
")\n"
"alter index SYS_DAV_RDF_INVERSE on WS.WS.SYS_DAV_RDF_INVERSE partition (DRI_CATF_ID int)\n";
static const char *tbl15 =
"create table WS.WS.SYS_DAV_ACL_INVERSE (\n"
"AI_FLAG char(1) not null,\n"
"AI_PARENT_ID integer not null,\n"
"AI_PARENT_TYPE char(1) not null,\n"
"AI_GRANTEE_ID integer not null,\n"
"\n"
"primary key (AI_FLAG, AI_PARENT_ID, AI_PARENT_TYPE, AI_GRANTEE_ID)\n"
")\n"
"alter index SYS_DAV_ACL_INVERSE on WS.WS.SYS_DAV_ACL_INVERSE partition (AI_PARENT_ID int)\n";
static const char *view5 =
"create view WS.WS.SYS_DAV_ACL_GRANTS (GI_SUPER, GI_SUB)\n"
"as\n"
"select U_ID as GI_SUPER, U_ID as GI_SUB from WS.WS.SYS_DAV_USER\n"
"union\n"
"select GI_SUPER, GI_SUB from DB.DBA.SYS_ROLE_GRANTS\n";
static const char *tbl16 =
"create table WS.WS.SYS_DAV_SPACE_QUOTA\n"
"(\n"
"DSQ_HOME_PATH varchar not null primary key,\n"
"DSQ_U_ID integer,\n"
"DSQ_DAV_USE numeric not null,\n"
"DSQ_APP_USE numeric not null,\n"
"DSQ_TOTAL_USE numeric not null,\n"
"DSQ_MAX_DAV_USE numeric not null,\n"
"DSQ_MAX_APP_USE numeric not null,\n"
"DSQ_MAX_TOTAL_USE numeric not null,\n"
"DSQ_QUOTA numeric not null,\n"
"DSQ_ABOVE_HI_YELLOW datetime,\n"
"DSQ_LAST_WARNING datetime\n"
")\n"
"alter index SYS_DAV_SPACE_QUOTA on WS.WS.SYS_DAV_SPACE_QUOTA partition (DSQ_HOME_PATH varchar (-10, 0hexffff))\n"
"create index SYS_DAV_SPACE_QUOTA_U_ID on WS.WS.SYS_DAV_SPACE_QUOTA (DSQ_U_ID) partition (DSQ_U_ID int)\n";
static const char *tbl17 =
"create table WS.WS.SYS_DAV_TAG (\n"
"DT_RES_ID integer not null,\n"
"DT_U_ID integer not null,\n"
"DT_FT_ID integer not null,\n"
"DT_TAGS varchar not null,\n"
"\n"
"\n"
"primary key (DT_RES_ID, DT_U_ID)\n"
")\n"
"alter index SYS_DAV_TAG on WS.WS.SYS_DAV_TAG partition (DT_RES_ID int)\n"
"create unique index SYS_DAV_TAG_FT_ID on WS.WS.SYS_DAV_TAG (DT_FT_ID) partition (DT_FT_ID int)\n"
"create index SYS_DAV_TAG_U_ID on WS.WS.SYS_DAV_TAG (DT_U_ID) partition (DT_U_ID int)\n";
static const char *proc2 =
"#line 363 \"[executable]/davddk.sql\"\n"
" create function WS.WS.DAV_TAG_NORMALIZE (in strg varchar) returns varchar\n"
"{\n"
"declare words any;\n"
"declare norm varchar;\n"
"words := split_and_decode (cast (strg as varchar), 0, \'\\0\\0,\');\n"
"if (words is null)\n"
"return \'\';\n"
"norm := \'\';\n"
"foreach (varchar word in words) do\n"
"{\n"
"declare nword varchar;\n"
"\n"
"word := trim (replace (replace (replace (replace (word, \'\\t\', \' \'), \'\'\'\', \'\'), \'\"\', \'\'), \'\\\\\', \'\'));\n"
"if (word <> \'\')\n"
"{\n"
"again:\n"
"nword := replace (word, \' \', \' \');\n"
"if (nword <> word)\n"
"{\n"
"word := nword;\n"
"goto again;\n"
"}\n"
"nword := replace (nword, \' \', \'_\');\n"
"if (norm <> \'\')\n"
"norm := norm || \' \' || nword;\n"
"else\n"
"norm := nword;\n"
"}\n"
"\n"
"}\n"
"return norm;\n"
"}\n"
"--src davddk.sql:361\n";
static const char *proc3 =
"#line 397 \"[executable]/davddk.sql\"\n"
"create procedure\n"
"WS.WS.SYS_DAV_TAG_DT_TAGS_INDEX_HOOK (inout vtb any, inout d_id integer)\n"
"{\n"
"for select DT_RES_ID, DT_U_ID, DT_TAGS from WS.WS.SYS_DAV_TAG where DT_FT_ID = d_id do\n"
"{\n"
"vt_batch_feed (vtb, WS.WS.DAV_TAG_NORMALIZE (DT_TAGS), 0, 0, \'x-ViDoc\');\n"
"vt_batch_feed (vtb, sprintf (\'UID%d\', DT_U_ID), 0, 0, \'x-ViDoc\');\n"
"return 1;\n"
"}\n"
"return 1;\n"
"}\n"
"--src davddk.sql:395\n";
static const char *proc4 =
"#line 410 \"[executable]/davddk.sql\"\n"
"create procedure\n"
"WS.WS.SYS_DAV_TAG_DT_TAGS_UNINDEX_HOOK (inout vtb any, inout d_id integer)\n"
"{\n"
"for select DT_RES_ID, DT_U_ID, DT_TAGS from WS.WS.SYS_DAV_TAG where DT_FT_ID = d_id do\n"
"{\n"
"vt_batch_feed (vtb, WS.WS.DAV_TAG_NORMALIZE (DT_TAGS), 1, 0, \'x-ViDoc\');\n"
"vt_batch_feed (vtb, sprintf (\'UID%d\', DT_U_ID), 1, 0, \'x-ViDoc\');\n"
"return 1;\n"
"}\n"
"return 1;\n"
"}\n"
"--src davddk.sql:408\n";
static const char *other5 =
"DB.DBA.vt_create_text_index (\'WS.WS.SYS_DAV_TAG\', \'DT_TAGS\', \'DT_FT_ID\', 2, 0, vector (\'DT_U_ID\', \'DT_RES_ID\'), 1, \'x-ViDoc\', \'*ini*\')\n";
static const char *proc5 =
"#line 430 \"[executable]/davddk.sql\"\n"
"create procedure WS.WS.GETID (in type varchar)\n"
"{\n"
"declare id, nid integer;\n"
"declare c_cur cursor for select top 1 COL_ID from WS.WS.SYS_DAV_COL order by COL_ID desc;\n"
"declare r_cur cursor for select top 1 RES_ID from WS.WS.SYS_DAV_RES order by RES_ID desc;\n"
"declare p_cur cursor for select top 1 PROP_ID from WS.WS.SYS_DAV_PROP order by PROP_ID desc;\n"
"declare rpn_cur cursor for select top 1 RPN_CATID from WS.WS.SYS_RDF_PROP_NAME order by RPN_CATID desc;\n"
"declare cf_cur cursor for select top 1 CF_ID from WS.WS.SYS_DAV_CATFILTER order by CF_ID desc;\n"
"declare t_cur cursor for select top 1 DT_FT_ID from WS.WS.SYS_DAV_TAG order by DT_FT_ID desc;\n"
"\n"
"type := upper (type);\n"
"\n"
"set isolation = \'serializable\';\n"
"\n"
"again:\n"
"\n"
"id := 1;\n"
"whenever not found goto not_found;\n"
"\n"
"if (type = \'C\')\n"
"{\n"
"open c_cur (exclusive, prefetch 1);\n"
"fetch c_cur into id;\n"
"if (not isnull(id))\n"
"id := id + 1;\n"
"}\n"
"else if (type = \'R\')\n"
"{\n"
"open r_cur (exclusive, prefetch 1);\n"
"fetch r_cur into id;\n"
"if (not isnull(id))\n"
"id := id + 1;\n"
"}\n"
"else if (type = \'P\')\n"
"{\n"
"open p_cur (exclusive, prefetch 1);\n"
"fetch p_cur into id;\n"
"if (not isnull(id))\n"
"id := id + 1;\n"
"}\n"
"else if (type = \'RPN\')\n"
"{\n"
"open rpn_cur (exclusive, prefetch 1);\n"
"fetch rpn_cur into id;\n"
"if (not isnull(id))\n"
"id := id + 1;\n"
"}\n"
"else if (type = \'CF\')\n"
"{\n"
"open cf_cur (exclusive, prefetch 1);\n"
"fetch cf_cur into id;\n"
"if (not isnull(id))\n"
"id := id + 1;\n"
"}\n"
"else if (type = \'T\')\n"
"{\n"
"open t_cur (exclusive, prefetch 1);\n"
"fetch t_cur into id;\n"
"if (not isnull(id))\n"
"id := id + 1;\n"
"}\n"
"else\n"
"id := 0;\n"
"\n"
"not_found:\n"
"if (isnull(id))\n"
"id := 1;\n"
"\n"
"whenever not found goto return_id;\n"
"if (type = \'C\')\n"
"{\n"
"close c_cur;\n"
"select COL_ID into nid from WS.WS.SYS_DAV_COL where COL_ID = id;\n"
"goto again;\n"
"}\n"
"else if (type = \'R\')\n"
"{\n"
"close r_cur;\n"
"select RES_ID into nid from WS.WS.SYS_DAV_RES where RES_ID = id;\n"
"goto again;\n"
"}\n"
"else if (type = \'P\')\n"
"{\n"
"close p_cur;\n"
"select PROP_ID into nid from WS.WS.SYS_DAV_PROP where PROP_ID = id;\n"
"goto again;\n"
"}\n"
"else if (type = \'RPN\')\n"
"{\n"
"close rpn_cur;\n"
"select RPN_CATID into nid from WS.WS.SYS_RDF_PROP_NAME where RPN_CATID = id;\n"
"goto again;\n"
"}\n"
"else if (type = \'CF\')\n"
"{\n"
"close cf_cur;\n"
"select CF_ID into nid from WS.WS.SYS_DAV_CATFILTER where CF_ID = id;\n"
"goto again;\n"
"}\n"
"else if (type = \'T\')\n"
"{\n"
"close t_cur;\n"
"select DT_FT_ID into nid from WS.WS.SYS_DAV_TAG where DT_FT_ID = id;\n"
"goto again;\n"
"}\n"
"return_id:\n"
"return id;\n"
"}\n"
"--src davddk.sql:428\n";
static const char *proc6 =
"#line 541 \"[executable]/davddk.sql\"\n"
"create procedure WS.WS.COL_PATH (in _id any)\n"
"{\n"
"declare _path, _name varchar;\n"
"declare _p_id integer;\n"
"_path := \'/\';\n"
"if (isarray (_id))\n"
"return call (cast (_id[0] as varchar) || \'_DAV_SEARCH_PATH\')(_id, \'C\');\n"
"whenever not found goto nf;\n"
"while (_id > 0)\n"
"{\n"
"select COL_NAME, COL_PARENT into _name, _p_id from WS.WS.SYS_DAV_COL where COL_ID = _id;\n"
"if (_id = _p_id)\n"
"{\n"
"log_message (sprintf (\'DAV collection %d is its own parent\', _id));\n"
"_path := \'**circular**/\' || _path;\n"
"return _path;\n"
"}\n"
"_id := _p_id;\n"
"_path := concat (\'/\', _name, _path);\n"
"}\n"
"return _path;\n"
"nf:\n"
"return NULL;\n"
"}\n"
"--src davddk.sql:539\n";
static const char *proc7 =
"#line 568 \"[executable]/davddk.sql\"\n"
"create function DB.DBA.DAV_CHANGED_FUNCTIONS () returns any\n"
"{\n"
"return vector (\n"
"\'DAV_ADD_USER_INT\',\n"
"\'DAV_ADD_USER\',\n"
"\'DAV_DELETE_USER\',\n"
"\'DAV_PERM_D2U\',\n"
"\'DAV_PERM_U2D\',\n"
"\'DAV_CHECK_AUTH\',\n"
"\'DAV_HOME_DIR\',\n"
"\'DAV_ADD_GROUP_INT\',\n"
"\'DAV_ADD_GROUP\',\n"
"\'DAV_DELETE_GROUP\',\n"
"\'DAV_DIR_LIST\',\n"
"\'DAV_DIR_FILTER\',\n"
"\'DAV_GET_PARENT\',\n"
"\'DAV_DIR_SINGLE_INT\',\n"
"\'DAV_DIR_LIST_INT\',\n"
"\'DAV_DIR_FILTER_INT\',\n"
"\'DAV_SEARCH_PATH\',\n"
"\'DAV_SEARCH_ID\',\n"
"\'DAV_SEARCH_SOME_ID\',\n"
"\'DAV_HIDE_ERROR\',\n"
"\'DAV_SEARCH_SOME_ID_OR_DET\',\n"
"\'DAV_SEARCH_ID_OR_DET\',\n"
"\'DAV_OWNER_ID\',\n"
"\'DAV_IS_LOCKED\',\n"
"\'DAV_LIST_LOCKS\',\n"
"\'DAV_LIST_LOCKS_INT\',\n"
"\'DAV_REQ_CHARS_TO_BITMASK\',\n"
"\'DAV_AUTHENTICATE\',\n"
"\'DAV_AUTHENTICATE_HTTP\',\n"
"\'DAV_COL_CREATE\',\n"
"\'DAV_COL_CREATE_INT\',\n"
"\'DAV_RES_UPLOAD\',\n"
"\'DAV_RES_UPLOAD_STRSES\',\n"
"\'DAV_RES_UPLOAD_STRSES_INT\',\n"
"\'DAV_DELETE\',\n"
"\'DAV_DELETE_INT\',\n"
"\'DAV_COPY\',\n"
"\'DAV_COPY_INT\',\n"
"\'DAV_COPY_SUBTREE\',\n"
"\'DAV_MOVE\',\n"
"\'DAV_MOVE_INT\',\n"
"\'DAV_PROP_SET\',\n"
"\'DAV_PROP_SET_INT\',\n"
"\'DAV_PROP_SET_RAW\',\n"
"\'DAV_PROP_REMOVE\',\n"
"\'DAV_PROP_REMOVE_INT\',\n"
"\'DAV_PROP_GET\',\n"
"\'DAV_PROP_GET_INT\',\n"
"\'DAV_PROP_LIST\',\n"
"\'DAV_PROP_LIST_INT\',\n"
"\'DAV_DIR_P\',\n"
"\'DAV_MAKE_DIR\',\n"
"\'DAV_CHECK_PERM\',\n"
"\'DAV_CHECK_USER\',\n"
"\'DAV_RES_CONTENT\',\n"
"\'DAV_RES_CONTENT_STRSES\',\n"
"\'DAV_RES_CONTENT_INT\',\n"
"\'DAV_COL_IS_ANCESTOR_OF\',\n"
"\'DAV_COL_PATH_BOUNDARY\',\n"
"\'WS.WS.ACL_CONTAINS_GRANTEE_AND_FLAG\',\n"
"\'WS.WS.ACL_UPDATE\',\n"
"\'WS.WS.ACL_MAKE_INHERITED\',\n"
"\'WS.WS.ACL_IS_VALID\',\n"
"\'DAV_CAST_STRING_TO_INTEGER\',\n"
"\'DAV_CAST_STRING_TO_DATETIME\',\n"
"\'DAV_CAST_TEXT_TO_VARCHAR\',\n"
"\'DAV_CAST_TEXT_TO_INTEGER\',\n"
"\'DAV_CAST_TEXT_TO_DATETIME\',\n"
"\'DAV_FC_CONST_AS_SQL\',\n"
"\'DAV_FC_PRED_METAS\',\n"
"\'DAV_FC_CMP_METAS\',\n"
"\'DAV_FC_TABLE_METAS\',\n"
"\'DAV_FC_PRINT_COMPARISON\',\n"
"\'DAV_FC_PRINT_WHERE\',\n"
"\'DAV_FC_PRINT_WHERE_INT\',\n"
"\'DAV_REGISTER_RDF_SCHEMA\',\n"
"\'DAV_RDF_SCHEMA_N3_LIST_PROPERTIES\',\n"
"\'DAV_CROP_URI_TO_CATNAME\',\n"
"\'DAV_GET_RDF_SCHEMA_N3\',\n"
"\'DAV_DEPRECATE_RDF_SCHEMA\',\n"
"\'DAV_REGISTER_MIME_TYPE\',\n"
"\'DAV_REGISTER_MIME_RDF\',\n"
"\'DAV_DEPRECATE_MIME_RDF\',\n"
"\'DAV_RDF_PROP_SET\',\n"
"\'DAV_RDF_PROP_GET\',\n"
"\'DAV_RDF_PREPROCESS_RDFXML_SUB\',\n"
"\'DAV_RDF_PREPROCESS_RDFXML\',\n"
"\'DAV_RDF_PROP_SET_INT\',\n"
"\'DAV_RDF_PROP_GET_INT\',\n"
"\'DAV_RDF_MERGE\',\n"
"\'DAV_EXTRACT_AND_SAVE_RDF\',\n"
"\'DAV_EXTRACT_AND_SAVE_RDF_INT\',\n"
"\'DAV_GUESS_MIME_TYPE\',\n"
"\'DAV_EXTRACT_RDF_application/rss+xml\',\n"
"\'DAV_EXTRACT_RDF_application/atom+xml\',\n"
"\'DAV_EXTRACT_RDF_application/xbel+xml\',\n"
"\'DAV_EXTRACT_RDF_application/foaf+xml\',\n"
"\'DAV_EXTRACT_RDF_application/mods+xml\',\n"
"\'DAV_EXTRACT_RDF_application/opml+xml\',\n"
"\'DAV_EXTRACT_RDF_text/html\',\n"
"\'DAV_EXTRACT_RDF_application/x-openlinksw-vsp\',\n"
"\'DAV_EXTRACT_RDF_application/x-openlinksw-vspx+xml\',\n"
"\'DAV_EXTRACT_RDF_application/bpel+xml\',\n"
"\'DAV_EXTRACT_RDF_application/wsdl+xml\',\n"
"\'DAV_EXTRACT_RDF_application/x-openlinksw-vad\',\n"
"\'DAV_EXTRACT_RDF_application/msword+xml\',\n"
"\'IMC_TO_XML\',\n"
"\'DAV_EXTRACT_RDF_text/directory\',\n"
"\'DAV_EXTRACT_RDF_BY_METAS\',\n"
"\'UNIX_DATETIME_PARSER\',\n"
"\'UNIX_DATE_PARSER\',\n"
"\'BPEL_SPLIT_LIST\',\n"
"\'WS.WS.SYS_DAV_RES_RES_CONTENT_INDEX_HOOK\',\n"
"\'WS.WS.SYS_DAV_RES_RES_CONTENT_UNINDEX_HOOK\',\n"
"\'WS.WS.SYS_DAV_PROP_PROP_VALUE_INDEX_HOOK\',\n"
"\'WS.WS.SYS_DAV_PROP_PROP_VALUE_UNINDEX_HOOK\',\n"
"\'WS.WS.OPTIONS\',\n"
"\'WS.WS.PROPFIND\',\n"
"\'WS.WS.PROPFIND_RESPONSE\',\n"
"\'WS.WS.PROPFIND_RESPONSE_FORMAT\',\n"
"\'WS.WS.PROPNAMES\',\n"
"\'WS.WS.CUSTOM_PROP\',\n"
"\'WS.WS.PROPPATCH\',\n"
"\'WS.WS.FINDPARAM\',\n"
"\'WS.WS.MKCOL\',\n"
"\'WS.WS.FINDCOL\',\n"
"\'WS.WS.FINDRES\',\n"
"\'WS.WS.DELCHILDREN\',\n"
"\'WS.WS.DELETE\',\n"
"\'WS.WS.ISCOL\',\n"
"\'WS.WS.ISRES\',\n"
"\'WS.WS.ETAG\',\n"
"\'WS.WS.HEAD\',\n"
"\'WS.WS.PUT\',\n"
"\'WS.WS.HEX_TO_DEC\',\n"
"\'WS.WS.HEX_DIGIT\',\n"
"\'WS.WS.STR_TO_URI\',\n"
"\'WS.WS.STR_SQL_APOS\',\n"
"\'WS.WS.STR_FT_QUOT\',\n"
"\'WS.WS.PATHREF\',\n"
"\'WS.WS.IS_ACTIVE_CONTENT\',\n"
"\'WS.WS.GET_DAV_DEFAULT_PAGE\',\n"
"\'WS.WS.GET_DAV_CHUNKED_QUOTA\',\n"
"\'WS.WS.GET\',\n"
"\'WS.WS.POST\',\n"
"\'WS.WS.LOCK\',\n"
"\'WS.WS.UNLOCK\',\n"
"\'WS.WS.OPLOCKTOKEN\',\n"
"\'WS.WS.PARENT_PATH\',\n"
"\'WS.WS.HREF_TO_ARRAY\',\n"
"\'WS.WS.HREF_TO_PATH_ARRAY\',\n"
"\'WS.WS.DSTIS\',\n"
"\'WS.WS.MOVE\',\n"
"\'WS.WS.COPY\',\n"
"\'WS.WS.COPY_OR_MOVE\',\n"
"\'WS.WS.GETID\',\n"
"\'WS.WS.ISLOCKED\',\n"
"\'WS.WS.CHECK_AUTH\',\n"
"\'WS.WS.GET_IF_AUTH\',\n"
"\'WS.WS.GET_DAV_AUTH\',\n"
"\'WS.WS.PERM_COMP\',\n"
"\'WS.WS.CHECKPERM\',\n"
"\'WS.WS.ISPUBLIC\',\n"
"\'WS.WS.DAV_VSP_DEF_REMOVE\',\n"
"\'WS.WS.UPDCHILD\',\n"
"\'WS.WS.DAV_VSP_INCLUDES_CHANGED\',\n"
"\'WS.WS.EXPAND_INCLUDES\',\n"
"\'WS.WS.XML_VIEW_HEADER\',\n"
"\'WS.WS.XML_VIEW_EXTERNAL_META\',\n"
"\'WS.WS.XML_VIEW_UPDATE\',\n"
"\'WS.WS.FIXPATH\',\n"
"\'WS.WS.COL_PATH\',\n"
"\'WS.WS.ISPUBL\',\n"
"\'WS.WS.BODY_ARR\',\n"
"\'WS.WS.XML_AUTO_SCHED\',\n"
"\'WS.WS.DAV_LOGIN\',\n"
"\'WS.WS.HTTP_RESP\',\n"
"\'WS.WS.COPY_TO_OTHER\',\n"
"\'WS.WS.CHECK_READ_ACCESS\',\n"
"\'WS.WS.IS_REDIRECT_REF\',\n"
"\'WS.WS.DAV_DIR_LIST\',\n"
"\'WS.WS.DAV_CHECK_QUOTA\',\n"
"\'WS.WS.DAV_CHECK_ASMX\',\n"
"\'WS.WS.DAV_REMOVE_ASMX\',\n"
"\'WS.WS.XMLSQL_TO_STRSES\',\n"
"\'CatFilter_DAV_AUTHENTICATE\',\n"
"\'CatFilter_GET_CONDITION\',\n"
"\'CatFilter_ENCODE_CATVALUE\',\n"
"\'CatFilter_DECODE_CATVALUE\',\n"
"\'CatFilter_PATH_PARTS_TO_FILTER\',\n"
"\'CatFilter_ACC_FILTER_DATA\',\n"
"\'CatFilter_DAV_SEARCH_ID_IMPL\',\n"
"\'CatFilter_DAV_AUTHENTICATE_HTTP\',\n"
"\'CatFilter_DAV_GET_PARENT\',\n"
"\'CatFilter_DAV_COL_CREATE\',\n"
"\'CatFilter_DAV_COL_MOUNT\',\n"
"\'CatFilter_DAV_COL_MOUNT_HERE\',\n"
"\'CatFilter_DAV_DELETE\',\n"
"\'CatFilter_FILTER_TO_CONDITION\',\n"
"\'CatFilter_DAV_RES_UPLOAD\',\n"
"\'CatFilter_DAV_PROP_REMOVE\',\n"
"\'CatFilter_DAV_PROP_SET\',\n"
"\'CatFilter_DAV_PROP_GET\',\n"
"\'CatFilter_DAV_PROP_LIST\',\n"
"\'CatFilter_DAV_DIR_SINGLE\',\n"
"\'CatFilter_LIST_SCHEMAS\',\n"
"\'CatFilter_LIST_SCHEMA_PROPS\',\n"
"\'CatFilter_GET_RDF_INVERSE_HITS_DISTVALS\',\n"
"\'CatFilter_GET_RDF_INVERSE_HITS_RES_IDS\',\n"
"\'CatFilter_LIST_PROP_DISTVALS_AUX\',\n"
"\'CatFilter_LIST_PROP_DISTVALS\',\n"
"\'CatFilter_DAV_DIR_LIST\',\n"
"\'CatFilter_DAV_DIR_FILTER\',\n"
"\'CatFilter_DAV_SEARCH_ID\',\n"
"\'CatFilter_DAV_SEARCH_PATH\',\n"
"\'CatFilter_DAV_RES_UPLOAD_COPY\',\n"
"\'CatFilter_DAV_RES_UPLOAD_MOVE\',\n"
"\'CatFilter_DAV_RES_CONTENT\',\n"
"\'CatFilter_DAV_SYMLINK\',\n"
"\'CatFilter_DAV_LOCK\',\n"
"\'CatFilter_DAV_UNLOCK\',\n"
"\'CatFilter_DAV_IS_LOCKED\',\n"
"\'CatFilter_DAV_LIST_LOCKS\',\n"
"\'CatFilter_CONFIGURE\',\n"
"\'CatFilter_FEED_DAV_RDF_INVERSE\',\n"
"\'CatFilter_INIT_SYS_DAV_RDF_INVERSE\',\n"
"\'WS.WS.HOSTFS_RES_CACHE_RESC_DATA_INDEX_HOOK\',\n"
"\'WS.WS.HOSTFS_RES_CACHE_RESC_DATA_UNINDEX_HOOK\',\n"
"\'WS.WS.HOSTFS_FIND_COL\',\n"
"\'WS.WS.HOSTFS_COL_DISAPPEARS\',\n"
"\'WS.WS.HOSTFS_HANDLE_RES_SCAN\',\n"
"\'WS.WS.HOSTFS_RES_DISAPPEARS\',\n"
"\'WS.WS.HOSTFS_TOUCH_RES\',\n"
"\'WS.WS.HOSTFS_GLOBAL_RESET\',\n"
"\'WS.WS.HOSTFS_PATH_STAT\',\n"
"\'WS.WS.HOSTFS_READ_TYPEINFO\',\n"
"\'HostFs_DAV_AUTHENTICATE\',\n"
"\'HostFs_DAV_AUTHENTICATE_HTTP\',\n"
"\'HostFs_DAV_GET_PARENT\',\n"
"\'HostFs_DAV_COL_CREATE\',\n"
"\'HostFs_DAV_COL_MOUNT\',\n"
"\'HostFs_DAV_COL_MOUNT_HERE\',\n"
"\'HostFs_DAV_DELETE\',\n"
"\'createtableHostFs_DAV_RES_UPLOAD\',\n"
"\'HostFs_DAV_RES_UPLOAD\',\n"
"\'HostFs_DAV_PROP_REMOVE\',\n"
"\'HostFs_DAV_PROP_SET\',\n"
"\'HostFs_DAV_PROP_GET\',\n"
"\'HostFs_DAV_PROP_LIST\',\n"
"\'HostFs_ID_TO_OSPATH\',\n"
"\'HostFs_DAV_DIR_SINGLE\',\n"
"\'HostFs_DAV_DIR_LIST\',\n"
"\'HostFs_DAV_DIR_FILTER\',\n"
"\'HostFs_DAV_SEARCH_ID\',\n"
"\'HostFs_DAV_SEARCH_PATH\',\n"
"\'HostFs_DAV_RES_UPLOAD_COPY\',\n"
"\'HostFs_DAV_RES_UPLOAD_MOVE\',\n"
"\'HostFs_DAV_RES_CONTENT\',\n"
"\'HostFs_DAV_SYMLINK\',\n"
"\'HostFs_DAV_LOCK\',\n"
"\'HostFs_DAV_UNLOCK\',\n"
"\'HostFs_DAV_IS_LOCKED\',\n"
"\'HostFs_DAV_LIST_LOCKS\',\n"
"\'oMail_DAV_AUTHENTICATE\',\n"
"\'oMail_NORM\',\n"
"\'oMail_GET_CONFIG\',\n"
"\'oMail_FNMERGE\',\n"
"\'oMail_FNSPLIT\',\n"
"\'oMail_FIXNAME\',\n"
"\'oMail_COMPOSE_NAME\',\n"
"\'oMail_DAV_SEARCH_ID_IMPL\',\n"
"\'oMail_DAV_AUTHENTICATE_HTTP\',\n"
"\'oMail_DAV_GET_PARENT\',\n"
"\'oMail_DAV_COL_CREATE\',\n"
"\'oMail_DAV_COL_MOUNT\',\n"
"\'oMail_DAV_COL_MOUNT_HERE\',\n"
"\'oMail_DAV_DELETE\',\n"
"\'oMail_DAV_RES_UPLOAD\',\n"
"\'oMail_DAV_PROP_REMOVE\',\n"
"\'oMail_DAV_PROP_SET\',\n"
"\'oMail_DAV_PROP_GET\',\n"
"\'oMail_DAV_PROP_LIST\',\n"
"\'oMail_COLNAME_OF_FOLDER\',\n"
"\'oMail_RESNAME_OF_MAIL\',\n"
"\'oMail_DAV_DIR_SINGLE\',\n"
"\'oMail_DAV_DIR_LIST\',\n"
"\'oMail_DAV_DIR_FILTER\',\n"
"\'oMail_DAV_SEARCH_ID\',\n"
"\'oMail_DAV_SEARCH_PATH\',\n"
"\'oMail_DAV_RES_UPLOAD_COPY\',\n"
"\'oMail_DAV_RES_UPLOAD_MOVE\',\n"
"\'oMail_DAV_RES_CONTENT\',\n"
"\'oMail_DAV_SYMLINK\',\n"
"\'oMail_DAV_LOCK\',\n"
"\'oMail_DAV_UNLOCK\',\n"
"\'oMail_DAV_IS_LOCKED\',\n"
"\'oMail_DAV_LIST_LOCKS\',\n"
"\'PropFilter_DAV_AUTHENTICATE\',\n"
"\'PropFilter_NORM\',\n"
"\'PropFilter_GET_CONDITION\',\n"
"\'PropFilter_FIT_INTO_CONDITION\',\n"
"\'PropFilter_LEAVE_CONDITION\',\n"
"\'PropFilter_FNMERGE\',\n"
"\'PropFilter_FNSPLIT\',\n"
"\'PropFilter_DAV_SEARCH_ID_IMPL\',\n"
"\'PropFilter_DAV_AUTHENTICATE_HTTP\',\n"
"\'PropFilter_DAV_GET_PARENT\',\n"
"\'PropFilter_DAV_COL_CREATE\',\n"
"\'PropFilter_DAV_COL_MOUNT\',\n"
"\'PropFilter_DAV_COL_MOUNT_HERE\',\n"
"\'PropFilter_DAV_DELETE\',\n"
"\'PropFilter_DAV_RES_UPLOAD\',\n"
"\'PropFilter_DAV_PROP_REMOVE\',\n"
"\'PropFilter_DAV_PROP_SET\',\n"
"\'PropFilter_DAV_PROP_GET\',\n"
"\'PropFilter_DAV_PROP_LIST\',\n"
"\'PropFilter_DAV_DIR_SINGLE\',\n"
"\'PropFilter_DAV_DIR_LIST\',\n"
"\'PropFilter_DAV_DIR_FILTER\',\n"
"\'PropFilter_DAV_SEARCH_ID\',\n"
"\'PropFilter_DAV_SEARCH_PATH\',\n"
"\'PropFilter_DAV_RES_UPLOAD_COPY\',\n"
"\'PropFilter_DAV_RES_UPLOAD_MOVE\',\n"
"\'PropFilter_DAV_RES_CONTENT\',\n"
"\'PropFilter_DAV_SYMLINK\',\n"
"\'PropFilter_DAV_LOCK\',\n"
"\'PropFilter_DAV_UNLOCK\',\n"
"\'PropFilter_DAV_IS_LOCKED\',\n"
"\'PropFilter_DAV_LIST_LOCKS\',\n"
"\'ResFilter_DAV_AUTHENTICATE\',\n"
"\'ResFilter_NORM\',\n"
"\'ResFilter_ENCODE_FILTER\',\n"
"\'ResFilter_DECODE_FILTER\',\n"
"\'ResFilter_GET_CONDITION\',\n"
"\'ResFilter_FIT_INTO_CONDITION\',\n"
"\'ResFilter_MAKE_DEL_ACTION_FROM_CONDITION\',\n"
"\'ResFilter_LEAVE_CONDITION\',\n"
"\'ResFilter_FNMERGE\',\n"
"\'ResFilter_FNSPLIT\',\n"
"\'ResFilter_DAV_SEARCH_ID_IMPL\',\n"
"\'ResFilter_DAV_AUTHENTICATE_HTTP\',\n"
"\'ResFilter_DAV_GET_PARENT\',\n"
"\'ResFilter_DAV_COL_CREATE\',\n"
"\'ResFilter_DAV_COL_MOUNT\',\n"
"\'ResFilter_DAV_COL_MOUNT_HERE\',\n"
"\'ResFilter_DAV_DELETE\',\n"
"\'ResFilter_DAV_RES_UPLOAD\',\n"
"\'ResFilter_DAV_PROP_REMOVE\',\n"
"\'ResFilter_DAV_PROP_SET\',\n"
"\'ResFilter_DAV_PROP_GET\',\n"
"\'ResFilter_DAV_PROP_LIST\',\n"
"\'ResFilter_DAV_DIR_SINGLE\',\n"
"\'ResFilter_DAV_DIR_LIST\',\n"
"\'ResFilter_DAV_DIR_FILTER\',\n"
"\'ResFilter_DAV_SEARCH_ID\',\n"
"\'ResFilter_DAV_SEARCH_PATH\',\n"
"\'ResFilter_DAV_RES_UPLOAD_COPY\',\n"
"\'ResFilter_DAV_RES_UPLOAD_MOVE\',\n"
"\'ResFilter_DAV_RES_CONTENT\',\n"
"\'ResFilter_DAV_SYMLINK\',\n"
"\'ResFilter_DAV_LOCK\',\n"
"\'ResFilter_DAV_UNLOCK\',\n"
"\'ResFilter_DAV_IS_LOCKED\',\n"
"\'ResFilter_DAV_LIST_LOCKS\',\n"
"\'ResFilter_CONFIGURE\',\n"
"\'Stub_DAV_AUTHENTICATE\',\n"
"\'Stub_DAV_AUTHENTICATE_HTTP\',\n"
"\'Stub_DAV_GET_PARENT\',\n"
"\'Stub_DAV_COL_CREATE\',\n"
"\'Stub_DAV_COL_MOUNT\',\n"
"\'Stub_DAV_COL_MOUNT_HERE\',\n"
"\'Stub_DAV_DELETE\',\n"
"\'Stub_DAV_RES_UPLOAD\',\n"
"\'Stub_DAV_PROP_REMOVE\',\n"
"\'Stub_DAV_PROP_SET\',\n"
"\'Stub_DAV_PROP_GET\',\n"
"\'Stub_DAV_PROP_LIST\',\n"
"\'Stub_DAV_DIR_SINGLE\',\n"
"\'Stub_DAV_DIR_LIST\',\n"
"\'CatFilter_DAV_DIR_FILTER\',\n"
"\'Stub_DAV_SEARCH_ID\',\n"
"\'Stub_DAV_SEARCH_PATH\',\n"
"\'Stub_DAV_RES_UPLOAD_COPY\',\n"
"\'Stub_DAV_RES_UPLOAD_MOVE\',\n"
"\'Stub_DAV_RES_CONTENT\',\n"
"\'Stub_DAV_SYMLINK\',\n"
"\'Stub_DAV_DEREFERENCE_LIST\',\n"
"\'Stub_DAV_RESOLVE_PATH\',\n"
"\'Stub_DAV_LOCK\',\n"
"\'Stub_DAV_UNLOCK\',\n"
"\'Stub_DAV_IS_LOCKED\',\n"
"\'Stub_DAV_LIST_LOCKS\',\n"
"\'TEST_CATFILTER_MAKE_SCHEMA\',\n"
"\'TEST_CATFILTER_MAKE_SCHEMAS\',\n"
"\'TEST_CATFILTER_MAKE_USER\',\n"
"\'TEST_CATFILTER_SINGLE_FILE\',\n"
"\'TEST_CATFILTER_INIT\',\n"
"\'WebMail_DAV_AUTHENTICATE\',\n"
"\'WebMail_NORM\',\n"
"\'WebMail_GET_CONFIG\',\n"
"\'WebMail_FNMERGE\',\n"
"\'WebMail_FNSPLIT\',\n"
"\'WebMail_FIXNAME\',\n"
"\'WebMail_COMPOSE_NAME\',\n"
"\'WebMail_DAV_SEARCH_ID_IMPL\',\n"
"\'WebMail_DAV_AUTHENTICATE_HTTP\',\n"
"\'WebMail_DAV_COL_CREATE\',\n"
"\'WebMail_DAV_COL_MOUNT\',\n"
"\'WebMail_DAV_COL_MOUNT_HERE\',\n"
"\'WebMail_DAV_DELETE\',\n"
"\'WebMail_DAV_RES_UPLOAD\',\n"
"\'WebMail_DAV_PROP_REMOVE\',\n"
"\'WebMail_DAV_PROP_SET\',\n"
"\'WebMail_DAV_PROP_GET\',\n"
"\'WebMail_DAV_PROP_LIST\',\n"
"\'WebMail_COLNAME_OF_FOLDER\',\n"
"\'WebMail_RESNAME_OF_MAIL\',\n"
"\'WebMail_DAV_DIR_SINGLE\',\n"
"\'WebMail_DAV_DIR_LIST\',\n"
"\'WebMail_DAV_DIR_FILTER\',\n"
"\'WebMail_DAV_SEARCH_ID\',\n"
"\'WebMail_DAV_SEARCH_PATH\',\n"
"\'WebMail_DAV_RES_UPLOAD_COPY\',\n"
"\'WebMail_DAV_RES_UPLOAD_MOVE\',\n"
"\'WebMail_DAV_RES_CONTENT\',\n"
"\'WebMail_DAV_SYMLINK\',\n"
"\'WebMail_DAV_DIR_LIST_FT\',\n"
"\'WebMail_DAV_LOCK\',\n"
"\'WebMail_DAV_UNLOCK\',\n"
"\'WebMail_DAV_IS_LOCKED\',\n"
"\'WebMail_DAV_LIST_LOCKS\',\n"
"\'WS.WS.SYS_DAV_COL_INIT\'\n"
");\n"
"}\n"
"--src davddk.sql:566\n";
static const char *proc8 =
"#line 1009 \"[executable]/davddk.sql\"\n"
"create procedure WS.WS.SYS_DAV_INIT ()\n"
"{\n"
"declare dav_status varchar;\n"
"declare nobody_name varchar;\n"
"__atomic (1);\n"
"declare exit handler for sqlstate \'*\'\n"
"{\n"
"\n"
"result (__SQL_STATE, __SQL_MESSAGE);\n"
"log_message (\'The error occurred during execution of procedure WS.WS.SYS_DAV_INIT().\');\n"
"log_message (\'This procedure has failed to upgrade WebDAV to Virtuoso 4.0 format.\');\n"
"log_message (\'The content of data stored in DAV resources remain changed, but access\');\n"
"log_message (\'permissions may become invalid. To guard your database installation from\');\n"
"log_message (\'potential security problems, remove the transaction log before restarting\');\n"
"log_message (\'the server.\');\n"
"log_message (\'The following error has terminated the upgrade:\');\n"
"log_message(concat(cast(__SQL_STATE as varchar), \' \', cast(__SQL_MESSAGE as varchar)));\n"
"raw_exit(-1);\n"
"return;\n"
"};\n"
"set triggers off;\n"
"insert soft WS.WS.SYS_DAV_COL (COL_ID, COL_NAME, COL_PARENT, COL_CR_TIME, COL_MOD_TIME, COL_OWNER, COL_GROUP, COL_PERMS) values (1, \'DAV\', 0, now (), now (), http_dav_uid (), http_admin_gid (), \'110100000R\');\n"
"nobody_name := coalesce ((select U_NAME from DB.DBA.SYS_USERS where U_ID = http_nobody_uid ()));\n"
"if (nobody_name is null)\n"
"{\n"
"declare uid, gid, ctr integer;\n"
"declare procnames any;\n"
"whenever not found goto resources_done;\n"
"declare resc cursor for select RES_OWNER, RES_GROUP from WS.WS.SYS_DAV_RES where RES_OWNER = 0 or RES_GROUP = 0 for update;\n"
"declare colc cursor for select COL_OWNER, COL_GROUP from WS.WS.SYS_DAV_COL where COL_OWNER = 0 or COL_GROUP = 0 for update;\n"
"more_resources:\n"
"ctr := 0;\n"
"open resc;\n"
"for (ctr := 0; ctr < 50000; ctr := ctr + 1)\n"
"{\n"
"fetch resc into uid, gid;\n"
"update WS.WS.SYS_DAV_RES set\n"
"RES_OWNER = case (uid) when 0 then http_nobody_uid () else uid end,\n"
"RES_GROUP = case (gid) when 0 then http_nogroup_gid () else gid end\n"
"where current of resc;\n"
"}\n"
"commit work;\n"
"goto more_resources;\n"
"resources_done:\n"
"commit work;\n"
"whenever not found goto collections_done;\n"
"more_collections:\n"
"ctr := 0;\n"
"open colc;\n"
"for (ctr := 0; ctr < 50000; ctr := ctr + 1)\n"
"{\n"
"fetch colc into uid, gid;\n"
"update WS.WS.SYS_DAV_COL set\n"
"COL_OWNER = case (uid) when 0 then http_nobody_uid () else uid end,\n"
"COL_GROUP = case (gid) when 0 then http_nogroup_gid () else gid end\n"
"where current of colc;\n"
"}\n"
"commit work;\n"
"goto more_collections;\n"
"collections_done:\n"
"commit work;\n"
"procnames := DB.DBA.DAV_CHANGED_FUNCTIONS ();\n"
"foreach (varchar procname in procnames) do\n"
"{\n"
"if (strchr (procname, \'.\'))\n"
"delete from DB.DBA.SYS_PROCEDURES where upper (P_NAME) = upper (procname);\n"
"else\n"
"delete from DB.DBA.SYS_PROCEDURES where upper (P_NAME) = upper (\'DB.DBA.\' || procname);\n"
"}\n"
"commit work;\n"
"}\n"
"else if (nobody_name <> \'nobody\')\n"
"{\n"
"log_message (sprintf (\'The user ID %d is reserved for user \"nobody\" but used by \"%s\"\', http_nobody_uid (), nobody_name));\n"
"log_message (\'The database can not be used with this version of server.\');\n"
"log_message (\'To fix the problem, drop account \"%s\" using Virtuoso 3.x server.\');\n"
"raw_exit (-1);\n"
"}\n"
"if (exists (select top 1 1 from WS.WS.SYS_DAV_PROP where PROP_ID is null))\n"
"{\n"
"declare propid, ctr integer;\n"
"whenever not found goto props_done;\n"
"declare propc cursor for select PROP_ID from WS.WS.SYS_DAV_PROP for update;\n"
"more_props:\n"
"ctr := 0;\n"
"open propc;\n"
"while (ctr < 50000)\n"
"{\n"
"fetch propc into propid;\n"
"if (propid is null)\n"
"{\n"
"ctr := ctr + 1;\n"
"propid := WS.WS.GETID (\'P\');\n"
"update WS.WS.SYS_DAV_PROP set PROP_ID = propid where current of propc;\n"
"}\n"
"}\n"
"commit work;\n"
"goto more_props;\n"
"props_done:\n"
"commit work;\n"
"}\n"
"dav_status := registry_get (\'WS.WS.SYS_DAV_INIT-status\');\n"
"if (not isstring (dav_status))\n"
"dav_status := \'\';\n"
"\n"
"if (strstr (dav_status, \'(WS.WS.SYS_DAV_CATFILTER)\') is null)\n"
"{\n"
"for (select COL_ID, COL_DET, WS.WS.COL_PATH (COL_ID) as _c_path from WS.WS.SYS_DAV_COL where COL_DET is not null and not (COL_DET like \'%Filter\')) do\n"
"{\n"
"for select CF_ID from WS.WS.SYS_DAV_CATFILTER where \"LEFT\" (_c_path, length (CF_SEARCH_PATH)) = CF_SEARCH_PATH do\n"
"{\n"
"insert replacing WS.WS.SYS_DAV_CATFILTER_DETS (CFD_CF_ID, CFD_DET_SUBCOL_ID, CFD_DET)\n"
"values (CF_ID, COL_ID, COL_DET);\n"
"}\n"
"}\n"
"dav_status := dav_status || \' (WS.WS.SYS_DAV_CATFILTER)\';\n"
"registry_set (\'WS.WS.SYS_DAV_INIT-status\', dav_status);\n"
"\n"
"commit work;\n"
"}\n"
"set triggers on;\n"
"insert soft DB.DBA.SYS_USERS (U_ID, U_NAME, U_FULL_NAME, U_E_MAIL, U_PASSWORD, U_GROUP, U_DEF_PERMS, U_ACCOUNT_DISABLED, U_SQL_ENABLE, U_DAV_ENABLE)\n"
"values (http_dav_uid (), \'dav\',\'WebDAV System Administrator\',\'somebody@example.domain\', pwd_magic_calc (\'dav\', \'dav\'), http_admin_gid (), \'110100000\', 0, 0, 1);\n"
"insert soft DB.DBA.SYS_USERS (U_ID, U_NAME, U_FULL_NAME, U_E_MAIL, U_PASSWORD, U_GROUP, U_DEF_PERMS, U_ACCOUNT_DISABLED, U_SQL_ENABLE, U_DAV_ENABLE, U_IS_ROLE)\n"
"values (http_admin_gid (), \'administrators\',\'WebDAV Administrators\',\'admins@example.domain\', \'\', NULL, \'110100000\', 0, 0, 1, 1);\n"
"insert soft DB.DBA.SYS_USERS (U_ID, U_NAME, U_FULL_NAME, U_E_MAIL, U_PASSWORD, U_GROUP, U_DEF_PERMS, U_ACCOUNT_DISABLED, U_SQL_ENABLE, U_DAV_ENABLE)\n"
"values (http_nobody_uid (), \'nobody\',\'Special account\', \'nobody@example.domain\', pwd_magic_calc (\'nobody\', uuid()), http_admin_gid (), \'110100000\', 1, 0, 1);\n"
"insert soft DB.DBA.SYS_USERS (U_ID, U_NAME, U_FULL_NAME, U_E_MAIL, U_PASSWORD, U_GROUP, U_DEF_PERMS, U_ACCOUNT_DISABLED, U_SQL_ENABLE, U_DAV_ENABLE, U_IS_ROLE)\n"
"values (http_nogroup_gid (), \'nogroup\',\'Special group\', \'nobody@example.domain\', \'\', NULL, \'110100000\', 0, 0, 1, 1);\n"
"if (not exists (select top 1 1 from DB.DBA.SYS_USERS where U_ID = __rdf_repl_uid()))\n"
"{\n"
"declare passwd varchar;\n"
"passwd := uuid();\n"
"insert replacing DB.DBA.SYS_USERS (U_ID, U_NAME, U_FULL_NAME, U_E_MAIL, U_PASSWORD, U_GROUP, U_DEF_PERMS, U_ACCOUNT_DISABLED, U_SQL_ENABLE, U_DAV_ENABLE)\n"
"values (__rdf_repl_uid(), \'__rdf_repl\',\'Special account\', \'nobody@example.domain\', pwd_magic_calc (\'__rdf_repl\', passwd), http_admin_gid (), \'110100000\', 0, 1, 1);\n"
"DB.DBA.SECURITY_CL_EXEC_AND_LOG (\'sec_set_user_struct (?,?,?,?,?,?,?)\', vector (\n"
"\'__rdf_repl\', passwd, __rdf_repl_uid(), http_admin_gid (), concat (\'Q \', \'DB\'), 0, NULL, NULL));\n"
"DB.DBA.SECURITY_CL_EXEC_AND_LOG (\'sec_user_enable (?, ?)\', vector (\'__rdf_repl\', 0));\n"
"}\n"
"commit work;\n"
"__atomic (0);\n"
"return;\n"
"}\n"
"--src davddk.sql:1007\n";
static const char *proc9 =
"#line 1154 \"[executable]/davddk.sql\"\n"
"create procedure WS.WS.SYS_DAV_INIT_1 ()\n"
"{\n"
"if (sys_stat (\'cl_run_local_only\') <> 1)\n"
"return;\n"
"WS.WS.SYS_DAV_INIT ();\n"
"}\n"
"--src davddk.sql:1152\n";
static const char *other6 =
"WS.WS.SYS_DAV_INIT_1 ()\n";
static const char *proc10 =
"#line 1165 \"[executable]/davddk.sql\"\n"
"create procedure\n"
"WS.WS.SYS_DAV_PROP_PROP_VALUE_INDEX_HOOK (inout vtb any, inout d_id integer)\n"
"{\n"
"for select PROP_NAME as pn, PROP_VALUE as pv from WS.WS.SYS_DAV_PROP where PROP_ID = d_id do\n"
"{\n"
"declare doc any;\n"
"if (126 = __tag (pv))\n"
"pv := blob_to_string (pv);\n"
"if ((not isstring (pv)) or (pv = \'\'))\n"
"return 1;\n"
"if (193 <> pv[0])\n"
"{\n"
"vt_batch_feed (vtb, pv, 0, 0);\n"
"return 1;\n"
"}\n"
"doc := deserialize (pv);\n"
"if (0 = length (doc))\n"
"return 1;\n"
"doc := xml_tree_doc (doc);\n"
"vt_batch_feed (vtb, doc, 0, 1);\n"
"return 1;\n"
"}\n"
"return 1;\n"
"}\n"
"--src davddk.sql:1163\n";
static const char *proc11 =
"#line 1191 \"[executable]/davddk.sql\"\n"
"create procedure\n"
"WS.WS.SYS_DAV_PROP_PROP_VALUE_UNINDEX_HOOK (inout vtb any, inout d_id integer)\n"
"{\n"
"for select PROP_NAME as pn, PROP_VALUE as pv from WS.WS.SYS_DAV_PROP where PROP_ID = d_id do\n"
"{\n"
"declare doc any;\n"
"if (126 = __tag (pv))\n"
"pv := blob_to_string (pv);\n"
"if ((not isstring (pv)) or (pv = \'\'))\n"
"return 1;\n"
"if (193 <> pv[0])\n"
"{\n"
"vt_batch_feed (vtb, pv, 1, 0);\n"
"return 1;\n"
"}\n"
"doc := deserialize (pv);\n"
"if (0 = length (doc))\n"
"return 1;\n"
"doc := xml_tree_doc (doc);\n"
"vt_batch_feed (vtb, doc, 1, 1);\n"
"return 1;\n"
"}\n"
"return 1;\n"
"}\n"
"--src davddk.sql:1189\n";
static const char *other7 =
"DB.DBA.vt_create_text_index (\'WS.WS.SYS_DAV_PROP\', \'PROP_VALUE\', \'PROP_ID\', 2, 0, vector (), 1, \'*ini*\', \'*ini*\')\n";
static const char *other8 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/andrew-inset\',\'ez\')\n";
static const char *other9 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/bpel+xml\',\'bpel\')\n";
static const char *other10 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/foaf+xml\',\'foaf\')\n";
static const char *other11 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/mac-binhex40\',\'hqx\')\n";
static const char *other12 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/mac-compactpro\',\'cpt\')\n";
static const char *other13 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/mods+xml\',\'mods\')\n";
static const char *other14 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/msexcel\',\'xls\')\n";
static const char *other15 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/msaccess\',\'mdb\')\n";
static const char *other16 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/msexcel\',\'csv\')\n";
static const char *other17 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.oasis.opendocument.text\',\'odt\')\n";
static const char *other18 =
"insert replacing WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.oasis.opendocument.database\',\'odb\')\n";
static const char *other19 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.oasis.opendocument.graphics\', \'odg\')\n";
static const char *other20 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.oasis.opendocument.presentation\', \'odp\')\n";
static const char *other21 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.oasis.opendocument.spreadsheet\', \'ods\')\n";
static const char *other22 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.oasis.opendocument.chart\', \'odc\')\n";
static const char *other23 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.oasis.opendocument.formula\', \'odf\')\n";
static const char *other24 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.oasis.opendocument.image\', \'odi\')\n";
static const char *other25 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/mspowerpoint\',\'ppt\')\n";
static const char *other26 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/msproject\',\'mpp\')\n";
static const char *other27 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/msword\',\'doc\')\n";
static const char *other28 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/octet-stream\',\'bin\')\n";
static const char *other29 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/xddl+xml\',\'xddl\')\n";
static const char *other30 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/octet-stream\',\'dms\')\n";
static const char *other31 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/octet-stream\',\'lha\')\n";
static const char *other32 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/octet-stream\',\'lzh\')\n";
static const char *other33 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/octet-stream\',\'exe\')\n";
static const char *other34 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/octet-stream\',\'class\')\n";
static const char *other35 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/oda\',\'oda\')\n";
static const char *other36 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/ogg\',\'ogg\')\n";
static const char *other37 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/opml+xml\',\'opml\')\n";
static const char *other38 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/rdf+xml\',\'rdf\')\n";
static const char *other39 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/rdf+xml\',\'owl\')\n";
static const char *other40 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/annotea+xml\',\'annotea\')\n";
static const char *other41 =
"update WS.WS.SYS_DAV_RES_TYPES set T_TYPE=\'application/rdf+xml\' where T_TYPE <> \'application/rdf+xml\' and T_EXT = \'rdf\'\n";
static const char *other42 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/pdf\',\'pdf\')\n";
static const char *other43 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/postscript\',\'ai\')\n";
static const char *other44 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/postscript\',\'eps\')\n";
static const char *other45 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/postscript\',\'ps\')\n";
static const char *other46 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/rss+xml\',\'rss\')\n";
static const char *other47 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/smil\',\'smil\')\n";
static const char *other48 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/smil\',\'smi\')\n";
static const char *other49 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/wsdl+xml\',\'wsdl\')\n";
static const char *other50 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/xbel+xml\',\'xbel\')\n";
static const char *other51 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-bcpio\',\'bcpio\')\n";
static const char *other52 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-cdlink\',\'vcd\')\n";
static const char *other53 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-chess-pgn\',\'pgn\')\n";
static const char *other54 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-cpio\',\'cpio\')\n";
static const char *other55 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-csh\',\'csh\')\n";
static const char *other56 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-director\',\'dcr\')\n";
static const char *other57 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-director\',\'dir\')\n";
static const char *other58 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-director\',\'dxr\')\n";
static const char *other59 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-dvi\',\'dvi\')\n";
static const char *other60 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-futuresplash\',\'spl\')\n";
static const char *other61 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-gtar\',\'gtar\')\n";
static const char *other62 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-hdf\',\'hdf\')\n";
static const char *other63 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-javascript\',\'js\')\n";
static const char *other64 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-koan\',\'skp\')\n";
static const char *other65 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-koan\',\'skd\')\n";
static const char *other66 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-koan\',\'skt\')\n";
static const char *other67 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-koan\',\'skm\')\n";
static const char *other68 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-latex\',\'latex\')\n";
static const char *other69 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-netcdf\',\'cdf\')\n";
static const char *other70 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-netcdf\',\'nc\')\n";
static const char *other71 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-openlinksw-vspx+xml\',\'vspx\')\n";
static const char *other72 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-rpm\',\'rpm\')\n";
static const char *other73 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-sh\',\'sh\')\n";
static const char *other74 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-shar\',\'shar\')\n";
static const char *other75 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-shockwave-flash\',\'swf\')\n";
static const char *other76 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-stuffit\',\'sit\')\n";
static const char *other77 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-sv4cpio\',\'sv4cpio\')\n";
static const char *other78 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-sv4crc\',\'sv4crc\')\n";
static const char *other79 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-tar\',\'tar\')\n";
static const char *other80 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-tcl\',\'tcl\')\n";
static const char *other81 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-tex\',\'tex\')\n";
static const char *other82 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-texinfo\',\'texinfo\')\n";
static const char *other83 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-texinfo\',\'texi\')\n";
static const char *other84 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-troff\',\'t\')\n";
static const char *other85 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-troff\',\'tr\')\n";
static const char *other86 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-troff\',\'roff\')\n";
static const char *other87 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-troff-man\',\'man\')\n";
static const char *other88 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-troff-me\',\'me\')\n";
static const char *other89 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-troff-ms\',\'ms\')\n";
static const char *other90 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-ustar\',\'ustar\')\n";
static const char *other91 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-wais-source\',\'src\')\n";
static const char *other92 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/zip\',\'zip\')\n";
static const char *other93 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/basic\',\'au\')\n";
static const char *other94 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/basic\',\'snd\')\n";
static const char *other95 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/midi\',\'mid\')\n";
static const char *other96 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/midi\',\'kar\')\n";
static const char *other97 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/midi\',\'midi\')\n";
static const char *other98 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/mpeg\',\'mpga\')\n";
static const char *other99 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/mpeg\',\'mp2\')\n";
static const char *other100 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/mpeg\',\'mp3\')\n";
static const char *other101 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/x-aiff\',\'aif\')\n";
static const char *other102 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/x-aiff\',\'aiff\')\n";
static const char *other103 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/x-aiff\',\'aifc\')\n";
static const char *other104 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/x-flac\',\'flac\')\n";
static const char *other105 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/x-mp3\',\'mp3\')\n";
static const char *other106 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/x-m4a\',\'m4a\')\n";
static const char *other107 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/x-m4p\',\'m4p\')\n";
static const char *other108 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/x-pn-realaudio\',\'ram\')\n";
static const char *other109 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/x-pn-realaudio\',\'rm\')\n";
static const char *other110 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/x-realaudio\',\'ra\')\n";
static const char *other111 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/x-wav\',\'wav\')\n";
static const char *other112 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'chemical/x-pdb\',\'pdb\')\n";
static const char *other113 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'chemical/x-pdb\',\'xyz\')\n";
static const char *other114 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/gif\',\'gif\')\n";
static const char *other115 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/ief\',\'ief\')\n";
static const char *other116 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/jpeg\',\'jpeg\')\n";
static const char *other117 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/jpeg\',\'jpg\')\n";
static const char *other118 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/jpeg\',\'jpe\')\n";
static const char *other119 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/png\',\'png\')\n";
static const char *other120 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/svg+xml\',\'svg\')\n";
static const char *other121 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/tiff\',\'tif\')\n";
static const char *other122 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/tiff\',\'tiff\')\n";
static const char *other123 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/x-cmu-raster\',\'ras\')\n";
static const char *other124 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/x-portable-anymap\',\'pnm\')\n";
static const char *other125 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/x-portable-bitmap\',\'pbm\')\n";
static const char *other126 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/x-portable-graymap\',\'pgm\')\n";
static const char *other127 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/x-portable-pixmap\',\'ppm\')\n";
static const char *other128 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/x-rgb\',\'rgb\')\n";
static const char *other129 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/x-xbitmap\',\'xbm\')\n";
static const char *other130 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/x-xpixmap\',\'xpm\')\n";
static const char *other131 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/x-xwindowdump\',\'xwd\')\n";
static const char *other132 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'model/iges\',\'iges\')\n";
static const char *other133 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'model/iges\',\'igs\')\n";
static const char *other134 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'model/mesh\',\'silo\')\n";
static const char *other135 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'model/mesh\',\'mesh\')\n";
static const char *other136 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'model/mesh\',\'msh\')\n";
static const char *other137 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'model/vrml\',\'vrml\')\n";
static const char *other138 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'model/vrml\',\'wrl\')\n";
static const char *other139 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/directory\',\'ical\')\n";
static const char *other140 =
"insert replacing WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/calendar\',\'ics\')\n";
static const char *other141 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/directory\',\'vcard\')\n";
static const char *other142 =
"insert replacing WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/x-vCard\',\'vcf\')\n";
static const char *other143 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/css\',\'css\')\n";
static const char *other144 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/plain\',\'txt\')\n";
static const char *other145 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/plain\',\'asc\')\n";
static const char *other146 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/richtext\',\'rtx\')\n";
static const char *other147 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/rtf\',\'rtf\')\n";
static const char *other148 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/sgml\',\'sgm\')\n";
static const char *other149 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/sgml\',\'sgml\')\n";
static const char *other150 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/tab-separated-values\',\'tsv\')\n";
static const char *other151 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/x-setext\',\'etx\')\n";
static const char *other152 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/xml\',\'xml\')\n";
static const char *other153 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/xml\',\'xmltxt\')\n";
static const char *other154 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/mpeg\',\'mpe\')\n";
static const char *other155 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/mpeg\',\'mpeg\')\n";
static const char *other156 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/mpeg\',\'mpg\')\n";
static const char *other157 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/quicktime\',\'mov\')\n";
static const char *other158 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/quicktime\',\'qt\')\n";
static const char *other159 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/x-msvideo\',\'avi\')\n";
static const char *other160 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/x-sgi-movie\',\'movie\')\n";
static const char *other161 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'x-conference/x-cooltalk\',\'ice\')\n";
static const char *other162 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/html\',\'htm\')\n";
static const char *other163 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/html\',\'html\')\n";
static const char *other164 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/xsl\',\'xsl\')\n";
static const char *other165 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/html\',\'asp\')\n";
static const char *other166 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/html\',\'php\')\n";
static const char *other167 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/html\',\'php3\')\n";
static const char *other168 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/plain\',\'sql\')\n";
static const char *other169 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/xml\',\'xsd\')\n";
static const char *other170 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/xml\',\'dtd\')\n";
static const char *other171 =
"insert replacing WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/ocs+xml\',\'ocs\')\n";
static const char *other172 =
"insert replacing WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/opml+xml\',\'opml\')\n";
static const char *other173 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/xml\',\'rss\')\n";
static const char *other174 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/bmp\',\'bmp\')\n";
static const char *other175 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/mp4\',\'mp4\')\n";
static const char *other176 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/3gpp\',\'3gp\')\n";
static const char *other177 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/amr\',\'amr\')\n";
static const char *other178 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/rdf+ttl\',\'ttl\')\n";
static const char *other179 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/rdf+n3\',\'n3\')\n";
static const char *other180 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-ms-application\',\'application\')\n";
static const char *other181 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-ms-manifest\',\'manifest\')\n";
static const char *other182 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/octet-stream\',\'deploy\')\n";
static const char *other183 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/octet-stream\',\'msp\')\n";
static const char *other184 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/octet-stream\',\'msu\')\n";
static const char *other185 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-ms-vsto\',\'vsto\')\n";
static const char *other186 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/xaml+xml\',\'xaml\')\n";
static const char *other187 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-ms-xbap\',\'xbap\')\n";
static const char *other188 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/applixware\',\'aw\')\n";
static const char *other189 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/atomcat+xml\',\'atomcat\')\n";
static const char *other190 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/atomsvc+xml\',\'atomsvc\')\n";
static const char *other191 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/atom+xml\',\'atom\')\n";
static const char *other192 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/ccxml+xml\',\'ccxml\')\n";
static const char *other193 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/cu-seeme\',\'cu\')\n";
static const char *other194 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/davmount+xml\',\'davmount\')\n";
static const char *other195 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/dssc+der\',\'dssc\')\n";
static const char *other196 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/dssc+xml\',\'xdssc\')\n";
static const char *other197 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/ecmascript\',\'ecma\')\n";
static const char *other198 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/emma+xml\',\'emma\')\n";
static const char *other199 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/epub+zip\',\'epub\')\n";
static const char *other200 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/font-tdpfr\',\'pfr\')\n";
static const char *other201 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/hyperstudio\',\'stk\')\n";
static const char *other202 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/ipfix\',\'ipfix\')\n";
static const char *other203 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/java-archive\',\'jar\')\n";
static const char *other204 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/java-serialized-object\',\'ser\')\n";
static const char *other205 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/json\',\'json\')\n";
static const char *other206 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/lost+xml\',\'lostxml\')\n";
static const char *other207 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/marc\',\'mrc\')\n";
static const char *other208 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/mathematica\',\'ma\')\n";
static const char *other209 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/mathematica\',\'nb\')\n";
static const char *other210 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/mathematica\',\'mb\')\n";
static const char *other211 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/mathml+xml\',\'mathml\')\n";
static const char *other212 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/mbox\',\'mbox\')\n";
static const char *other213 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/mediaservercontrol+xml\',\'mscml\')\n";
static const char *other214 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/mp4\',\'mp4s\')\n";
static const char *other215 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/msword\',\'dot\')\n";
static const char *other216 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/mxf\',\'mxf\')\n";
static const char *other217 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/octet-stream\',\'lrf\')\n";
static const char *other218 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/octet-stream\',\'so\')\n";
static const char *other219 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/octet-stream\',\'iso\')\n";
static const char *other220 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/octet-stream\',\'dmg\')\n";
static const char *other221 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/octet-stream\',\'dist\')\n";
static const char *other222 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/octet-stream\',\'distz\')\n";
static const char *other223 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/octet-stream\',\'pkg\')\n";
static const char *other224 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/octet-stream\',\'bpk\')\n";
static const char *other225 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/octet-stream\',\'dump\')\n";
static const char *other226 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/octet-stream\',\'elc\')\n";
static const char *other227 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/oebps-package+xml\',\'opf\')\n";
static const char *other228 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/ogg\',\'ogx\')\n";
static const char *other229 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/onenote\',\'onetoc\')\n";
static const char *other230 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/onenote\',\'onetoc2\')\n";
static const char *other231 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/onenote\',\'onetmp\')\n";
static const char *other232 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/onenote\',\'onepkg\')\n";
static const char *other233 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/patch-ops-error+xml\',\'xer\')\n";
static const char *other234 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/pgp-encrypted\',\'pgp\')\n";
static const char *other235 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/pgp-signature\',\'sig\')\n";
static const char *other236 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/pics-rules\',\'prf\')\n";
static const char *other237 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/pkcs10\',\'p10\')\n";
static const char *other238 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/pkcs7-mime\',\'p7m\')\n";
static const char *other239 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/pkcs7-mime\',\'p7c\')\n";
static const char *other240 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/pkcs7-signature\',\'p7s\')\n";
static const char *other241 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/pkix-cert\',\'cer\')\n";
static const char *other242 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/pkixcmp\',\'pki\')\n";
static const char *other243 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/pkix-crl\',\'crl\')\n";
static const char *other244 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/pkix-pkipath\',\'pkipath\')\n";
static const char *other245 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/pls+xml\',\'pls\')\n";
static const char *other246 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/prs.cww\',\'cww\')\n";
static const char *other247 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/reginfo+xml\',\'rif\')\n";
static const char *other248 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/relax-ng-compact-syntax\',\'rnc\')\n";
static const char *other249 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/resource-lists-diff+xml\',\'rld\')\n";
static const char *other250 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/resource-lists+xml\',\'rl\')\n";
static const char *other251 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/rls-services+xml\',\'rs\')\n";
static const char *other252 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/rsd+xml\',\'rsd\')\n";
static const char *other253 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/sbml+xml\',\'sbml\')\n";
static const char *other254 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/scvp-cv-request\',\'scq\')\n";
static const char *other255 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/scvp-cv-response\',\'scs\')\n";
static const char *other256 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/scvp-vp-request\',\'spq\')\n";
static const char *other257 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/scvp-vp-response\',\'spp\')\n";
static const char *other258 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/sdp\',\'sdp\')\n";
static const char *other259 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/set-payment-initiation\',\'setpay\')\n";
static const char *other260 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/set-registration-initiation\',\'setreg\')\n";
static const char *other261 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/shf+xml\',\'shf\')\n";
static const char *other262 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/sparql-query\',\'rq\')\n";
static const char *other263 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/sparql-results+xml\',\'srx\')\n";
static const char *other264 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/srgs\',\'gram\')\n";
static const char *other265 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/srgs+xml\',\'grxml\')\n";
static const char *other266 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/ssml+xml\',\'ssml\')\n";
static const char *other267 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.3gpp2.tcap\',\'tcap\')\n";
static const char *other268 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.3gpp.pic-bw-large\',\'plb\')\n";
static const char *other269 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.3gpp.pic-bw-small\',\'psb\')\n";
static const char *other270 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.3gpp.pic-bw-var\',\'pvb\')\n";
static const char *other271 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.3m.post-it-notes\',\'pwn\')\n";
static const char *other272 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.accpac.simply.aso\',\'aso\')\n";
static const char *other273 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.accpac.simply.imp\',\'imp\')\n";
static const char *other274 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.acucobol\',\'acu\')\n";
static const char *other275 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.acucorp\',\'atc\')\n";
static const char *other276 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.acucorp\',\'acutc\')\n";
static const char *other277 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.adobe.air-application-installer-package+zip\',\'air\')\n";
static const char *other278 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.adobe.xdp+xml\',\'xdp\')\n";
static const char *other279 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.adobe.xfdf\',\'xfdf\')\n";
static const char *other280 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.airzip.filesecure.azf\',\'azf\')\n";
static const char *other281 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.airzip.filesecure.azs\',\'azs\')\n";
static const char *other282 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.amazon.ebook\',\'azw\')\n";
static const char *other283 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.americandynamics.acc\',\'acc\')\n";
static const char *other284 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.amiga.ami\',\'ami\')\n";
static const char *other285 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.android.package-archive\',\'apk\')\n";
static const char *other286 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.anser-web-certificate-issue-initiation\',\'cii\')\n";
static const char *other287 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.anser-web-funds-transfer-initiation\',\'fti\')\n";
static const char *other288 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.antix.game-component\',\'atx\')\n";
static const char *other289 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.apple.installer+xml\',\'mpkg\')\n";
static const char *other290 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.apple.mpegurl\',\'m3u8\')\n";
static const char *other291 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.aristanetworks.swi\',\'swi\')\n";
static const char *other292 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.audiograph\',\'aep\')\n";
static const char *other293 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.blueice.multipass\',\'mpm\')\n";
static const char *other294 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.bmi\',\'bmi\')\n";
static const char *other295 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.businessobjects\',\'rep\')\n";
static const char *other296 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.chemdraw+xml\',\'cdxml\')\n";
static const char *other297 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.chipnuts.karaoke-mmd\',\'mmd\')\n";
static const char *other298 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.cinderella\',\'cdy\')\n";
static const char *other299 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.claymore\',\'cla\')\n";
static const char *other300 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.cloanto.rp9\',\'rp9\')\n";
static const char *other301 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.clonk.c4group\',\'c4g\')\n";
static const char *other302 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.clonk.c4group\',\'c4d\')\n";
static const char *other303 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.clonk.c4group\',\'c4f\')\n";
static const char *other304 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.clonk.c4group\',\'c4p\')\n";
static const char *other305 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.clonk.c4group\',\'c4u\')\n";
static const char *other306 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.commonspace\',\'csp\')\n";
static const char *other307 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.contact.cmsg\',\'cdbcmsg\')\n";
static const char *other308 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.cosmocaller\',\'cmc\')\n";
static const char *other309 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.crick.clicker\',\'clkx\')\n";
static const char *other310 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.crick.clicker.keyboard\',\'clkk\')\n";
static const char *other311 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.crick.clicker.palette\',\'clkp\')\n";
static const char *other312 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.crick.clicker.template\',\'clkt\')\n";
static const char *other313 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.crick.clicker.wordbank\',\'clkw\')\n";
static const char *other314 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.criticaltools.wbs+xml\',\'wbs\')\n";
static const char *other315 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ctc-posml\',\'pml\')\n";
static const char *other316 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.cups-ppd\',\'ppd\')\n";
static const char *other317 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.curl.car\',\'car\')\n";
static const char *other318 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.curl.pcurl\',\'pcurl\')\n";
static const char *other319 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.data-vision.rdz\',\'rdz\')\n";
static const char *other320 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.denovo.fcselayout-link\',\'fe_launch\')\n";
static const char *other321 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.dna\',\'dna\')\n";
static const char *other322 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.dolby.mlp\',\'mlp\')\n";
static const char *other323 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.dpgraph\',\'dpg\')\n";
static const char *other324 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.dreamfactory\',\'dfac\')\n";
static const char *other325 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.dynageo\',\'geo\')\n";
static const char *other326 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ecowin.chart\',\'mag\')\n";
static const char *other327 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.enliven\',\'nml\')\n";
static const char *other328 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.epson.esf\',\'esf\')\n";
static const char *other329 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.epson.msf\',\'msf\')\n";
static const char *other330 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.epson.quickanime\',\'qam\')\n";
static const char *other331 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.epson.salt\',\'slt\')\n";
static const char *other332 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.epson.ssf\',\'ssf\')\n";
static const char *other333 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.eszigno3+xml\',\'es3\')\n";
static const char *other334 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.eszigno3+xml\',\'et3\')\n";
static const char *other335 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ezpix-album\',\'ez2\')\n";
static const char *other336 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ezpix-package\',\'ez3\')\n";
static const char *other337 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.fdf\',\'fdf\')\n";
static const char *other338 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.fdsn.mseed\',\'mseed\')\n";
static const char *other339 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.fdsn.seed\',\'seed\')\n";
static const char *other340 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.fdsn.seed\',\'dataless\')\n";
static const char *other341 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.flographit\',\'gph\')\n";
static const char *other342 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.fluxtime.clip\',\'ftc\')\n";
static const char *other343 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.framemaker\',\'fm\')\n";
static const char *other344 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.framemaker\',\'frame\')\n";
static const char *other345 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.framemaker\',\'maker\')\n";
static const char *other346 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.framemaker\',\'book\')\n";
static const char *other347 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.frogans.fnc\',\'fnc\')\n";
static const char *other348 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.frogans.ltf\',\'ltf\')\n";
static const char *other349 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.fsc.weblaunch\',\'fsc\')\n";
static const char *other350 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.fujitsu.oasys\',\'oas\')\n";
static const char *other351 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.fujitsu.oasys2\',\'oa2\')\n";
static const char *other352 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.fujitsu.oasys3\',\'oa3\')\n";
static const char *other353 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.fujitsu.oasysgp\',\'fg5\')\n";
static const char *other354 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.fujitsu.oasysprs\',\'bh2\')\n";
static const char *other355 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.fujixerox.ddd\',\'ddd\')\n";
static const char *other356 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.fujixerox.docuworks\',\'xdw\')\n";
static const char *other357 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.fujixerox.docuworks.binder\',\'xbd\')\n";
static const char *other358 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.fuzzysheet\',\'fzs\')\n";
static const char *other359 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.genomatix.tuxedo\',\'txd\')\n";
static const char *other360 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.geogebra.file\',\'ggb\')\n";
static const char *other361 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.geogebra.tool\',\'ggt\')\n";
static const char *other362 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.geometry-explorer\',\'gex\')\n";
static const char *other363 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.geometry-explorer\',\'gre\')\n";
static const char *other364 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.geonext\',\'gxt\')\n";
static const char *other365 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.geoplan\',\'g2w\')\n";
static const char *other366 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.geospace\',\'g3w\')\n";
static const char *other367 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.gmx\',\'gmx\')\n";
static const char *other368 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.google-earth.kml+xml\',\'kml\')\n";
static const char *other369 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.google-earth.kmz\',\'kmz\')\n";
static const char *other370 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.grafeq\',\'gqf\')\n";
static const char *other371 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.grafeq\',\'gqs\')\n";
static const char *other372 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.groove-account\',\'gac\')\n";
static const char *other373 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.groove-help\',\'ghf\')\n";
static const char *other374 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.groove-identity-message\',\'gim\')\n";
static const char *other375 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.groove-injector\',\'grv\')\n";
static const char *other376 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.groove-tool-message\',\'gtm\')\n";
static const char *other377 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.groove-tool-template\',\'tpl\')\n";
static const char *other378 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.groove-vcard\',\'vcg\')\n";
static const char *other379 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.handheld-entertainment+xml\',\'zmm\')\n";
static const char *other380 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.hbci\',\'hbci\')\n";
static const char *other381 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.hhe.lesson-player\',\'les\')\n";
static const char *other382 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.hp-hpgl\',\'hpgl\')\n";
static const char *other383 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.hp-hpid\',\'hpid\')\n";
static const char *other384 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.hp-hps\',\'hps\')\n";
static const char *other385 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.hp-jlyt\',\'jlt\')\n";
static const char *other386 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.hp-pcl\',\'pcl\')\n";
static const char *other387 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.hp-pclxl\',\'pclxl\')\n";
static const char *other388 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.hydrostatix.sof-data\',\'sfd-hdstx\')\n";
static const char *other389 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.hzn-3d-crossword\',\'x3d\')\n";
static const char *other390 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ibm.minipay\',\'mpy\')\n";
static const char *other391 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ibm.modcap\',\'afp\')\n";
static const char *other392 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ibm.modcap\',\'listafp\')\n";
static const char *other393 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ibm.modcap\',\'list3820\')\n";
static const char *other394 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ibm.rights-management\',\'irm\')\n";
static const char *other395 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ibm.secure-container\',\'sc\')\n";
static const char *other396 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.iccprofile\',\'icc\')\n";
static const char *other397 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.iccprofile\',\'icm\')\n";
static const char *other398 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.igloader\',\'igl\')\n";
static const char *other399 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.immervision-ivp\',\'ivp\')\n";
static const char *other400 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.immervision-ivu\',\'ivu\')\n";
static const char *other401 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.intercon.formnet\',\'xpw\')\n";
static const char *other402 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.intercon.formnet\',\'xpx\')\n";
static const char *other403 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.intu.qbo\',\'qbo\')\n";
static const char *other404 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.intu.qfx\',\'qfx\')\n";
static const char *other405 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ipunplugged.rcprofile\',\'rcprofile\')\n";
static const char *other406 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.irepository.package+xml\',\'irp\')\n";
static const char *other407 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.is-xpr\',\'xpr\')\n";
static const char *other408 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.jam\',\'jam\')\n";
static const char *other409 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.jcp.javame.midlet-rms\',\'rms\')\n";
static const char *other410 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.jisp\',\'jisp\')\n";
static const char *other411 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.joost.joda-archive\',\'joda\')\n";
static const char *other412 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.kahootz\',\'ktz\')\n";
static const char *other413 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.kahootz\',\'ktr\')\n";
static const char *other414 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.kde.karbon\',\'karbon\')\n";
static const char *other415 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.kde.kchart\',\'chrt\')\n";
static const char *other416 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.kde.kformula\',\'kfo\')\n";
static const char *other417 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.kde.kivio\',\'flw\')\n";
static const char *other418 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.kde.kontour\',\'kon\')\n";
static const char *other419 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.kde.kpresenter\',\'kpr\')\n";
static const char *other420 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.kde.kpresenter\',\'kpt\')\n";
static const char *other421 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.kde.kspread\',\'ksp\')\n";
static const char *other422 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.kde.kword\',\'kwd\')\n";
static const char *other423 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.kde.kword\',\'kwt\')\n";
static const char *other424 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.kenameaapp\',\'htke\')\n";
static const char *other425 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.kidspiration\',\'kia\')\n";
static const char *other426 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.kinar\',\'kne\')\n";
static const char *other427 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.kinar\',\'knp\')\n";
static const char *other428 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.kodak-descriptor\',\'sse\')\n";
static const char *other429 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.llamagraphics.life-balance.desktop\',\'lbd\')\n";
static const char *other430 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.llamagraphics.life-balance.exchange+xml\',\'lbe\')\n";
static const char *other431 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.lotus-1-2-3\',\'123\')\n";
static const char *other432 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.lotus-approach\',\'apr\')\n";
static const char *other433 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.lotus-freelance\',\'pre\')\n";
static const char *other434 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.lotus-notes\',\'nsf\')\n";
static const char *other435 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.lotus-organizer\',\'org\')\n";
static const char *other436 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.lotus-screencam\',\'scm\')\n";
static const char *other437 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.lotus-wordpro\',\'lwp\')\n";
static const char *other438 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.macports.portpkg\',\'portpkg\')\n";
static const char *other439 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.mcd\',\'mcd\')\n";
static const char *other440 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.medcalcdata\',\'mc1\')\n";
static const char *other441 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.mediastation.cdkey\',\'cdkey\')\n";
static const char *other442 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.mfer\',\'mwf\')\n";
static const char *other443 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.mfmp\',\'mfm\')\n";
static const char *other444 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.micrografx.flo\',\'flo\')\n";
static const char *other445 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.micrografx.igx\',\'igx\')\n";
static const char *other446 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.mif\',\'mif\')\n";
static const char *other447 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.mobius.daf\',\'daf\')\n";
static const char *other448 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.mobius.dis\',\'dis\')\n";
static const char *other449 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.mobius.mbk\',\'mbk\')\n";
static const char *other450 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.mobius.mqy\',\'mqy\')\n";
static const char *other451 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.mobius.msl\',\'msl\')\n";
static const char *other452 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.mobius.plc\',\'plc\')\n";
static const char *other453 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.mobius.txf\',\'txf\')\n";
static const char *other454 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.mophun.application\',\'mpn\')\n";
static const char *other455 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.mophun.certificate\',\'mpc\')\n";
static const char *other456 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.mozilla.xul+xml\',\'xul\')\n";
static const char *other457 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-artgalry\',\'cil\')\n";
static const char *other458 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-cab-compressed\',\'cab\')\n";
static const char *other459 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.mseq\',\'mseq\')\n";
static const char *other460 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-excel\',\'xlm\')\n";
static const char *other461 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-excel\',\'xla\')\n";
static const char *other462 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-excel\',\'xlc\')\n";
static const char *other463 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-excel\',\'xlt\')\n";
static const char *other464 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-excel\',\'xlw\')\n";
static const char *other465 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-excel.addin.macroenabled.12\',\'xlam\')\n";
static const char *other466 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-excel.sheet.binary.macroenabled.12\',\'xlsb\')\n";
static const char *other467 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-excel.sheet.macroenabled.12\',\'xlsm\')\n";
static const char *other468 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-excel.template.macroenabled.12\',\'xltm\')\n";
static const char *other469 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-fontobject\',\'eot\')\n";
static const char *other470 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-htmlhelp\',\'chm\')\n";
static const char *other471 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-ims\',\'ims\')\n";
static const char *other472 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-lrm\',\'lrm\')\n";
static const char *other473 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-pki.seccat\',\'cat\')\n";
static const char *other474 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-pki.stl\',\'stl\')\n";
static const char *other475 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-powerpoint\',\'pps\')\n";
static const char *other476 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-powerpoint\',\'pot\')\n";
static const char *other477 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-powerpoint.addin.macroenabled.12\',\'ppam\')\n";
static const char *other478 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-powerpoint.presentation.macroenabled.12\',\'pptm\')\n";
static const char *other479 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-powerpoint.slide.macroenabled.12\',\'sldm\')\n";
static const char *other480 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-powerpoint.slideshow.macroenabled.12\',\'ppsm\')\n";
static const char *other481 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-powerpoint.template.macroenabled.12\',\'potm\')\n";
static const char *other482 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-project\',\'mpt\')\n";
static const char *other483 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-word.document.macroenabled.12\',\'docm\')\n";
static const char *other484 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-word.template.macroenabled.12\',\'dotm\')\n";
static const char *other485 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-works\',\'wps\')\n";
static const char *other486 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-works\',\'wks\')\n";
static const char *other487 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-works\',\'wcm\')\n";
static const char *other488 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-works\',\'wdb\')\n";
static const char *other489 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-wpl\',\'wpl\')\n";
static const char *other490 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ms-xpsdocument\',\'xps\')\n";
static const char *other491 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.musician\',\'mus\')\n";
static const char *other492 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.muvee.style\',\'msty\')\n";
static const char *other493 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.neurolanguage.nlu\',\'nlu\')\n";
static const char *other494 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.noblenet-directory\',\'nnd\')\n";
static const char *other495 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.noblenet-sealer\',\'nns\')\n";
static const char *other496 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.noblenet-web\',\'nnw\')\n";
static const char *other497 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.nokia.n-gage.data\',\'ngdat\')\n";
static const char *other498 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.nokia.n-gage.symbian.install\',\'n-gage\')\n";
static const char *other499 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.nokia.radio-preset\',\'rpst\')\n";
static const char *other500 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.nokia.radio-presets\',\'rpss\')\n";
static const char *other501 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.novadigm.edm\',\'edm\')\n";
static const char *other502 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.novadigm.edx\',\'edx\')\n";
static const char *other503 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.novadigm.ext\',\'ext\')\n";
static const char *other504 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.oasis.opendocument.chart-template\',\'otc\')\n";
static const char *other505 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.oasis.opendocument.formula-template\',\'odft\')\n";
static const char *other506 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.oasis.opendocument.graphics-template\',\'otg\')\n";
static const char *other507 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.oasis.opendocument.image-template\',\'oti\')\n";
static const char *other508 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.oasis.opendocument.presentation-template\',\'otp\')\n";
static const char *other509 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.oasis.opendocument.spreadsheet-template\',\'ots\')\n";
static const char *other510 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.oasis.opendocument.text-master\',\'otm\')\n";
static const char *other511 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.oasis.opendocument.text-template\',\'ott\')\n";
static const char *other512 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.oasis.opendocument.text-web\',\'oth\')\n";
static const char *other513 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.olpc-sugar\',\'xo\')\n";
static const char *other514 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.oma.dd2+xml\',\'dd2\')\n";
static const char *other515 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.openofficeorg.extension\',\'oxt\')\n";
static const char *other516 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.openxmlformats-officedocument.presentationml.presentation\',\'pptx\')\n";
static const char *other517 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.openxmlformats-officedocument.presentationml.slide\',\'sldx\')\n";
static const char *other518 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.openxmlformats-officedocument.presentationml.slideshow\',\'ppsx\')\n";
static const char *other519 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.openxmlformats-officedocument.presentationml.template\',\'potx\')\n";
static const char *other520 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\',\'xlsx\')\n";
static const char *other521 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.openxmlformats-officedocument.spreadsheetml.template\',\'xltx\')\n";
static const char *other522 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.openxmlformats-officedocument.wordprocessingml.document\',\'docx\')\n";
static const char *other523 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.openxmlformats-officedocument.wordprocessingml.template\',\'dotx\')\n";
static const char *other524 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.osgi.dp\',\'dp\')\n";
static const char *other525 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.palm\',\'pqa\')\n";
static const char *other526 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.palm\',\'oprc\')\n";
static const char *other527 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.pawaafile\',\'paw\')\n";
static const char *other528 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.pg.format\',\'str\')\n";
static const char *other529 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.pg.osasli\',\'ei6\')\n";
static const char *other530 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.picsel\',\'efif\')\n";
static const char *other531 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.pmi.widget\',\'wg\')\n";
static const char *other532 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.pocketlearn\',\'plf\')\n";
static const char *other533 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.powerbuilder6\',\'pbd\')\n";
static const char *other534 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.previewsystems.box\',\'box\')\n";
static const char *other535 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.proteus.magazine\',\'mgz\')\n";
static const char *other536 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.publishare-delta-tree\',\'qps\')\n";
static const char *other537 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.pvi.ptid1\',\'ptid\')\n";
static const char *other538 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.quark.quarkxpress\',\'qxd\')\n";
static const char *other539 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.quark.quarkxpress\',\'qxt\')\n";
static const char *other540 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.quark.quarkxpress\',\'qwd\')\n";
static const char *other541 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.quark.quarkxpress\',\'qwt\')\n";
static const char *other542 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.quark.quarkxpress\',\'qxl\')\n";
static const char *other543 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.quark.quarkxpress\',\'qxb\')\n";
static const char *other544 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.realvnc.bed\',\'bed\')\n";
static const char *other545 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.recordare.musicxml\',\'mxl\')\n";
static const char *other546 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.recordare.musicxml+xml\',\'musicxml\')\n";
static const char *other547 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.rim.cod\',\'cod\')\n";
static const char *other548 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.route66.link66+xml\',\'link66\')\n";
static const char *other549 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.sailingtracker.track\',\'st\')\n";
static const char *other550 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.seemail\',\'see\')\n";
static const char *other551 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.sema\',\'sema\')\n";
static const char *other552 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.semd\',\'semd\')\n";
static const char *other553 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.semf\',\'semf\')\n";
static const char *other554 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.shana.informed.formdata\',\'ifm\')\n";
static const char *other555 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.shana.informed.formtemplate\',\'itp\')\n";
static const char *other556 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.shana.informed.interchange\',\'iif\')\n";
static const char *other557 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.shana.informed.package\',\'ipk\')\n";
static const char *other558 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.simtech-mindmapper\',\'twd\')\n";
static const char *other559 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.simtech-mindmapper\',\'twds\')\n";
static const char *other560 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.smaf\',\'mmf\')\n";
static const char *other561 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.smart.teacher\',\'teacher\')\n";
static const char *other562 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.solent.sdkm+xml\',\'sdkm\')\n";
static const char *other563 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.solent.sdkm+xml\',\'sdkd\')\n";
static const char *other564 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.spotfire.dxp\',\'dxp\')\n";
static const char *other565 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.spotfire.sfs\',\'sfs\')\n";
static const char *other566 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.stardivision.calc\',\'sdc\')\n";
static const char *other567 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.stardivision.draw\',\'sda\')\n";
static const char *other568 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.stardivision.impress\',\'sdd\')\n";
static const char *other569 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.stardivision.math\',\'smf\')\n";
static const char *other570 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.stardivision.writer\',\'sdw\')\n";
static const char *other571 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.stardivision.writer\',\'vor\')\n";
static const char *other572 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.stardivision.writer-global\',\'sgl\')\n";
static const char *other573 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.sun.xml.calc\',\'sxc\')\n";
static const char *other574 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.sun.xml.calc.template\',\'stc\')\n";
static const char *other575 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.sun.xml.draw\',\'sxd\')\n";
static const char *other576 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.sun.xml.draw.template\',\'std\')\n";
static const char *other577 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.sun.xml.impress\',\'sxi\')\n";
static const char *other578 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.sun.xml.impress.template\',\'sti\')\n";
static const char *other579 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.sun.xml.math\',\'sxm\')\n";
static const char *other580 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.sun.xml.writer\',\'sxw\')\n";
static const char *other581 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.sun.xml.writer.global\',\'sxg\')\n";
static const char *other582 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.sun.xml.writer.template\',\'stw\')\n";
static const char *other583 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.sus-calendar\',\'sus\')\n";
static const char *other584 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.sus-calendar\',\'susp\')\n";
static const char *other585 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.svd\',\'svd\')\n";
static const char *other586 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.symbian.install\',\'sis\')\n";
static const char *other587 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.symbian.install\',\'sisx\')\n";
static const char *other588 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.syncml.dm+wbxml\',\'bdm\')\n";
static const char *other589 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.syncml.dm+xml\',\'xdm\')\n";
static const char *other590 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.syncml+xml\',\'xsm\')\n";
static const char *other591 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.tao.intent-module-archive\',\'tao\')\n";
static const char *other592 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.tmobile-livetv\',\'tmo\')\n";
static const char *other593 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.trid.tpt\',\'tpt\')\n";
static const char *other594 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.triscape.mxs\',\'mxs\')\n";
static const char *other595 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.trueapp\',\'tra\')\n";
static const char *other596 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ufdl\',\'ufd\')\n";
static const char *other597 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.ufdl\',\'ufdl\')\n";
static const char *other598 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.uiq.theme\',\'utz\')\n";
static const char *other599 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.umajin\',\'umj\')\n";
static const char *other600 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.unity\',\'unityweb\')\n";
static const char *other601 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.uoml+xml\',\'uoml\')\n";
static const char *other602 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.vcx\',\'vcx\')\n";
static const char *other603 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.visio\',\'vsd\')\n";
static const char *other604 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.visio\',\'vst\')\n";
static const char *other605 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.visio\',\'vss\')\n";
static const char *other606 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.visio\',\'vsw\')\n";
static const char *other607 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.visionary\',\'vis\')\n";
static const char *other608 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.vsf\',\'vsf\')\n";
static const char *other609 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.wap.wbxml\',\'wbxml\')\n";
static const char *other610 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.wap.wmlc\',\'wmlc\')\n";
static const char *other611 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.wap.wmlscriptc\',\'wmlsc\')\n";
static const char *other612 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.webturbo\',\'wtb\')\n";
static const char *other613 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.wolfram.player\',\'nbp\')\n";
static const char *other614 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.wordperfect\',\'wpd\')\n";
static const char *other615 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.wqd\',\'wqd\')\n";
static const char *other616 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.wt.stf\',\'stf\')\n";
static const char *other617 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.xara\',\'xar\')\n";
static const char *other618 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.xfdl\',\'xfdl\')\n";
static const char *other619 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.yamaha.hv-dic\',\'hvd\')\n";
static const char *other620 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.yamaha.hv-script\',\'hvs\')\n";
static const char *other621 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.yamaha.hv-voice\',\'hvp\')\n";
static const char *other622 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.yamaha.openscoreformat\',\'osf\')\n";
static const char *other623 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.yamaha.openscoreformat.osfpvg+xml\',\'osfpvg\')\n";
static const char *other624 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.yamaha.smaf-audio\',\'saf\')\n";
static const char *other625 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.yamaha.smaf-phrase\',\'spf\')\n";
static const char *other626 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.yellowriver-custom-menu\',\'cmp\')\n";
static const char *other627 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.zul\',\'zir\')\n";
static const char *other628 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.zul\',\'zirz\')\n";
static const char *other629 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/vnd.zzazz.deck+xml\',\'zaz\')\n";
static const char *other630 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/voicexml+xml\',\'vxml\')\n";
static const char *other631 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/winhlp\',\'hlp\')\n";
static const char *other632 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/wspolicy+xml\',\'wspolicy\')\n";
static const char *other633 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-abiword\',\'abw\')\n";
static const char *other634 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-ace-compressed\',\'ace\')\n";
static const char *other635 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-authorware-bin\',\'aab\')\n";
static const char *other636 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-authorware-bin\',\'x32\')\n";
static const char *other637 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-authorware-bin\',\'u32\')\n";
static const char *other638 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-authorware-bin\',\'vox\')\n";
static const char *other639 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-authorware-map\',\'aam\')\n";
static const char *other640 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-authorware-seg\',\'aas\')\n";
static const char *other641 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-bittorrent\',\'torrent\')\n";
static const char *other642 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-bzip\',\'bz\')\n";
static const char *other643 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-bzip2\',\'bz2\')\n";
static const char *other644 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-bzip2\',\'boz\')\n";
static const char *other645 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-chat\',\'chat\')\n";
static const char *other646 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-debian-package\',\'deb\')\n";
static const char *other647 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-debian-package\',\'udeb\')\n";
static const char *other648 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-director\',\'cst\')\n";
static const char *other649 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-director\',\'cct\')\n";
static const char *other650 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-director\',\'cxt\')\n";
static const char *other651 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-director\',\'w3d\')\n";
static const char *other652 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-director\',\'fgd\')\n";
static const char *other653 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-director\',\'swa\')\n";
static const char *other654 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-doom\',\'wad\')\n";
static const char *other655 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-dtbncx+xml\',\'ncx\')\n";
static const char *other656 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-dtbook+xml\',\'dtb\')\n";
static const char *other657 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-dtbresource+xml\',\'res\')\n";
static const char *other658 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/xenc+xml\',\'xenc\')\n";
static const char *other659 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-font-bdf\',\'bdf\')\n";
static const char *other660 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-font-ghostscript\',\'gsf\')\n";
static const char *other661 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-font-linux-psf\',\'psf\')\n";
static const char *other662 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-font-otf\',\'otf\')\n";
static const char *other663 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-font-pcf\',\'pcf\')\n";
static const char *other664 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-font-snf\',\'snf\')\n";
static const char *other665 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-font-ttf\',\'ttf\')\n";
static const char *other666 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-font-ttf\',\'ttc\')\n";
static const char *other667 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-font-type1\',\'pfa\')\n";
static const char *other668 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-font-type1\',\'pfb\')\n";
static const char *other669 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-font-type1\',\'pfm\')\n";
static const char *other670 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-font-type1\',\'afm\')\n";
static const char *other671 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-gnumeric\',\'gnumeric\')\n";
static const char *other672 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/xhtml+xml\',\'xhtml\')\n";
static const char *other673 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/xhtml+xml\',\'xht\')\n";
static const char *other674 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-java-jnlp-file\',\'jnlp\')\n";
static const char *other675 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-mobipocket-ebook\',\'prc\')\n";
static const char *other676 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-mobipocket-ebook\',\'mobi\')\n";
static const char *other677 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-msbinder\',\'obd\')\n";
static const char *other678 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-mscardfile\',\'crd\')\n";
static const char *other679 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-msclip\',\'clp\')\n";
static const char *other680 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-msdownload\',\'dll\')\n";
static const char *other681 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-msdownload\',\'com\')\n";
static const char *other682 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-msdownload\',\'bat\')\n";
static const char *other683 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-msdownload\',\'msi\')\n";
static const char *other684 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-msmediaview\',\'mvb\')\n";
static const char *other685 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-msmediaview\',\'m13\')\n";
static const char *other686 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-msmediaview\',\'m14\')\n";
static const char *other687 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-msmetafile\',\'wmf\')\n";
static const char *other688 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-msmoney\',\'mny\')\n";
static const char *other689 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-mspublisher\',\'pub\')\n";
static const char *other690 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-msschedule\',\'scd\')\n";
static const char *other691 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-msterminal\',\'trm\')\n";
static const char *other692 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-ms-wmd\',\'wmd\')\n";
static const char *other693 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-ms-wmz\',\'wmz\')\n";
static const char *other694 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-mswrite\',\'wri\')\n";
static const char *other695 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/xop+xml\',\'xop\')\n";
static const char *other696 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-pkcs12\',\'p12\')\n";
static const char *other697 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-pkcs12\',\'pfx\')\n";
static const char *other698 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-pkcs7-certificates\',\'p7b\')\n";
static const char *other699 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-pkcs7-certificates\',\'spc\')\n";
static const char *other700 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-pkcs7-certreqresp\',\'p7r\')\n";
static const char *other701 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-rar-compressed\',\'rar\')\n";
static const char *other702 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-silverlight-app\',\'xap\')\n";
static const char *other703 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/xslt+xml\',\'xslt\')\n";
static const char *other704 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/xspf+xml\',\'xspf\')\n";
static const char *other705 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-stuffitx\',\'sitx\')\n";
static const char *other706 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-tex-tfm\',\'tfm\')\n";
static const char *other707 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/xv+xml\',\'mxml\')\n";
static const char *other708 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/xv+xml\',\'xhvml\')\n";
static const char *other709 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/xv+xml\',\'xvml\')\n";
static const char *other710 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/xv+xml\',\'xvm\')\n";
static const char *other711 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-x509-ca-cert\',\'der\')\n";
static const char *other712 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-x509-ca-cert\',\'crt\')\n";
static const char *other713 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-xfig\',\'fig\')\n";
static const char *other714 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'application/x-xpinstall\',\'xpi\')\n";
static const char *other715 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/adpcm\',\'adp\')\n";
static const char *other716 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/midi\',\'rmi\')\n";
static const char *other717 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/mp4\',\'mp4a\')\n";
static const char *other718 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/mpeg\',\'mp2a\')\n";
static const char *other719 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/mpeg\',\'m2a\')\n";
static const char *other720 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/mpeg\',\'m3a\')\n";
static const char *other721 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/ogg\',\'oga\')\n";
static const char *other722 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/ogg\',\'spx\')\n";
static const char *other723 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/vnd.digital-winds\',\'eol\')\n";
static const char *other724 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/vnd.dra\',\'dra\')\n";
static const char *other725 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/vnd.dts\',\'dts\')\n";
static const char *other726 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/vnd.dts.hd\',\'dtshd\')\n";
static const char *other727 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/vnd.lucent.voice\',\'lvp\')\n";
static const char *other728 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/vnd.ms-playready.media.pya\',\'pya\')\n";
static const char *other729 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/vnd.nuera.ecelp4800\',\'ecelp4800\')\n";
static const char *other730 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/vnd.nuera.ecelp7470\',\'ecelp7470\')\n";
static const char *other731 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/vnd.nuera.ecelp9600\',\'ecelp9600\')\n";
static const char *other732 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/x-aac\',\'aac\')\n";
static const char *other733 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/x-mpegurl\',\'m3u\')\n";
static const char *other734 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/x-ms-wax\',\'wax\')\n";
static const char *other735 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/x-ms-wma\',\'wma\')\n";
static const char *other736 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'audio/x-pn-realaudio-plugin\',\'rmp\')\n";
static const char *other737 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'chemical/x-cdx\',\'cdx\')\n";
static const char *other738 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'chemical/x-cif\',\'cif\')\n";
static const char *other739 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'chemical/x-cmdf\',\'cmdf\')\n";
static const char *other740 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'chemical/x-cml\',\'cml\')\n";
static const char *other741 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'chemical/x-csml\',\'csml\')\n";
static const char *other742 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/cgm\',\'cgm\')\n";
static const char *other743 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/g3fax\',\'g3\')\n";
static const char *other744 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/prs.btif\',\'btif\')\n";
static const char *other745 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/svg+xml\',\'svgz\')\n";
static const char *other746 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/vnd.adobe.photoshop\',\'psd\')\n";
static const char *other747 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/vnd.djvu\',\'djvu\')\n";
static const char *other748 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/vnd.djvu\',\'djv\')\n";
static const char *other749 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/vnd.dwg\',\'dwg\')\n";
static const char *other750 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/vnd.dxf\',\'dxf\')\n";
static const char *other751 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/vnd.fastbidsheet\',\'fbs\')\n";
static const char *other752 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/vnd.fpx\',\'fpx\')\n";
static const char *other753 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/vnd.fst\',\'fst\')\n";
static const char *other754 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/vnd.fujixerox.edmics-mmr\',\'mmr\')\n";
static const char *other755 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/vnd.fujixerox.edmics-rlc\',\'rlc\')\n";
static const char *other756 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/vnd.ms-modi\',\'mdi\')\n";
static const char *other757 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/vnd.net-fpx\',\'npx\')\n";
static const char *other758 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/vnd.wap.wbmp\',\'wbmp\')\n";
static const char *other759 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/vnd.xiff\',\'xif\')\n";
static const char *other760 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/x-cmx\',\'cmx\')\n";
static const char *other761 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/x-freehand\',\'fh\')\n";
static const char *other762 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/x-freehand\',\'fhc\')\n";
static const char *other763 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/x-freehand\',\'fh4\')\n";
static const char *other764 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/x-freehand\',\'fh5\')\n";
static const char *other765 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/x-freehand\',\'fh7\')\n";
static const char *other766 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/x-icon\',\'ico\')\n";
static const char *other767 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/x-pcx\',\'pcx\')\n";
static const char *other768 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/x-pict\',\'pic\')\n";
static const char *other769 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'image/x-pict\',\'pct\')\n";
static const char *other770 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'message/rfc822\',\'eml\')\n";
static const char *other771 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'message/rfc822\',\'mime\')\n";
static const char *other772 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'model/vnd.dwf\',\'dwf\')\n";
static const char *other773 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'model/vnd.gdl\',\'gdl\')\n";
static const char *other774 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'model/vnd.gtw\',\'gtw\')\n";
static const char *other775 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'model/vnd.mts\',\'mts\')\n";
static const char *other776 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'model/vnd.vtu\',\'vtu\')\n";
static const char *other777 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/calendar\',\'ifb\')\n";
static const char *other778 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/plain\',\'text\')\n";
static const char *other779 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/plain\',\'conf\')\n";
static const char *other780 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/plain\',\'def\')\n";
static const char *other781 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/plain\',\'list\')\n";
static const char *other782 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/plain\',\'log\')\n";
static const char *other783 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/plain\',\'in\')\n";
static const char *other784 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/prs.lines.tag\',\'dsc\')\n";
static const char *other785 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/uri-list\',\'uri\')\n";
static const char *other786 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/uri-list\',\'uris\')\n";
static const char *other787 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/uri-list\',\'urls\')\n";
static const char *other788 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/vnd.curl\',\'curl\')\n";
static const char *other789 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/vnd.curl.dcurl\',\'dcurl\')\n";
static const char *other790 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/vnd.curl.mcurl\',\'mcurl\')\n";
static const char *other791 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/vnd.curl.scurl\',\'scurl\')\n";
static const char *other792 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/vnd.fly\',\'fly\')\n";
static const char *other793 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/vnd.fmi.flexstor\',\'flx\')\n";
static const char *other794 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/vnd.graphviz\',\'gv\')\n";
static const char *other795 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/vnd.in3d.3dml\',\'3dml\')\n";
static const char *other796 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/vnd.in3d.spot\',\'spot\')\n";
static const char *other797 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/vnd.sun.j2me.app-descriptor\',\'jad\')\n";
static const char *other798 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/vnd.wap.wml\',\'wml\')\n";
static const char *other799 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/vnd.wap.wmlscript\',\'wmls\')\n";
static const char *other800 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/x-asm\',\'s\')\n";
static const char *other801 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/x-asm\',\'asm\')\n";
static const char *other802 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/x-c\',\'c\')\n";
static const char *other803 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/x-c\',\'cc\')\n";
static const char *other804 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/x-c\',\'cxx\')\n";
static const char *other805 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/x-c\',\'cpp\')\n";
static const char *other806 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/x-c\',\'h\')\n";
static const char *other807 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/x-c\',\'hh\')\n";
static const char *other808 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/x-c\',\'dic\')\n";
static const char *other809 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/x-fortran\',\'f\')\n";
static const char *other810 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/x-fortran\',\'for\')\n";
static const char *other811 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/x-fortran\',\'f77\')\n";
static const char *other812 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/x-fortran\',\'f90\')\n";
static const char *other813 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/x-java-source\',\'java\')\n";
static const char *other814 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/x-pascal\',\'p\')\n";
static const char *other815 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/x-pascal\',\'pas\')\n";
static const char *other816 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/x-uuencode\',\'uu\')\n";
static const char *other817 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'text/x-vcalendar\',\'vcs\')\n";
static const char *other818 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/3gpp2\',\'3g2\')\n";
static const char *other819 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/h261\',\'h261\')\n";
static const char *other820 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/h263\',\'h263\')\n";
static const char *other821 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/h264\',\'h264\')\n";
static const char *other822 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/jpeg\',\'jpgv\')\n";
static const char *other823 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/jpm\',\'jpm\')\n";
static const char *other824 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/jpm\',\'jpgm\')\n";
static const char *other825 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/mj2\',\'mj2\')\n";
static const char *other826 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/mj2\',\'mjp2\')\n";
static const char *other827 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/mp4\',\'mp4v\')\n";
static const char *other828 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/mp4\',\'mpg4\')\n";
static const char *other829 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/mpeg\',\'m1v\')\n";
static const char *other830 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/mpeg\',\'m2v\')\n";
static const char *other831 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/ogg\',\'ogv\')\n";
static const char *other832 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/vnd.fvt\',\'fvt\')\n";
static const char *other833 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/vnd.mpegurl\',\'mxu\')\n";
static const char *other834 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/vnd.mpegurl\',\'m4u\')\n";
static const char *other835 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/vnd.ms-playready.media.pyv\',\'pyv\')\n";
static const char *other836 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/vnd.vivo\',\'viv\')\n";
static const char *other837 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/x-f4v\',\'f4v\')\n";
static const char *other838 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/x-fli\',\'fli\')\n";
static const char *other839 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/x-flv\',\'flv\')\n";
static const char *other840 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/x-m4v\',\'m4v\')\n";
static const char *other841 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/x-ms-asf\',\'asf\')\n";
static const char *other842 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/x-ms-asf\',\'asx\')\n";
static const char *other843 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/x-ms-wm\',\'wm\')\n";
static const char *other844 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/x-ms-wmv\',\'wmv\')\n";
static const char *other845 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/x-ms-wmx\',\'wmx\')\n";
static const char *other846 =
"insert soft WS.WS.SYS_DAV_RES_TYPES (T_TYPE,T_EXT) values (\'video/x-ms-wvx\',\'wvx\')\n";
static const char *other847 =
"select count(*) from WS.WS.SYS_DAV_RES_TYPES where http_mime_type_add (T_EXT, T_TYPE)\n";
static const char *trig0 =
"#line 2906 \"[executable]/davddk.sql\"\n"
"create trigger SYS_DAV_RES_TYPES_I after insert on WS.WS.SYS_DAV_RES_TYPES referencing new as N\n"
"{\n"
"http_mime_type_add (N.T_EXT, N.T_TYPE);\n"
"}\n"
"--src davddk.sql:2904\n";
static const char *trig1 =
"#line 2912 \"[executable]/davddk.sql\"\n"
"create trigger SYS_DAV_RES_TYPES_U after update on WS.WS.SYS_DAV_RES_TYPES referencing old as O, new as N\n"
"{\n"
"http_mime_type_add (N.T_EXT, N.T_TYPE);\n"
"http_mime_type_add (O.T_EXT, null);\n"
"}\n"
"--src davddk.sql:2910\n";
static const char *trig2 =
"#line 2919 \"[executable]/davddk.sql\"\n"
"create trigger SYS_DAV_RES_TYPES_D after delete on WS.WS.SYS_DAV_RES_TYPES referencing old as O\n"
"{\n"
"http_mime_type_add (O.T_EXT, null);\n"
"}\n"
"--src davddk.sql:2917\n";
static const char *proc12 =
"#line 2925 \"[executable]/davddk.sql\"\n"
"create procedure\n"
"DB.DBA.DAV_PLAIN_SUBCOLS_P (in root_id integer, in root_path varchar := null, in recursive integer := 1, in subcol_auth_uid varchar, in subcol_auth_pwd varchar)\n"
"{\n"
"declare SUBCOL_FULL_PATH, SUBCOL_NAME, SUBCOL_DET varchar;\n"
"declare SUBCOL_PARENT, SUBCOL_ID, SUBCOL_DEPTH integer;\n"
"\n"
"result_names (SUBCOL_FULL_PATH, SUBCOL_NAME, SUBCOL_PARENT, SUBCOL_ID, SUBCOL_DEPTH, SUBCOL_DET);\n"
"if (root_id is null)\n"
"root_id := DB.DBA.DAV_SEARCH_ID (root_path, \'C\');\n"
"if (not isinteger (root_id))\n"
"return;\n"
"if (root_id <= 0)\n"
"return;\n"
"if (root_path is null)\n"
"root_path := DB.DBA.DAV_SEARCH_PATH (root_id, \'C\');\n"
"if (isinteger (root_path))\n"
"return;\n"
"for (select COL_NAME, COL_PARENT, COL_ID, COL_DET from WS.WS.SYS_DAV_COL where COL_ID = root_id) do\n"
"{\n"
"result (root_path, COL_NAME, COL_PARENT, COL_ID, 0, COL_DET);\n"
"if (recursive and COL_DET is null)\n"
"{\n"
"DB.DBA.DAV_PLAIN_SUBCOLS_P_INT (root_id, root_path, 1, subcol_auth_uid, subcol_auth_pwd);\n"
"}\n"
"}\n"
"}\n"
"--src davddk.sql:2923\n";
static const char *proc13 =
"#line 2953 \"[executable]/davddk.sql\"\n"
"create procedure\n"
"DB.DBA.DAV_PLAIN_SUBCOLS_P_INT (in root_id integer, in root_path varchar, in depth integer, in subcol_auth_uid varchar, in subcol_auth_pwd varchar)\n"
"{\n"
"for (select COL_NAME, COL_ID, root_path || COL_NAME || \'/\' as full_path, COL_DET from WS.WS.SYS_DAV_COL where COL_PARENT = root_id) do\n"
"{\n"
"result (full_path, COL_NAME, root_id, COL_ID, depth, COL_DET);\n"
"if (COL_DET is null)\n"
"DB.DBA.DAV_PLAIN_SUBCOLS_P_INT (COL_ID, full_path, depth + 1, subcol_auth_uid, subcol_auth_pwd);\n"
"}\n"
"}\n"
"--src davddk.sql:2951\n";
static const char *view6 =
"create procedure view DB.DBA.DAV_PLAIN_SUBCOLS as DB.DBA.DAV_PLAIN_SUBCOLS_P (root_id,root_path,recursive,subcol_auth_uid,subcol_auth_pwd) (SUBCOL_FULL_PATH varchar, SUBCOL_NAME varchar, SUBCOL_PARENT integer, SUBCOL_ID integer, SUBCOL_DEPTH integer, SUBCOL_DET varchar)\n";
static const char *proc14 =
"#line 2970 \"[executable]/davddk.sql\"\n"
"create procedure\n"
"DB.DBA.DAV_PLAIN_SUBMOUNTS_P (in root_id integer, in root_path varchar := null, in recursive integer := 1, in subcol_auth_uid varchar, in subcol_auth_pwd varchar)\n"
"{\n"
"declare SUBCOL_FULL_PATH, SUBCOL_NAME, SUBCOL_DET varchar;\n"
"declare SUBCOL_PARENT, SUBCOL_ID, SUBCOL_DEPTH integer;\n"
"result_names (SUBCOL_FULL_PATH, SUBCOL_NAME, SUBCOL_PARENT, SUBCOL_ID, SUBCOL_DEPTH, SUBCOL_DET);\n"
"if (root_id is null)\n"
"root_id := DB.DBA.DAV_SEARCH_ID (root_path, \'C\');\n"
"if (not isinteger (root_id))\n"
"return;\n"
"if (root_id <= 0)\n"
"return;\n"
"if (root_path is null)\n"
"root_path := DB.DBA.DAV_SEARCH_PATH (root_id, \'C\');\n"
"if (not isstring (root_path))\n"
"return;\n"
"for (select COL_NAME, COL_PARENT, COL_ID, COL_DET from WS.WS.SYS_DAV_COL where COL_ID = root_id) do\n"
"{\n"
"if (COL_DET is not null)\n"
"result (root_path, COL_NAME, COL_PARENT, COL_ID, 0, COL_DET);\n"
"if (recursive and COL_DET is null)\n"
"{\n"
"DB.DBA.DAV_PLAIN_SUBMOUNTS_P_INT (root_id, root_path, 1, subcol_auth_uid, subcol_auth_pwd);\n"
"}\n"
"}\n"
"}\n"
"--src davddk.sql:2968\n";
static const char *proc15 =
"#line 2998 \"[executable]/davddk.sql\"\n"
"create procedure\n"
"DB.DBA.DAV_PLAIN_SUBMOUNTS_P_INT (in root_id integer, in root_path varchar, in depth integer, in subcol_auth_uid varchar, in subcol_auth_pwd varchar)\n"
"{\n"
"for (select COL_NAME, COL_ID, root_path || COL_NAME || \'/\' as full_path, COL_DET from WS.WS.SYS_DAV_COL where COL_PARENT = root_id) do\n"
"{\n"
"if (COL_DET is not null)\n"
"result (full_path, COL_NAME, root_id, COL_ID, depth, COL_DET);\n"
"if (COL_DET is null)\n"
"DB.DBA.DAV_PLAIN_SUBMOUNTS_P_INT (COL_ID, full_path, depth + 1, subcol_auth_uid, subcol_auth_pwd);\n"
"}\n"
"}\n"
"--src davddk.sql:2996\n";
static const char *view7 =
"create procedure view DB.DBA.DAV_PLAIN_SUBMOUNTS as DB.DBA.DAV_PLAIN_SUBMOUNTS_P (root_id,root_path,recursive,subcol_auth_uid,subcol_auth_pwd) (SUBCOL_FULL_PATH varchar, SUBCOL_NAME varchar, SUBCOL_PARENT integer, SUBCOL_ID integer, SUBCOL_DEPTH integer, SUBCOL_DET varchar)\n";
static const char *proc16 =
"#line 3017 \"[executable]/davddk.sql\"\n"
" create procedure\n"
"DB.DBA.DAV_DIR_P (in path varchar := \'/DAV/\', in recursive integer := 0, in auth_uid varchar, in auth_pwd varchar)\n"
"{\n"
"declare arr any;\n"
"declare i, l integer;\n"
"declare FULL_PATH, PERMS, MIME_TYPE, NAME varchar;\n"
"declare TYPE char(1);\n"
"declare RLENGTH, ID, GRP, OWNER integer;\n"
"declare MOD_TIME, CR_TIME datetime;\n"
"result_names (FULL_PATH, TYPE, RLENGTH, MOD_TIME, ID, PERMS, GRP, OWNER, CR_TIME, MIME_TYPE, NAME);\n"
"arr := DB.DBA.DAV_DIR_LIST (path, recursive, auth_uid, auth_pwd);\n"
"i := 0; l := length (arr);\n"
"while (i < l)\n"
"{\n"
"result (arr[i][0],\n"
"arr[i][1],\n"
"arr[i][2],\n"
"arr[i][3],\n"
"arr[i][4],\n"
"arr[i][5],\n"
"arr[i][6],\n"
"arr[i][7],\n"
"arr[i][8],\n"
"arr[i][9],\n"
"arr[i][10]);\n"
"i := i + 1;\n"
"}\n"
"}\n"
"--src davddk.sql:3015\n";
static const char *view8 =
"create procedure view DB.DBA.DAV_DIR as DB.DBA.DAV_DIR_P (path,recursive,auth_uid,auth_pwd) (FULL_PATH varchar, TYPE varchar, RLENGTH integer, MOD_TIME datetime, ID integer, PERMS varchar, GRP integer, OWNER integer, CR_TIME datetime, MIME_TYPE varchar, NAME varchar)\n";
static const char *other848 =
"exec (\'grant select on DB.DBA.DAV_DIR to PUBLIC\')\n";
/* mail_cli.sql */
static const char *tbl18 =
"create table MAIL_MESSAGE (\n"
"MM_ID integer,\n"
"MM_OWN varchar (128),\n"
"MM_FLD varchar (128),\n"
"MM_FROM varchar (512),\n"
"MM_TO varchar (512),\n"
"MM_CC varchar (512),\n"
"MM_BCC varchar (512),\n"
"MM_SUBJ varchar (512),\n"
"MM_REC_DATE varchar (50),\n"
"MM_SND_TIME varchar (50),\n"
"MM_IS_READED integer,\n"
"MM_BODY long varchar,\n"
"MM_BODY_ID integer identity,\n"
"MM_MOBLOG varchar(50) default NULL,\n"
"MM_MSG_ID varchar default NULL,\n"
"primary key (MM_OWN, MM_FLD, MM_ID))\n"
"create index MAIL_MESSAGE_MSG_ID on MAIL_MESSAGE (MM_MSG_ID, MM_OWN)\n";
static const char *tbl19 =
"create table MAIL_ATTACHMENT (\n"
"MA_ID integer identity,\n"
"MA_M_ID integer,\n"
"MA_M_OWN varchar (128),\n"
"MA_M_FLD varchar (128),\n"
"MA_PUBLISHED int default 0,\n"
"MA_NAME varchar,\n"
"MA_MIME varchar,\n"
"MA_CONTENT long varbinary,\n"
"MA_BLOG_ID varchar,\n"
"primary key (MA_M_OWN, MA_M_FLD, MA_M_ID, MA_ID)\n"
")\n";
static const char *trig3 =
"#line 99 \"[executable]/mail_cli.sql\"\n"
"create trigger MAIL_MESSAGE_I after insert on DB.DBA.MAIL_MESSAGE\n"
"{\n"
"if (__proc_exists (\'BLOG.DBA.BLOG_MOBLOG_PROCESS_MSG\'))\n"
"BLOG.DBA.BLOG_MOBLOG_PROCESS_MSG (MM_OWN, MM_ID, MM_FLD, MM_BODY, MM_MOBLOG);\n"
"}\n"
"--src mail_cli.sql:97\n";
static const char *trig4 =
"#line 109 \"[executable]/mail_cli.sql\"\n"
"create trigger MAIL_MESSAGE_U after update on DB.DBA.MAIL_MESSAGE referencing old as O, new as N\n"
"{\n"
"if (__proc_exists (\'BLOG.DBA.BLOG_MOBLOG_PROCESS_MSG\'))\n"
"BLOG.DBA.BLOG_MOBLOG_PROCESS_MSG (N.MM_OWN, N.MM_ID, N.MM_FLD, N.MM_BODY, N.MM_MOBLOG);\n"
"}\n"
"--src mail_cli.sql:107\n";
static const char *trig5 =
"#line 116 \"[executable]/mail_cli.sql\"\n"
"create trigger MAIL_MESSAGE_D after delete on DB.DBA.MAIL_MESSAGE\n"
"{\n"
"delete from MAIL_ATTACHMENT where MA_M_ID = MM_ID and MA_M_OWN = MM_OWN and MA_M_FLD = MM_FLD;\n"
"}\n"
"--src mail_cli.sql:114\n";
static const char *proc17 =
"#line 123 \"[executable]/mail_cli.sql\"\n"
"create procedure DB.DBA.MAIL_MESSAGE_MM_BODY_INDEX_HOOK (inout vtb any, inout d_id integer)\n"
"{\n"
"declare data, own, offset any;\n"
"declare _subj, _from, _to, _trf varchar;\n"
"declare cr cursor for select blob_to_string (MM_BODY), MM_OWN from DB.DBA.MAIL_MESSAGE where MM_BODY_ID = d_id;\n"
"whenever not found goto err_exit;\n"
"open cr (prefetch 1);\n"
"fetch cr into data, own;\n"
"if (data is not null)\n"
"{\n"
"offset := aref (aref (mime_tree (data), 1), 0);\n"
"if (offset > 1)\n"
"offset := offset - 1;\n"
"_trf := lower (substring (mail_header (data, \'Content-Transfer-Encoding\'), 1, 512));\n"
"if (_trf <> \'base64\')\n"
"{\n"
"declare mtree any;\n"
"mtree := mime_tree (data);\n"
"DB.DBA.MM_FEED_PART (vtb, mtree, data, d_id, 0);\n"
"}\n"
"\n"
"_subj := substring (mail_header (data, \'Subject\'), 1, 512);\n"
"_from := substring (mail_header (data, \'From\'), 1, 512);\n"
"_to := substring (mail_header (data, \'To\'), 1, 512);\n"
"vt_batch_feed (vtb, _subj, 0);\n"
"vt_batch_feed (vtb, _from, 0);\n"
"vt_batch_feed (vtb, _to, 0);\n"
"}\n"
"if (own is not null)\n"
"vt_batch_feed (vtb, own, 0);\n"
"close cr;\n"
"return 1;\n"
"err_exit:\n"
"close cr;\n"
"return 0;\n"
"}\n"
"--src mail_cli.sql:121\n";
static const char *proc18 =
"#line 161 \"[executable]/mail_cli.sql\"\n"
"create procedure DB.DBA.MAIL_MESSAGE_MM_BODY_UNINDEX_HOOK (inout vtb any, inout d_id integer)\n"
"{\n"
"declare data, own, offset any;\n"
"declare _subj, _from, _to, _trf varchar;\n"
"declare cr cursor for select blob_to_string (MM_BODY), MM_OWN, MM_SUBJ, MM_TO, MM_FROM from DB.DBA.MAIL_MESSAGE where MM_BODY_ID = d_id;\n"
"whenever not found goto err_exit;\n"
"open cr (prefetch 1);\n"
"fetch cr into data, own, _subj, _from, _to;\n"
"if (data is not null)\n"
"{\n"
"offset := aref (aref (mime_tree (data), 1), 0);\n"
"if (offset > 1)\n"
"offset := offset - 1;\n"
"_trf := lower (substring (mail_header (data, \'Content-Transfer-Encoding\'), 1, 512));\n"
"if (_trf <> \'base64\')\n"
"{\n"
"declare mtree any;\n"
"mtree := mime_tree (data);\n"
"DB.DBA.MM_FEED_PART (vtb, mtree, data, d_id, 1);\n"
"\n"
"}\n"
"}\n"
"if (own is not null)\n"
"vt_batch_feed (vtb, own, 1);\n"
"vt_batch_feed (vtb, _subj, 1);\n"
"vt_batch_feed (vtb, _from, 1);\n"
"vt_batch_feed (vtb, _to, 1);\n"
"close cr;\n"
"return 1;\n"
"err_exit:\n"
"close cr;\n"
"return 0;\n"
"}\n"
"--src mail_cli.sql:159\n";
static const char *proc19 =
"#line 196 \"[executable]/mail_cli.sql\"\n"
"create procedure\n"
"MM_FEED_PART (inout vb any, inout mb any, inout body varchar, inout id integer, in flag int)\n"
"{\n"
"declare txt varchar;\n"
"declare tp, enc, disp varchar;\n"
"declare i, l integer;\n"
"if (not isarray (mb[0]))\n"
"return;\n"
"tp := get_keyword_ucase (\'CONTENT-TYPE\', mb[0], \'application/octet-stream\');\n"
"enc := get_keyword_ucase (\'CONTENT-TRANSFER-ENCODING\', mb[0], \'\');\n"
"\n"
"if (tp like \'text/%\' and (mb[1][0] < mb[1][1]))\n"
"{\n"
"txt := subseq (body, mb[1][0], mb[1][1]);\n"
"if (lower (enc) = \'base64\')\n"
"txt := decode_base64(txt);\n"
"vt_batch_feed (vb, txt, flag);\n"
"}\n"
"\n"
"if (not isarray (mb[2]))\n"
"return;\n"
"\n"
"i := 0; l := length (mb[2]);\n"
"while (i < l)\n"
"{\n"
"DB.DBA.MM_FEED_PART (vb, mb[2][i], body, id, flag);\n"
"i := i + 1;\n"
"}\n"
"}\n"
"--src mail_cli.sql:194\n";
static const char *other849 =
"DB.DBA.vt_create_text_index (\'DB.DBA.MAIL_MESSAGE\', \'MM_BODY\', \'MM_BODY_ID\', 2, 0, null, 1, \'*ini*\', \'*ini*\')\n";
static const char *other850 =
"DB.DBA.vt_create_ftt (\'DB.DBA.MAIL_MESSAGE\', null, null, 2)\n";
static const char *tbl20 =
"create table MAIL_PARTS (\n"
"MP_ID integer,\n"
"MP_PART long varbinary,\n"
"MP_ATTRS long varbinary,\n"
"MP_OWN varchar (128),\n"
"primary key (MP_OWN, MP_ID)\n"
")\n";
static const char *proc20 =
"#line 253 \"[executable]/mail_cli.sql\"\n"
" create procedure MIME_PART (in _cont_type varchar, in _content_disp varchar,\n"
"in _transfer_enc varchar, in _data varchar)\n"
"{\n"
"declare _headers, _body, _disp, _content_type, _trf_enc varchar;\n"
"declare _result any;\n"
"\n"
"if (_data is null)\n"
"return NULL;\n"
"_content_type := _cont_type;\n"
"_trf_enc := _transfer_enc;\n"
"if (_content_type is null)\n"
"_content_type := \'text/plain\';\n"
"if (_trf_enc is null and _content_type not like \'text/%\')\n"
"_trf_enc := \'base64\';\n"
"if (_trf_enc is null)\n"
"_trf_enc := \'8bit\';\n"
"if (_content_disp is not null)\n"
"_disp := concat (\'\\r\\nContent-Disposition: \', _content_disp, \'\\r\\n\');\n"
"else\n"
"_disp := \'\\r\\n\';\n"
"_headers := concat (\'Content-Type: \', _content_type, \'\\r\\nContent-Transfer-Encoding: \', _trf_enc, _disp);\n"
"if (_trf_enc = \'base64\')\n"
"_body := encode_base64 (_data);\n"
"else\n"
"_body := _data;\n"
"_result := make_array (2, \'any\');\n"
"aset (_result, 0, _headers);\n"
"aset (_result, 1, _body);\n"
"return (_result);\n"
"}\n"
"--src mail_cli.sql:251\n";
static const char *proc21 =
"#line 287 \"[executable]/mail_cli.sql\"\n"
" create procedure MIME_BODY (in _parts any)\n"
"{\n"
"declare _inx, _len integer;\n"
"declare _res, _bnd, _c_type varchar;\n"
"declare _part any;\n"
"\n"
"_bnd := concat (\'-\',\'-\',\'-\',\'-\', md5 (cast (now () as varchar)));\n"
"if (__tag (_parts) = 193)\n"
"_c_type := sprintf (\'multipart/mixed; boundary=\"%s\"\', _bnd);\n"
"else if (isstring (_parts))\n"
"_c_type := \'text/plain\';\n"
"else\n"
"return \'\';\n"
"\n"
"_res := concat (\'Date: \', soap_print_box (now (), \'\', 1), \'\\r\\n\');\n"
"_res := concat (_res, \'Content-Type: \', _c_type, \'\\r\\n\');\n"
"_res := concat (_res, \'Mime-Version: 1.0\\r\\nX-Mailer: Virtuoso\\r\\n\\r\\n\');\n"
"if (__tag (_parts) = 193)\n"
"{\n"
"_res := concat (_res, \'This is a multi-part message in MIME format.\\r\\n\\r\\n\');\n"
"_inx := 0;\n"
"_len := length (_parts);\n"
"while (_inx < _len)\n"
"{\n"
"_part := aref (_parts, _inx);\n"
"if (__tag (_part) = 193)\n"
"{\n"
"_res := concat (_res, \'-\',\'-\', _bnd, \'\\r\\n\');\n"
"_res := concat (_res, aref (_part, 0), \'\\r\\n\');\n"
"_res := concat (_res, aref (_part, 1), \'\\r\\n\');\n"
"}\n"
"else\n"
"{\n"
"if (_inx = 0)\n"
"_res := concat (_res, \'-\',\'-\', _bnd, \'\\r\\n\');\n"
"_res := concat (_res, _part, \'\\r\\n\');\n"
"}\n"
"_inx := _inx + 1;\n"
"}\n"
"_res := concat (_res, \'-\',\'-\', _bnd, \'-\',\'-\\r\\n\');\n"
"}\n"
"else\n"
"{\n"
"_res := concat (_res, _parts);\n"
"}\n"
"return _res;\n"
"}\n"
"--src mail_cli.sql:285\n";
static const char *proc22 =
"#line 339 \"[executable]/mail_cli.sql\"\n"
"create procedure NEW_MAIL (in _uid varchar, in __msg any)\n"
"{\n"
"declare _id, dummy integer;\n"
"declare _subj, _cc, _bcc, _sent, _to, _from, _msg, _mid varchar;\n"
"declare ___msg any;\n"
"declare m cursor for select MM_ID from MAIL_MESSAGE where MM_OWN = _uid and MM_FLD = \'Inbox\'\n"
"order by MM_OWN desc, MM_FLD desc, MM_ID desc;\n"
"set isolation=\'serializable\';\n"
"again:;\n"
"_id := 0;\n"
"whenever not found goto nf;\n"
"open m (exclusive, prefetch 1);\n"
"fetch m into _id;\n"
"nf:\n"
"\n"
"\n"
"\n"
"_id := coalesce (_id, 0) + 1;\n"
"\n"
"{\n"
"whenever not found goto ins;\n"
"select MM_ID into dummy from MAIL_MESSAGE where MM_OWN = _uid and MM_FLD = \'Inbox\' and MM_ID = _id;\n"
"close m;\n"
"goto again;\n"
"}\n"
"\n"
"ins:;\n"
"\n"
"insert into MAIL_MESSAGE (MM_ID, MM_OWN, MM_FLD, MM_BODY, MM_REC_DATE,\n"
"MM_SUBJ, MM_CC, MM_BCC, MM_SND_TIME, MM_TO, MM_FROM)\n"
"values (_id, _uid, \'Inbox\', __msg, cast (now () as varchar),\n"
"_subj, _cc, _bcc, _sent, _to, _from);\n"
"select blob_to_string (MM_BODY) into _msg from MAIL_MESSAGE where\n"
"MM_ID = _id and MM_OWN = _uid and MM_FLD = \'Inbox\';\n"
"_subj := substring (mail_header (_msg, \'Subject\'), 1, 512);\n"
"_cc := substring (mail_header (_msg, \'Cc\'), 1, 512);\n"
"_bcc := substring (mail_header (_msg, \'Bcc\'), 1, 512);\n"
"_sent := substring (mail_header (_msg, \'Date\'), 1, 50);\n"
"_to := substring (mail_header (_msg, \'To\'), 1, 512);\n"
"_from := substring (mail_header (_msg, \'From\'), 1, 512);\n"
"_mid := substring (mail_header (_msg, \'Message-Id\'), 1, 512);\n"
"update MAIL_MESSAGE set MM_SUBJ = _subj, MM_CC = _cc, MM_BCC = _bcc,\n"
"MM_SND_TIME = _sent, MM_TO = _to, MM_FROM = _from, MM_MSG_ID = _mid\n"
"where MM_ID = _id and MM_OWN = _uid and MM_FLD = \'Inbox\';\n"
"close m;\n"
"return NULL;\n"
"}\n"
"--src mail_cli.sql:337\n";
static const char *proc23 =
"#line 388 \"[executable]/mail_cli.sql\"\n"
"create procedure MAIL_GET_NEXT_ID (in str varchar, inout offset integer)\n"
"{\n"
"while (1 = 1)\n"
"{\n"
"declare chunk varchar;\n"
"chunk := subseq (str, offset);\n"
"declare colon_inx integer;\n"
"colon_inx := strchr (chunk, \',\');\n"
"if (colon_inx is not null)\n"
"chunk := subseq (chunk, 0, colon_inx);\n"
"declare left_inx integer;\n"
"left_inx := strchr (chunk, \'<\');\n"
"if (left_inx is not null)\n"
"chunk := subseq (chunk, left_inx);\n"
"declare at_inx integer;\n"
"at_inx := strrchr (chunk, \'@\');\n"
"if (at_inx is not null)\n"
"{\n"
"if ((chr (aref (chunk, at_inx - 1)) not in (\'\\n\', \' \', \'\\t\', \'<\')))\n"
"{\n"
"declare at_start_inx integer;\n"
"at_start_inx := at_inx;\n"
"while (at_start_inx > 0 and (chr (aref (chunk, at_start_inx - 1)) not in (\'\\n\', \' \', \'\\t\', \'<\')))\n"
"{\n"
"at_start_inx := at_start_inx - 1;\n"
"}\n"
"if (colon_inx)\n"
"offset := offset + colon_inx + 1;\n"
"else\n"
"offset := offset + coalesce (left_inx, 0) + at_inx + 1;\n"
"return subseq (chunk, at_start_inx, at_inx);\n"
"}\n"
"else\n"
"{\n"
"if (colon_inx)\n"
"offset := offset + colon_inx + 1;\n"
"else\n"
"offset := offset + coalesce (left_inx, 0) + at_inx + 1;\n"
"}\n"
"}\n"
"else if (left_inx is not null)\n"
"{\n"
"declare right_inx integer;\n"
"right_inx := strchr (chunk, \'>\');\n"
"offset := offset + left_inx + 1;\n"
"if (right_inx is not null)\n"
"return subseq (chunk, 1, right_inx);\n"
"else\n"
"return NULL;\n"
"}\n"
"else\n"
"return NULL;\n"
"}\n"
"}\n"
"--src mail_cli.sql:386\n";
static const char *proc24 =
"#line 444 \"[executable]/mail_cli.sql\"\n"
"create procedure BARE_NEW_MAIL (in _uid varchar,\n"
"in _subj varchar, in _cc varchar, in _bcc varchar, in _sent varchar,\n"
"in _to varchar, in _from varchar, in __msg any)\n"
"{\n"
"declare _id, _id1 integer;\n"
"declare offset integer;\n"
"declare __uid varchar;\n"
"set isolation=\'serializable\';\n"
"\n"
"if (_uid is null)\n"
"signal (\'22023\', \'Sender can not be empty\', \'SM006\');\n"
"again:\n"
"offset := 0;\n"
"if ((__uid := MAIL_GET_NEXT_ID (_uid, offset)) is not null)\n"
"{\n"
"_id := 0;\n"
"_id1 := 1;\n"
"declare cr1 cursor for\n"
"select MM_ID\n"
"from MAIL_MESSAGE\n"
"where MM_OWN = __uid and MM_FLD = \'Inbox\'\n"
"order by MM_OWN desc, MM_FLD desc, MM_ID desc;\n"
"whenever not found goto nf1;\n"
"open cr1 (exclusive);\n"
"fetch cr1 into _id;\n"
"nf1:\n"
"select max (MM_ID) into _id1\n"
"from MAIL_MESSAGE\n"
"where MM_OWN = __uid and MM_FLD = \'Inbox\' and MM_ID >= _id;\n"
"_id1 := coalesce (_id1, 0) + 1;\n"
"insert into MAIL_MESSAGE (MM_ID, MM_OWN, MM_FLD, MM_BODY, MM_REC_DATE,\n"
"MM_SUBJ, MM_CC, MM_BCC, MM_SND_TIME, MM_TO, MM_FROM)\n"
"values (_id1, __uid, \'Inbox\', __msg, cast (now () as varchar),\n"
"_subj, _cc, _bcc, _sent, _to, _from);\n"
"select MM_BODY into __msg from MAIL_MESSAGE where MM_ID = _id1 and MM_OWN = __uid and MM_FLD = \'Inbox\';\n"
"close cr1;\n"
"while ((__uid := MAIL_GET_NEXT_ID (_uid, offset)) is not null)\n"
"{\n"
"_id := 0;\n"
"_id1 := 1;\n"
"declare cr2 cursor for\n"
"select MM_ID\n"
"from MAIL_MESSAGE\n"
"where MM_OWN = __uid and MM_FLD = \'Inbox\'\n"
"order by MM_OWN desc, MM_FLD desc, MM_ID desc;\n"
"whenever not found goto nf2;\n"
"open cr2 (exclusive);\n"
"fetch cr2 into _id;\n"
"nf2:\n"
"select max (MM_ID) into _id1\n"
"from MAIL_MESSAGE\n"
"where MM_OWN = __uid and MM_FLD = \'Inbox\' and MM_ID >= _id;\n"
"_id1 := coalesce (_id1, 0) + 1;\n"
"insert into MAIL_MESSAGE (MM_ID, MM_OWN, MM_FLD, MM_BODY, MM_REC_DATE,\n"
"MM_SUBJ, MM_CC, MM_BCC, MM_SND_TIME, MM_TO, MM_FROM)\n"
"values (_id1, __uid, \'Inbox\', __msg, cast (now () as varchar),\n"
"_subj, _cc, _bcc, _sent, _to, _from);\n"
"close cr2;\n"
"}\n"
"}\n"
"else\n"
"{\n"
"_id := 0;\n"
"_id1 := 1;\n"
"declare cr3 cursor for\n"
"select MM_ID\n"
"from MAIL_MESSAGE\n"
"where MM_OWN = _uid and MM_FLD = \'Inbox\'\n"
"order by MM_OWN desc, MM_FLD desc, MM_ID desc;\n"
"whenever not found goto nf3;\n"
"open cr3 (exclusive);\n"
"fetch cr3 into _id;\n"
"nf3:\n"
"select max (MM_ID) into _id1\n"
"from MAIL_MESSAGE\n"
"where MM_OWN = _uid and MM_FLD = \'Inbox\' and MM_ID >= _id;\n"
"_id1 := coalesce (_id1, 0) + 1;\n"
"insert into MAIL_MESSAGE (MM_ID, MM_OWN, MM_FLD, MM_BODY, MM_REC_DATE,\n"
"MM_SUBJ, MM_CC, MM_BCC, MM_SND_TIME, MM_TO, MM_FROM)\n"
"values (_id1, _uid, \'Inbox\', __msg, cast (now () as varchar),\n"
"_subj, _cc, _bcc, _sent, _to, _from);\n"
"close cr3;\n"
"}\n"
"return NULL;\n"
"}\n"
"--src mail_cli.sql:442\n";
static const char *proc25 =
"#line 532 \"[executable]/mail_cli.sql\"\n"
"create procedure display_mime (inout doc varchar, inout ses varchar, inout parsed_message varchar, in msg varchar, in path varchar, in call_page varchar, in _type varchar)\n"
"{\n"
"\n"
"declare path_part, body, attrs, parts, entry_path varchar;\n"
"declare inx integer;\n"
"\n"
"entry_path := path;\n"
"\n"
"if (not isarray(parsed_message))\n"
"{\n"
"return;\n"
"}\n"
"\n"
"attrs := aref (parsed_message, 0);\n"
"body := aref (parsed_message, 1);\n"
"parts := aref (parsed_message, 2);\n"
"\n"
"if (isarray (attrs))\n"
"{\n"
"http (\'<TABLE CLASS=\"gen_list\" BORDER=\"0\" CELLPADDING=\"0\" WIDTH=\"90%\">\\n<TR CLASS=\"stat_head\"><TD COLSPAN=\"2\">Headers</TD></TR>\\n<TR CLASS=\"adm_borders\"><TD COLSPAN=\"2\"><IMG SRC=\"../admin/images/1x1.gif\" WIDTH=\"1\" HEIGHT=\"2\" ALT=\"\"></TD></TR>\\n<tr><td class=\"gen_listheadt\">Attribute</td><td class=\"gen_listheadt\">Value</td></tr>\\n\', ses);\n"
"inx := 0;\n"
"while (inx < (length (attrs) - 1))\n"
"{\n"
"http (\'<tr><td class=\"gen_data\">\', ses);\n"
"http_value (aref (attrs, inx), NULL, ses);\n"
"http (\'</td><td class=\"gen_data\">\', ses);\n"
"http_value (aref (attrs, inx + 1), NULL, ses);\n"
"http (\'</td></tr>\\n\', ses);\n"
"inx := inx + 2;\n"
"}\n"
"http (\'</table>\\n\', ses);\n"
"}\n"
"if (isarray (body))\n"
"{\n"
"if (aref (body, 1) > aref (body, 0))\n"
"{\n"
"declare body_submsg varchar;\n"
"body_submsg := aref (body, 2);\n"
"http (\'<TABLE CLASS=\"gen_list\" BORDER=\"0\" CELLPADDING=\"0\" WIDTH=\"90%\">\\n<TR CLASS=\"stat_head\"><TD>Body</TD></TR>\\n<TR CLASS=\"adm_borders\"><TD><IMG SRC=\"../admin/images/1x1.gif\" WIDTH=\"1\" HEIGHT=\"2\" ALT=\"\"></TD></TR>\\n<tr><td class=\"gen_data\">\\n\', ses);\n"
"if (isarray (body_submsg))\n"
"display_mime (doc, ses, body_submsg, msg, concat (path, \'/b\'), call_page, _type);\n"
"else\n"
"{\n"
"declare body_type, body_enc, body_file varchar;\n"
"\n"
"if (isarray (attrs))\n"
"{\n"
"body_type := lcase (get_keyword_ucase (\'Content-Type\', attrs));\n"
"body_enc := lcase (get_keyword_ucase (\'Content-Transfer-Encoding\', attrs));\n"
"body_file := get_keyword_ucase (\'filename\', attrs);\n"
"}\n"
"else\n"
"{\n"
"body_type := null;\n"
"body_enc := null;\n"
"}\n"
"if (length (body_type) = 0)\n"
"body_type := \'text/plain\';\n"
"if (length (body_enc) = 0)\n"
"body_enc := null;\n"
"if (length (body_file) = 0)\n"
"body_file := null;\n"
"if (isnull (body_type))\n"
"body_type := \'text/plain\';\n"
"if (subseq (body_type, 0, 9) = \'multipart\')\n"
"body_type := \'text/plain\';\n"
"if (strstr (body_type, \'html\') is null and subseq (body_type, 0, 4) = \'text\' and (body_enc is null or body_enc = \'7bit\' or body_enc = \'8bit\'))\n"
"{\n"
"if (not (subseq (body_type, 5, 9) = \'html\'))\n"
"{\n"
"http (\'\\n<PRE>\', ses);\n"
"http_value (subseq (msg, aref (body, 0), aref (body, 1)), null, ses);\n"
"http (\'</PRE>\\n\', ses);\n"
"}\n"
"else\n"
"http (subseq (msg, aref (body, 0), aref (body, 1)), ses);\n"
"}\n"
"else if (subseq (body_type, 0, 5) = \'image\' and\n"
"(subseq (body_type, 6, 9) = \'gif\' or subseq (body_type, 6, 10) = \'jpeg\'))\n"
"{\n"
"if (body_file is null)\n"
"body_file := concat (\'body.\', subseq (body_type, 5, length (body_type)));\n"
"http (\'<IMG src=\\\"/INLINEFILE/\');\n"
"http_url (body_file);\n"
"http (\'?VSP=\');\n"
"http_url (sprintf (\'%s\' ,call_page));\n"
"http (\'&msg=\');\n"
"http_url (doc);\n"
"http (\'&type=\');\n"
"http_url (_type);\n"
"http (\'&downloadpath=\');\n"
"http_url (concat (entry_path, \'/d/\', body_file));\n"
"http (\'\"></IMG>\');\n"
"}\n"
"else\n"
"{\n"
"if (body_file is null)\n"
"body_file := \'mime.body\';\n"
"http (\'<A href=\\\"/INLINEFILE/\');\n"
"http_url (body_file);\n"
"http (\'?VSP=\');\n"
"http_url (sprintf (\'%s\' ,call_page));\n"
"http (\'&msg=\');\n"
"http_url (doc);\n"
"http (\'&type=\');\n"
"http_url (_type);\n"
"http (\'&downloadpath=\');\n"
"http_url (concat (entry_path, \'/d/\', body_file));\n"
"http (\'\"> Download the body </A>\');\n"
"}\n"
"}\n"
"}\n"
"if (isarray (aref (body, 3)))\n"
"{\n"
"http (\'<hr><H3>Footer</H3>\\n<PRE>\', ses);\n"
"http_value (subseq (msg, aref (aref (body, 3), 0), aref (aref (body, 3), 1)), null, ses);\n"
"http (\'</PRE>\\n\', ses);\n"
"}\n"
"http (\'</TD></TR></TABLE>\', ses);\n"
"}\n"
"if (isarray (parts))\n"
"{\n"
"http (\'<hr><H3>_SubParts_</H3>\\n\', ses);\n"
"inx := 0;\n"
"while (inx < length (parts))\n"
"{\n"
"http (sprintf (\'<hr><H4>SubPart %d </H4>\\n\', inx + 1), ses);\n"
"display_mime (doc, ses, aref (parts, inx), msg, sprintf (\'%s/%d\', path, inx), call_page, _type);\n"
"inx := inx + 1;\n"
"}\n"
"}\n"
"}\n"
"--src mail_cli.sql:530\n";
/* admin_ddl.sql */
static const char *tbl21 =
"create table ADMIN_SESSION\n"
"(\n"
"ASES_ID varchar (32),\n"
"ASES_LAST_ACCESS datetime,\n"
"ASES_TREE long varchar,\n"
"ASES_VARS long varchar,\n"
"primary key (ASES_ID)\n"
")\n";
static const char *view9 =
"create view ADM_XML_VIEWS as select V_NAME from SYS_VIEWS where V_TEXT like \'create xml%\'\n";
static const char *tbl22 =
"create table WS.WS.AUDIT_LOG (\n"
"EVTTIME timestamp,\n"
"REFERER varchar,\n"
"HOST varchar,\n"
"COMMAND varchar,\n"
"AUTHSTRING varchar,\n"
"USERNAME varchar(200),\n"
"REALM varchar(200),\n"
"AUTHALGORITHM varchar(100),\n"
"URI varchar,\n"
"USERAGENT varchar,\n"
"CLIENT varchar\n"
")\n";
/* vfsddk.sql */
static const char *tbl23 =
"create table WS.WS.VFS_URL (\n"
"VU_HOST varchar,\n"
"VU_URL varchar,\n"
"VU_ROOT varchar,\n"
"VU_CHKSUM varchar,\n"
"VU_ETAG varchar,\n"
"VU_CPTIME datetime,\n"
"VU_OTHER varchar,\n"
"VU_RES_ID int,\n"
"primary key (VU_HOST, VU_URL, VU_ROOT))\n"
"create index VU_HOST_ROOT on WS.WS.VFS_URL (VU_HOST, VU_ROOT)\n"
"create index VFS_URL_RES_ID on WS.WS.VFS_URL (VU_RES_ID) \n";
static const char *tbl24 =
"create table WS.WS.VFS_QUEUE (\n"
"VQ_HOST varchar,\n"
"VQ_TS datetime,\n"
"VQ_URL varchar,\n"
"VQ_ROOT varchar,\n"
"VQ_STAT varchar (15),\n"
"VQ_OTHER varchar,\n"
"VQ_ERROR long varchar,\n"
"VQ_LEVEL int default 0,\n"
"VQ_VIA_SITEMAP int default 0,\n"
"VQ_DT timestamp,\n"
"VQ_ORIGIN IRI_ID_8,\n"
"primary key (VQ_HOST, VQ_URL, VQ_ROOT))\n"
"create index VQ_HOST_ROOT on WS.WS.VFS_QUEUE (VQ_HOST, VQ_ROOT)\n"
"create index VQ_HOST_TIME on WS.WS.VFS_QUEUE (VQ_HOST, VQ_ROOT, VQ_STAT, VQ_TS, VQ_URL)\n"
"create index VQ_TS on WS.WS.VFS_QUEUE (VQ_TS)\n"
"create index VQ_ORIGIN on WS.WS.VFS_QUEUE (VQ_ORIGIN) \n";
static const char *tbl25 =
"create table WS.WS.VFS_SITE (\n"
"VS_ID integer identity, \n"
"VS_DESCR varchar,\n"
"VS_HOST varchar,\n"
"VS_URL varchar,\n"
"VS_INX varchar (5),\n"
"VS_OWN integer,\n"
"VS_ROOT varchar,\n"
"VS_NEWER datetime,\n"
"VS_DEL varchar,\n"
"VS_FOLLOW varchar,\n"
"VS_NFOLLOW varchar,\n"
"VS_SRC varchar,\n"
"VS_OPTIONS varchar,\n"
"VS_METHOD varchar,\n"
"VS_OTHER varchar,\n"
"VS_OPAGE varchar,\n"
"VS_REDIRECT int default 1,\n"
"VS_STORE int default 1,\n"
"VS_UDATA long varbinary,\n"
"VS_DLOAD_META int default 0,\n"
"VS_INST_ID int,\n"
"VS_EXTRACT_FN varchar,\n"
"VS_STORE_FN varchar,\n"
"VS_DEPTH int default null,\n"
"VS_CONVERT_HTML int default 1,\n"
"VS_XPATH long varchar,\n"
"VS_BOT int default 1,\n"
"VS_IS_SITEMAP int default 0,\n"
"VS_ACCEPT_RDF int default 0,\n"
"VS_THREADS int default 1,\n"
"VS_ROBOTS long varchar default null,\n"
"VS_DELAY float default 0,\n"
"VS_TIMEOUT float default null,\n"
"VS_HEADERS long varchar default null,\n"
"primary key (VS_HOST, VS_ROOT))\n"
"create index VS_HOST_ROOT on WS.WS.VFS_SITE (VS_HOST, VS_URL, VS_ROOT)\n";
static const char *tbl26 =
"create table WS.WS.VFS_SITE_RDF_MAP (\n"
"VM_ID integer identity,\n"
"VM_HOST varchar,\n"
"VM_ROOT varchar,\n"
"VM_RDF_MAP int,\n"
"VM_SEQ integer identity,\n"
"primary key (VM_HOST, VM_ROOT, VM_RDF_MAP, VM_SEQ))\n";
static const char *alter0 =
"alter table WS.WS.VFS_SITE add VS_DEPTH int default null\n";
static const char *alter1 =
"alter table WS.WS.VFS_SITE add VS_CONVERT_HTML int default 1\n";
static const char *alter2 =
"alter table WS.WS.VFS_SITE add VS_XPATH long varchar\n";
static const char *alter3 =
"alter table WS.WS.VFS_SITE add VS_BOT int default 1\n";
static const char *alter4 =
"alter table WS.WS.VFS_SITE add VS_IS_SITEMAP int default 0\n";
static const char *alter5 =
"alter table WS.WS.VFS_SITE add VS_ACCEPT_RDF int default 0\n";
static const char *alter6 =
"alter table WS.WS.VFS_SITE add VS_THREADS int default 1\n";
static const char *alter7 =
"alter table WS.WS.VFS_SITE add VS_ROBOTS long varchar default null\n";
static const char *alter8 =
"alter table WS.WS.VFS_SITE add VS_DELAY float default 0\n";
static const char *alter9 =
"alter table WS.WS.VFS_SITE add VS_TIMEOUT float default null\n";
static const char *alter10 =
"alter table WS.WS.VFS_SITE add VS_HEADERS long varchar default null\n";
static const char *alter11 =
"alter table WS.WS.VFS_SITE add VS_ID integer identity\n";
static const char *alter12 =
"alter table WS.WS.VFS_QUEUE add VQ_LEVEL int default 0\n";
static const char *alter13 =
"alter table WS.WS.VFS_QUEUE add VQ_VIA_SITEMAP int default 0\n";
static const char *alter14 =
"alter table WS.WS.VFS_QUEUE add VQ_DT timestamp\n";
static const char *alter15 =
"alter table WS.WS.VFS_QUEUE add VQ_ORIGIN IRI_ID_8\n";
static const char *alter16 =
"alter table WS.WS.VFS_URL add VU_RES_ID int\n";
static const char *proc26 =
"#line 222 \"[executable]/vfsddk.sql\"\n"
"create procedure WS.WS.VFS_UPGRADE ()\n"
"{\n"
"declare inx int;\n"
"declare arr any;\n"
"if (not exists (select 1 from WS.WS.VFS_SITE where VS_ID is null))\n"
"return;\n"
"inx := 1;\n"
"arr := (select DB.DBA.VECTOR_AGG (vector (VS_HOST, VS_ROOT)) from WS.WS.VFS_SITE);\n"
"foreach (any x in arr) do\n"
"{\n"
"declare host, root varchar;\n"
"host := x[0];\n"
"root := x[1];\n"
"update WS.WS.VFS_SITE set VS_ID = inx where VS_HOST = host and VS_ROOT = root;\n"
"inx := inx + 1;\n"
"}\n"
"DB.DBA.SET_IDENTITY_COLUMN (\'WS.WS.VFS_SITE\', \'VS_ID\', inx);\n"
"}\n"
"--src vfsddk.sql:220\n";
static const char *other851 =
" WS.WS.VFS_UPGRADE ()\n";
/* virtual_dir.sql */
static const char *tbl27 =
"create table DB.DBA.HTTP_PATH (\n"
"HP_HOST varchar not null,\n"
"HP_LISTEN_HOST varchar not null,\n"
"HP_LPATH varchar not null,\n"
"HP_PPATH varchar not null,\n"
"HP_STORE_AS_DAV integer not null,\n"
"HP_DIR_BROWSEABLE integer not null,\n"
"HP_DEFAULT varchar,\n"
"HP_SECURITY varchar,\n"
"HP_REALM varchar,\n"
"HP_AUTH_FUNC varchar,\n"
"HP_POSTPROCESS_FUNC varchar,\n"
"HP_RUN_VSP_AS varchar,\n"
"HP_RUN_SOAP_AS varchar,\n"
"HP_PERSIST_SES_VARS integer not null,\n"
"HP_SOAP_OPTIONS long varchar,\n"
"HP_AUTH_OPTIONS varchar,\n"
"HP_OPTIONS any,\n"
"HP_IS_DEFAULT_HOST integer,\n"
"primary key (HP_LISTEN_HOST, HP_HOST, HP_LPATH)\n"
")\n";
static const char *tbl28 =
"create table HTTP_ACL (\n"
"HA_LIST varchar not null,\n"
"HA_ORDER integer not null,\n"
"HA_OBJECT integer not NULL default -1,\n"
"HA_CLIENT_IP varchar not NULL,\n"
"HA_FLAG integer not NULL default 1,\n"
"HA_RW integer default 0,\n"
"HA_DEST_IP varchar default \'*\',\n"
"HA_RATE double precision,\n"
"HA_LIMIT integer default 0,\n"
"PRIMARY KEY (HA_LIST, HA_ORDER, HA_CLIENT_IP, HA_FLAG))\n";
static const char *alter17 =
"alter table HTTP_ACL add HA_LIMIT integer default 0\n";
static const char *trig6 =
"#line 96 \"[executable]/virtual_dir.sql\"\n"
"create trigger HTTP_ACL_I after insert on DB.DBA.HTTP_ACL\n"
"{\n"
"declare def_rate int;\n"
"if (HA_LIST <> \'NEWS\')\n"
"def_rate := 0;\n"
"else\n"
"def_rate := 1;\n"
"http_acl_set (HA_LIST, HA_ORDER, HA_CLIENT_IP, HA_FLAG, HA_DEST_IP, HA_OBJECT, HA_RW, coalesce (HA_RATE, def_rate), HA_LIMIT);\n"
"}\n"
"--src virtual_dir.sql:94\n";
static const char *trig7 =
"#line 111 \"[executable]/virtual_dir.sql\"\n"
"create trigger HTTP_ACL_U after update on DB.DBA.HTTP_ACL referencing old as O, new as N\n"
"{\n"
"http_acl_remove (O.HA_LIST, O.HA_ORDER, O.HA_CLIENT_IP, O.HA_FLAG);\n"
"http_acl_set (N.HA_LIST, N.HA_ORDER, N.HA_CLIENT_IP, N.HA_FLAG, N.HA_DEST_IP, N.HA_OBJECT, N.HA_RW,\n"
"coalesce (N.HA_RATE, 0), N.HA_LIMIT);\n"
"}\n"
"--src virtual_dir.sql:109\n";
static const char *trig8 =
"#line 119 \"[executable]/virtual_dir.sql\"\n"
"create trigger HTTP_ACL_D after delete on DB.DBA.HTTP_ACL referencing old as O\n"
"{\n"
"http_acl_remove (O.HA_LIST, O.HA_ORDER, O.HA_CLIENT_IP, O.HA_FLAG);\n"
"}\n"
"--src virtual_dir.sql:117\n";
static const char *view10 =
"create view HTTP_PROXY_ACL (HP_SRC, HP_DEST, HP_FLAG)\n"
"as select HA_CLIENT_IP, HA_DEST_IP, HA_FLAG from DB.DBA.HTTP_ACL\n"
"where upper (HA_LIST) = \'PROXY\'\n";
static const char *view11 =
"create view NEWS_ACL (NA_GROUP, NA_IP, NA_A_D, NA_RW)\n"
"as select HA_OBJECT, HA_CLIENT_IP, HA_FLAG, HA_RW from DB.DBA.HTTP_ACL\n"
"where upper (HA_LIST) = \'NEWS\'\n";
static const char *other852 =
"insert soft DB.DBA.HTTP_PATH\n"
"(\n"
"HP_HOST, HP_LISTEN_HOST, HP_LPATH, HP_PPATH, HP_STORE_AS_DAV, HP_DIR_BROWSEABLE, HP_DEFAULT,\n"
"HP_SECURITY, HP_REALM, HP_AUTH_FUNC, HP_POSTPROCESS_FUNC, HP_RUN_VSP_AS, HP_RUN_SOAP_AS, HP_PERSIST_SES_VARS)\n"
"values ( \'*ini*\', \'*ini*\', \'/DAV\', \'/DAV/\', 1, 1, NULL, NULL, NULL, NULL, NULL, \'dba\', NULL, 0\n"
")\n";
static const char *other853 =
"insert soft DB.DBA.HTTP_PATH\n"
"(\n"
"HP_HOST, HP_LISTEN_HOST, HP_LPATH, HP_PPATH, HP_STORE_AS_DAV, HP_DIR_BROWSEABLE, HP_DEFAULT,\n"
"HP_SECURITY, HP_REALM, HP_AUTH_FUNC, HP_POSTPROCESS_FUNC, HP_RUN_VSP_AS, HP_RUN_SOAP_AS, HP_PERSIST_SES_VARS)\n"
"values ( \'*sslini*\', \'*sslini*\', \'/DAV\', \'/DAV/\', 1, 1, NULL, NULL, NULL, NULL, NULL, \'dba\', NULL, 0\n"
")\n";
static const char *other854 =
"insert soft DB.DBA.HTTP_PATH\n"
"(\n"
"HP_HOST, HP_LISTEN_HOST, HP_LPATH, HP_PPATH, HP_STORE_AS_DAV, HP_DIR_BROWSEABLE, HP_DEFAULT,\n"
"HP_SECURITY, HP_REALM, HP_AUTH_FUNC, HP_POSTPROCESS_FUNC, HP_RUN_VSP_AS, HP_RUN_SOAP_AS, HP_PERSIST_SES_VARS)\n"
"values ( \'*ini*\', \'*ini*\', \'/admin\', \'/admin/\', 0, 0, \'admin_main.vsp\', NULL, NULL, NULL, NULL, \'dba\', NULL, 0\n"
")\n";
static const char *other855 =
"insert soft DB.DBA.HTTP_PATH\n"
"(\n"
"HP_HOST, HP_LISTEN_HOST, HP_LPATH, HP_PPATH, HP_STORE_AS_DAV, HP_DIR_BROWSEABLE, HP_DEFAULT,\n"
"HP_SECURITY, HP_REALM, HP_AUTH_FUNC, HP_POSTPROCESS_FUNC, HP_RUN_VSP_AS, HP_RUN_SOAP_AS, HP_PERSIST_SES_VARS)\n"
"values ( \'*ini*\', \'*ini*\', \'/install\', \'/install/\', 0, 0, \'install.vspx\', NULL, NULL, NULL, NULL, \'dba\', NULL, 0\n"
")\n";
static const char *other856 =
"insert soft DB.DBA.HTTP_PATH\n"
"(\n"
"HP_HOST, HP_LISTEN_HOST, HP_LPATH, HP_PPATH, HP_STORE_AS_DAV, HP_DIR_BROWSEABLE, HP_DEFAULT,\n"
"HP_SECURITY, HP_REALM, HP_AUTH_FUNC, HP_POSTPROCESS_FUNC, HP_RUN_VSP_AS, HP_RUN_SOAP_AS, HP_PERSIST_SES_VARS)\n"
"values ( \'*sslini*\', \'*sslini*\', \'/admin\', \'/admin/\', 0, 0, \'admin_main.vsp\', NULL, NULL, NULL, NULL, \'dba\', NULL, 0\n"
")\n";
static const char *other857 =
"insert soft DB.DBA.HTTP_PATH\n"
"(\n"
"HP_HOST, HP_LISTEN_HOST, HP_LPATH, HP_PPATH, HP_STORE_AS_DAV, HP_DIR_BROWSEABLE, HP_DEFAULT,\n"
"HP_SECURITY, HP_REALM, HP_AUTH_FUNC, HP_POSTPROCESS_FUNC, HP_RUN_VSP_AS, HP_RUN_SOAP_AS, HP_PERSIST_SES_VARS)\n"
"values ( \'*ini*\', \'*ini*\', \'/mime\', \'/mime/\', 0, 0, NULL, NULL, NULL, NULL, NULL, \'dba\', NULL, 0\n"
")\n";
static const char *other858 =
"insert soft DB.DBA.HTTP_PATH\n"
"(\n"
"HP_HOST, HP_LISTEN_HOST, HP_LPATH, HP_PPATH, HP_STORE_AS_DAV, HP_DIR_BROWSEABLE, HP_DEFAULT,\n"
"HP_SECURITY, HP_REALM, HP_AUTH_FUNC, HP_POSTPROCESS_FUNC, HP_RUN_VSP_AS, HP_RUN_SOAP_AS, HP_PERSIST_SES_VARS)\n"
"values ( \'*ini*\', \'*ini*\', \'/images\', \'/images/\', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0\n"
")\n";
static const char *other859 =
"insert soft DB.DBA.HTTP_PATH\n"
"(\n"
"HP_HOST, HP_LISTEN_HOST, HP_LPATH, HP_PPATH, HP_STORE_AS_DAV, HP_DIR_BROWSEABLE, HP_DEFAULT,\n"
"HP_SECURITY, HP_REALM, HP_AUTH_FUNC, HP_POSTPROCESS_FUNC, HP_RUN_VSP_AS, HP_RUN_SOAP_AS, HP_PERSIST_SES_VARS)\n"
"values ( \'*sslini*\', \'*sslini*\', \'/mime\', \'/mime/\', 0, 0, NULL, NULL, NULL, NULL, NULL, \'dba\', NULL, 0\n"
")\n";
static const char *other860 =
"insert soft DB.DBA.HTTP_PATH\n"
"(\n"
"HP_HOST, HP_LISTEN_HOST, HP_LPATH, HP_PPATH, HP_STORE_AS_DAV, HP_DIR_BROWSEABLE, HP_DEFAULT,\n"
"HP_SECURITY, HP_REALM, HP_AUTH_FUNC, HP_POSTPROCESS_FUNC, HP_RUN_VSP_AS, HP_RUN_SOAP_AS, HP_PERSIST_SES_VARS)\n"
"values ( \'*ini*\', \'*ini*\', \'/doc\', \'/doc/\', 0, 0, NULL, NULL, NULL, NULL, NULL, \'dba\', NULL, 0\n"
")\n";
static const char *other861 =
"insert soft DB.DBA.HTTP_PATH\n"
"(\n"
"HP_HOST, HP_LISTEN_HOST, HP_LPATH, HP_PPATH, HP_STORE_AS_DAV, HP_DIR_BROWSEABLE, HP_DEFAULT,\n"
"HP_SECURITY, HP_REALM, HP_AUTH_FUNC, HP_POSTPROCESS_FUNC, HP_RUN_VSP_AS, HP_RUN_SOAP_AS, HP_PERSIST_SES_VARS)\n"
"values ( \'*sslini*\', \'*sslini*\', \'/doc\', \'/doc/\', 0, 0, NULL, NULL, NULL, NULL, NULL, \'dba\', NULL, 0\n"
")\n";
static const char *other862 =
"insert soft DB.DBA.HTTP_PATH\n"
"(\n"
"HP_HOST, HP_LISTEN_HOST, HP_LPATH, HP_PPATH, HP_STORE_AS_DAV, HP_DIR_BROWSEABLE, HP_DEFAULT,\n"
"HP_SECURITY, HP_REALM, HP_AUTH_FUNC, HP_POSTPROCESS_FUNC, HP_RUN_VSP_AS, HP_RUN_SOAP_AS, HP_PERSIST_SES_VARS)\n"
"values ( \'*ini*\', \'*ini*\', \'/SOAP\', \'/SOAP/\', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, \'SOAP\', 0\n"
")\n";
static const char *other863 =
"insert soft DB.DBA.HTTP_PATH\n"
"(\n"
"HP_HOST, HP_LISTEN_HOST, HP_LPATH, HP_PPATH, HP_STORE_AS_DAV, HP_DIR_BROWSEABLE, HP_DEFAULT,\n"
"HP_SECURITY, HP_REALM, HP_AUTH_FUNC, HP_POSTPROCESS_FUNC, HP_RUN_VSP_AS, HP_RUN_SOAP_AS, HP_PERSIST_SES_VARS)\n"
"values ( \'*sslini*\', \'*sslini*\', \'/SOAP\', \'/SOAP/\', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, \'SOAP\', 0\n"
")\n";
static const char *other864 =
"insert soft DB.DBA.HTTP_PATH\n"
"(\n"
"HP_HOST, HP_LISTEN_HOST, HP_LPATH, HP_PPATH, HP_STORE_AS_DAV, HP_DIR_BROWSEABLE, HP_DEFAULT,\n"
"HP_SECURITY, HP_REALM, HP_AUTH_FUNC, HP_POSTPROCESS_FUNC, HP_RUN_VSP_AS, HP_RUN_SOAP_AS, HP_PERSIST_SES_VARS)\n"
"values ( \'*ini*\', \'*ini*\', \'/vsmx\', \'/vsmx/\', 0, 0, \'vsmx.vspx\', NULL, NULL, NULL, NULL, \'dba\', NULL, 0\n"
")\n";
static const char *other865 =
"insert soft DB.DBA.HTTP_PATH\n"
"(\n"
"HP_HOST, HP_LISTEN_HOST, HP_LPATH, HP_PPATH, HP_STORE_AS_DAV, HP_DIR_BROWSEABLE, HP_DEFAULT,\n"
"HP_SECURITY, HP_REALM, HP_AUTH_FUNC, HP_POSTPROCESS_FUNC, HP_RUN_VSP_AS, HP_RUN_SOAP_AS, HP_PERSIST_SES_VARS)\n"
"values ( \'*sslini*\', \'*sslini*\', \'/vsmx\', \'/vsmx/\', 0, 0, \'vsmx.vspx\', NULL, NULL, NULL, NULL, \'dba\', NULL, 0\n"
")\n";
static const char *proc27 =
"#line 302 \"[executable]/virtual_dir.sql\"\n"
"create procedure HTTP_SET_DBA_ADMIN (in realm varchar)\n"
"{\n"
"declare auth, _user varchar;\n"
"auth := vsp_auth_vec (http_request_header());\n"
"if (isarray (auth) and http_path () like \'/admin/%\' and http_path () not like \'/admin/admin_dav/%\'\n"
"and http_path () not like \'admin/admin_news/%\')\n"
"{\n"
"_user := get_keyword (\'username\', auth, \'\');\n"
"if (exists (select 1 from DB.DBA.SYS_USERS where U_NAME = _user and U_GROUP = 0))\n"
"{\n"
"__set_user_id (_user, 0);\n"
"set_qualifier (\'DB\');\n"
"}\n"
"}\n"
"return 1;\n"
"}\n"
"--src virtual_dir.sql:300\n";
static const char *proc28 =
"#line 321 \"[executable]/virtual_dir.sql\"\n"
"create procedure\n"
"DB.DBA.IS_EMPTY_OR_NULL (in x any)\n"
"{\n"
"if (x is null or \'\' = x or 0 = x)\n"
"return 1;\n"
"return 0;\n"
"}\n"
"--src virtual_dir.sql:319\n";
static const char *proc29 =
"#line 332 \"[executable]/virtual_dir.sql\"\n"
"create procedure INS_VIRTUAL_DIR (in lpath varchar, in ppath varchar)\n"
"{\n"
"declare is_dav integer;\n"
"if (DB.DBA.IS_EMPTY_OR_NULL (lpath) or DB.DBA.IS_EMPTY_OR_NULL (ppath))\n"
"return NULL;\n"
"is_dav := 0;\n"
"if (aref (lpath, length (lpath) - 1) = ascii (\'/\') and length (lpath) > 1)\n"
"lpath := substring (lpath, 1, length (lpath) - 1);\n"
"if (aref (ppath, length (ppath) - 1) <> ascii (\'/\'))\n"
"ppath := concat (ppath, \'/\');\n"
"if (ppath like \'/DAV/%\')\n"
"is_dav := 1;\n"
"insert into DB.DBA.HTTP_PATH (HP_LPATH, HP_PPATH, HP_HOST, HP_LISTEN_HOST,\n"
"HP_STORE_AS_DAV, HP_DIR_BROWSEABLE, HP_PERSIST_SES_VARS)\n"
"values (lpath, ppath, \'*ini*\', \'*ini*\', is_dav, 0, 0);\n"
"return http_map_table (lpath, ppath, \'*ini*\', \'*ini*\', is_dav);\n"
"}\n"
"--src virtual_dir.sql:330\n";
static const char *proc30 =
"#line 352 \"[executable]/virtual_dir.sql\"\n"
"create procedure DEL_VIRTUAL_DIR (in lpath varchar)\n"
"{\n"
"if (DB.DBA.IS_EMPTY_OR_NULL (lpath))\n"
"return NULL;\n"
"delete from DB.DBA.HTTP_PATH where HP_LPATH = lpath and HP_HOST = \'*ini*\' and HP_LISTEN_HOST = \'*ini*\';\n"
"return http_map_del (lpath, \'*ini*\', \'*ini*\');\n"
"}\n"
"--src virtual_dir.sql:350\n";
static const char *proc31 =
"#line 365 \"[executable]/virtual_dir.sql\"\n"
"create procedure VHOST_DEFINE (in vhost varchar := \'*ini*\',\n"
"in lhost varchar := \'*ini*\',\n"
"in lpath varchar,\n"
"in ppath varchar,\n"
"in is_dav integer := 0,\n"
"in is_brws integer := 0,\n"
"in def_page varchar := null,\n"
"in auth_fn varchar := null,\n"
"in realm varchar := null,\n"
"in ppr_fn varchar := null,\n"
"in vsp_user varchar := null,\n"
"in soap_user varchar := null,\n"
"in sec varchar := null,\n"
"in ses_vars integer := 0,\n"
"in soap_opts any := null,\n"
"in auth_opts any := null,\n"
"in opts any := null,\n"
"in is_default_host integer := 0)\n"
"{\n"
"declare ssl_port varchar;\n"
"declare ssl_opts any;\n"
"declare varr, lport any;\n"
"if (length (lpath) > 1 and aref (lpath, length (lpath) - 1) = ascii (\'/\') )\n"
"lpath := substring (lpath, 1, length (lpath) - 1);\n"
"\n"
"\n"
"if (lpath not like \'/%\' or (ppath not like \'/%\' and lower(ppath) not like \'http://%\'))\n"
"signal (\'22023\', \'Missing leading slash in lpath or ppath parameter.\', \'HT058\');\n"
"\n"
"if (ppath like \'/DAV/%\' and is_dav <> 1)\n"
"signal (\'22023\', \'The physical path must points to the dav domain.\', \'HT044\');\n"
"\n"
"if (is_default_host and (lhost = \'*ini*\' or lhost = \'*sslini*\'))\n"
"signal (\'22023\', \'The default directory for default web site can be changed only from the INI file.\', \'HT060\');\n"
"\n"
"lhost := replace (lhost, \'0.0.0.0\', \'\');\n"
"\n"
"ssl_port := coalesce (server_https_port (), \'\');\n"
"if (isstring (server_http_port ()))\n"
"{\n"
"varr := split_and_decode (\n"
"case\n"
"when vhost = \'*ini*\' then server_http_port ()\n"
"when vhost = \'*sslini*\' then ssl_port\n"
"else vhost\n"
"end\n"
", 0, \':=:\');\n"
"lport := split_and_decode (\n"
"case\n"
"when lhost = \'*ini*\' then server_http_port ()\n"
"when lhost = \'*sslini*\' then ssl_port\n"
"else lhost\n"
"end\n"
", 0, \':=:\');\n"
"\n"
"if (__tag (varr) = 193 and length (varr) > 1)\n"
"vhost := varr[0];\n"
"\n"
"if (__tag (lport) = 193 and length (lport) > 1)\n"
"lport := aref (lport, 1);\n"
"else if (lhost = \'*ini*\')\n"
"lport := server_http_port ();\n"
"else if (lhost = \'*sslini*\')\n"
"lport := ssl_port;\n"
"else if (atoi (lhost))\n"
"lport := lhost;\n"
"else\n"
"lport := \'80\';\n"
"}\n"
"else\n"
"lport := null;\n"
"\n"
"if (lport = server_http_port () and lhost <> \'*ini*\')\n"
"lhost := \'*ini*\';\n"
"else if (lport = ssl_port and lhost <> \'*sslini*\')\n"
"lhost := \'*sslini*\';\n"
"\n"
"ssl_opts := NULL;\n"
"if (isstring (sec) and upper (sec) = \'SSL\' and\n"
"not exists (select 1 from DB.DBA.HTTP_PATH where HP_LISTEN_HOST = lhost))\n"
"{\n"
"if (not isarray (auth_opts) or \'\' = get_keyword (\'https_cert\', auth_opts, \'\') or\n"
"\'\' = get_keyword (\'https_key\', auth_opts, \'\'))\n"
"signal (\'22023\', \'At least certificate and key files should be supplied for HTTPS listener.\', \'HT046\');\n"
"ssl_opts := auth_opts;\n"
"}\n"
"\n"
"if (opts is not null and mod(length (opts), 2) <> 0)\n"
"signal (\'22023\', \'The global options should be an array with even length or NULL.\', \'HT056\');\n"
"\n"
"if (is_default_host = 1 and\n"
"exists (select 1 from DB.DBA.HTTP_PATH where HP_LISTEN_HOST = lhost and HP_IS_DEFAULT_HOST = 1))\n"
"signal (\'22023\', sprintf (\'The default directory is already specified for interface %s.\', lhost), \'HT058\');\n"
"\n"
"if (is_default_host = 1 and\n"
"exists (select 1 from DB.DBA.HTTP_PATH where HP_LISTEN_HOST = lhost and HP_HOST = lhost))\n"
"signal (\'22023\', sprintf (\'The default directory for interface %s conflicts with existing directory entry for host (%s) and interface (%s).\', lhost, lhost, lhost), \'HT059\');\n"
"\n"
"if (lhost[0] <> ascii (\'*\') and lport is not null and\n"
"lhost not like \':%\' and exists (select 1 from DB.DBA.HTTP_PATH where HP_LISTEN_HOST = \':\'||lport))\n"
"{\n"
"signal (\'22023\', \'The specified port to listen is already occupied by another listener on all network interfaces\', \'HT078\');\n"
"}\n"
"if (lhost[0] <> ascii (\'*\') and lport is not null and\n"
"lhost = \':\'||lport and exists (select 1 from DB.DBA.HTTP_PATH where HP_LISTEN_HOST like \'%_:\'||lport))\n"
"{\n"
"signal (\'22023\', \'The specified port to listen on all interfaces is already occupied by another listener on a separate network interface\', \'HT079\');\n"
"}\n"
"\n"
"if (isstring (server_http_port()) and isstring (lhost) and lhost <> \'*ini*\' and\n"
"lhost <> server_http_port() and lhost <> \'*sslini*\' and lhost <> ssl_port and\n"
"not exists (select 1 from DB.DBA.HTTP_PATH where HP_LISTEN_HOST = lhost))\n"
"{\n"
"http_listen_host (lhost, 0, ssl_opts);\n"
"}\n"
"\n"
"insert into DB.DBA.HTTP_PATH (HP_LPATH, HP_PPATH, HP_HOST, HP_LISTEN_HOST,\n"
"HP_STORE_AS_DAV, HP_DIR_BROWSEABLE, HP_PERSIST_SES_VARS,\n"
"HP_DEFAULT, HP_SECURITY, HP_AUTH_FUNC, HP_REALM,\n"
"HP_POSTPROCESS_FUNC, HP_RUN_VSP_AS, HP_RUN_SOAP_AS, HP_SOAP_OPTIONS, HP_AUTH_OPTIONS,\n"
"HP_OPTIONS, HP_IS_DEFAULT_HOST)\n"
"values (lpath, ppath, vhost, lhost, is_dav, is_brws, ses_vars,\n"
"def_page, sec, auth_fn, realm, ppr_fn, vsp_user, soap_user, serialize (soap_opts), serialize (auth_opts),\n"
"serialize (opts), is_default_host);\n"
"\n"
"if (isstring (server_http_port ()))\n"
"{\n"
"http_map_table (lpath, ppath, vhost, lhost, is_dav, is_brws, def_page,\n"
"sec, realm, auth_fn, ppr_fn, vsp_user, soap_user, ses_vars, soap_opts, auth_opts, opts, is_default_host);\n"
"}\n"
"\n"
"}\n"
"--src virtual_dir.sql:363\n";
static const char *proc32 =
"#line 499 \"[executable]/virtual_dir.sql\"\n"
"create procedure VHOST_MAP_RELOAD (in vhost varchar := \'*ini*\', in lhost varchar := \'*ini*\', in lpath varchar)\n"
"{\n"
"declare ssl_port, varr varchar;\n"
"declare ret int;\n"
"\n"
"if (DB.DBA.IS_EMPTY_OR_NULL (lpath) or DB.DBA.IS_EMPTY_OR_NULL (lhost))\n"
"return NULL;\n"
"http_map_del (lpath, vhost, lhost);\n"
"ret := 0;\n"
"for select\n"
"HP_LPATH,\n"
"HP_PPATH,\n"
"HP_HOST,\n"
"HP_LISTEN_HOST,\n"
"HP_STORE_AS_DAV,\n"
"HP_DIR_BROWSEABLE,\n"
"HP_DEFAULT,\n"
"HP_SECURITY,\n"
"HP_REALM,\n"
"HP_AUTH_FUNC,\n"
"HP_POSTPROCESS_FUNC,\n"
"HP_RUN_VSP_AS,\n"
"HP_RUN_SOAP_AS,\n"
"HP_PERSIST_SES_VARS,\n"
"HP_SOAP_OPTIONS,\n"
"HP_AUTH_OPTIONS,\n"
"HP_OPTIONS,\n"
"HP_IS_DEFAULT_HOST\n"
"from DB.DBA.HTTP_PATH where\n"
"HP_LPATH = lpath and HP_HOST = vhost and HP_LISTEN_HOST = lhost\n"
"do\n"
"{\n"
"http_map_table (\n"
"HP_LPATH,\n"
"HP_PPATH,\n"
"HP_HOST,\n"
"HP_LISTEN_HOST,\n"
"HP_STORE_AS_DAV,\n"
"HP_DIR_BROWSEABLE,\n"
"HP_DEFAULT,\n"
"HP_SECURITY,\n"
"HP_REALM,\n"
"HP_AUTH_FUNC,\n"
"HP_POSTPROCESS_FUNC,\n"
"HP_RUN_VSP_AS,\n"
"HP_RUN_SOAP_AS,\n"
"HP_PERSIST_SES_VARS,\n"
"deserialize (HP_SOAP_OPTIONS),\n"
"deserialize (HP_AUTH_OPTIONS),\n"
"deserialize (HP_OPTIONS),\n"
"HP_IS_DEFAULT_HOST);\n"
"ret := ret + 1;\n"
"}\n"
"return ret;\n"
"}\n"
"--src virtual_dir.sql:497\n";
static const char *proc33 =
"#line 557 \"[executable]/virtual_dir.sql\"\n"
"create procedure VHOST_REMOVE (in vhost varchar := \'*ini*\',\n"
"in lhost varchar := \'*ini*\',\n"
"in lpath varchar,\n"
"in del_vsps integer := 0)\n"
"{\n"
"declare ssl_port, varr, lport varchar;\n"
"declare ppath, vsp_user, stat, msg varchar;\n"
"declare cr cursor for select HP_PPATH, HP_RUN_VSP_AS from DB.DBA.HTTP_PATH\n"
"where HP_LISTEN_HOST = lhost and HP_HOST = vhost and HP_LPATH = lpath;\n"
"if (DB.DBA.IS_EMPTY_OR_NULL (lpath) or DB.DBA.IS_EMPTY_OR_NULL (lhost))\n"
"return NULL;\n"
"\n"
"if (length (lpath) > 1 and aref (lpath, length (lpath) - 1) = ascii (\'/\') )\n"
"lpath := substring (lpath, 1, length (lpath) - 1);\n"
"\n"
"lhost := replace (lhost, \'0.0.0.0\', \'\');\n"
"\n"
"ssl_port := coalesce (server_https_port (), \'\');\n"
"if (isstring (server_http_port ()))\n"
"{\n"
"varr := split_and_decode (\n"
"case\n"
"when vhost = \'*ini*\' then server_http_port ()\n"
"when vhost = \'*sslini*\' then ssl_port\n"
"else vhost\n"
"end\n"
", 0, \':=:\');\n"
"lport := split_and_decode (\n"
"case\n"
"when lhost = \'*ini*\' then server_http_port ()\n"
"when lhost = \'*sslini*\' then ssl_port\n"
"else lhost\n"
"end\n"
", 0, \':=:\');\n"
"if (__tag (varr) = 193 and length (varr) > 1)\n"
"vhost := varr[0];\n"
"if (__tag (lport) = 193 and length (lport) > 1)\n"
"lport := aref (lport, 1);\n"
"else if (lhost = \'*ini*\')\n"
"lport := server_http_port ();\n"
"else if (lhost = \'*sslini*\')\n"
"lport := ssl_port;\n"
"else if (atoi (lhost))\n"
"lport := lhost;\n"
"else\n"
"lport := \'80\';\n"
"}\n"
"else\n"
"lport := null;\n"
"if (lport = server_http_port () and lhost <> \'*ini*\')\n"
"lhost := \'*ini*\';\n"
"else if (lport = ssl_port and lhost <> \'*sslini*\')\n"
"lhost := \'*sslini*\';\n"
"\n"
"whenever not found goto err_exit;\n"
"open cr (exclusive, prefetch 1);\n"
"fetch cr into ppath, vsp_user;\n"
"delete from DB.DBA.HTTP_PATH where current of cr;\n"
"http_map_del (lpath, vhost, lhost);\n"
"\n"
"if (lhost <> \'*ini*\' and lhost <> server_http_port() and\n"
"lhost <> \'*sslini*\' and lhost <> ssl_port and\n"
"not exists (select 1 from DB.DBA.HTTP_PATH where HP_LISTEN_HOST = lhost))\n"
"{\n"
"http_listen_host (lhost, 1);\n"
"}\n"
"for select P_NAME from DB.DBA.SYS_PROCEDURES where del_vsps and P_NAME like concat (\'WS.WS.\', ppath, \'%\')\n"
"and P_OWNER = vsp_user do\n"
"{\n"
"stat := \'00000\'; msg := \'\';\n"
"exec (sprintf (\'DROP PROCEDURE \"%I\"\', P_NAME), stat, msg);\n"
"}\n"
"err_exit:\n"
"close cr;\n"
"}\n"
"--src virtual_dir.sql:555\n";
static const char *other866 =
" WS.WS.URIQA_VHOST_RESET()\n";
static const char *other867 =
" WS.WS.SPARQL_VHOST_RESET()\n";
static const char *proc34 =
"#line 644 \"[executable]/virtual_dir.sql\"\n"
"create procedure\n"
"HTTP_PROXY_ACCESS (in dst varchar)\n"
"returns integer\n"
"{\n"
"declare client varchar;\n"
"declare host, ppath any;\n"
"declare rc, rcc int;\n"
"\n"
"\n"
"ppath := http_map_get (\'mounted\');\n"
"if (lower (ppath) like \'http://%\')\n"
"return 1;\n"
"\n"
"\n"
"rc := 0;\n"
"\n"
"\n"
"client := http_client_ip ();\n"
"host := split_and_decode (dst, 0, \'\\0\\0:\');\n"
"\n"
"dst := host[0];\n"
"\n"
"rcc := http_acl_get (\'PROXY\', client, dst);\n"
"if (0 = rcc)\n"
"rc := 1;\n"
"\n"
"return rc;\n"
"}\n"
"--src virtual_dir.sql:642\n";
static const char *tbl29 =
"create table WS.WS.SYS_RC_CACHE\n"
"(RC_URI varchar,\n"
"RC_DATA long varchar,\n"
"RC_INVALIDATE varchar,\n"
"RC_DT datetime,\n"
"RC_TAG varchar,\n"
"RC_CHARSET varchar,\n"
"primary key (RC_URI)\n"
")\n"
"create index RC_IN on WS.WS.SYS_RC_CACHE (RC_INVALIDATE)\n";
static const char *tbl30 =
"create table WS.WS.SYS_CACHEABLE (CA_URI varchar, CA_CHECK varchar, primary key (CA_URI))\n";
static const char *trig9 =
"#line 708 \"[executable]/virtual_dir.sql\"\n"
"create trigger SYS_CACHEABLE_I after insert on WS.WS.SYS_CACHEABLE\n"
"{\n"
"http_url_cache_set (CA_URI, CA_CHECK);\n"
"}\n"
"--src virtual_dir.sql:706\n";
static const char *trig10 =
"#line 714 \"[executable]/virtual_dir.sql\"\n"
"create trigger SYS_CACHEABLE_U after update on WS.WS.SYS_CACHEABLE referencing old as O, new as N\n"
"{\n"
"http_url_cache_set (N.CA_URI, N.CA_CHECK);\n"
"}\n"
"--src virtual_dir.sql:712\n";
static const char *trig11 =
"#line 720 \"[executable]/virtual_dir.sql\"\n"
"create trigger SYS_CACHEABLE_D after delete on WS.WS.SYS_CACHEABLE\n"
"{\n"
"http_url_cache_remove (CA_URI);\n"
"delete from WS.WS.SYS_RC_CACHE where RC_URI = CA_URI;\n"
"}\n"
"--src virtual_dir.sql:718\n";
static const char *proc35 =
"#line 727 \"[executable]/virtual_dir.sql\"\n"
"create procedure WS.WS.HTTP_CACHE_CHECK (inout path any, inout lines any, inout check_fn any)\n"
"{\n"
"declare inv, rc, cnt, tag, charset, url, qstr, sch any;\n"
"inv := null;\n"
"\n"
"if (is_https_ctx ())\n"
"sch := \'https://\';\n"
"else\n"
"sch := \'http://\';\n"
"\n"
"qstr := http_request_get (\'QUERY_STRING\');\n"
"url := sch || http_request_header(lines, \'Host\', null, \'\') || path;\n"
"if (length (qstr))\n"
"url := url || \'?\' || qstr;\n"
"rc := call (check_fn) (url, lines, inv);\n"
"\n"
"if (rc)\n"
"{\n"
"whenever not found goto nf;\n"
"select RC_DATA, RC_TAG, RC_CHARSET into cnt, tag, charset from WS.WS.SYS_RC_CACHE where RC_URI = url;\n"
"commit work;\n"
"if (cnt is not null)\n"
"{\n"
"declare ses, ctag any;\n"
"ctag := http_request_header (lines, \'If-None-Match\');\n"
"if (not isstring (ctag))\n"
"ctag := \'\';\n"
"if (ctag <> tag)\n"
"{\n"
"if (charset is not null)\n"
"{\n"
"set http_charset=charset;\n"
"}\n"
"http_header (concat (http_header_get (), sprintf (\'ETag: \"%s\"\\r\\n\', tag)));\n"
"http (cnt);\n"
"}\n"
"else\n"
"{\n"
"http_request_status (\'HTTP/1.1 304 Not Modified\');\n"
"}\n"
"}\n"
"else\n"
"{\n"
"http (\'<HTML><HEAD><META HTTP-EQUIV=\"REFRESH\" CONTENT=\"1\" /></HEAD>\');\n"
"http (\'<BODY>\');\n"
"http (\'<P>if you see this for longer than 1 second, please <a href=\"\">click here</a> or reload.</P>\');\n"
"http (\'</BODY>\');\n"
"http (\'</HTML>\');\n"
"}\n"
"return 1;\n"
"nf:\n"
"insert into WS.WS.SYS_RC_CACHE (RC_URI, RC_INVALIDATE, RC_DT) values (url, inv, now ());\n"
"commit work;\n"
"\n"
"return 2;\n"
"}\n"
"return 0;\n"
"}\n"
"--src virtual_dir.sql:725\n";
static const char *proc36 =
"#line 787 \"[executable]/virtual_dir.sql\"\n"
"create procedure WS.WS.HTTP_CACHE_STORE (inout path any, inout store int)\n"
"{\n"
"declare tag, cnt any;\n"
"declare url, qstr, sch any;\n"
"\n"
"if (is_https_ctx ())\n"
"sch := \'https://\';\n"
"else\n"
"sch := \'http://\';\n"
"\n"
"qstr := http_request_get (\'QUERY_STRING\');\n"
"url := sch || http_request_header(http_request_header (), \'Host\', null, \'\') || path;\n"
"if (length (qstr))\n"
"url := url || \'?\' || qstr;\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"if (not store)\n"
"{\n"
"delete from WS.WS.SYS_RC_CACHE where RC_URI = url;\n"
"return;\n"
"}\n"
"\n"
"tag := uuid ();\n"
"update WS.WS.SYS_RC_CACHE set RC_DATA = http_get_string_output (1000000),\n"
"RC_TAG = tag,\n"
"RC_CHARSET = http_current_charset ()\n"
"where RC_URI = url;\n"
"if (row_count ())\n"
"{\n"
"http_header (concat (http_header_get (), \'ETag: \"\', tag, \'\"\\r\\n\'));\n"
"}\n"
"}\n"
"--src virtual_dir.sql:785\n";
static const char *proc37 =
"#line 825 \"[executable]/virtual_dir.sql\"\n"
"create procedure virt_proxy_init ()\n"
"{\n"
"if (not exists (select 1 from \"DB\".\"DBA\".\"SYS_USERS\" where U_NAME = \'PROXY\'))\n"
"DB.DBA.USER_CREATE (\'PROXY\', uuid(), vector (\'DISABLED\', 1));\n"
"if (registry_get (\'DB.DBA.virt_proxy_init_state\') = \'1.1\')\n"
"return;\n"
"DB.DBA.URLREWRITE_CREATE_REGEX_RULE (\'ext_http_proxy_rule_1\', 1,\n"
"\'/proxy/([^/\\?\\&]*)?/?([^/\\?\\&:]*)/(.*)\', vector (\'force\', \'login\', \'url\'), 2,\n"
"\'/proxy?url=%U&force=%U&login=%U\', vector (\'url\', \'force\', \'login\'), null, null, 2);\n"
"DB.DBA.URLREWRITE_CREATE_RULELIST (\'ext_http_proxy_rule_list1\', 1, vector (\'ext_http_proxy_rule_1\'));\n"
"DB.DBA.VHOST_REMOVE (lpath=>\'/proxy\');\n"
"DB.DBA.VHOST_DEFINE (lpath=>\'/proxy\', ppath=>\'/SOAP/Http/ext_http_proxy\', soap_user=>\'PROXY\',\n"
"opts=>vector(\'url_rewrite\', \'ext_http_proxy_rule_list1\'));\n"
"registry_set (\'DB.DBA.virt_proxy_init_state\', \'1.1\');\n"
"}\n"
"--src virtual_dir.sql:823\n";
static const char *proc38 =
"#line 842 \"[executable]/virtual_dir.sql\"\n"
"create procedure\n"
"proxy_sp_html_error_page (in title varchar, in hd varchar, in message varchar)\n"
"{\n"
"http (\'<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\');\n"
"http (\'<html>\');\n"
"http (\'<head>\');\n"
"http (\' <title>\' || title || \'</title>\');\n"
"http (\' <style type=\"text/css\">\');\n"
"http (\' </style>\');\n"
"http (\'</head>\');\n"
"http (\'<body>\');\n"
"http (\' <h1>\' || hd || \'</h1>\');\n"
"http (\' <p>\' || message || \'</p>\');\n"
"http (\'</body>\');\n"
"http (\'</html>\');\n"
"}\n"
"--src virtual_dir.sql:840\n";
static const char *proc39 =
"#line 866 \"[executable]/virtual_dir.sql\"\n"
"create procedure\n"
"str_fmt (in fmt_str varchar, in parm_arr any)\n"
"{\n"
"declare f_l,l,p,st,cnt integer;\n"
"declare s varchar;\n"
"\n"
"s := \'\';\n"
"st := 1;\n"
"l := length (parm_arr);\n"
"f_l := length (fmt_str);\n"
"\n"
"while (1)\n"
"{\n"
"p := locate (\'%\', fmt_str, st);\n"
"\n"
"if (p = 0)\n"
"{\n"
"if (cnt < l)\n"
"signal (\'42000\',\'Too many values in parm_arr in str_fmt\');\n"
"\n"
"if (cnt > l)\n"
"signal (\'42000\', \'Too few values in parm_arr in str_fmt\');\n"
"\n"
"if (st < f_l)\n"
"s := s || subseq (fmt_str, st-1, f_l);\n"
"return s;\n"
"}\n"
"\n"
"\n"
"\n"
"p := p + 1;\n"
"\n"
"s := s || sprintf (subseq (fmt_str, st-1, p), parm_arr[cnt]);\n"
"cnt := cnt + 1;\n"
"st := p + 1;\n"
"}\n"
"}\n"
"--src virtual_dir.sql:864\n";
static const char *tbl31 =
"create table DB.DBA.PROXY_SP_QRY (\n"
"pspq_id integer identity,\n"
"pspq_qry varchar,\n"
"pspq_n_parms integer,\n"
"pspq_def_values any,\n"
"pspq_descr varchar,\n"
"pspq_expln varchar,\n"
"pspq_isparql_path varchar,\n"
"primary key (pspq_id)\n"
")\n";
static const char *proc40 =
"#line 920 \"[executable]/virtual_dir.sql\"\n"
"create procedure\n"
"ext_http_proxy_exec_qry (in exec varchar, in params any)\n"
"{\n"
"declare qt, stat, msg, accept varchar;\n"
"declare metas, rset, triples, ses any;\n"
"declare parm_arr any;\n"
"\n"
"stat := \'00000\';\n"
"\n"
"set_user_id (\'SPARQL\');\n"
"\n"
"declare exit handler for not found\n"
"{\n"
"http_request_status (\'HTTP/1.1 400 Bad request\');\n"
"proxy_sp_html_error_page (\'Error: invalid query id\', \'Invalid Query ID\', \'The query id was invalid.\');\n"
"};\n"
"\n"
"declare _qry varchar;\n"
"declare _n_parms integer;\n"
"\n"
"select pspq_qry, pspq_n_parms\n"
"into _qry, _n_parms\n"
"from proxy_sp_qry\n"
"where pspq_id = exec;\n"
"\n"
"parm_arr := make_array (_n_parms, \'any\');\n"
"\n"
"declare parm_cnt integer;\n"
"parm_cnt := 0;\n"
"\n"
"for (declare i, l int, i := 0, l := length (params); i < l; i := i + 2)\n"
"{\n"
"if (params[i] like \'p%\')\n"
"{\n"
"aset (parm_arr, atoi (\"RIGHT\" (params[i], length (params[i]) - 1)) - 1, params[i+1]);\n"
"parm_cnt := parm_cnt + 1;\n"
"}\n"
"}\n"
"\n"
"if (parm_cnt < _n_parms)\n"
"{\n"
"http_rewrite();\n"
"http_request_status (\'HTTP/1.1 400 Bad request\');\n"
"proxy_sp_html_error_page (\'Error: insufficient no of params\',\n"
"\'Insufficient number of parameters\',\n"
"\'This query takes exactly \' || cast (_n_parms as varchar) || \' parameters\');\n"
"return;\n"
"}\n"
"\n"
"declare xec_str varchar;\n"
"xec_str := str_fmt (_qry, parm_arr);\n"
"exec (xec_str, stat, msg, vector (), 0, metas, rset);\n"
"\n"
"accept := \'application/rdf+xml\';\n"
"\n"
"if (stat <> \'00000\')\n"
"signal (stat, msg);\n"
"\n"
"ses := string_output (1000000);\n"
"commit work;\n"
"\n"
"http_rewrite();\n"
"\n"
"if (rset is not null)\n"
"DB.DBA.SPARQL_RESULTS_WRITE (ses, metas, rset, accept, 1);\n"
"\n"
"http (ses);\n"
"}\n"
"--src virtual_dir.sql:918\n";
static const char *proc41 =
"#line 992 \"[executable]/virtual_dir.sql\"\n"
"create procedure\n"
"ext_http_proxy (in url varchar := null,\n"
"in exec varchar := null,\n"
"in header varchar := null,\n"
"in force varchar := null,\n"
"in \"output-format\" varchar := null,\n"
"in get varchar := \'add\',\n"
"in login varchar := \'\') __SOAP_HTTP \'text/html\'\n"
"{\n"
"declare hdr, content, req_hdr any;\n"
"declare ct, in_hdr, new_hdr varchar;\n"
"declare stat, msg, metas, accept, rset, triples, ses, arr any;\n"
"declare local_qry integer;\n"
"declare params, ids any;\n"
"\n"
"local_qry := 0;\n"
"params := http_param ();\n"
"\n"
"\n"
"in_hdr := http_header_get ();\n"
"new_hdr := \'\';\n"
"if (in_hdr is not null)\n"
"new_hdr := regexp_replace (in_hdr, \'Content-Type:[^\\r\\n]+\\r\\n\', \'\');\n"
"http_header (new_hdr);\n"
"\n"
"if (exec is not null)\n"
"{\n"
"ext_http_proxy_exec_qry (exec, params);\n"
"return \'\';\n"
"}\n"
"\n"
"req_hdr := null;\n"
"\n"
"if (header is not null)\n"
"req_hdr := header;\n"
"\n"
"if (0 = length (url))\n"
"{\n"
"http_rewrite();\n"
"http_request_status (\'HTTP/1.1 400 Bad request\');\n"
"proxy_sp_html_error_page (\'Error: insufficient no of params\',\n"
"\'Insufficient number of parameters\',\n"
"\'This service expects \"url\" input argument which is not supplied.\');\n"
"return \'\';\n"
"}\n"
"\n"
"arr := rfc1808_parse_uri (url);\n"
"arr[5] := \'\';\n"
"\n"
"if (arr[0] = \'nodeID\')\n"
"arr[2] := \'\';\n"
"\n"
"url := DB.DBA.vspx_uri_compose (arr);\n"
"\n"
"if (force is not null)\n"
"{\n"
"if (lower (force) = \'rdf\')\n"
"{\n"
"declare defs, host, pref, sponge any;\n"
"defs := \'\';\n"
"for (declare i,l int, i := 0, l := length (params); i < l; i := i + 2)\n"
"{\n"
"if (params[i] like \'sparql_%\')\n"
"{\n"
"declare nam varchar;\n"
"nam := subseq (params[i], 7);\n"
"if (nam in (\'local\')) {\n"
"local_qry := 1;\n"
"defs := \'\';\n"
"goto end_loop;\n"
"}\n"
"if (nam in (\'input:grab-depth\', \'input:grab-limit\', \'sql:log-enable\', \'sql:signal-void-variables\'))\n"
"defs := defs || \' define \'||nam||\' \'||params[i+1]||\' \';\n"
"else\n"
"defs := defs || \' define \'||nam||\' \"\'||params[i+1]||\'\" \';\n"
"}\n"
"}\n"
"end_loop:;\n"
"set http_charset=\'utf-8\';\n"
"accept := \'\';\n"
"if (header is not null and length (header))\n"
"accept := http_request_header (split_and_decode (header, 0, \'\\0\\0\\r\\n\'), \'Accept\', null, null);\n"
"else\n"
"{\n"
"accept := http_request_header_full (http_request_header(), \'Accept\', \'*/*\');\n"
"accept := HTTP_RDF_GET_ACCEPT_BY_Q (accept);\n"
"if (accept is null or accept = \'*/*\')\n"
"accept := \'application/rdf+xml\';\n"
"}\n"
"if (\"output-format\" is not null)\n"
"{\n"
"if (\"output-format\" = \'rdf\' or \"output-format\" = \'rdf+xml\' or \"output-format\" = \'xml\')\n"
"accept := \'application/rdf+xml\';\n"
"else if (\"output-format\" = \'ttl\' or \"output-format\" = \'turtle\' or \"output-format\" = \'n3\')\n"
"accept := \'text/rdf+n3\';\n"
"else if (\"output-format\" = \'nt\' or \"output-format\" = \'txt\')\n"
"accept := \'text/n3\';\n"
"else if (\"output-format\" = \'json\')\n"
"accept := \'application/json\';\n"
"else\n"
"accept := \"output-format\";\n"
"}\n"
"stat := \'00000\';\n"
"if (get not in (\'soft\', \'replacing\', \'add\'))\n"
"get := \'add\';\n"
"if (length (login))\n"
"login := concat (\'define get:login \"\', login, \'\" \');\n"
"else\n"
"login := \'\';\n"
"host := http_request_header(http_request_header(), \'Host\', null, null);\n"
"ids := vector (\'rdf\', \'id/entity\', \'id\');\n"
"if (not exists (select 1 from RDF_QUAD where G = iri_to_id (url, 0)))\n"
"{\n"
"foreach (varchar idn in ids) do\n"
"{\n"
"pref := \'http://\' || host || http_map_get (\'domain\') || \'/\' || idn || \'/\';\n"
"if (url like pref || \'%\')\n"
"{\n"
"url := subseq (url, length (pref));\n"
"if (url like \'http/%\')\n"
"url := \'http:/\' || subseq (url, 4);\n"
"else if (url like \'https/%\')\n"
"url := \'https:/\' || subseq (url, 5);\n"
"else if (url like \'nodeID/%\')\n"
"url := \'nodeID:/\' || subseq (url, 6);\n"
"}\n"
"}\n"
"}\n"
"\n"
"url := replace (url, \'\'\'\', \'%27\');\n"
"url := replace (url, \'<\', \'%3C\');\n"
"url := replace (url, \'>\', \'%3E\');\n"
"url := replace (url, \' \', \'%20\');\n"
"\n"
"sponge := sprintf (\'define get:soft \"%s\"\', get);\n"
"\n"
"set_user_id (\'SPARQL\');\n"
"\n"
"if (local_qry)\n"
"{\n"
"exec (sprintf (\'sparql %s DESCRIBE <%S>\', defs, url), stat, msg, vector (), 0, metas, rset);\n"
"}\n"
"\n"
"else\n"
"if (url not like \'nodeID://%\')\n"
"{\n"
"exec (sprintf (\'sparql %s %s %s CONSTRUCT { ?s ?p ?o } FROM <%S> WHERE { ?s ?p ?o }\',\n"
"defs, login, sponge, url), stat, msg, vector (), 0, metas, rset);\n"
"}\n"
"else\n"
"{\n"
"exec (sprintf (\'sparql %s DESCRIBE <%S>\', defs, url), stat, msg, vector (), 0, metas, rset);\n"
"}\n"
"\n"
"if (stat <> \'00000\')\n"
"signal (stat, msg);\n"
"\n"
"ses := string_output (1000000);\n"
"commit work;\n"
"DB.DBA.SPARQL_RESULTS_WRITE (ses, metas, rset, accept, 1);\n"
"\n"
"for select HS_EXPIRATION, HS_LAST_MODIFIED, HS_LAST_ETAG\n"
"from DB.DBA.SYS_HTTP_SPONGE where HS_LOCAL_IRI = url and HS_PARSER = \'DB.DBA.RDF_LOAD_HTTP_RESPONSE\' do\n"
"{\n"
"if (HS_LAST_MODIFIED is not null)\n"
"http_header (http_header_get () || sprintf (\'Last-Modified: %s\\r\\n\', date_rfc1123 (HS_LAST_MODIFIED)));\n"
"if (HS_LAST_ETAG is not null)\n"
"http_header (http_header_get () || sprintf (\'ETag: %s\\r\\n\', HS_LAST_ETAG));\n"
"if (HS_EXPIRATION is not null)\n"
"http_header (http_header_get () || sprintf (\'Expires: %s\\r\\n\', date_rfc1123 (HS_EXPIRATION)));\n"
"}\n"
"\n"
"http (ses);\n"
"return \'\';\n"
"}\n"
"else\n"
"signal (\'22023\', \'The \"force\" parameter supports \"rdf\"\');\n"
"}\n"
"{\n"
"declare meth varchar;\n"
"declare body varchar;\n"
"declare pars, head any;\n"
"pars := http_param ();\n"
"head := http_request_header ();\n"
"meth := http_request_get (\'REQUEST_METHOD\');\n"
"body := \'\';\n"
"for (declare i, l int, i := 0, l := length (pars); i < l; i := i + 2)\n"
"{\n"
"if (pars[i] <> \'url\' and pars[i] <> \'header\')\n"
"body := body || sprintf (\'%U=%U&\', pars[i], pars[i + 1]);\n"
"}\n"
"if (length (body))\n"
"body := rtrim (body, \'&\');\n"
"else\n"
"body := null;\n"
"if (body is null and meth = \'POST\')\n"
"meth := \'GET\';\n"
"if (req_hdr is null)\n"
"{\n"
"req_hdr := \'\';\n"
"for (declare i, l int, i := 1, l := length (head); i < l; i := i + 1)\n"
"{\n"
"if (lower (head[i]) not like \'host:%\' and\n"
"lower (head[i]) not like \'keep-alive:%\' and\n"
"lower (head[i]) not like \'content-length:%\' and\n"
"lower (head[i]) not like \'connection:%\')\n"
"req_hdr := req_hdr || head[i];\n"
"}\n"
"req_hdr := rtrim (req_hdr, \'\\n\');\n"
"req_hdr := rtrim (req_hdr, \'\\r\');\n"
"req_hdr := rtrim (req_hdr, \'\\n\');\n"
"if (length (req_hdr) = 0)\n"
"req_hdr := null;\n"
"}\n"
"content := DB.DBA.RDF_HTTP_URL_GET (url, \'\', hdr, meth, req_hdr, body);\n"
"}\n"
"ct := http_request_header (hdr, \'Content-Type\');\n"
"if (ct is not null)\n"
"http_header (sprintf (\'Content-Type: %s\\r\\n\', ct));\n"
"\n"
"foreach (any hd in hdr) do\n"
"{\n"
"if (regexp_match (\'(etag:)|(expires:)|(last-modified:)|(pragma:)|(cache-control:)\', lower (hd)) is not null)\n"
"http_header (http_header_get () || hd);\n"
"}\n"
"\n"
"http (content);\n"
"return \'\';\n"
"}\n"
"--src virtual_dir.sql:990\n";
static const char *proc42 =
"#line 1223 \"[executable]/virtual_dir.sql\"\n"
"create procedure\n"
"DB.DBA.VHOST_DUMP_SQL (in lpath varchar, in vhost varchar := \'*ini*\', in lhost varchar := \'*ini*\')\n"
"{\n"
"declare ses any;\n"
"ses := string_output ();\n"
"for select\n"
"HP_PPATH,\n"
"HP_STORE_AS_DAV,\n"
"HP_DIR_BROWSEABLE,\n"
"HP_DEFAULT,\n"
"HP_SECURITY,\n"
"HP_REALM,\n"
"HP_AUTH_FUNC,\n"
"HP_POSTPROCESS_FUNC,\n"
"HP_RUN_VSP_AS,\n"
"HP_RUN_SOAP_AS,\n"
"HP_PERSIST_SES_VARS,\n"
"HP_SOAP_OPTIONS,\n"
"HP_AUTH_OPTIONS,\n"
"HP_OPTIONS,\n"
"HP_IS_DEFAULT_HOST\n"
"from\n"
"DB.DBA.HTTP_PATH\n"
"where HP_HOST = vhost and HP_LISTEN_HOST = lhost and HP_LPATH = lpath\n"
"do\n"
"{\n"
"http (\'DB.DBA.VHOST_REMOVE (\\n\', ses);\n"
"http (concat (\'\\t lhost=>\', SYS_SQL_VAL_PRINT (lhost), \',\\n\'), ses);\n"
"http (concat (\'\\t vhost=>\', SYS_SQL_VAL_PRINT (vhost), \',\\n\'), ses);\n"
"http (concat (\'\\t lpath=>\', SYS_SQL_VAL_PRINT (lpath), \'\\n\'), ses);\n"
"http (\');\\n\\n\', ses);\n"
"http (\'DB.DBA.VHOST_DEFINE (\\n\', ses);\n"
"http (concat (\'\\t lhost=>\', SYS_SQL_VAL_PRINT (lhost), \',\\n\'), ses);\n"
"http (concat (\'\\t vhost=>\', SYS_SQL_VAL_PRINT (vhost), \',\\n\'), ses);\n"
"http (concat (\'\\t lpath=>\', SYS_SQL_VAL_PRINT (lpath), \',\\n\'), ses);\n"
"http (concat (\'\\t ppath=>\', SYS_SQL_VAL_PRINT (HP_PPATH), \',\\n\'), ses);\n"
"http (concat (\'\\t is_dav=>\', SYS_SQL_VAL_PRINT (HP_STORE_AS_DAV), \',\\n\'), ses);\n"
"if (HP_DEFAULT is not null)\n"
"http (concat (\'\\t def_page=>\', SYS_SQL_VAL_PRINT (HP_DEFAULT), \',\\n\'), ses);\n"
"if (HP_SECURITY is not null)\n"
"http (concat (\'\\t sec=>\', SYS_SQL_VAL_PRINT (HP_SECURITY), \',\\n\'), ses);\n"
"if (HP_REALM is not null)\n"
"http (concat (\'\\t realm=>\', SYS_SQL_VAL_PRINT (HP_REALM), \',\\n\'), ses);\n"
"if (HP_AUTH_FUNC is not null)\n"
"http (concat (\'\\t auth_fn=>\', SYS_SQL_VAL_PRINT (HP_AUTH_FUNC), \',\\n\'), ses);\n"
"if (HP_POSTPROCESS_FUNC is not null)\n"
"http (concat (\'\\t ppr_fn=>\', SYS_SQL_VAL_PRINT (HP_POSTPROCESS_FUNC), \',\\n\'), ses);\n"
"if (HP_RUN_VSP_AS is not null)\n"
"http (concat (\'\\t vsp_user=>\', SYS_SQL_VAL_PRINT (HP_RUN_VSP_AS), \',\\n\'), ses);\n"
"if (HP_RUN_SOAP_AS is not null)\n"
"http (concat (\'\\t soap_user=>\', SYS_SQL_VAL_PRINT (HP_RUN_SOAP_AS), \',\\n\'), ses);\n"
"http (concat (\'\\t ses_vars=>\', SYS_SQL_VAL_PRINT (HP_PERSIST_SES_VARS), \',\\n\'), ses);\n"
"if (HP_SOAP_OPTIONS is not null and deserialize (HP_SOAP_OPTIONS) is not null)\n"
"http (concat (\'\\t soap_opts=>\', SYS_SQL_VAL_PRINT (deserialize (HP_SOAP_OPTIONS)), \',\\n\'), ses);\n"
"if (HP_AUTH_OPTIONS is not null and deserialize (HP_AUTH_OPTIONS) is not null)\n"
"http (concat (\'\\t auth_opts=>\', SYS_SQL_VAL_PRINT (deserialize (HP_AUTH_OPTIONS)), \',\\n\'), ses);\n"
"if (HP_OPTIONS is not null and deserialize (HP_OPTIONS) is not null)\n"
"http (concat (\'\\t opts=>\', SYS_SQL_VAL_PRINT (deserialize (HP_OPTIONS)), \',\\n\'), ses);\n"
"http (concat (\'\\t is_default_host=>\', SYS_SQL_VAL_PRINT (HP_IS_DEFAULT_HOST), \'\\n\'), ses);\n"
"http (\');\\n\\n\', ses);\n"
"}\n"
"return string_output_string (ses);\n"
"}\n"
"--src virtual_dir.sql:1221\n";
static const char *proc43 =
"#line 1289 \"[executable]/virtual_dir.sql\"\n"
"create procedure DB.DBA.HTTP_RDF_GET_ACCEPT_BY_Q (in accept varchar)\n"
"{\n"
"declare format, itm varchar;\n"
"declare arr any;\n"
"declare i, l int;\n"
"declare best_q, q double precision;\n"
"\n"
"arr := split_and_decode (accept, 0, \'\\0\\0,;\');\n"
"best_q := 0;\n"
"l := length (arr);\n"
"format := null;\n"
"for (i := 0; i < l; i := i + 2)\n"
"{\n"
"declare tmp any;\n"
"itm := trim(arr[i]);\n"
"q := arr[i+1];\n"
"if (q is null)\n"
"q := 1.0;\n"
"else\n"
"{\n"
"tmp := split_and_decode (q, 0, \'\\0\\0=\');\n"
"if (length (tmp) = 2)\n"
"q := atof (tmp[1]);\n"
"else\n"
"q := 1.0;\n"
"}\n"
"if (best_q < q)\n"
"{\n"
"best_q := q;\n"
"format := itm;\n"
"}\n"
"}\n"
"return format;\n"
"}\n"
"--src virtual_dir.sql:1287\n";
static const char *proc44 =
"#line 1325 \"[executable]/virtual_dir.sql\"\n"
"create procedure DB.DBA.HTTP_RDF_ACCEPT (in path varchar, in virtual_dir varchar, in lines any, in graph_mode int)\n"
"{\n"
"declare host, stat, msg, qry, data, meta, accept, format, graph, url, ssl varchar;\n"
"declare ses any;\n"
"\n"
"ses := 0;\n"
"host := http_request_header(lines, \'Host\', null, \'\');\n"
"accept := http_request_header_full (lines, \'Accept\', \'*/*\');\n"
"qry := http_request_get (\'QUERY_STRING\');\n"
"ssl := \'\';\n"
"if (is_https_ctx ())\n"
"ssl := \'s\';\n"
"if (length (qry))\n"
"path := path || \'?\' || qry;\n"
"\n"
"format := HTTP_RDF_GET_ACCEPT_BY_Q (accept);\n"
"\n"
"if (format is null)\n"
"accept := http_request_header (lines, \'Accept\', null, null);\n"
"\n"
"\n"
"set_user_id (\'SPARQL\');\n"
"stat := \'00000\';\n"
"graph := sprintf (\'FROM <http%s://%s%s>\', ssl, host, virtual_dir);\n"
"if (graph_mode = 2)\n"
"graph := \'\';\n"
"url := sprintf (\'http%s://%s%s\', ssl, host, path);\n"
"if (strchr (url, \'#\') is null)\n"
"qry := sprintf (\'SPARQL DESCRIBE <%s> <%s#this> %s\', url, url, graph);\n"
"else\n"
"qry := sprintf (\'SPARQL DESCRIBE <%s> %s\', url, graph);\n"
"exec (qry, stat, msg, vector (), 0, meta, data);\n"
"if (stat = \'00000\')\n"
"{\n"
"if (length (data) = 1 and length (dict_list_keys (data[0][0], 0)) > 0)\n"
"{\n"
"http_status_set (200);\n"
"http_rewrite ();\n"
"DB.DBA.SPARQL_RESULTS_WRITE (ses, meta, data, format, 1);\n"
"return 1;\n"
"}\n"
"}\n"
"else\n"
"signal (stat, msg);\n"
"return 0;\n"
"}\n"
"--src virtual_dir.sql:1323\n";
static const char *proc45 =
"#line 1373 \"[executable]/virtual_dir.sql\"\n"
"create procedure WS.WS.DIR_INDEX_MAKE_XML (inout _sheet varchar, in curdir varchar := null, in start_from varchar := null)\n"
"{\n"
"declare dirarr, filearr, fsize, xte_path, xte_list, xte_entry any;\n"
"declare dirname, root, modt varchar;\n"
"declare ix, len, flen, rflen, mult integer;\n"
"fsize := vector (\'b\',\'K\',\'M\',\'G\',\'T\');\n"
"if (curdir is null)\n"
"curdir := concat (http_root (), http_physical_path ());\n"
"if (start_from is null)\n"
"start_from := http_path ();\n"
"root := http_root ();\n"
"dirarr := sys_dirlist (curdir, 0, null, 1);\n"
"filearr := sys_dirlist (curdir, 1, null, 1);\n"
"if (curdir <> \'\\\\\' and aref (curdir, length (curdir) - 1) <> ascii (\'/\'))\n"
"curdir := concat (curdir, \'/\');\n"
"if (start_from <> \'/\' and aref (start_from, length (start_from) - 1) <> ascii (\'/\'))\n"
"start_from := concat (start_from, \'/\');\n"
"xte_nodebld_init (xte_path);\n"
"xte_nodebld_acc (xte_path, xte_node (xte_head (\'PATH\', \'dir_name\', start_from)));\n"
"if (aref (root, length (root) - 1) <> ascii (\'/\'))\n"
"root := concat (root, \'/\');\n"
"if (aref (curdir, length (curdir) - 1) <> ascii (\'/\'))\n"
"curdir := concat (curdir, \'/\');\n"
"len := length (dirarr);\n"
"ix := 0;\n"
"xte_nodebld_init (xte_list);\n"
"while (ix < len)\n"
"{\n"
"declare fst varchar;\n"
"dirname := aref (dirarr, ix);\n"
"fst := file_stat (concat (curdir, dirname));\n"
"if (isstring (fst))\n"
"modt := stringdate (fst);\n"
"else\n"
"modt := now();\n"
"if (dirname <> \'.\')\n"
"xte_nodebld_acc (xte_list, xte_node (xte_head (\'SUBDIR\', \'name\', sprintf(\'%U\',dirname),\n"
"\'modify\', soap_print_box (modt, \'\', 2) ) ) );\n"
"ix := ix + 1;\n"
"}\n"
"xte_nodebld_final (xte_list, xte_head (\'DIRS\'));\n"
"xte_nodebld_acc (xte_path, xte_list);\n"
"xte_nodebld_init (xte_list);\n"
"len := length (filearr);\n"
"ix := 0;\n"
"while (ix < len)\n"
"{\n"
"dirname := aref (filearr, ix);\n"
"modt := stringdate (file_stat (concat (curdir, dirname)));\n"
"rflen := 0;\n"
"rflen := file_stat (concat (curdir, dirname), 1);\n"
"flen := atoi (rflen);\n"
"mult := 0;\n"
"if (lower (dirname) = \'folder.xsl\')\n"
"_sheet := concat (curdir, dirname);\n"
"while ((flen / 1000) > 1)\n"
"{\n"
"mult := mult + 1;\n"
"flen := flen / 1000;\n"
"}\n"
"xte_nodebld_acc (xte_list, xte_node (xte_head (\'FILE\', \'name\', sprintf(\'%U\',dirname),\n"
"\'modify\', soap_print_box (modt, \'\', 2), \'rs\', rflen,\n"
"\'hs\', sprintf (\'%d %s\', flen, aref (fsize, mult)) ) ) );\n"
"ix := ix + 1;\n"
"}\n"
"xte_nodebld_final (xte_list, xte_head (\'FILES\'));\n"
"xte_nodebld_acc (xte_path, xte_list);\n"
"xte_nodebld_final (xte_path, xte_head (\'PATH\'));\n"
"return xml_tree_doc (xte_path);\n"
"}\n"
"--src virtual_dir.sql:1371\n";
static const char *other868 =
"xslt_sheet (\'http://local.virt/dir_output\', xml_tree_doc (\'\n"
"<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">\n"
"<xsl:output method=\"text\" encoding=\"UTF-8\" />\n"
"\n"
"<xsl:template match=\"PATH\">\n"
"<xsl:variable name=\"path\"><xsl:value-of select=\"@dir_name\"/></xsl:variable>\n"
"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n"
"<HTML>\n"
"<TITLE>Directory listing of <xsl:value-of select=\"\\044path\"/></TITLE>\n"
"<BODY bgcolor=\"#FFFFFF\" fgcolor=\"#000000\">\n"
"<H4>Index of <xsl:value-of select=\"\\044path\"/></H4>\n"
"<TABLE>\n"
"<tr><td colspan=2 align=\"center\">Name</td>\n"
"<td align=\"center\">Last modified</td><td align=\"center\">Size</td></tr>\n"
"<tr><td colspan=5><HR /></td></tr>\n"
"\n"
"<xsl:apply-templates select=\"DIRS\">\n"
"<xsl:with-param name=\"f_path\" select=\"\\044path\"/>\n"
"</xsl:apply-templates>\n"
"\n"
"<xsl:apply-templates select=\"FILES\">\n"
"<xsl:with-param name=\"f_path\" select=\"\\044path\"/>\n"
"</xsl:apply-templates>\n"
"\n"
"<tr><td colspan=5><HR /></td></tr>\n"
"</TABLE>\n"
"</BODY>\n"
"</HTML>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"SUBDIR\">\n"
"<xsl:param name=\"f_path\" />\n"
"<tr>\n"
"<td><img src=\"/conductor/images/dav_browser/foldr_16.png\" alt=\"folder\"></td>\n"
"<td><a href=\"<xsl:value-of select=\"\\044f_path\"/><xsl:value-of select=\"@name\"/>/\"><xsl:value-of select=\"@name\"/></a></td>\n"
"<td><xsl:value-of select=\"@modify\"/></td><td align=\"right\">-</td>\n"
"</tr>\n"
"</xsl:template>\n"
"\n"
"<xsl:template match=\"FILE\">\n"
"<xsl:param name=\"f_path\" />\n"
"<tr>\n"
"<td><img src=\"/conductor/images/dav_browser/file_gen_16.png\" alt=\"file\"></td>\n"
"<td><a href=\"<xsl:value-of select=\"\\044f_path\"/><xsl:value-of select=\"@name\"/>\"><xsl:value-of select=\"@name\"/></a></td>\n"
"<td><xsl:value-of select=\"@modify\"/></td><td align=\"right\"><xsl:value-of select=\"@hs\"/></td>\n"
"</tr>\n"
"</xsl:template>\n"
"\n"
"</xsl:stylesheet>\'))\n";
static const char *proc46 =
"#line 1498 \"[executable]/virtual_dir.sql\"\n"
"create procedure WS.WS.DIR_INDEX_XML (in path any, in params any, in lines any)\n"
"{\n"
"declare _html, _xml, _sheet varchar;\n"
"declare _b_opt any;\n"
"declare ssheet_name, ssheet_text varchar;\n"
"\n"
"_b_opt := NULL;\n"
"\n"
"if (exists (select 1 from HTTP_PATH\n"
"where HP_LPATH = http_map_get (\'domain\') and HP_PPATH = http_map_get (\'mounted\')))\n"
"select deserialize(HP_OPTIONS) into _b_opt from HTTP_PATH\n"
"where HP_LPATH = http_map_get (\'domain\') and HP_PPATH = http_map_get (\'mounted\');\n"
"\n"
"_sheet := \'\';\n"
"_xml := WS.WS.DIR_INDEX_MAKE_XML (_sheet);\n"
"\n"
"if (_b_opt is not NULL)\n"
"_b_opt := get_keyword (\'browse_sheet\', _b_opt, \'\');\n"
"\n"
"if (_sheet <> \'\')\n"
"{\n"
"ssheet_name := \'http://local.virt/custom_dir_output/\' || _sheet;\n"
"ssheet_text := file_to_string (_sheet);\n"
"}\n"
"else if (_b_opt <> \'\')\n"
"{\n"
"_b_opt := concat (http_root(), \'/\', _b_opt);\n"
"ssheet_name := \'http://local.virt/custom_dir_output/\' || _b_opt;\n"
"ssheet_text := file_to_string (_b_opt);\n"
"}\n"
"if (isstring (ssheet_name))\n"
"xslt_sheet (ssheet_name, xtree_doc (ssheet_text));\n"
"else\n"
"ssheet_name := \'http://local.virt/dir_output\';\n"
"set http_charset=\'UTF-8\';\n"
"return http_value (xslt (ssheet_name, _xml));\n"
"}\n"
"--src virtual_dir.sql:1496\n";
static const char *proc47 =
"#line 1537 \"[executable]/virtual_dir.sql\"\n"
"create procedure DB.DBA.SERVICES_WSIL (in path any, in params any, in lines any)\n"
"{\n"
"declare host, intf, requrl, proto, rhost varchar;\n"
"declare arr any;\n"
"host := http_map_get (\'vhost\');\n"
"intf := http_map_get (\'lhost\');\n"
"requrl := http_requested_url ();\n"
"arr := rfc1808_parse_uri (requrl);\n"
"proto := arr[0];\n"
"rhost := arr[1];\n"
"\n"
"if (host = server_http_port () and intf = server_http_port ())\n"
"{\n"
"host := \'*ini*\';\n"
"intf := \'*ini*\';\n"
"}\n"
"\n"
"http_header (\'Content-Type: text/xml\\r\\n\');\n"
"http(\'<?xml version=\"1.0\" ?>\');\n"
"http(\'<inspection xmlns=\"http://schemas.xmlsoap.org/ws/2001/10/inspection\">\');\n"
"for select HP_LPATH, deserialize (HP_SOAP_OPTIONS) as opts from DB.DBA.HTTP_PATH where HP_HOST = host and HP_LISTEN_HOST = intf and HP_PPATH = \'/SOAP/\' do\n"
"{\n"
"declare nam any;\n"
"nam := trim (HP_LPATH, \'/ \');\n"
"if (isarray (opts))\n"
"nam := get_keyword (\'ServiceName\', opts, nam);\n"
"http (\'<service>\');\n"
"http (sprintf (\'<name>%V</name>\', nam));\n"
"http (sprintf (\'<description referencedNamespace=\"http://schemas.xmlsoap.org/wsdl/\" location=\"%s://%s%s/services.wsdl\"/>\', proto, rhost, HP_LPATH));\n"
"http (\'</service>\');\n"
"}\n"
"http(\'</inspection>\');\n"
"}\n"
"--src virtual_dir.sql:1535\n";
static const char *tbl32 =
"create table WS.WS.HTTP_HOST_META (\n"
"HM_APP varchar primary key,\n"
"HM_META long varchar\n"
")\n";
static const char *proc48 =
"#line 1580 \"[executable]/virtual_dir.sql\"\n"
"create procedure WS.WS.host_meta_add (in app varchar, in meta varchar)\n"
"{\n"
"\n"
"xtree_doc (meta);\n"
"insert replacing WS.WS.HTTP_HOST_META (HM_APP, HM_META)\n"
"values (app, meta);\n"
"}\n"
"--src virtual_dir.sql:1578\n";
static const char *proc49 =
"#line 1589 \"[executable]/virtual_dir.sql\"\n"
"create procedure WS.WS.host_meta_del (in app varchar)\n"
"{\n"
"delete from WS.WS.HTTP_HOST_META where HM_APP = app;\n"
"}\n"
"--src virtual_dir.sql:1587\n";
static const char *proc50 =
"#line 1596 \"[executable]/virtual_dir.sql\"\n"
"create procedure WS.WS.\"host-meta\" (in format varchar := \'xml\') __SOAP_HTTP \'application/xrd+xml\'\n"
"{\n"
"declare ses, lines any;\n"
"declare ret, accept varchar;\n"
"ses := string_output ();\n"
"http (\'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\\n\', ses);\n"
"http (\'<XRD xmlns=\"http://docs.oasis-open.org/ns/xri/xrd-1.0\" xmlns:hm=\"http://host-meta.net/xrd/1.0\" Id=\"host-meta\">\\n\', ses);\n"
"http (sprintf (\' <hm:Host>%{WSHost}s</hm:Host>\\n\'), ses);\n"
"for select * from WS.WS.HTTP_HOST_META do\n"
"{\n"
"HM_META := sprintf (blob_to_string (HM_META));\n"
"http (\' \', ses);\n"
"http (HM_META, ses);\n"
"http (\'\\n\', ses);\n"
"}\n"
"http (\'</XRD>\\n\', ses);\n"
"ret := string_output_string (ses);\n"
"if (xenc_key_exists (\'id_rsa\') and __proc_exists (\'xml_sign\', 2) is not null)\n"
"{\n"
"ret := xml_sign (ret, WS.WS.host_meta_dss (), \'http://docs.oasis-open.org/ns/xri/xrd-1.0:XRD\');\n"
"}\n"
"lines := http_request_header ();\n"
"accept := DB.DBA.HTTP_RDF_GET_ACCEPT_BY_Q (http_request_header_full (lines, \'Accept\', \'*/*\'));\n"
"if (format = \'json\' or accept = \'application/json\')\n"
"{\n"
"http_header (\'Content-Type: application/json\\r\\n\');\n"
"http_xslt (\'http://local.virt/xrd2json\');\n"
"}\n"
"return ret;\n"
"}\n"
"--src virtual_dir.sql:1594\n";
static const char *proc51 =
"#line 1628 \"[executable]/virtual_dir.sql\"\n"
"create procedure WS.WS.host_meta_init ()\n"
"{\n"
"if (not exists (select 1 from \"DB\".\"DBA\".\"SYS_USERS\" where U_NAME = \'WebMeta\'))\n"
"{\n"
"DB.DBA.USER_CREATE (\'WebMeta\', uuid(), vector (\'DISABLED\', 1));\n"
"EXEC_STMT (\'grant execute on WS.WS.\"host-meta\" to WebMeta\', 0);\n"
"}\n"
"\n"
"DB.DBA.VHOST_REMOVE (lpath=>\'/.well-known\');\n"
"DB.DBA.VHOST_DEFINE (lpath=>\'/.well-known\', ppath=>\'/SOAP/Http\', soap_user=>\'WebMeta\');\n"
"}\n"
"--src virtual_dir.sql:1626\n";
static const char *other869 =
"WS.WS.host_meta_init ()\n";
static const char *proc52 =
"#line 1644 \"[executable]/virtual_dir.sql\"\n"
"create procedure WS.WS.host_meta_dss ()\n"
"{\n"
"declare ses any;\n"
"ses := string_output ();\n"
"http (\'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\\n\', ses);\n"
"http (\'<Signature \\n\', ses);\n"
"http (\' xmlns=\"http://www.w3.org/2000/09/xmldsig#\" \\n\', ses);\n"
"http (\' xmlns:hm=\"http://host-meta.net/xrd/1.0\"\\n\', ses);\n"
"http (\' xmlns:xr=\"http://docs.oasis-open.org/ns/xri/xrd-1.0\"\\n\', ses);\n"
"http (\' >\\n\', ses);\n"
"http (\' <SignedInfo>\\n\', ses);\n"
"http (\' <CanonicalizationMethod Algorithm=\"http://www.w3.org/2001/10/xml-exc-c14n#\" />\\n\', ses);\n"
"http (\' <SignatureMethod Algorithm=\"http://www.w3.org/2000/09/xmldsig#rsa-sha1\" />\\n\', ses);\n"
"http (\' <Reference URI=\"#host-meta\">\\n\', ses);\n"
"http (\' <Transforms>\\n\', ses);\n"
"http (\' <Transform Algorithm=\"http://www.w3.org/2000/09/xmldsig#enveloped-signature\" />\\n\', ses);\n"
"http (\' </Transforms>\\n\', ses);\n"
"http (\' <DigestMethod Algorithm=\"http://www.w3.org/2000/09/xmldsig#sha1\" />\\n\', ses);\n"
"http (\' <DigestValue></DigestValue>\\n\', ses);\n"
"http (\' </Reference>\\n\', ses);\n"
"http (\' </SignedInfo>\\n\', ses);\n"
"http (\' <SignatureValue></SignatureValue>\\n\', ses);\n"
"http (\' <KeyInfo>\\n\', ses);\n"
"http (\' <KeyName>id_rsa</KeyName>\\n\', ses);\n"
"http (\' <KeyValue>\\n\', ses);\n"
"http (\' <X509Data></X509Data>\\n\', ses);\n"
"http (\' </KeyValue>\\n\', ses);\n"
"http (\' </KeyInfo>\\n\', ses);\n"
"http (\'</Signature>\\n\', ses);\n"
"return string_output_string (ses);\n"
"}\n"
"--src virtual_dir.sql:1642\n";
/* url_rewrite.sql */
static const char *tbl33 =
"create table DB.DBA.URL_REWRITE_RULE_LIST (\n"
"URRL_LIST varchar not null,\n"
"URRL_INX integer not null,\n"
"URRL_MEMBER varchar not null,\n"
"primary key (URRL_LIST, URRL_INX) )\n";
static const char *tbl34 =
"create table DB.DBA.URL_REWRITE_RULE (\n"
"URR_RULE varchar not null,\n"
"URR_RULE_TYPE integer not null,\n"
"URR_NICE_FORMAT varchar,\n"
"URR_NICE_PARAMS any,\n"
"URR_NICE_MIN_PARAMS integer,\n"
"URR_TARGET_FORMAT varchar,\n"
"URR_TARGET_PARAMS any,\n"
"URR_TARGET_EXPR varchar,\n"
"URR_ACCEPT_PATTERN varchar,\n"
"URR_NO_CONTINUATION int,\n"
"URR_HTTP_REDIRECT int,\n"
"URR_HTTP_HEADERS varchar,\n"
"primary key (URR_RULE) )\n";
static const char *tbl35 =
"create table DB.DBA.HTTP_VARIANT_MAP (\n"
"VM_ID integer identity,\n"
"VM_RULELIST varchar,\n"
"VM_URI varchar,\n"
"VM_VARIANT_URI varchar,\n"
"VM_QS float,\n"
"VM_TYPE varchar,\n"
"VM_LANG varchar,\n"
"VM_ENC varchar,\n"
"VM_DESCRIPTION long varchar,\n"
"VM_ALGO int default 0,\n"
"VM_CONTENT_LOCATION_HOOK varchar,\n"
"primary key (VM_RULELIST, VM_URI, VM_VARIANT_URI))\n"
"create unique index HTTP_VARIANT_MAP_ID on DB.DBA.HTTP_VARIANT_MAP (VM_ID)\n";
static const char *proc53 =
"#line 87 \"[executable]/url_rewrite.sql\"\n"
"create procedure DB.DBA.URLREWRITE_CREATE_RULE (\n"
"in rule_type int,\n"
"in rule_iri varchar,\n"
"in allow_update integer,\n"
"in nice_format varchar,\n"
"in nice_params any,\n"
"in nice_min_params integer,\n"
"in target_format varchar,\n"
"in target_params any,\n"
"in target_expn varchar := NULL,\n"
"in accept_pattern varchar := null,\n"
"in dont_continue int := 0,\n"
"in http_redirect int := null,\n"
"in http_headers varchar := null)\n"
"{\n"
"if (exists (select 1 from DB.DBA.URL_REWRITE_RULE_LIST where URRL_LIST = rule_iri))\n"
"signal (\'42000\', \'Rule IRI \' || rule_iri || \' is already in use as rule list IRI\');\n"
"if (exists (select 1 from DB.DBA.URL_REWRITE_RULE where URR_RULE = rule_iri))\n"
"{\n"
"if (not allow_update)\n"
"signal (\'42000\', \'Rule IRI \' || rule_iri || \' is already in use as rule IRI\');\n"
"}\n"
"if (rule_type = 1)\n"
"{\n"
"declare exit handler for sqlstate \'*\'\n"
"{\n"
"signal (__SQL_STATE, \'The URL matching pattern is an invalid REGEX.\');\n"
"};\n"
"regexp_match (nice_format, \'\');\n"
"}\n"
"if (length (accept_pattern))\n"
"{\n"
"declare exit handler for sqlstate \'*\'\n"
"{\n"
"signal (__SQL_STATE, \'The Accept header patter is an invalid REGEX.\');\n"
"};\n"
"regexp_match (accept_pattern, \'\');\n"
"}\n"
"\n"
"insert replacing DB.DBA.URL_REWRITE_RULE (URR_RULE, URR_RULE_TYPE, URR_NICE_FORMAT, URR_NICE_PARAMS, URR_NICE_MIN_PARAMS, URR_TARGET_FORMAT, URR_TARGET_PARAMS, URR_TARGET_EXPR, URR_ACCEPT_PATTERN, URR_NO_CONTINUATION, URR_HTTP_REDIRECT, URR_HTTP_HEADERS)\n"
"values (rule_iri, rule_type, nice_format, serialize (nice_params), nice_min_params, target_format, serialize (target_params), target_expn, accept_pattern, dont_continue, http_redirect, http_headers);\n"
"}\n"
"--src url_rewrite.sql:85\n";
static const char *proc54 =
"#line 131 \"[executable]/url_rewrite.sql\"\n"
"create procedure DB.DBA.URLREWRITE_CREATE_SPRINTF_RULE (\n"
"in rule_iri varchar,\n"
"in allow_update integer,\n"
"in nice_format varchar,\n"
"in nice_params any,\n"
"in nice_min_params integer,\n"
"in target_format varchar,\n"
"in target_params any,\n"
"in target_expn varchar := NULL,\n"
"in accept_pattern varchar := null,\n"
"in dont_continue int := 0,\n"
"in http_redirect int := null,\n"
"in http_headers varchar := null)\n"
"{\n"
"DB.DBA.URLREWRITE_CREATE_RULE (0, rule_iri, allow_update, nice_format, nice_params, nice_min_params, target_format, target_params, target_expn, accept_pattern, dont_continue, http_redirect, http_headers);\n"
"}\n"
"--src url_rewrite.sql:129\n";
static const char *proc55 =
"#line 149 \"[executable]/url_rewrite.sql\"\n"
"create procedure DB.DBA.URLREWRITE_CREATE_REGEX_RULE (\n"
"in rule_iri varchar,\n"
"in allow_update integer,\n"
"in nice_format varchar,\n"
"in nice_params any,\n"
"in nice_min_params integer,\n"
"in target_format varchar,\n"
"in target_params any,\n"
"in target_expn varchar := NULL,\n"
"in accept_pattern varchar := null,\n"
"in dont_continue int := 0,\n"
"in http_redirect int := null,\n"
"in http_headers varchar := null)\n"
"{\n"
"DB.DBA.URLREWRITE_CREATE_RULE (1, rule_iri, allow_update, nice_format, nice_params, nice_min_params, target_format, target_params, target_expn, accept_pattern, dont_continue, http_redirect, http_headers);\n"
"}\n"
"--src url_rewrite.sql:147\n";
static const char *proc56 =
"#line 167 \"[executable]/url_rewrite.sql\"\n"
"create procedure DB.DBA.URLREWRITE_DROP_RULE (\n"
"in rule_iri varchar,\n"
"in force integer := 0)\n"
"{\n"
"if (exists (select 1 from DB.DBA.URL_REWRITE_RULE_LIST where URRL_LIST = rule_iri))\n"
"signal (\'42000\', \'Rule IRI \' || rule_iri || \' is already in use as rule list IRI\');\n"
"if (not exists (select 1 from DB.DBA.URL_REWRITE_RULE where URR_RULE = rule_iri))\n"
"signal (\'42000\', \'Rule IRI \' || rule_iri || \' is unknown\');\n"
"if (strstr (rule_iri, \'sys:\') = 0)\n"
"signal (\'42000\', \'Rule IRI \' || rule_iri || \' uses forbidden format (started with \"sys:\")\');\n"
"if (exists (select 1 from DB.DBA.URL_REWRITE_RULE_LIST where URRL_MEMBER = rule_iri))\n"
"{\n"
"if (force = 0)\n"
"signal (\'42000\', \'Rule IRI \' || rule_iri || \' is used in some rule list\');\n"
"else\n"
"delete from DB.DBA.URL_REWRITE_RULE_LIST where URRL_MEMBER = rule_iri;\n"
"}\n"
"delete from DB.DBA.URL_REWRITE_RULE where URR_RULE = rule_iri;\n"
"return 1;\n"
"}\n"
"--src url_rewrite.sql:165\n";
static const char *proc57 =
"#line 189 \"[executable]/url_rewrite.sql\"\n"
"create procedure DB.DBA.URLREWRITE_CREATE_RULELIST (\n"
"in rulelist_iri varchar,\n"
"in allow_update integer,\n"
"in vector_of_rule_iris any)\n"
"{\n"
"declare rule_length, cur integer;\n"
"if (exists (select 1 from DB.DBA.URL_REWRITE_RULE where URR_RULE = rulelist_iri))\n"
"signal (\'42000\', \'Rule list IRI \' || rulelist_iri || \' is already in use as rule IRI\');\n"
"rule_length := length (vector_of_rule_iris);\n"
"foreach (varchar itm in vector_of_rule_iris) do\n"
"{\n"
"if (itm = rulelist_iri)\n"
"signal (\'42000\', \'Rule list IRI \' || rulelist_iri || \' is used in its own vector of rule IRIs\');\n"
"}\n"
"if (exists (select 1 from DB.DBA.URL_REWRITE_RULE_LIST where URRL_LIST = rulelist_iri))\n"
"{\n"
"if (allow_update = 0)\n"
"signal (\'42000\', \'Rule list IRI \' || rulelist_iri || \' is already in use as rule list IRI\');\n"
"delete from DB.DBA.URL_REWRITE_RULE_LIST where URRL_LIST = rulelist_iri;\n"
"}\n"
"for (cur := 0; cur < rule_length; cur := cur + 1)\n"
"{\n"
"insert replacing DB.DBA.URL_REWRITE_RULE_LIST (URRL_LIST, URRL_INX, URRL_MEMBER) values (rulelist_iri, cur, vector_of_rule_iris[cur]);\n"
"}\n"
"}\n"
"--src url_rewrite.sql:187\n";
static const char *proc58 =
"#line 216 \"[executable]/url_rewrite.sql\"\n"
"create procedure DB.DBA.URLREWRITE_DROP_RULELIST (\n"
"in rulelist_iri varchar,\n"
"in force integer := 0)\n"
"{\n"
"if (exists (select 1 from DB.DBA.URL_REWRITE_RULE where URR_RULE = rulelist_iri))\n"
"signal (\'42000\', \'Rule list IRI \' || rulelist_iri || \' is already in use as rule IRI\');\n"
"if (not exists (select 1 from DB.DBA.URL_REWRITE_RULE_LIST where URRL_LIST = rulelist_iri))\n"
"signal (\'42000\', \'Rule list IRI \' || rulelist_iri || \' is unknown\');\n"
"if (strstr (rulelist_iri, \'sys:\') = 0)\n"
"signal (\'42000\', \'Can not drop \"sys:...\" rule list \' || rulelist_iri);\n"
"if (exists (select top 1 1 from DB.DBA.HTTP_PATH where HP_OPTIONS is not null and deserialize (HP_OPTIONS) is not null and get_keyword (\'url_rewrite\', deserialize (HP_OPTIONS), 0) = rulelist_iri))\n"
"{\n"
"if (not force)\n"
"signal (\'42000\', \'Rule list IRI \' || rulelist_iri || \' is in use as opts in some HTTP virtual host\');\n"
"for select HP_HOST, HP_LISTEN_HOST, HP_LPATH, HP_PPATH, HP_STORE_AS_DAV, HP_DIR_BROWSEABLE, HP_DEFAULT, HP_SECURITY, HP_REALM,\n"
"HP_AUTH_FUNC, HP_POSTPROCESS_FUNC, HP_RUN_VSP_AS, HP_RUN_SOAP_AS, HP_PERSIST_SES_VARS, HP_SOAP_OPTIONS, HP_AUTH_OPTIONS, HP_OPTIONS, HP_IS_DEFAULT_HOST\n"
"from DB.DBA.HTTP_PATH where HP_OPTIONS is not null do\n"
"{\n"
"declare opts, new_opts any;\n"
"declare i, opts_len integer;\n"
"declare st, msg varchar;\n"
"msg := \'\';\n"
"opts := deserialize (HP_OPTIONS);\n"
"if (isarray (opts) and get_keyword (\'url_rewrite\', opts, 0) = rulelist_iri)\n"
"{\n"
"opts_len := length (opts);\n"
"new_opts := vector ();\n"
"for (i := 0; i < opts_len; i := i + 2)\n"
"{\n"
"if ((opts[i] <> \'url_rewrite\') or (opts[i+1] <> rulelist_iri))\n"
"new_opts := vector_concat (new_opts, vector (opts[i], opts[i+1]));\n"
"}\n"
"VHOST_REMOVE (HP_HOST, HP_LISTEN_HOST, HP_LPATH, 0);\n"
"exec (\'VHOST_DEFINE (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\', st, msg,\n"
"vector (HP_HOST, HP_LISTEN_HOST, HP_LPATH, HP_PPATH, HP_STORE_AS_DAV, HP_DIR_BROWSEABLE,\n"
"HP_DEFAULT, HP_AUTH_FUNC, HP_REALM, HP_POSTPROCESS_FUNC, HP_RUN_VSP_AS,\n"
"HP_RUN_SOAP_AS, HP_SECURITY, HP_PERSIST_SES_VARS,\n"
"deserialize (HP_SOAP_OPTIONS),\n"
"deserialize (HP_AUTH_OPTIONS), new_opts, HP_IS_DEFAULT_HOST));\n"
"}\n"
"}\n"
"}\n"
"if (exists (select 1 from DB.DBA.URL_REWRITE_RULE_LIST where URRL_MEMBER = rulelist_iri))\n"
"{\n"
"if (not force)\n"
"signal (\'42000\', \'Rule list IRI \' || rulelist_iri || \' is in use as rule IRI in rules lists\');\n"
"}\n"
"delete from DB.DBA.URL_REWRITE_RULE_LIST where URRL_LIST = rulelist_iri;\n"
"}\n"
"--src url_rewrite.sql:214\n";
static const char *proc59 =
"#line 267 \"[executable]/url_rewrite.sql\"\n"
"create function DB.DBA.URLREWRITE_ENUMERATE_RULES (\n"
"in like_pattern_for_rule_iris varchar,\n"
"in dump_details integer := 0)\n"
"returns any\n"
"{\n"
"declare iri_list, rule_list any;\n"
"iri_list := vector ();\n"
"if (not dump_details)\n"
"return (select DB.DBA.VECTOR_AGG (URR_RULE) from DB.DBA.URL_REWRITE_RULE where URR_RULE like like_pattern_for_rule_iris);\n"
"for select URR_RULE, URR_RULE_TYPE, URR_NICE_FORMAT, URR_NICE_PARAMS, URR_NICE_MIN_PARAMS, URR_TARGET_FORMAT, URR_TARGET_PARAMS, URR_TARGET_EXPR from DB.DBA.URL_REWRITE_RULE where URR_RULE like like_pattern_for_rule_iris do\n"
"{\n"
"rule_list := ( select DB.DBA.VECTOR_AGG (d.URRL_LIST)\n"
"from (select distinct a.URRL_LIST from DB.DBA.URL_REWRITE_RULE_LIST as a where a.URRL_MEMBER = URR_RULE) as d );\n"
"iri_list := vector_concat (iri_list, vector (URR_RULE, vector (URR_RULE_TYPE, URR_NICE_FORMAT, deserialize(URR_NICE_PARAMS), URR_NICE_MIN_PARAMS, URR_TARGET_FORMAT, URR_TARGET_PARAMS, URR_TARGET_EXPR), rule_list));\n"
"}\n"
"return iri_list;\n"
"}\n"
"--src url_rewrite.sql:265\n";
static const char *proc60 =
"#line 286 \"[executable]/url_rewrite.sql\"\n"
"create function DB.DBA.URLREWRITE_ENUMERATE_RULELISTS (\n"
"in like_pattern_for_rulelist_iris varchar,\n"
"in dump_details integer := 0)\n"
"returns any\n"
"{\n"
"declare iri_list, rule_list, http_vec any;\n"
"iri_list := vector ();\n"
"if (not dump_details)\n"
"return (select DB.DBA.VECTOR_AGG (d.URRL_LIST) from\n"
"(select distinct a.URRL_LIST from DB.DBA.URL_REWRITE_RULE_LIST as a where URRL_LIST like like_pattern_for_rulelist_iris) as d);\n"
"for select distinct URRL_LIST as cur_iri from DB.DBA.URL_REWRITE_RULE_LIST where URRL_LIST like like_pattern_for_rulelist_iris do\n"
"{\n"
"rule_list := (select DB.DBA.VECTOR_AGG (URRL_MEMBER) from DB.DBA.URL_REWRITE_RULE_LIST where URRL_LIST = cur_iri order by URRL_INX asc);\n"
"http_vec := (select DB.DBA.VECTOR_AGG (vector (HP_LISTEN_HOST, HP_HOST, HP_LPATH)) from DB.DBA.HTTP_PATH where HP_OPTIONS is not null and get_keyword (\'url_rewrite\', deserialize (HP_OPTIONS), 0) = cur_iri);\n"
"iri_list := vector_concat (iri_list, vector (cur_iri, rule_list, http_vec));\n"
"}\n"
"return iri_list;\n"
"}\n"
"--src url_rewrite.sql:284\n";
static const char *proc61 =
"#line 306 \"[executable]/url_rewrite.sql\"\n"
"create function DB.DBA.URLREWRITE_VPRINTF (\n"
"in format varchar,\n"
"in params any,\n"
"out number_of_values int)\n"
"returns varchar\n"
"{\n"
"declare long_path, cur varchar;\n"
"declare i, j, tar_len integer;\n"
"declare pos1, pos2, pos3 integer;\n"
"long_path := \'\';\n"
"i := 0;\n"
"tar_len := length (format);\n"
"pos2 := 1;\n"
"while (pos2 < tar_len and i < length (params) and pos2 > 0)\n"
"{\n"
"pos1 := locate (\'%\', format, pos2) - 1;\n"
"if (pos1 = 0 and pos2 = 1)\n"
"return \'\';\n"
"pos3 := locate (\'%\', format, pos1 + 2) - 1;\n"
"if (pos3 = 0 or pos3 < 0)\n"
"cur := subseq (format, pos1);\n"
"else\n"
"cur := subseq (format, pos1, pos3);\n"
"pos2 := pos3;\n"
"j := 0;\n"
"\n"
"long_path := concat (long_path, sprintf (cur, coalesce( params[i+1], 0)));\n"
"\n"
"if (pos3 > 0)\n"
"i := i + 2;\n"
"}\n"
"number_of_values := i;\n"
"\n"
"return long_path;\n"
"}\n"
"--src url_rewrite.sql:304\n";
static const char *proc62 =
"#line 343 \"[executable]/url_rewrite.sql\"\n"
"create function DB.DBA.URLREWRITE_SPRINTF_RESULTS (\n"
"in nice_params any,\n"
"in nice_parts any,\n"
"in target_params any,\n"
"in target_format varchar,\n"
"in target_exp varchar,\n"
"in accept_val varchar,\n"
"inout lines any)\n"
"returns varchar\n"
"{\n"
"declare long_path, cur, tmp, val varchar;\n"
"declare i, j, tar_len integer;\n"
"declare pos1, pos2, pos3 integer;\n"
"declare host varchar;\n"
"\n"
"host := registry_get (\'URIQADefaultHost\');\n"
"long_path := \'\';\n"
"i := 0;\n"
"\n"
"target_format := replace (target_format, \'%%\', \'<PERCENT>\');\n"
"tar_len := length (target_format);\n"
"pos2 := 1;\n"
"if (locate (\'%\', target_format, pos2) = 0)\n"
"{\n"
"long_path := target_format;\n"
"goto end_scan;\n"
"}\n"
"\n"
"while (pos2 < tar_len and i < length (target_params) and pos2 > 0)\n"
"{\n"
"pos1 := locate (\'%\', target_format, pos2) - 1;\n"
"\n"
"if (pos1 < 0)\n"
"return \'\';\n"
"pos3 := locate (\'%\', target_format, pos1 + 2) - 1;\n"
"\n"
"if (i = 0)\n"
"long_path := left(target_format, pos1);\n"
"\n"
"\n"
"if (pos3 < pos1 or pos3 < 0)\n"
"cur := subseq (target_format, pos1);\n"
"else\n"
"{\n"
"cur := subseq (target_format, pos1, pos3);\n"
"\n"
"}\n"
"pos2 := pos3;\n"
"\n"
"j := 0;\n"
"while (j < length (nice_params) and nice_params[j] <> target_params[i])\n"
"{\n"
"j := j + 1;\n"
"}\n"
"if (position (target_params[i], nice_params))\n"
"{\n"
"if (j < length (nice_parts))\n"
"val := nice_parts[j];\n"
"else\n"
"val := \'\';\n"
"}\n"
"else if (target_params[i] = \'*accept*\')\n"
"val := accept_val;\n"
"else if (target_params[i] like \'^*%^*\' escape \'^\')\n"
"{\n"
"declare hn varchar;\n"
"hn := lower (trim (target_params[i], \'*\'));\n"
"val := http_request_header (lines, hn, null, \'\');\n"
"}\n"
"else\n"
"val := \'\';\n"
"\n"
"if (target_exp is null)\n"
"tmp := sprintf (cur, coalesce (val, \'\'));\n"
"else\n"
"tmp := call (target_exp) (target_params[i], cur, val);\n"
"long_path := concat (long_path, tmp);\n"
"\n"
"i := i + 1;\n"
"}\n"
"end_scan:\n"
"\n"
"long_path := replace (long_path, \'<PERCENT>\', \'%\');\n"
"if (isstring (host))\n"
"{\n"
"long_path := replace (long_path, \'^{URIQADefaultHost}^\', host);\n"
"if (strstr (long_path, \'^{DynamicLocalFormat}^\') is not null)\n"
"{\n"
"long_path := replace (long_path, \'^{DynamicLocalFormat}^\', \n"
"sprintf (\'%s://%{WSHost}s\', case when is_https_ctx () then \'https\' else \'http\' end));\n"
"}\n"
"}\n"
"return long_path;\n"
"}\n"
"--src url_rewrite.sql:341\n";
static const char *proc63 =
"#line 440 \"[executable]/url_rewrite.sql\"\n"
"create procedure DB.DBA.URLREWRITE_APPLY_RECURSIVE (\n"
"in rulelist_iri varchar,\n"
"in nice_host varchar,\n"
"in nice_lhost varchar,\n"
"in nice_lpath varchar,\n"
"in nice_get_params varchar,\n"
"in nice_frag varchar,\n"
"in post_params any,\n"
"in accept_header varchar,\n"
"out long_url varchar,\n"
"out params any,\n"
"out rule_iri varchar,\n"
"out target_vhost_pkey any,\n"
"out http_redir int,\n"
"out http_headers varchar,\n"
"inout lines any,\n"
"in meth varchar\n"
")\n"
"returns integer\n"
"{\n"
"\n"
"for select distinct URRL_MEMBER as cur_iri from DB.DBA.URL_REWRITE_RULE_LIST where URRL_LIST = rulelist_iri order by URRL_INX asc do\n"
"{\n"
"if (exists (select 1 from DB.DBA.URL_REWRITE_RULE_LIST where URRL_LIST = cur_iri))\n"
"{\n"
"if (DB.DBA.URLREWRITE_APPLY_RECURSIVE (cur_iri, nice_host,\n"
"nice_lhost, nice_lpath, nice_get_params, nice_frag, post_params, accept_header, long_url, params,\n"
"rule_iri, target_vhost_pkey, http_redir, http_headers, lines, meth) = 1)\n"
"return 1;\n"
"}\n"
"else\n"
"{\n"
"\n"
"for select URR_RULE_TYPE, URR_NICE_FORMAT, URR_NICE_PARAMS, URR_NICE_MIN_PARAMS, URR_TARGET_FORMAT, URR_TARGET_PARAMS,\n"
"URR_TARGET_EXPR, URR_ACCEPT_PATTERN, URR_NO_CONTINUATION, URR_HTTP_REDIRECT, URR_HTTP_HEADERS\n"
"from DB.DBA.URL_REWRITE_RULE where URR_RULE = cur_iri do\n"
"{\n"
"\n"
"declare parts, nice_params any;\n"
"declare _result, accept_val varchar;\n"
"\n"
"if (registry_get (\'__debug_url_rewrite\') = \'2\')\n"
"dbg_printf (\'trying rule=[%s] URL=[%s]\', URR_NICE_FORMAT, nice_lpath);\n"
"if (length (URR_ACCEPT_PATTERN) and not length (accept_header))\n"
"goto next_rule;\n"
"accept_val := null;\n"
"if (length (URR_ACCEPT_PATTERN) and length (accept_header))\n"
"{\n"
"accept_val := regexp_match (URR_ACCEPT_PATTERN, accept_header);\n"
"if (accept_val is null)\n"
"goto next_rule;\n"
"}\n"
"\n"
"if (URR_HTTP_REDIRECT is not null and URR_HTTP_REDIRECT > 299 and URR_HTTP_REDIRECT < 304 and meth not in (\'GET\', \'MGET\', \'HEAD\', \'OPTIONS\'))\n"
"{\n"
"if (registry_get (\'__debug_url_rewrite\') in (\'1\', \'2\'))\n"
"dbg_printf (\'skipping rule=[%s] because HTTP redirect cannot be done for HTTP %s\', URR_NICE_FORMAT, meth);\n"
"goto next_rule;\n"
"}\n"
"\n"
"if (URR_RULE_TYPE = 0)\n"
"{\n"
"\n"
"parts := sprintf_inverse (nice_lpath, URR_NICE_FORMAT, 2);\n"
"\n"
"if ((length (parts) < URR_NICE_MIN_PARAMS) or (length (parts) >= URR_NICE_MIN_PARAMS and parts[URR_NICE_MIN_PARAMS - 1] is NULL))\n"
"{\n"
"if (URR_NO_CONTINUATION = 2 or URR_NO_CONTINUATION = 1)\n"
"goto next_rule;\n"
"return 0;\n"
"}\n"
"\n"
"}\n"
"else if (URR_RULE_TYPE = 1)\n"
"{\n"
"\n"
"_result := regexp_parse (URR_NICE_FORMAT, nice_lpath, 0);\n"
"\n"
"\n"
"if (_result is null)\n"
"{\n"
"if (URR_NO_CONTINUATION = 2 or URR_NO_CONTINUATION = 1)\n"
"goto next_rule;\n"
"return 0;\n"
"}\n"
"else\n"
"{\n"
"\n"
"declare parse_len, k, start_index int;\n"
"start_index := 0;\n"
"parts := vector ();\n"
"parse_len := length (_result);\n"
"if (parse_len > 2)\n"
"start_index := 2;\n"
"for (k := start_index; k < parse_len; k := k + 2)\n"
"{\n"
"\n"
"if (_result[k] < 0 or _result[k + 1] < 0)\n"
"parts := vector_concat (parts, vector (null));\n"
"else\n"
"parts := vector_concat (parts, vector (subseq (nice_lpath, _result[k], _result[k + 1])));\n"
"}\n"
"}\n"
"}\n"
"\n"
"declare get_len integer;\n"
"nice_params := split_and_decode (nice_get_params);\n"
"get_len := length (nice_params);\n"
"\n"
"if (nice_params is null or get_len = 0)\n"
"params := post_params;\n"
"else\n"
"params := vector_concat (post_params, nice_params);\n"
"\n"
"\n"
"long_url := DB.DBA.URLREWRITE_SPRINTF_RESULTS (deserialize(URR_NICE_PARAMS), parts, deserialize(URR_TARGET_PARAMS), URR_TARGET_FORMAT, URR_TARGET_EXPR, accept_val, lines);\n"
"if (registry_get (\'__debug_url_rewrite\') in (\'1\', \'2\'))\n"
"dbg_printf (\'MATCH rule=[%s] URL=[%s]\', cur_iri, long_url);\n"
"rule_iri := cur_iri;\n"
"http_redir := URR_HTTP_REDIRECT;\n"
"http_headers := URR_HTTP_HEADERS;\n"
"if (URR_NO_CONTINUATION = 1)\n"
"return 1;\n"
"next_rule:;\n"
"}\n"
"}\n"
"}\n"
"}\n"
"--src url_rewrite.sql:438\n";
static const char *proc64 =
"#line 570 \"[executable]/url_rewrite.sql\"\n"
"create procedure DB.DBA.URLREWRITE_APPLY (\n"
"in nice_url varchar,\n"
"in post_params any,\n"
"out long_url varchar,\n"
"out params any,\n"
"out nice_vhost_pkey any,\n"
"out top_rulelist_iri varchar,\n"
"out rule_iri varchar,\n"
"out target_vhost_pkey any)\n"
"returns integer\n"
"{\n"
"declare elm any;\n"
"declare _lhost, _lhost_port, _host, _lpath, _get_params, _frag, db_lhost, db_host, db_lpath varchar;\n"
"declare pos, http_redir integer;\n"
"declare http_headers varchar;\n"
"declare lines any;\n"
"elm := rfc1808_parse_uri (nice_url);\n"
"\n"
"if (elm[2] is null)\n"
"return 0;\n"
"\n"
"_lhost := elm[1];\n"
"pos := strrchr (_lhost, \':\');\n"
"if (pos = 0)\n"
"_lhost_port := \'80\';\n"
"else\n"
"_lhost_port := subseq (_lhost, pos + 1);\n"
"_lpath := elm[2];\n"
"_get_params := elm[4];\n"
"_frag := elm[5];\n"
"\n"
"whenever not found goto no_rec;\n"
"select top 1 HP_HOST, HP_LISTEN_HOST, HP_LPATH, get_keyword (\'url_rewrite\', deserialize (HP_OPTIONS), NULL) into db_host, db_lhost, db_lpath, top_rulelist_iri from HTTP_PATH where\n"
"(HP_LISTEN_HOST = _lhost or HP_LISTEN_HOST = _lhost_port or (HP_LISTEN_HOST = \'*ini*\' and _lhost_port = virtuoso_ini_item_value (\'HTTPServer\',\'ServerPort\'))) and\n"
"HP_OPTIONS is not null and deserialize (HP_OPTIONS) is not null and\n"
"left (_lpath, length (HP_LPATH)) = HP_LPATH order by HP_LPATH desc;\n"
"if (db_host is null and db_lhost is null and db_lpath is null)\n"
"{\n"
"no_rec:;\n"
"nice_vhost_pkey := vector (null, null, null);\n"
"target_vhost_pkey := vector (null, null, null);\n"
"long_url := _lpath;\n"
"if (_get_params <> \'\')\n"
"long_url := concat (long_url, \'?\', _get_params);\n"
"if (_frag <> \'\')\n"
"long_url := concat (long_url, \'#\', _frag);\n"
"return 1;\n"
"}\n"
"else if (top_rulelist_iri is NULL)\n"
"{\n"
"nice_vhost_pkey := vector (db_host, db_lhost, db_lpath);\n"
"target_vhost_pkey := vector (db_host, db_lhost, db_lpath);\n"
"long_url := _lpath;\n"
"if (_get_params <> \'\')\n"
"long_url := concat (long_url, \'?\', _get_params);\n"
"if (_frag <> \'\')\n"
"long_url := concat (long_url, \'#\', _frag);\n"
"return 1;\n"
"}\n"
"nice_vhost_pkey := vector (db_host, db_lhost, db_lpath);\n"
"lines := vector ();\n"
"return DB.DBA.URLREWRITE_APPLY_RECURSIVE (\n"
"top_rulelist_iri,\n"
"_host,\n"
"_lhost,\n"
"_lpath,\n"
"_get_params,\n"
"_frag,\n"
"post_params,\n"
"null,\n"
"long_url,\n"
"params,\n"
"rule_iri,\n"
"target_vhost_pkey,\n"
"http_redir,\n"
"http_headers,\n"
"lines,\n"
"\'GET\');\n"
"}\n"
"--src url_rewrite.sql:568\n";
static const char *proc65 =
"#line 651 \"[executable]/url_rewrite.sql\"\n"
"create procedure DB.DBA.URLREWRITE_TRY_INVERSE (\n"
"in rule_iri varchar,\n"
"in long_path varchar,\n"
"in known_params any,\n"
"in param_retrieval_callback varchar,\n"
"in param_retrieval_env any,\n"
"inout param_retrieval_cache any,\n"
"out nice_path varchar,\n"
"out nice_params any,\n"
"out error_report varchar)\n"
"{\n"
"declare elm any;\n"
"declare _lhost, _lhost_port, _host, _lpath, _get_params, _frag varchar;\n"
"declare pos, i, j, is_found, number_of_values, not_null integer;\n"
"elm := rfc1808_parse_uri (long_path);\n"
"\n"
"if (elm[2] is null)\n"
"{\n"
"error_report := \'Incorrect long path.\';\n"
"return;\n"
"}\n"
"_lhost := elm[1];\n"
"pos := strrchr (_lhost, \':\');\n"
"if (pos = 0)\n"
"_lhost_port := \'80\';\n"
"else\n"
"_lhost_port := subseq (_lhost, pos + 1);\n"
"_lpath := elm[2];\n"
"_get_params := elm[4];\n"
"_frag := elm[5];\n"
"for select URR_RULE_TYPE, URR_NICE_FORMAT, deserialize(URR_NICE_PARAMS) as NICE_PARAMS_VEC, URR_NICE_MIN_PARAMS, URR_TARGET_FORMAT, deserialize(URR_TARGET_PARAMS) as TARGET_PARAMS_VEC, URR_TARGET_EXPR from DB.DBA.URL_REWRITE_RULE where URR_RULE = rule_iri do\n"
"{\n"
"declare parts, full_list_params, long_get_params any;\n"
"declare _result, var_name, var_value varchar;\n"
"\n"
"if (URR_RULE_TYPE = 0)\n"
"{\n"
"parts := sprintf_inverse (_lpath, URR_TARGET_FORMAT, 2);\n"
"\n"
"nice_params := vector ();\n"
"for (i := 0; i < length (NICE_PARAMS_VEC); i := i + 1)\n"
"{\n"
"nice_params := vector_concat (nice_params, vector (NICE_PARAMS_VEC[i], NULL));\n"
"}\n"
"\n"
"long_get_params := split_and_decode (_get_params, 0, \'\\0\\0&\');\n"
"\n"
"for (i := 0; i < length (NICE_PARAMS_VEC); i := i + 1)\n"
"{\n"
"for (j := 0; j < length (TARGET_PARAMS_VEC); j := j + 1)\n"
"{\n"
"if (NICE_PARAMS_VEC[i] = TARGET_PARAMS_VEC[j])\n"
"{\n"
"\n"
"aset (nice_params, 2*i + 1, parts[j]);\n"
"is_found := 1;\n"
"goto break_the_for;\n"
"}\n"
"}\n"
"for (j := 0; j < length (long_get_params); j := j + 1)\n"
"{\n"
"var_name := split_and_decode (long_get_params, 0, \'\\0\\0=\')[0];\n"
"var_value := split_and_decode (long_get_params, 0, \'\\0\\0=\')[1];\n"
"if (NICE_PARAMS_VEC[i] = var_name)\n"
"{\n"
"\n"
"aset (nice_params, i + 1, var_value);\n"
"is_found := 1;\n"
"goto break_the_for;\n"
"}\n"
"}\n"
"for (j := 0; j < length (known_params); j := j + 2)\n"
"{\n"
"var_name := known_params[j];\n"
"var_value := known_params[j + 1];\n"
"if (NICE_PARAMS_VEC[i] = var_name)\n"
"{\n"
"\n"
"aset (nice_params, i + 1, var_value);\n"
"is_found := 1;\n"
"goto break_the_for;\n"
"}\n"
"}\n"
"for (j := 0; j < length (param_retrieval_cache); j := j + 2)\n"
"{\n"
"var_name := param_retrieval_cache[j];\n"
"var_value := param_retrieval_cache[j + 1];\n"
"if (NICE_PARAMS_VEC[i] = var_name)\n"
"{\n"
"\n"
"aset (nice_params, i + 1, var_value);\n"
"is_found := 1;\n"
"goto break_the_for;\n"
"}\n"
"}\n"
"if (param_retrieval_callback is not null and param_retrieval_callback <> \'\')\n"
"{\n"
"declare state, msg, descs, rows any;\n"
"state := \'00000\';\n"
"\n"
"exec (sprintf (\'%s (?, ?)\', param_retrieval_callback), null, null, vector (NICE_PARAMS_VEC[i], param_retrieval_env), 1, descs, rows);\n"
"if (state <> \'00000\')\n"
"goto break_the_for;\n"
"if (rows is not null and length (rows) > 0)\n"
"{\n"
"aset (nice_params, i + 1, rows[0][0]);\n"
"param_retrieval_cache := vector_concat (param_retrieval_cache, vector (NICE_PARAMS_VEC[i], rows[0][0]) );\n"
"}\n"
"}\n"
"break_the_for:;\n"
"}\n"
"\n"
"for (j := 0; j < length (TARGET_PARAMS_VEC); j := j + 1)\n"
"{\n"
"is_found := 0;\n"
"for (i := 0; i < length (NICE_PARAMS_VEC); i := i + 1)\n"
"{\n"
"if (NICE_PARAMS_VEC[i] = TARGET_PARAMS_VEC[j])\n"
"{\n"
"\n"
"is_found := 1;\n"
"goto break_the_for2;\n"
"}\n"
"}\n"
"if (is_found = 0)\n"
"{\n"
"nice_params := vector_concat (nice_params, vector (TARGET_PARAMS_VEC[j], parts[j]) );\n"
"}\n"
"break_the_for2:;\n"
"}\n"
"for (j := 0; j < length (long_get_params); j := j + 1)\n"
"{\n"
"var_name := split_and_decode (long_get_params, 0, \'\\0\\0=\')[0];\n"
"var_value := split_and_decode (long_get_params, 0, \'\\0\\0=\')[1];\n"
"is_found := 0;\n"
"for (i := 0; i < length (NICE_PARAMS_VEC); i := i + 1)\n"
"{\n"
"if (NICE_PARAMS_VEC[i] = var_name)\n"
"{\n"
"\n"
"is_found := 1;\n"
"goto break_the_for3;\n"
"}\n"
"}\n"
"if (is_found = 0)\n"
"nice_params := vector_concat (nice_params, vector (var_name, var_value) );\n"
"break_the_for3:;\n"
"}\n"
"for (j := 0; j < length (known_params); j := j + 2)\n"
"{\n"
"var_name := known_params[j];\n"
"var_value := known_params[j + 1];\n"
"is_found := 0;\n"
"for (i := 0; i < length (NICE_PARAMS_VEC); i := i + 1)\n"
"{\n"
"if (NICE_PARAMS_VEC[i] = var_name)\n"
"{\n"
"\n"
"is_found := 1;\n"
"goto break_the_for4;\n"
"}\n"
"}\n"
"if (is_found = 0)\n"
"nice_params := vector_concat (nice_params, vector (var_name, var_value) );\n"
"break_the_for4:;\n"
"}\n"
"\n"
"number_of_values := 0;\n"
"not_null := 0;\n"
"for (i := 0; i < length (NICE_PARAMS_VEC); i := i + 2)\n"
"{\n"
"if (nice_params[i + 1] is not NULL)\n"
"not_null := 1;\n"
"}\n"
"if (not_null = 0)\n"
"{\n"
"error_report := \'The rule \' || rule_iri || \' is not for this URL\';\n"
"return;\n"
"}\n"
"\n"
"nice_path := DB.DBA.URLREWRITE_VPRINTF (URR_NICE_FORMAT, nice_params, number_of_values);\n"
"if (number_of_values > 0)\n"
"{\n"
"declare tmp_vec any;\n"
"tmp_vec := vector();\n"
"i := number_of_values;\n"
"while (i < length (nice_params) )\n"
"{\n"
"tmp_vec := vector_concat (tmp_vec, vector (nice_params[i], nice_params[i+1]) );\n"
"i := i + 2;\n"
"}\n"
"nice_params := tmp_vec;\n"
"}\n"
"}\n"
"else\n"
"error_report := \'The rule \' || rule_iri || \' is not a sprintf rule\';\n"
"return;\n"
"}\n"
"nice_path := null;\n"
"error_report := \'The rule \' || rule_iri || \' is not found\';\n"
"}\n"
"--src url_rewrite.sql:649\n";
static const char *proc66 =
"#line 854 \"[executable]/url_rewrite.sql\"\n"
"create procedure DB.DBA.HTTP_VARIANT_ADD (in rulelist_uri varchar,\n"
"in uri varchar, in variant_uri varchar, in mime varchar,\n"
"in qs float := 1.0, in _desc varchar := null,\n"
"in lang varchar := null, in enc varchar := null, in algo int := 1, in location_hook varchar := null)\n"
"{\n"
"declare tmp any;\n"
"declare mime_qs, lang_qs, enc_qs float;\n"
"\n"
"\n"
"\n"
"\n"
"if (isstring (qs) or qs < 0.001)\n"
"signal (\'22023\', \'The quality factor must be float number between 1.0 and 0.001\');\n"
"\n"
"if (length (mime))\n"
"{\n"
"tmp := split_and_decode (mime, 0, \'\\0\\0;=\');\n"
"mime := tmp[0];\n"
"}\n"
"else\n"
"mime := null;\n"
"if (length (lang))\n"
"{\n"
"tmp := split_and_decode (lang, 0, \'\\0\\0;=\');\n"
"lang := tmp[0];\n"
"}\n"
"else\n"
"lang := null;\n"
"if (length (enc))\n"
"{\n"
"tmp := split_and_decode (enc, 0, \'\\0\\0;=\');\n"
"enc := tmp[0];\n"
"}\n"
"else\n"
"enc := null;\n"
"insert replacing DB.DBA.HTTP_VARIANT_MAP (VM_RULELIST,VM_URI,VM_VARIANT_URI,VM_QS, VM_TYPE,\n"
"VM_LANG,VM_ENC,VM_DESCRIPTION,VM_ALGO, VM_CONTENT_LOCATION_HOOK)\n"
"values (rulelist_uri, uri, variant_uri, qs, mime, lang, enc, _desc, algo, location_hook);\n"
"}\n"
"--src url_rewrite.sql:852\n";
static const char *proc67 =
"#line 895 \"[executable]/url_rewrite.sql\"\n"
"create procedure DB.DBA.HTTP_VARIANT_REMOVE (in rulelist_uri varchar, in uri varchar, in variant_uri varchar := \'%\')\n"
"{\n"
"if (not exists (select 1 from DB.DBA.URL_REWRITE_RULE_LIST where URRL_LIST = rulelist_uri))\n"
"signal (\'42000\', \'Rule IRI \' || rulelist_uri || \' does not exist.\');\n"
"delete from DB.DBA.HTTP_VARIANT_MAP where VM_RULELIST = rulelist_uri and VM_URI like uri and VM_VARIANT_URI like variant_uri;\n"
"}\n"
"--src url_rewrite.sql:893\n";
static const char *proc68 =
"#line 903 \"[executable]/url_rewrite.sql\"\n"
"create procedure DB.DBA.URLREWRITE_CALC_QS (in accept varchar, in s_accept varchar)\n"
"{\n"
"declare arr, tmp any;\n"
"declare best_q, q float;\n"
"declare best_match varchar;\n"
"declare i, l int;\n"
"declare itm varchar;\n"
"\n"
"\n"
"if (s_accept is null or s_accept = \'*\')\n"
"return 1;\n"
"arr := split_and_decode (accept, 0, \'\\0\\0,;\');\n"
"\n"
"best_q := 0;\n"
"l := length (arr);\n"
"for (i := 0; i < l; i := i + 2)\n"
"{\n"
"itm := trim(arr[i]);\n"
"\n"
"if (s_accept like itm)\n"
"{\n"
"q := arr[i+1];\n"
"if (q is null)\n"
"q := 1.0;\n"
"else\n"
"{\n"
"tmp := split_and_decode (q, 0, \'\\0\\0=\');\n"
"if (length (tmp) = 2)\n"
"q := atof (tmp[1]);\n"
"else\n"
"q := 1.0;\n"
"}\n"
"if (best_q < q)\n"
"{\n"
"best_q := q;\n"
"}\n"
"}\n"
"}\n"
"return best_q;\n"
"}\n"
"--src url_rewrite.sql:901\n";
static const char *proc69 =
"#line 945 \"[executable]/url_rewrite.sql\"\n"
"create procedure DB.DBA.HTTP_URLREWRITE_TCN_LIST (inout li any)\n"
"{\n"
"http (\'<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\\n\');\n"
"http (\'<html><head>\\n\');\n"
"http (\'<title>300 Multiple Choices</title>\\n\');\n"
"http (\'</head><body>\\n\');\n"
"http (\'<h1>Multiple Choices</h1>\\n\');\n"
"http (\'Available variants:\');\n"
"http (\'<ul>\\n\');\n"
"http (li);\n"
"http (\'</ul>\\n</body></html>\');\n"
"}\n"
"--src url_rewrite.sql:943\n";
static const char *proc70 =
"#line 959 \"[executable]/url_rewrite.sql\"\n"
"create procedure DB.DBA.HTTP_URLREWRITE_APPLY_PATTERN (in pattern varchar, in str varchar, in format varchar)\n"
"{\n"
"declare arr, pars, ret, tmp any;\n"
"declare inx, len, i int;\n"
"declare pos int;\n"
"declare host varchar;\n"
"\n"
"host := registry_get (\'URIQADefaultHost\');\n"
"arr := regexp_parse (pattern, str, 0);\n"
"if (arr is null)\n"
"return NULL;\n"
"len := length (arr);\n"
"pars := make_array ((len-2)/2, \'any\');\n"
"for (i := 0, inx := 2; inx < len; inx := inx + 2, i := i + 1)\n"
"{\n"
"if (arr[inx] < 0 or arr[inx + 1] < 0)\n"
"pars[i] := null;\n"
"else\n"
"pars[i] := subseq (str, arr[inx], arr[inx + 1]);\n"
"}\n"
"arr := regexp_parse (\'(\\\\x24U?[0-9]+)\', format, 0);\n"
"if (arr is null)\n"
"return format;\n"
"ret := \'\';\n"
"pos := 0;\n"
"while (arr is not null)\n"
"{\n"
"declare fmt varchar;\n"
"ret := ret || subseq (format, pos, arr[0]);\n"
"fmt := subseq (format, arr[0], arr[1]);\n"
"tmp := atoi(ltrim (fmt, \'\\x24U\'));\n"
"fmt := ltrim (fmt, \'\\x24\');\n"
"if (tmp > 0 and tmp <= length (pars))\n"
"{\n"
"if (fmt like \'U%\')\n"
"{\n"
"declare par any;\n"
"par := charset_recode (pars[tmp-1], \'UTF-8\', \'_WIDE_\');\n"
"ret := ret || sprintf (\'%U\', par);\n"
"}\n"
"else\n"
"ret := ret || pars[tmp-1];\n"
"}\n"
"pos := arr[1];\n"
"arr := regexp_parse (\'(\\\\x24U?[0-9]+)\', format, pos);\n"
"}\n"
"if (pos > 0 and pos < length (format))\n"
"ret := ret || subseq (format, pos);\n"
"if (isstring (host))\n"
"{\n"
"ret := replace (ret, \'^{URIQADefaultHost}^\', host);\n"
"if (strstr (ret, \'^{DynamicLocalFormat}^\') is not null)\n"
"{\n"
"ret := replace (ret, \'^{DynamicLocalFormat}^\', sprintf (\'%s://%{WSHost}s\', case when is_https_ctx () then \'https\' else \'http\' end));\n"
"}\n"
"}\n"
"return ret;\n"
"}\n"
"--src url_rewrite.sql:957\n";
static const char *proc71 =
"#line 1020 \"[executable]/url_rewrite.sql\"\n"
"create procedure DB.DBA.HTTP_LOC_NEW_URL (in url any)\n"
"{\n"
"declare ret, host any;\n"
"\n"
"if (url like \'http:%\')\n"
"return url;\n"
"\n"
"if (url not like \'/%\')\n"
"return url;\n"
"\n"
"host := HTTP_GET_HOST ();\n"
"\n"
"if (is_https_ctx ())\n"
"ret := \'https://\';\n"
"else\n"
"ret := \'http://\';\n"
"\n"
"if (\"RIGHT\" (host, 3) = \':80\')\n"
"host := replace (host, \':80\', \'\');\n"
"\n"
"ret := ret || host || url;\n"
"\n"
"return ret;\n"
"}\n"
"--src url_rewrite.sql:1018\n";
static const char *proc72 =
"#line 1047 \"[executable]/url_rewrite.sql\"\n"
"create procedure DB.DBA.URLREWRITE_APPLY_TCN (in rulelist_uri varchar, inout path varchar, inout lines any,\n"
"out http_code any, out http_headers any)\n"
"{\n"
"\n"
"declare mime, lang, enc, cset varchar;\n"
"declare rel_uri any;\n"
"declare tmp, pos, hf, list_body any;\n"
"declare qs1, qs2, qs3, qs4 float;\n"
"declare best_q, curr float;\n"
"declare best_variant, algo, list, best_ct, hook varchar;\n"
"declare vlist, trans, guess, do_cn, best_id int;\n"
"declare ct, cl any;\n"
"\n"
"\n"
"hf := rfc1808_parse_uri (path);\n"
"tmp := hf[2];\n"
"\n"
"pos := strrchr (tmp, \'/\');\n"
"if (pos is not null)\n"
"rel_uri := subseq (path, pos + 1);\n"
"\n"
"\n"
"mime := http_request_header_full (lines, \'Accept\', \'*/*\');\n"
"if (registry_get (\'__debug_url_rewrite\') in (\'1\', \'2\'))\n"
"dbg_printf (\'Accept: [%s]\', mime);\n"
"lang := http_request_header_full (lines, \'Accept-Language\', \'*\');\n"
"\n"
"cset := http_request_header_full (lines, \'Accept-Charset\', \'*\');\n"
"algo := http_request_header_full (lines, \'Negotiate\', \'*\');\n"
"do_cn := 1;\n"
"vlist := trans := guess := 0;\n"
"if (algo = \'trans\');\n"
"{\n"
"trans := 1;\n"
"do_cn := 0;\n"
"}\n"
"if (algo = \'vlist\');\n"
"{\n"
"trans := vlist := 1;\n"
"do_cn := 0;\n"
"}\n"
"if (algo = \'guess-small\');\n"
"{\n"
"trans := vlist := 1;\n"
"do_cn := 0;\n"
"}\n"
"if (atof (algo) >= 1)\n"
"do_cn := 1;\n"
"if (algo = \'*\')\n"
"vlist := trans := do_cn := 1;\n"
"\n"
"best_q := 0;\n"
"best_ct := null;\n"
"list := \'\';\n"
"list_body := \'\';\n"
"best_id := 0;\n"
"for select VM_ID, VM_URI, VM_VARIANT_URI, VM_QS, VM_TYPE, VM_LANG, VM_ENC, VM_DESCRIPTION, VM_ALGO, VM_CONTENT_LOCATION_HOOK\n"
"from DB.DBA.HTTP_VARIANT_MAP where VM_RULELIST = rulelist_uri do\n"
"{\n"
"declare alang, aenc, variant, path_str varchar;\n"
"\n"
"if (VM_URI not like \'/%\' and path like \'%/\')\n"
"goto next_variant;\n"
"\n"
"if (VM_URI like \'/%\')\n"
"path_str := path;\n"
"else\n"
"path_str := rel_uri;\n"
"\n"
"if (regexp_match (VM_URI, path_str) is null)\n"
"goto next_variant;\n"
"\n"
"variant := DB.DBA.HTTP_URLREWRITE_APPLY_PATTERN (VM_URI, path_str, VM_VARIANT_URI);\n"
"if (variant is null)\n"
"goto next_variant;\n"
"\n"
"qs1 := DB.DBA.URLREWRITE_CALC_QS (mime, VM_TYPE);\n"
"qs2 := DB.DBA.URLREWRITE_CALC_QS (lang, VM_LANG);\n"
"qs3 := DB.DBA.URLREWRITE_CALC_QS (cset, VM_ENC);\n"
"\n"
"curr := VM_QS * qs1 * qs2 * qs3;\n"
"if (registry_get (\'__debug_url_rewrite\') in (\'1\', \'2\'))\n"
"dbg_printf (\'tcn trying: %s qs1=%f qs2=%f qs3=%f qs=%f\', VM_VARIANT_URI, qs1, qs2, qs3, curr);\n"
"if (curr > best_q)\n"
"{\n"
"declare s any;\n"
"best_q := curr;\n"
"best_ct := VM_TYPE;\n"
"best_variant := variant;\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"best_id := VM_ID;\n"
"hook := VM_CONTENT_LOCATION_HOOK;\n"
"}\n"
"if (not do_cn)\n"
"{\n"
"alang := \'\';\n"
"aenc := \'\';\n"
"if (VM_LANG is not null)\n"
"alang := sprintf (\' {language %s}\', VM_LANG);\n"
"if (VM_ENC is not null)\n"
"aenc := sprintf (\' {charset %s}\', VM_ENC);\n"
"cl := variant;\n"
"if (VM_CONTENT_LOCATION_HOOK is not null and __proc_exists (VM_CONTENT_LOCATION_HOOK) is not null)\n"
"cl := call (VM_CONTENT_LOCATION_HOOK) (VM_ID, variant);\n"
"list := list || sprintf (\'{\"%s\" %f {type %s}%s%s}, \', cl, VM_QS, VM_TYPE, alang, aenc);\n"
"list_body := list_body || sprintf (\'<li><a href=\"%V\">%V</a>, type %V</li>\\n\',\n"
"cl, coalesce (VM_DESCRIPTION, cl), VM_TYPE);\n"
"}\n"
"next_variant:;\n"
"}\n"
"if (do_cn and best_q > 0)\n"
"{\n"
"ct := \'\';\n"
"if (best_ct is not null)\n"
"{\n"
"if (best_q > 0.999)\n"
"ct := sprintf (\'Content-Type: %s\\r\\n\', best_ct);\n"
"else\n"
"{\n"
"declare q_str varchar;\n"
"q_str := rtrim (sprintf (\'%f\', best_q), \'0\');\n"
"ct := sprintf (\'Content-Type: %s; qs=%s\\r\\n\', best_ct, q_str);\n"
"}\n"
"}\n"
"cl := best_variant;\n"
"if (hook is not null and __proc_exists (hook) is not null)\n"
"cl := call (hook) (best_id, best_variant);\n"
"http_headers := sprintf (\'TCN: choice\\r\\nVary: negotiate,accept\\r\\nContent-Location: %s\\r\\n%s\', cl, ct);\n"
"\n"
"path := WS.WS.EXPAND_URL (path, replace (best_variant, \':\', \'\\x1\'));\n"
"path := replace (path, \'\\x1\', \':\');\n"
"if (registry_get (\'__debug_url_rewrite\') in (\'1\', \'2\'))\n"
"dbg_printf (\'TCN return: %s\', path);\n"
"return 1;\n"
"}\n"
"if (not do_cn and list <> \'\')\n"
"{\n"
"http_headers := sprintf (\'TCN: list\\r\\nVary: negotiate,accept\\r\\nAlternates: %s\\r\\n\', rtrim (list, \', \'));\n"
"http_code := 300;\n"
"if (is_http_ctx ())\n"
"DB.DBA.HTTP_URLREWRITE_TCN_LIST (list_body);\n"
"if (registry_get (\'__debug_url_rewrite\') in (\'1\', \'2\'))\n"
"dbg_printf (\'TCN list\');\n"
"return 1;\n"
"}\n"
"return 0;\n"
"}\n"
"--src url_rewrite.sql:1045\n";
static const char *proc73 =
"#line 1204 \"[executable]/url_rewrite.sql\"\n"
"create procedure DB.DBA.HTTP_URLREWRITE (in path varchar, in rule_list varchar, in post_params any := null) returns any\n"
"{\n"
"declare long_url varchar;\n"
"declare params, lines any;\n"
"declare nice_vhost_pkey any;\n"
"declare top_rulelist_iri varchar;\n"
"declare rule_iri, in_path, qstr, meth varchar;\n"
"declare target_vhost_pkey, hf, accept, http_headers any;\n"
"declare result, http_redir, http_tcn_code, tcn_rc, keep_lpath int;\n"
"declare http_tcn_headers, exp_fn varchar;\n"
"\n"
"\n"
"\n"
"long_url := null;\n"
"in_path := rtrim (path, \'/\');\n"
"if (length (in_path) = 0)\n"
"in_path := \'/\';\n"
"accept := null;\n"
"qstr := null;\n"
"exp_fn := null;\n"
"keep_lpath := 0;\n"
"meth := \'GET\';\n"
"\n"
"if (is_http_ctx ())\n"
"{\n"
"keep_lpath := http_map_get (\'url_rewrite_keep_lpath\');\n"
"exp_fn := http_map_get (\'expiration_function\');\n"
"lines := http_request_header ();\n"
"if (length (lines))\n"
"{\n"
"in_path := regexp_match (\'/[^ \\\\t\\\\n\\\\r]*\', lines[0]);\n"
"}\n"
"else\n"
"{\n"
"qstr := http_request_get (\'QUERY_STRING\');\n"
"}\n"
"accept := http_request_header (lines, \'Accept\');\n"
"if (not isstring (accept))\n"
"accept := \'*/*\';\n"
"meth := http_request_get (\'REQUEST_METHOD\');\n"
"}\n"
"else\n"
"{\n"
"lines := vector ();\n"
"}\n"
"\n"
"if (isstring (exp_fn) and (__proc_exists (exp_fn) is not null) and (1 = call (exp_fn) (lines, http_map_get (\'options\'))))\n"
"{\n"
"http_body_read ();\n"
"return 1;\n"
"}\n"
"\n"
"if (length (qstr))\n"
"in_path := in_path || \'?\' || qstr;\n"
"\n"
"if (registry_get (\'__debug_url_rewrite\') in (\'1\', \'2\'))\n"
"dbg_printf (\'Input URL=[%s]\', in_path);\n"
"\n"
"http_tcn_headers := http_headers := null;\n"
"http_tcn_code := http_redir := null;\n"
"tcn_rc := DB.DBA.URLREWRITE_APPLY_TCN (rule_list, in_path, lines, http_tcn_code, http_tcn_headers);\n"
"\n"
"result := DB.DBA.URLREWRITE_APPLY_RECURSIVE (rule_list, null, null, in_path, \'\', qstr, post_params, accept,\n"
"long_url, params, rule_iri, target_vhost_pkey, http_redir, http_headers, lines, meth);\n"
"if (registry_get (\'__debug_url_rewrite\') in (\'1\', \'2\') and length (long_url))\n"
"dbg_printf (\'*** RETURN rule=[%s] URL=[%s]\', rule_iri, long_url);\n"
"if (not tcn_rc and length (long_url))\n"
"{\n"
"tcn_rc := DB.DBA.URLREWRITE_APPLY_TCN (rule_list, long_url, lines, http_tcn_code, http_tcn_headers);\n"
"if (registry_get (\'__debug_url_rewrite\') in (\'1\', \'2\') and tcn_rc)\n"
"dbg_printf (\'*** TCN RETURN URL=[%s]\', long_url);\n"
"}\n"
"\n"
"if (http_redir is null or http_redir = 0)\n"
"http_redir := http_tcn_code;\n"
"if (http_headers is null or http_headers = 0)\n"
"http_headers := http_tcn_headers;\n"
"else if (http_tcn_headers is not null)\n"
"http_headers := http_tcn_headers || http_headers;\n"
"\n"
"if (tcn_rc and not length (long_url))\n"
"long_url := in_path;\n"
"\n"
"\n"
"if (length (long_url) and is_http_ctx ())\n"
"{\n"
"declare full_path, pars, p_full_path any;\n"
"\n"
"\n"
"if (length (http_headers) > 0)\n"
"{\n"
"declare fn, tmp, repl any;\n"
"\n"
"tmp := regexp_match (\'\\\\^{sql:[^}]*}\\\\^\', http_headers);\n"
"while (tmp is not null)\n"
"{\n"
"fn := subseq (tmp, 6, length (tmp)-2);\n"
"repl := \'\';\n"
"if (__proc_exists (fn))\n"
"{\n"
"repl := call (fn) (in_path);\n"
"}\n"
"http_headers := replace (http_headers, tmp, repl);\n"
"tmp := regexp_match (\'\\\\^{sql:[^}]*}\\\\^\', http_headers);\n"
"}\n"
"if (strstr (http_headers, \'^{DynamicLocalFormat}^\') is not null)\n"
"{\n"
"http_headers := replace (http_headers, \'^{DynamicLocalFormat}^\',\n"
"sprintf (\'%s://%{WSHost}s\', case when is_https_ctx () then \'https\' else \'http\' end));\n"
"}\n"
"\n"
"http_headers := rtrim (http_headers, \'\\r\\n\');\n"
"if (length (http_headers))\n"
"{\n"
"http_headers := http_headers || \'\\r\\n\';\n"
"http_header (http_headers);\n"
"}\n"
"}\n"
"\n"
"if (http_redir in (301, 302, 303, 307))\n"
"{\n"
"http_status_set (http_redir);\n"
"http_header (http_header_get () || \'Location: \'|| DB.DBA.HTTP_LOC_NEW_URL (long_url) ||\'\\r\\n\');\n"
"http_body_read ();\n"
"if (registry_get (\'__debug_url_rewrite\') in (\'1\', \'2\')) dbg_printf (\'HTTP redirect\');\n"
"return 1;\n"
"}\n"
"else if (http_redir = 300)\n"
"{\n"
"http_status_set (http_redir);\n"
"http_body_read ();\n"
"if (registry_get (\'__debug_url_rewrite\') in (\'1\', \'2\')) dbg_printf (\'HTTP redirect\');\n"
"return 1;\n"
"}\n"
"else if (isinteger (http_redir) and http_redir > 399)\n"
"{\n"
"http_status_set (http_redir);\n"
"http_body_read ();\n"
"if (registry_get (\'__debug_url_rewrite\') in (\'1\', \'2\')) dbg_printf (\'HTTP status\');\n"
"return 1;\n"
"}\n"
"else\n"
"{\n"
"hf := rfc1808_parse_uri (long_url);\n"
"full_path := hf[2];\n"
"pars := split_and_decode (hf[4]);\n"
"p_full_path := http_physical_path_resolve (full_path, 1);\n"
"http_internal_redirect (full_path, p_full_path, long_url, keep_lpath);\n"
"pars := vector_concat (params, pars);\n"
"http_set_params (pars);\n"
"if (registry_get (\'__debug_url_rewrite\') in (\'1\', \'2\')) dbg_printf (\'Internal redirect\');\n"
"}\n"
"}\n"
"return 0;\n"
"}\n"
"--src url_rewrite.sql:1202\n";
static const char *proc74 =
"#line 1361 \"[executable]/url_rewrite.sql\"\n"
"create procedure DB.DBA.URLREWRITE_DUMP_RULELIST_SQL (in rulelist_iri varchar)\n"
"{\n"
"declare ses, rules any;\n"
"ses := string_output ();\n"
"http (sprintf (\'DB.DBA.URLREWRITE_CREATE_RULELIST ( \\n\\\'%s\\\', 1, \\n vector (\', rulelist_iri), ses);\n"
"rules := (select DB.DBA.VECTOR_AGG (URRL_MEMBER) from DB.DBA.URL_REWRITE_RULE_LIST where URRL_LIST = rulelist_iri order by URRL_INX);\n"
"http (SYS_SQL_VECTOR_PRINT (rules), ses);\n"
"http (\'));\\n\\n\', ses);\n"
"\n"
"for select URRL_MEMBER from DB.DBA.URL_REWRITE_RULE_LIST where URRL_LIST = rulelist_iri order by URRL_INX do\n"
"{\n"
"for select\n"
"URR_RULE_TYPE,\n"
"URR_NICE_FORMAT,\n"
"URR_NICE_PARAMS,\n"
"URR_NICE_MIN_PARAMS,\n"
"URR_TARGET_FORMAT,\n"
"URR_TARGET_PARAMS,\n"
"URR_TARGET_EXPR,\n"
"URR_ACCEPT_PATTERN,\n"
"URR_NO_CONTINUATION,\n"
"URR_HTTP_REDIRECT,\n"
"URR_HTTP_HEADERS from\n"
"DB.DBA.URL_REWRITE_RULE\n"
"where URR_RULE = URRL_MEMBER\n"
"do\n"
"{\n"
"if (URR_RULE_TYPE = 1)\n"
"{\n"
"http (sprintf (\'DB.DBA.URLREWRITE_CREATE_REGEX_RULE ( \\n\\\'%s\\\', 1, \\n \', URRL_MEMBER), ses);\n"
"}\n"
"else\n"
"{\n"
"http (sprintf (\'DB.DBA.URLREWRITE_CREATE_SPRINTF_RULE ( \\n\\\'%s\\\', 1, \\n \', URRL_MEMBER), ses);\n"
"}\n"
"\n"
"http (sprintf (\'\\\'%S\\\', \\n\', URR_NICE_FORMAT), ses);\n"
"http (sprintf (\'vector (%s), \\n\', SYS_SQL_VECTOR_PRINT (deserialize (URR_NICE_PARAMS))), ses);\n"
"http (sprintf (\'%d, \\n\', URR_NICE_MIN_PARAMS), ses);\n"
"http (sprintf (\'\\\'%S\\\', \\n\', URR_TARGET_FORMAT), ses);\n"
"http (sprintf (\'vector (%s), \\n\', SYS_SQL_VECTOR_PRINT (deserialize (URR_TARGET_PARAMS))), ses);\n"
"http (sprintf (\'%s, \\n\', SYS_SQL_VAL_PRINT (URR_TARGET_EXPR)), ses);\n"
"http (sprintf (\'%s, \\n\', SYS_SQL_VAL_PRINT (URR_ACCEPT_PATTERN)), ses);\n"
"http (sprintf (\'%s, \\n\', SYS_SQL_VAL_PRINT (URR_NO_CONTINUATION)), ses);\n"
"http (sprintf (\'%s, \\n\', SYS_SQL_VAL_PRINT (URR_HTTP_REDIRECT)), ses);\n"
"http (sprintf (\'%s \\n\', SYS_SQL_VAL_PRINT (URR_HTTP_HEADERS)), ses);\n"
"\n"
"http (\');\\n\\n\', ses);\n"
"}\n"
"}\n"
"\n"
"for select VM_RULELIST, VM_URI, VM_VARIANT_URI, VM_QS, VM_TYPE, VM_LANG, VM_ENC, VM_DESCRIPTION, VM_ALGO\n"
"from DB.DBA.HTTP_VARIANT_MAP where VM_RULELIST = rulelist_iri do\n"
"{\n"
"http (sprintf (\'DB.DBA.HTTP_VARIANT_ADD (\\n%s,\\n\', SYS_SQL_VAL_PRINT (VM_RULELIST)), ses);\n"
"http (sprintf (\'%s,\\n\', SYS_SQL_VAL_PRINT (VM_URI)), ses);\n"
"http (sprintf (\'%s,\\n\', SYS_SQL_VAL_PRINT (VM_VARIANT_URI)), ses);\n"
"http (sprintf (\'%s,\\n\', SYS_SQL_VAL_PRINT (VM_TYPE)), ses);\n"
"http (sprintf (\'%s,\\n\', SYS_SQL_VAL_PRINT (VM_QS)), ses);\n"
"http (sprintf (\'%s,\\n\', SYS_SQL_VAL_PRINT (VM_DESCRIPTION)), ses);\n"
"http (sprintf (\'%s,\\n\', SYS_SQL_VAL_PRINT (VM_LANG)), ses);\n"
"http (sprintf (\'%s,\\n\', SYS_SQL_VAL_PRINT (VM_ENC)), ses);\n"
"http (sprintf (\'%s\\n\', SYS_SQL_VAL_PRINT (VM_ALGO)), ses);\n"
"http (\');\\n\\n\', ses);\n"
"}\n"
"\n"
"return string_output_string (ses);\n"
"}\n"
"--src url_rewrite.sql:1359\n";
static const char *other870 =
"virt_proxy_init ()\n";
static const char *other871 =
"grant execute on ext_http_proxy to PROXY\n";
static const char *proc75 =
"#line 1449 \"[executable]/url_rewrite.sql\"\n"
"create procedure\n"
"url_rewrite_mime_types ()\n"
"{\n"
"return vector (\n"
"vector (\'html\', \'text/html\', 1.0),\n"
"vector (\'xml\', \'application/rdf+xml\', 0.95),\n"
"vector (\'n3\', \'text/n3\', 0.80),\n"
"vector (\'nt\', \'text/rdf+n3\', 0.80),\n"
"vector (\'ttlx\', \'application/x-turtle\', 0.70),\n"
"vector (\'ttl\', \'text/turtle\', 0.70),\n"
"vector (\'n3s\', \'text/ntriples\', 0.70),\n"
"vector (\'json\', \'application/json\', 0.60),\n"
"vector (\'jrdf\', \'application/rdf+json\', 0.60),\n"
"vector (\'atom\', \'application/atom+xml\', 0.50),\n"
"vector (\'jsod\', \'application/odata+json\',0.50),\n"
"vector (\'ld\', \'application/ld+json\',0.50),\n"
"vector (\'md\', \'application/microdata+json\',0.50)\n"
");\n"
"}\n"
"--src url_rewrite.sql:1447\n";
static const char *proc76 =
"#line 1470 \"[executable]/url_rewrite.sql\"\n"
"create procedure\n"
"url_rewrite_mime_pattern ()\n"
"{\n"
"declare x, res any;\n"
"x := url_rewrite_mime_types ();\n"
"res := \'\';\n"
"foreach (varchar p in x) do\n"
"{\n"
"res := res || sprintf (\'(%s)|\', replace (p[1], \'+\', \'\\\\\\\\+\'));\n"
"}\n"
"return rtrim (res, \'|\');\n"
"}\n"
"--src url_rewrite.sql:1468\n";
static const char *proc77 =
"#line 1484 \"[executable]/url_rewrite.sql\"\n"
"create procedure\n"
"url_rewrite_gen_describe (in graph varchar, in iri_spf varchar)\n"
"{\n"
"declare ret, qr any;\n"
"qr := sprintf (\'DESCRIBE <%s>\', iri_spf);\n"
"ret := sprintf (\'/sparql?default-graph-uri=%U&query=%U\', graph, qr);\n"
"ret := replace (ret, \'%\', \'%%\');\n"
"ret := replace (ret, \'@@placeholder@@\', \'%s\');\n"
"return ret;\n"
"}\n"
"--src url_rewrite.sql:1482\n";
static const char *proc78 =
"#line 1496 \"[executable]/url_rewrite.sql\"\n"
"create procedure\n"
"url_rewrite_gen_vsp (in graph varchar, in iri_spf varchar)\n"
"{\n"
"declare ret, qr any;\n"
"ret := sprintf (\'/describe/?url=%s\', iri_spf);\n"
"return ret;\n"
"}\n"
"--src url_rewrite.sql:1494\n";
static const char *proc79 =
"#line 1505 \"[executable]/url_rewrite.sql\"\n"
"create procedure\n"
"url_rewrite_from_template (in prefix varchar, in graph varchar, in iri_pattern varchar, in url_pattern varchar, in flags int := 0)\n"
"{\n"
"declare arr, h, iri_path, iri_regex, iri_spf, iri_tcn, url_spf, url_regex, url_tcn, iri_param, url_param, iri_vd, url_vd any;\n"
"declare pos, nth, fct int;\n"
"\n"
"pos := 0; nth := 1;\n"
"h := WS.WS.PARSE_URI (iri_pattern);\n"
"arr := regexp_parse (\'{[[:alpha:]]+}\', h[2], pos);\n"
"if (arr is null) signal (\'.....\', \'Invalid IRI pattern\');\n"
"iri_vd := subseq (h[2], pos, arr[0]);\n"
"iri_regex := iri_spf := iri_tcn := \'\';\n"
"iri_param := vector ();\n"
"while (arr is not null)\n"
"{\n"
"declare param any;\n"
"param := subseq (h[2], arr[0], arr[1]);\n"
"iri_regex := iri_regex || subseq (h[2], pos, arr[0]) || \'(.*)\';\n"
"iri_spf := iri_spf || subseq (h[2], pos, arr[0]) || \'@@placeholder@@\';\n"
"iri_tcn := iri_tcn || subseq (h[2], pos, arr[0]) || sprintf (\'\\\\x24%d\', nth);\n"
"param := trim (param, \'{}\');\n"
"iri_param := vector_concat (iri_param, vector (param));\n"
"pos := arr[1];\n"
"arr := regexp_parse (\'{[[:alpha:]]+}\', h[2], pos);\n"
"nth := nth + 1;\n"
"}\n"
"iri_regex := iri_regex || subseq (h[2], pos);\n"
"iri_spf := iri_spf || subseq (h[2], pos);\n"
"iri_tcn := iri_tcn || subseq (h[2], pos);\n"
"\n"
"if (h[1] = \'{HostName}\') h[1] := registry_get (\'URIQADefaultHost\');\n"
"h[2] := iri_spf;\n"
"iri_spf := WS.WS.VFS_URI_COMPOSE (h);\n"
"h[2] := iri_tcn;\n"
"iri_tcn := WS.WS.VFS_URI_COMPOSE (h);\n"
"\n"
"pos := 0; nth := 1;\n"
"h := WS.WS.PARSE_URI (url_pattern);\n"
"arr := regexp_parse (\'{[[:alpha:]]+}\', h[2], pos);\n"
"if (arr is null) signal (\'.....\', \'Invalid URL pattern\');\n"
"url_spf := url_regex := url_tcn := \'\';\n"
"url_param := vector ();\n"
"url_vd := subseq (h[2], pos, arr[0]);\n"
"while (arr is not null)\n"
"{\n"
"declare param any;\n"
"param := subseq (h[2], arr[0], arr[1]);\n"
"if (param <> \'{Extension}\')\n"
"{\n"
"url_spf := url_spf || subseq (h[2], pos, arr[0]) || \'%s\';\n"
"url_regex := url_regex || subseq (h[2], pos, arr[0]) || \'(.*)\';\n"
"url_tcn := url_tcn || subseq (h[2], pos, arr[0]) || sprintf (\'\\\\x24%d\', nth);\n"
"param := trim (param, \'{}\');\n"
"url_param := vector_concat (url_param, vector (param));\n"
"nth := nth + 1;\n"
"}\n"
"else\n"
"{\n"
"url_spf := url_spf || subseq (h[2], pos, arr[0]) || param;\n"
"url_regex := url_regex || subseq (h[2], pos, arr[0]) || param;\n"
"url_tcn := url_tcn || subseq (h[2], pos, arr[0]) || param;\n"
"}\n"
"pos := arr[1];\n"
"arr := regexp_parse (\'{[[:alpha:]]+}\', h[2], pos);\n"
"}\n"
"url_spf := url_spf || subseq (h[2], pos);\n"
"url_regex := url_regex || subseq (h[2], pos);\n"
"\n"
"\n"
"declare ses, mime_types any;\n"
"ses := string_output ();\n"
"\n"
"iri_vd := rtrim (iri_vd, \'/\');\n"
"url_vd := rtrim (url_vd, \'/\');\n"
"\n"
"http (\'-- Virtual Directories \\n\', ses);\n"
"http (sprintf (\'DB.DBA.VHOST_REMOVE (lpath=>\\\'%s\\\');\\n\', iri_vd), ses);\n"
"http (sprintf (\'DB.DBA.VHOST_REMOVE (lpath=>\\\'%s\\\');\\n\', url_vd), ses);\n"
"http (sprintf (\'DB.DBA.VHOST_DEFINE (lpath=>\\\'%s\\\', ppath=>\\\'/\\\', is_dav=>0, opts=>vector (\\\'url_rewrite\\\', \\\'%s_iri_rule_list\\\'));\\n\', iri_vd, prefix), ses);\n"
"http (sprintf (\'DB.DBA.VHOST_DEFINE (lpath=>\\\'%s\\\', ppath=>\\\'/404.html\\\', is_dav=>0, opts=>vector (\\\'url_rewrite\\\', \\\'%s_url_rule_list\\\'));\\n\', url_vd, prefix), ses);\n"
"http (\'\\n\', ses);\n"
"\n"
"http (\'-- Rule list for abstract\\n\', ses);\n"
"\n"
"http (sprintf (\'DB.DBA.URLREWRITE_CREATE_RULELIST ( \\\'%s_iri_rule_list\\\', 1, vector (\\\'%s_iri_rule_1\\\', \\\'%s_iri_rule_2\\\'));\\n\', prefix, prefix, prefix), ses);\n"
"http (sprintf (\'DB.DBA.URLREWRITE_CREATE_REGEX_RULE ( \\\'%s_iri_rule_1\\\', 1, \\\'%s\\\', %s, 1, \\\'%s\\\', %s, null, null, 2, 406, null); \\n\',\n"
"prefix,\n"
"iri_regex,\n"
"sys_sql_val_print (iri_param),\n"
"rtrim (replace (replace (url_spf, \'{Extension}\', \'\'), \'//\', \'/\'), \'.\'),\n"
"sys_sql_val_print (url_param)\n"
"), ses);\n"
"\n"
"http (sprintf (\'DB.DBA.URLREWRITE_CREATE_REGEX_RULE ( \\\'%s_iri_rule_2\\\', 1, \\\'%s\\\', %s, 1, \\\'%s\\\', %s, null,\\n \\\'%s\\\', 2, 303, null); \\n\',\n"
"prefix,\n"
"iri_regex,\n"
"sys_sql_val_print (iri_param),\n"
"rtrim (replace (replace (url_spf, \'{Extension}\', \'\'), \'//\', \'/\'), \'.\'),\n"
"sys_sql_val_print (url_param),\n"
"url_rewrite_mime_pattern ()\n"
"), ses);\n"
"\n"
"http (\'\\n\', ses);\n"
"http (sprintf (\'delete from DB.DBA.HTTP_VARIANT_MAP where VM_RULELIST = \\\'%s_iri_rule_list\\\';\\n\', prefix), ses);\n"
"if (flags and exists (select 1 from VAD.DBA.VAD_REGISTRY where R_KEY like \'/VAD/fct/%/resources/dav/%\'))\n"
"fct := 1;\n"
"mime_types := url_rewrite_mime_types ();\n"
"foreach (any x in mime_types) do\n"
"{\n"
"declare redir varchar;\n"
"if (fct and x[0] = \'html\')\n"
"redir := url_rewrite_gen_vsp (graph, iri_tcn);\n"
"else\n"
"redir := replace (url_tcn, \'{Extension}\', x[0]);\n"
"http (sprintf (\'DB.DBA.HTTP_VARIANT_ADD (\\\'%s_iri_rule_list\\\', \\\'%s\\\', \\\'%s\\\', \\\'%s\\\', %.2f);\\n\',\n"
"prefix,\n"
"rtrim (replace (replace (url_regex, \'{Extension}\', \'\'), \'//\', \'/\'), \'.\'),\n"
"redir,\n"
"x[1],\n"
"x[2]\n"
"), ses);\n"
"}\n"
"http (\'\\n\', ses);\n"
"http (\'-- Rule list for data\\n\', ses);\n"
"nth := 1;\n"
"http (sprintf (\'DB.DBA.URLREWRITE_CREATE_RULELIST ( \\\'%s_url_rule_list\\\', 1, vector (\', prefix), ses);\n"
"foreach (any x in mime_types) do\n"
"{\n"
"if (nth > 1) http (\',\', ses);\n"
"http (sprintf (\'\\\'%s_url_rule_%d\\\'\', prefix, nth), ses);\n"
"nth := nth + 1;\n"
"}\n"
"http (\'));\\n\', ses);\n"
"\n"
"nth := 1;\n"
"foreach (any x in mime_types) do\n"
"{\n"
"declare redir any;\n"
"redir := url_rewrite_gen_describe (graph, iri_spf) || replace (sprintf (\'&format=%U\', x[1]), \'%\', \'%%\');\n"
"http (sprintf (\'DB.DBA.URLREWRITE_CREATE_REGEX_RULE ( \\\'%s_url_rule_%d\\\', 1, \\\'%s\\\', %s, 1, \\\'%s\\\', %s, null, null, 2, null, \\\'Content-Type: %s\\\'); \\n\',\n"
"prefix, nth,\n"
"replace (url_regex, \'{Extension}\', x[0]),\n"
"sys_sql_val_print (url_param),\n"
"redir,\n"
"sys_sql_val_print (iri_param),\n"
"x[1]\n"
"), ses);\n"
"nth := nth + 1;\n"
"}\n"
"return string_output_string (ses);\n"
"}\n"
"--src url_rewrite.sql:1503\n";
static int
sch_proc_def_exists (client_connection_t *cli, const char *proc_name, const int report)
{
query_t *proc = NULL;
char *full_name = sch_full_proc_name (isp_schema(NULL), proc_name,
cli->cli_qualifier, CLI_OWNER (cli));
if (full_name)
proc = sch_proc_def (isp_schema(NULL), full_name);
if (report && proc != NULL)
log_debug ("built-in procedure \"%s\" overruled by the RDBMS", proc_name);
return (proc != NULL);
}
#define DEFINE_PROC(name, proc) \
if (!sch_proc_def_exists (bootstrap_cli, (name), log_proc_overwrite)) \
ddl_std_proc_1 (proc, 0x0, 1)
#define DEFINE_PUBLIC_PROC(name, proc) \
if (!sch_proc_def_exists (bootstrap_cli, (name), log_proc_overwrite)) \
ddl_std_proc_1 (proc, 0x1, 1)
#define DEFINE_OVERWRITE_PROC(name, proc) \
ddl_std_proc_1 (proc, 0x1, 1)
void
sqls_define_ddk (void)
{
caddr_t saved_qualifier = bootstrap_cli->cli_qualifier;
/* replddk.sql */
ddl_ensure_table ("DB.DBA.SYS_TP_ITEM", tbl0);
ddl_ensure_table ("DB.DBA.TP_ITEM", view0);
ddl_ensure_table ("do this always", other0);
ddl_ensure_table ("DB.DBA.REPL_ACCOUNTS", view1);
ddl_ensure_table ("do this always", other1);
ddl_ensure_table ("DB.DBA.SYS_TP_GRANT", tbl1);
ddl_ensure_table ("DB.DBA.SYS_REPL_CR", tbl2);
ddl_ensure_table ("do this always", other2);
/* davddk.sql */
bootstrap_cli->cli_qualifier = box_string ("WS");
ddl_ensure_table ("WS.WS.SYS_DAV_COL", tbl3);
ddl_ensure_table ("WS.WS.SYS_DAV_RES", tbl4);
DEFINE_PROC ("WS.WS.SYS_DAV_RES_RES_CONTENT_INDEX_HOOK", proc0);
DEFINE_PROC ("WS.WS.SYS_DAV_RES_RES_CONTENT_UNINDEX_HOOK", proc1);
ddl_ensure_table ("do this always", other3);
ddl_ensure_table ("do this always", other4);
ddl_ensure_table ("WS.WS.SYS_DAV_PROP", tbl5);
ddl_ensure_table ("WS.WS.SYS_DAV_LOCK", tbl6);
ddl_ensure_table ("WS.WS.SYS_DAV_USER", view2);
ddl_ensure_table ("WS.WS.SYS_DAV_GROUP", view3);
ddl_ensure_table ("WS.WS.SYS_DAV_USER_GROUP", view4);
ddl_ensure_table ("WS.WS.SYS_DAV_RES_TYPES", tbl7);
ddl_ensure_table ("WS.WS.SYS_MIME_TYPES", tbl8);
ddl_ensure_table ("WS.WS.SYS_RDF_SCHEMAS", tbl9);
ddl_ensure_table ("WS.WS.SYS_MIME_RDFS", tbl10);
ddl_ensure_table ("WS.WS.SYS_RDF_PROP_NAME", tbl11);
ddl_ensure_table ("WS.WS.SYS_DAV_CATFILTER", tbl12);
ddl_ensure_table ("WS.WS.SYS_DAV_CATFILTER_DETS", tbl13);
ddl_ensure_table ("WS.WS.SYS_DAV_RDF_INVERSE", tbl14);
ddl_ensure_table ("WS.WS.SYS_DAV_ACL_INVERSE", tbl15);
ddl_ensure_table ("WS.WS.SYS_DAV_ACL_GRANTS", view5);
ddl_ensure_table ("WS.WS.SYS_DAV_SPACE_QUOTA", tbl16);
ddl_ensure_table ("WS.WS.SYS_DAV_TAG", tbl17);
DEFINE_PUBLIC_PROC ("WS.WS.DAV_TAG_NORMALIZE", proc2);
DEFINE_PROC ("WS.WS.SYS_DAV_TAG_DT_TAGS_INDEX_HOOK", proc3);
DEFINE_PROC ("WS.WS.SYS_DAV_TAG_DT_TAGS_UNINDEX_HOOK", proc4);
ddl_ensure_table ("do this always", other5);
DEFINE_PROC ("WS.WS.GETID", proc5);
DEFINE_PROC ("WS.WS.COL_PATH", proc6);
DEFINE_PROC ("DB.DBA.DAV_CHANGED_FUNCTIONS", proc7);
DEFINE_PROC ("WS.WS.SYS_DAV_INIT", proc8);
DEFINE_PROC ("WS.WS.SYS_DAV_INIT_1", proc9);
ddl_ensure_table ("do this always", other6);
DEFINE_PROC ("WS.WS.SYS_DAV_PROP_PROP_VALUE_INDEX_HOOK", proc10);
DEFINE_PROC ("WS.WS.SYS_DAV_PROP_PROP_VALUE_UNINDEX_HOOK", proc11);
ddl_ensure_table ("do this always", other7);
ddl_ensure_table ("do this always", other8);
ddl_ensure_table ("do this always", other9);
ddl_ensure_table ("do this always", other10);
ddl_ensure_table ("do this always", other11);
ddl_ensure_table ("do this always", other12);
ddl_ensure_table ("do this always", other13);
ddl_ensure_table ("do this always", other14);
ddl_ensure_table ("do this always", other15);
ddl_ensure_table ("do this always", other16);
ddl_ensure_table ("do this always", other17);
ddl_ensure_table ("do this always", other18);
ddl_ensure_table ("do this always", other19);
ddl_ensure_table ("do this always", other20);
ddl_ensure_table ("do this always", other21);
ddl_ensure_table ("do this always", other22);
ddl_ensure_table ("do this always", other23);
ddl_ensure_table ("do this always", other24);
ddl_ensure_table ("do this always", other25);
ddl_ensure_table ("do this always", other26);
ddl_ensure_table ("do this always", other27);
ddl_ensure_table ("do this always", other28);
ddl_ensure_table ("do this always", other29);
ddl_ensure_table ("do this always", other30);
ddl_ensure_table ("do this always", other31);
ddl_ensure_table ("do this always", other32);
ddl_ensure_table ("do this always", other33);
ddl_ensure_table ("do this always", other34);
ddl_ensure_table ("do this always", other35);
ddl_ensure_table ("do this always", other36);
ddl_ensure_table ("do this always", other37);
ddl_ensure_table ("do this always", other38);
ddl_ensure_table ("do this always", other39);
ddl_ensure_table ("do this always", other40);
ddl_ensure_table ("do this always", other41);
ddl_ensure_table ("do this always", other42);
ddl_ensure_table ("do this always", other43);
ddl_ensure_table ("do this always", other44);
ddl_ensure_table ("do this always", other45);
ddl_ensure_table ("do this always", other46);
ddl_ensure_table ("do this always", other47);
ddl_ensure_table ("do this always", other48);
ddl_ensure_table ("do this always", other49);
ddl_ensure_table ("do this always", other50);
ddl_ensure_table ("do this always", other51);
ddl_ensure_table ("do this always", other52);
ddl_ensure_table ("do this always", other53);
ddl_ensure_table ("do this always", other54);
ddl_ensure_table ("do this always", other55);
ddl_ensure_table ("do this always", other56);
ddl_ensure_table ("do this always", other57);
ddl_ensure_table ("do this always", other58);
ddl_ensure_table ("do this always", other59);
ddl_ensure_table ("do this always", other60);
ddl_ensure_table ("do this always", other61);
ddl_ensure_table ("do this always", other62);
ddl_ensure_table ("do this always", other63);
ddl_ensure_table ("do this always", other64);
ddl_ensure_table ("do this always", other65);
ddl_ensure_table ("do this always", other66);
ddl_ensure_table ("do this always", other67);
ddl_ensure_table ("do this always", other68);
ddl_ensure_table ("do this always", other69);
ddl_ensure_table ("do this always", other70);
ddl_ensure_table ("do this always", other71);
ddl_ensure_table ("do this always", other72);
ddl_ensure_table ("do this always", other73);
ddl_ensure_table ("do this always", other74);
ddl_ensure_table ("do this always", other75);
ddl_ensure_table ("do this always", other76);
ddl_ensure_table ("do this always", other77);
ddl_ensure_table ("do this always", other78);
ddl_ensure_table ("do this always", other79);
ddl_ensure_table ("do this always", other80);
ddl_ensure_table ("do this always", other81);
ddl_ensure_table ("do this always", other82);
ddl_ensure_table ("do this always", other83);
ddl_ensure_table ("do this always", other84);
ddl_ensure_table ("do this always", other85);
ddl_ensure_table ("do this always", other86);
ddl_ensure_table ("do this always", other87);
ddl_ensure_table ("do this always", other88);
ddl_ensure_table ("do this always", other89);
ddl_ensure_table ("do this always", other90);
ddl_ensure_table ("do this always", other91);
ddl_ensure_table ("do this always", other92);
ddl_ensure_table ("do this always", other93);
ddl_ensure_table ("do this always", other94);
ddl_ensure_table ("do this always", other95);
ddl_ensure_table ("do this always", other96);
ddl_ensure_table ("do this always", other97);
ddl_ensure_table ("do this always", other98);
ddl_ensure_table ("do this always", other99);
ddl_ensure_table ("do this always", other100);
ddl_ensure_table ("do this always", other101);
ddl_ensure_table ("do this always", other102);
ddl_ensure_table ("do this always", other103);
ddl_ensure_table ("do this always", other104);
ddl_ensure_table ("do this always", other105);
ddl_ensure_table ("do this always", other106);
ddl_ensure_table ("do this always", other107);
ddl_ensure_table ("do this always", other108);
ddl_ensure_table ("do this always", other109);
ddl_ensure_table ("do this always", other110);
ddl_ensure_table ("do this always", other111);
ddl_ensure_table ("do this always", other112);
ddl_ensure_table ("do this always", other113);
ddl_ensure_table ("do this always", other114);
ddl_ensure_table ("do this always", other115);
ddl_ensure_table ("do this always", other116);
ddl_ensure_table ("do this always", other117);
ddl_ensure_table ("do this always", other118);
ddl_ensure_table ("do this always", other119);
ddl_ensure_table ("do this always", other120);
ddl_ensure_table ("do this always", other121);
ddl_ensure_table ("do this always", other122);
ddl_ensure_table ("do this always", other123);
ddl_ensure_table ("do this always", other124);
ddl_ensure_table ("do this always", other125);
ddl_ensure_table ("do this always", other126);
ddl_ensure_table ("do this always", other127);
ddl_ensure_table ("do this always", other128);
ddl_ensure_table ("do this always", other129);
ddl_ensure_table ("do this always", other130);
ddl_ensure_table ("do this always", other131);
ddl_ensure_table ("do this always", other132);
ddl_ensure_table ("do this always", other133);
ddl_ensure_table ("do this always", other134);
ddl_ensure_table ("do this always", other135);
ddl_ensure_table ("do this always", other136);
ddl_ensure_table ("do this always", other137);
ddl_ensure_table ("do this always", other138);
ddl_ensure_table ("do this always", other139);
ddl_ensure_table ("do this always", other140);
ddl_ensure_table ("do this always", other141);
ddl_ensure_table ("do this always", other142);
ddl_ensure_table ("do this always", other143);
ddl_ensure_table ("do this always", other144);
ddl_ensure_table ("do this always", other145);
ddl_ensure_table ("do this always", other146);
ddl_ensure_table ("do this always", other147);
ddl_ensure_table ("do this always", other148);
ddl_ensure_table ("do this always", other149);
ddl_ensure_table ("do this always", other150);
ddl_ensure_table ("do this always", other151);
ddl_ensure_table ("do this always", other152);
ddl_ensure_table ("do this always", other153);
ddl_ensure_table ("do this always", other154);
ddl_ensure_table ("do this always", other155);
ddl_ensure_table ("do this always", other156);
ddl_ensure_table ("do this always", other157);
ddl_ensure_table ("do this always", other158);
ddl_ensure_table ("do this always", other159);
ddl_ensure_table ("do this always", other160);
ddl_ensure_table ("do this always", other161);
ddl_ensure_table ("do this always", other162);
ddl_ensure_table ("do this always", other163);
ddl_ensure_table ("do this always", other164);
ddl_ensure_table ("do this always", other165);
ddl_ensure_table ("do this always", other166);
ddl_ensure_table ("do this always", other167);
ddl_ensure_table ("do this always", other168);
ddl_ensure_table ("do this always", other169);
ddl_ensure_table ("do this always", other170);
ddl_ensure_table ("do this always", other171);
ddl_ensure_table ("do this always", other172);
ddl_ensure_table ("do this always", other173);
ddl_ensure_table ("do this always", other174);
ddl_ensure_table ("do this always", other175);
ddl_ensure_table ("do this always", other176);
ddl_ensure_table ("do this always", other177);
ddl_ensure_table ("do this always", other178);
ddl_ensure_table ("do this always", other179);
ddl_ensure_table ("do this always", other180);
ddl_ensure_table ("do this always", other181);
ddl_ensure_table ("do this always", other182);
ddl_ensure_table ("do this always", other183);
ddl_ensure_table ("do this always", other184);
ddl_ensure_table ("do this always", other185);
ddl_ensure_table ("do this always", other186);
ddl_ensure_table ("do this always", other187);
ddl_ensure_table ("do this always", other188);
ddl_ensure_table ("do this always", other189);
ddl_ensure_table ("do this always", other190);
ddl_ensure_table ("do this always", other191);
ddl_ensure_table ("do this always", other192);
ddl_ensure_table ("do this always", other193);
ddl_ensure_table ("do this always", other194);
ddl_ensure_table ("do this always", other195);
ddl_ensure_table ("do this always", other196);
ddl_ensure_table ("do this always", other197);
ddl_ensure_table ("do this always", other198);
ddl_ensure_table ("do this always", other199);
ddl_ensure_table ("do this always", other200);
ddl_ensure_table ("do this always", other201);
ddl_ensure_table ("do this always", other202);
ddl_ensure_table ("do this always", other203);
ddl_ensure_table ("do this always", other204);
ddl_ensure_table ("do this always", other205);
ddl_ensure_table ("do this always", other206);
ddl_ensure_table ("do this always", other207);
ddl_ensure_table ("do this always", other208);
ddl_ensure_table ("do this always", other209);
ddl_ensure_table ("do this always", other210);
ddl_ensure_table ("do this always", other211);
ddl_ensure_table ("do this always", other212);
ddl_ensure_table ("do this always", other213);
ddl_ensure_table ("do this always", other214);
ddl_ensure_table ("do this always", other215);
ddl_ensure_table ("do this always", other216);
ddl_ensure_table ("do this always", other217);
ddl_ensure_table ("do this always", other218);
ddl_ensure_table ("do this always", other219);
ddl_ensure_table ("do this always", other220);
ddl_ensure_table ("do this always", other221);
ddl_ensure_table ("do this always", other222);
ddl_ensure_table ("do this always", other223);
ddl_ensure_table ("do this always", other224);
ddl_ensure_table ("do this always", other225);
ddl_ensure_table ("do this always", other226);
ddl_ensure_table ("do this always", other227);
ddl_ensure_table ("do this always", other228);
ddl_ensure_table ("do this always", other229);
ddl_ensure_table ("do this always", other230);
ddl_ensure_table ("do this always", other231);
ddl_ensure_table ("do this always", other232);
ddl_ensure_table ("do this always", other233);
ddl_ensure_table ("do this always", other234);
ddl_ensure_table ("do this always", other235);
ddl_ensure_table ("do this always", other236);
ddl_ensure_table ("do this always", other237);
ddl_ensure_table ("do this always", other238);
ddl_ensure_table ("do this always", other239);
ddl_ensure_table ("do this always", other240);
ddl_ensure_table ("do this always", other241);
ddl_ensure_table ("do this always", other242);
ddl_ensure_table ("do this always", other243);
ddl_ensure_table ("do this always", other244);
ddl_ensure_table ("do this always", other245);
ddl_ensure_table ("do this always", other246);
ddl_ensure_table ("do this always", other247);
ddl_ensure_table ("do this always", other248);
ddl_ensure_table ("do this always", other249);
ddl_ensure_table ("do this always", other250);
ddl_ensure_table ("do this always", other251);
ddl_ensure_table ("do this always", other252);
ddl_ensure_table ("do this always", other253);
ddl_ensure_table ("do this always", other254);
ddl_ensure_table ("do this always", other255);
ddl_ensure_table ("do this always", other256);
ddl_ensure_table ("do this always", other257);
ddl_ensure_table ("do this always", other258);
ddl_ensure_table ("do this always", other259);
ddl_ensure_table ("do this always", other260);
ddl_ensure_table ("do this always", other261);
ddl_ensure_table ("do this always", other262);
ddl_ensure_table ("do this always", other263);
ddl_ensure_table ("do this always", other264);
ddl_ensure_table ("do this always", other265);
ddl_ensure_table ("do this always", other266);
ddl_ensure_table ("do this always", other267);
ddl_ensure_table ("do this always", other268);
ddl_ensure_table ("do this always", other269);
ddl_ensure_table ("do this always", other270);
ddl_ensure_table ("do this always", other271);
ddl_ensure_table ("do this always", other272);
ddl_ensure_table ("do this always", other273);
ddl_ensure_table ("do this always", other274);
ddl_ensure_table ("do this always", other275);
ddl_ensure_table ("do this always", other276);
ddl_ensure_table ("do this always", other277);
ddl_ensure_table ("do this always", other278);
ddl_ensure_table ("do this always", other279);
ddl_ensure_table ("do this always", other280);
ddl_ensure_table ("do this always", other281);
ddl_ensure_table ("do this always", other282);
ddl_ensure_table ("do this always", other283);
ddl_ensure_table ("do this always", other284);
ddl_ensure_table ("do this always", other285);
ddl_ensure_table ("do this always", other286);
ddl_ensure_table ("do this always", other287);
ddl_ensure_table ("do this always", other288);
ddl_ensure_table ("do this always", other289);
ddl_ensure_table ("do this always", other290);
ddl_ensure_table ("do this always", other291);
ddl_ensure_table ("do this always", other292);
ddl_ensure_table ("do this always", other293);
ddl_ensure_table ("do this always", other294);
ddl_ensure_table ("do this always", other295);
ddl_ensure_table ("do this always", other296);
ddl_ensure_table ("do this always", other297);
ddl_ensure_table ("do this always", other298);
ddl_ensure_table ("do this always", other299);
ddl_ensure_table ("do this always", other300);
ddl_ensure_table ("do this always", other301);
ddl_ensure_table ("do this always", other302);
ddl_ensure_table ("do this always", other303);
ddl_ensure_table ("do this always", other304);
ddl_ensure_table ("do this always", other305);
ddl_ensure_table ("do this always", other306);
ddl_ensure_table ("do this always", other307);
ddl_ensure_table ("do this always", other308);
ddl_ensure_table ("do this always", other309);
ddl_ensure_table ("do this always", other310);
ddl_ensure_table ("do this always", other311);
ddl_ensure_table ("do this always", other312);
ddl_ensure_table ("do this always", other313);
ddl_ensure_table ("do this always", other314);
ddl_ensure_table ("do this always", other315);
ddl_ensure_table ("do this always", other316);
ddl_ensure_table ("do this always", other317);
ddl_ensure_table ("do this always", other318);
ddl_ensure_table ("do this always", other319);
ddl_ensure_table ("do this always", other320);
ddl_ensure_table ("do this always", other321);
ddl_ensure_table ("do this always", other322);
ddl_ensure_table ("do this always", other323);
ddl_ensure_table ("do this always", other324);
ddl_ensure_table ("do this always", other325);
ddl_ensure_table ("do this always", other326);
ddl_ensure_table ("do this always", other327);
ddl_ensure_table ("do this always", other328);
ddl_ensure_table ("do this always", other329);
ddl_ensure_table ("do this always", other330);
ddl_ensure_table ("do this always", other331);
ddl_ensure_table ("do this always", other332);
ddl_ensure_table ("do this always", other333);
ddl_ensure_table ("do this always", other334);
ddl_ensure_table ("do this always", other335);
ddl_ensure_table ("do this always", other336);
ddl_ensure_table ("do this always", other337);
ddl_ensure_table ("do this always", other338);
ddl_ensure_table ("do this always", other339);
ddl_ensure_table ("do this always", other340);
ddl_ensure_table ("do this always", other341);
ddl_ensure_table ("do this always", other342);
ddl_ensure_table ("do this always", other343);
ddl_ensure_table ("do this always", other344);
ddl_ensure_table ("do this always", other345);
ddl_ensure_table ("do this always", other346);
ddl_ensure_table ("do this always", other347);
ddl_ensure_table ("do this always", other348);
ddl_ensure_table ("do this always", other349);
ddl_ensure_table ("do this always", other350);
ddl_ensure_table ("do this always", other351);
ddl_ensure_table ("do this always", other352);
ddl_ensure_table ("do this always", other353);
ddl_ensure_table ("do this always", other354);
ddl_ensure_table ("do this always", other355);
ddl_ensure_table ("do this always", other356);
ddl_ensure_table ("do this always", other357);
ddl_ensure_table ("do this always", other358);
ddl_ensure_table ("do this always", other359);
ddl_ensure_table ("do this always", other360);
ddl_ensure_table ("do this always", other361);
ddl_ensure_table ("do this always", other362);
ddl_ensure_table ("do this always", other363);
ddl_ensure_table ("do this always", other364);
ddl_ensure_table ("do this always", other365);
ddl_ensure_table ("do this always", other366);
ddl_ensure_table ("do this always", other367);
ddl_ensure_table ("do this always", other368);
ddl_ensure_table ("do this always", other369);
ddl_ensure_table ("do this always", other370);
ddl_ensure_table ("do this always", other371);
ddl_ensure_table ("do this always", other372);
ddl_ensure_table ("do this always", other373);
ddl_ensure_table ("do this always", other374);
ddl_ensure_table ("do this always", other375);
ddl_ensure_table ("do this always", other376);
ddl_ensure_table ("do this always", other377);
ddl_ensure_table ("do this always", other378);
ddl_ensure_table ("do this always", other379);
ddl_ensure_table ("do this always", other380);
ddl_ensure_table ("do this always", other381);
ddl_ensure_table ("do this always", other382);
ddl_ensure_table ("do this always", other383);
ddl_ensure_table ("do this always", other384);
ddl_ensure_table ("do this always", other385);
ddl_ensure_table ("do this always", other386);
ddl_ensure_table ("do this always", other387);
ddl_ensure_table ("do this always", other388);
ddl_ensure_table ("do this always", other389);
ddl_ensure_table ("do this always", other390);
ddl_ensure_table ("do this always", other391);
ddl_ensure_table ("do this always", other392);
ddl_ensure_table ("do this always", other393);
ddl_ensure_table ("do this always", other394);
ddl_ensure_table ("do this always", other395);
ddl_ensure_table ("do this always", other396);
ddl_ensure_table ("do this always", other397);
ddl_ensure_table ("do this always", other398);
ddl_ensure_table ("do this always", other399);
ddl_ensure_table ("do this always", other400);
ddl_ensure_table ("do this always", other401);
ddl_ensure_table ("do this always", other402);
ddl_ensure_table ("do this always", other403);
ddl_ensure_table ("do this always", other404);
ddl_ensure_table ("do this always", other405);
ddl_ensure_table ("do this always", other406);
ddl_ensure_table ("do this always", other407);
ddl_ensure_table ("do this always", other408);
ddl_ensure_table ("do this always", other409);
ddl_ensure_table ("do this always", other410);
ddl_ensure_table ("do this always", other411);
ddl_ensure_table ("do this always", other412);
ddl_ensure_table ("do this always", other413);
ddl_ensure_table ("do this always", other414);
ddl_ensure_table ("do this always", other415);
ddl_ensure_table ("do this always", other416);
ddl_ensure_table ("do this always", other417);
ddl_ensure_table ("do this always", other418);
ddl_ensure_table ("do this always", other419);
ddl_ensure_table ("do this always", other420);
ddl_ensure_table ("do this always", other421);
ddl_ensure_table ("do this always", other422);
ddl_ensure_table ("do this always", other423);
ddl_ensure_table ("do this always", other424);
ddl_ensure_table ("do this always", other425);
ddl_ensure_table ("do this always", other426);
ddl_ensure_table ("do this always", other427);
ddl_ensure_table ("do this always", other428);
ddl_ensure_table ("do this always", other429);
ddl_ensure_table ("do this always", other430);
ddl_ensure_table ("do this always", other431);
ddl_ensure_table ("do this always", other432);
ddl_ensure_table ("do this always", other433);
ddl_ensure_table ("do this always", other434);
ddl_ensure_table ("do this always", other435);
ddl_ensure_table ("do this always", other436);
ddl_ensure_table ("do this always", other437);
ddl_ensure_table ("do this always", other438);
ddl_ensure_table ("do this always", other439);
ddl_ensure_table ("do this always", other440);
ddl_ensure_table ("do this always", other441);
ddl_ensure_table ("do this always", other442);
ddl_ensure_table ("do this always", other443);
ddl_ensure_table ("do this always", other444);
ddl_ensure_table ("do this always", other445);
ddl_ensure_table ("do this always", other446);
ddl_ensure_table ("do this always", other447);
ddl_ensure_table ("do this always", other448);
ddl_ensure_table ("do this always", other449);
ddl_ensure_table ("do this always", other450);
ddl_ensure_table ("do this always", other451);
ddl_ensure_table ("do this always", other452);
ddl_ensure_table ("do this always", other453);
ddl_ensure_table ("do this always", other454);
ddl_ensure_table ("do this always", other455);
ddl_ensure_table ("do this always", other456);
ddl_ensure_table ("do this always", other457);
ddl_ensure_table ("do this always", other458);
ddl_ensure_table ("do this always", other459);
ddl_ensure_table ("do this always", other460);
ddl_ensure_table ("do this always", other461);
ddl_ensure_table ("do this always", other462);
ddl_ensure_table ("do this always", other463);
ddl_ensure_table ("do this always", other464);
ddl_ensure_table ("do this always", other465);
ddl_ensure_table ("do this always", other466);
ddl_ensure_table ("do this always", other467);
ddl_ensure_table ("do this always", other468);
ddl_ensure_table ("do this always", other469);
ddl_ensure_table ("do this always", other470);
ddl_ensure_table ("do this always", other471);
ddl_ensure_table ("do this always", other472);
ddl_ensure_table ("do this always", other473);
ddl_ensure_table ("do this always", other474);
ddl_ensure_table ("do this always", other475);
ddl_ensure_table ("do this always", other476);
ddl_ensure_table ("do this always", other477);
ddl_ensure_table ("do this always", other478);
ddl_ensure_table ("do this always", other479);
ddl_ensure_table ("do this always", other480);
ddl_ensure_table ("do this always", other481);
ddl_ensure_table ("do this always", other482);
ddl_ensure_table ("do this always", other483);
ddl_ensure_table ("do this always", other484);
ddl_ensure_table ("do this always", other485);
ddl_ensure_table ("do this always", other486);
ddl_ensure_table ("do this always", other487);
ddl_ensure_table ("do this always", other488);
ddl_ensure_table ("do this always", other489);
ddl_ensure_table ("do this always", other490);
ddl_ensure_table ("do this always", other491);
ddl_ensure_table ("do this always", other492);
ddl_ensure_table ("do this always", other493);
ddl_ensure_table ("do this always", other494);
ddl_ensure_table ("do this always", other495);
ddl_ensure_table ("do this always", other496);
ddl_ensure_table ("do this always", other497);
ddl_ensure_table ("do this always", other498);
ddl_ensure_table ("do this always", other499);
ddl_ensure_table ("do this always", other500);
ddl_ensure_table ("do this always", other501);
ddl_ensure_table ("do this always", other502);
ddl_ensure_table ("do this always", other503);
ddl_ensure_table ("do this always", other504);
ddl_ensure_table ("do this always", other505);
ddl_ensure_table ("do this always", other506);
ddl_ensure_table ("do this always", other507);
ddl_ensure_table ("do this always", other508);
ddl_ensure_table ("do this always", other509);
ddl_ensure_table ("do this always", other510);
ddl_ensure_table ("do this always", other511);
ddl_ensure_table ("do this always", other512);
ddl_ensure_table ("do this always", other513);
ddl_ensure_table ("do this always", other514);
ddl_ensure_table ("do this always", other515);
ddl_ensure_table ("do this always", other516);
ddl_ensure_table ("do this always", other517);
ddl_ensure_table ("do this always", other518);
ddl_ensure_table ("do this always", other519);
ddl_ensure_table ("do this always", other520);
ddl_ensure_table ("do this always", other521);
ddl_ensure_table ("do this always", other522);
ddl_ensure_table ("do this always", other523);
ddl_ensure_table ("do this always", other524);
ddl_ensure_table ("do this always", other525);
ddl_ensure_table ("do this always", other526);
ddl_ensure_table ("do this always", other527);
ddl_ensure_table ("do this always", other528);
ddl_ensure_table ("do this always", other529);
ddl_ensure_table ("do this always", other530);
ddl_ensure_table ("do this always", other531);
ddl_ensure_table ("do this always", other532);
ddl_ensure_table ("do this always", other533);
ddl_ensure_table ("do this always", other534);
ddl_ensure_table ("do this always", other535);
ddl_ensure_table ("do this always", other536);
ddl_ensure_table ("do this always", other537);
ddl_ensure_table ("do this always", other538);
ddl_ensure_table ("do this always", other539);
ddl_ensure_table ("do this always", other540);
ddl_ensure_table ("do this always", other541);
ddl_ensure_table ("do this always", other542);
ddl_ensure_table ("do this always", other543);
ddl_ensure_table ("do this always", other544);
ddl_ensure_table ("do this always", other545);
ddl_ensure_table ("do this always", other546);
ddl_ensure_table ("do this always", other547);
ddl_ensure_table ("do this always", other548);
ddl_ensure_table ("do this always", other549);
ddl_ensure_table ("do this always", other550);
ddl_ensure_table ("do this always", other551);
ddl_ensure_table ("do this always", other552);
ddl_ensure_table ("do this always", other553);
ddl_ensure_table ("do this always", other554);
ddl_ensure_table ("do this always", other555);
ddl_ensure_table ("do this always", other556);
ddl_ensure_table ("do this always", other557);
ddl_ensure_table ("do this always", other558);
ddl_ensure_table ("do this always", other559);
ddl_ensure_table ("do this always", other560);
ddl_ensure_table ("do this always", other561);
ddl_ensure_table ("do this always", other562);
ddl_ensure_table ("do this always", other563);
ddl_ensure_table ("do this always", other564);
ddl_ensure_table ("do this always", other565);
ddl_ensure_table ("do this always", other566);
ddl_ensure_table ("do this always", other567);
ddl_ensure_table ("do this always", other568);
ddl_ensure_table ("do this always", other569);
ddl_ensure_table ("do this always", other570);
ddl_ensure_table ("do this always", other571);
ddl_ensure_table ("do this always", other572);
ddl_ensure_table ("do this always", other573);
ddl_ensure_table ("do this always", other574);
ddl_ensure_table ("do this always", other575);
ddl_ensure_table ("do this always", other576);
ddl_ensure_table ("do this always", other577);
ddl_ensure_table ("do this always", other578);
ddl_ensure_table ("do this always", other579);
ddl_ensure_table ("do this always", other580);
ddl_ensure_table ("do this always", other581);
ddl_ensure_table ("do this always", other582);
ddl_ensure_table ("do this always", other583);
ddl_ensure_table ("do this always", other584);
ddl_ensure_table ("do this always", other585);
ddl_ensure_table ("do this always", other586);
ddl_ensure_table ("do this always", other587);
ddl_ensure_table ("do this always", other588);
ddl_ensure_table ("do this always", other589);
ddl_ensure_table ("do this always", other590);
ddl_ensure_table ("do this always", other591);
ddl_ensure_table ("do this always", other592);
ddl_ensure_table ("do this always", other593);
ddl_ensure_table ("do this always", other594);
ddl_ensure_table ("do this always", other595);
ddl_ensure_table ("do this always", other596);
ddl_ensure_table ("do this always", other597);
ddl_ensure_table ("do this always", other598);
ddl_ensure_table ("do this always", other599);
ddl_ensure_table ("do this always", other600);
ddl_ensure_table ("do this always", other601);
ddl_ensure_table ("do this always", other602);
ddl_ensure_table ("do this always", other603);
ddl_ensure_table ("do this always", other604);
ddl_ensure_table ("do this always", other605);
ddl_ensure_table ("do this always", other606);
ddl_ensure_table ("do this always", other607);
ddl_ensure_table ("do this always", other608);
ddl_ensure_table ("do this always", other609);
ddl_ensure_table ("do this always", other610);
ddl_ensure_table ("do this always", other611);
ddl_ensure_table ("do this always", other612);
ddl_ensure_table ("do this always", other613);
ddl_ensure_table ("do this always", other614);
ddl_ensure_table ("do this always", other615);
ddl_ensure_table ("do this always", other616);
ddl_ensure_table ("do this always", other617);
ddl_ensure_table ("do this always", other618);
ddl_ensure_table ("do this always", other619);
ddl_ensure_table ("do this always", other620);
ddl_ensure_table ("do this always", other621);
ddl_ensure_table ("do this always", other622);
ddl_ensure_table ("do this always", other623);
ddl_ensure_table ("do this always", other624);
ddl_ensure_table ("do this always", other625);
ddl_ensure_table ("do this always", other626);
ddl_ensure_table ("do this always", other627);
ddl_ensure_table ("do this always", other628);
ddl_ensure_table ("do this always", other629);
ddl_ensure_table ("do this always", other630);
ddl_ensure_table ("do this always", other631);
ddl_ensure_table ("do this always", other632);
ddl_ensure_table ("do this always", other633);
ddl_ensure_table ("do this always", other634);
ddl_ensure_table ("do this always", other635);
ddl_ensure_table ("do this always", other636);
ddl_ensure_table ("do this always", other637);
ddl_ensure_table ("do this always", other638);
ddl_ensure_table ("do this always", other639);
ddl_ensure_table ("do this always", other640);
ddl_ensure_table ("do this always", other641);
ddl_ensure_table ("do this always", other642);
ddl_ensure_table ("do this always", other643);
ddl_ensure_table ("do this always", other644);
ddl_ensure_table ("do this always", other645);
ddl_ensure_table ("do this always", other646);
ddl_ensure_table ("do this always", other647);
ddl_ensure_table ("do this always", other648);
ddl_ensure_table ("do this always", other649);
ddl_ensure_table ("do this always", other650);
ddl_ensure_table ("do this always", other651);
ddl_ensure_table ("do this always", other652);
ddl_ensure_table ("do this always", other653);
ddl_ensure_table ("do this always", other654);
ddl_ensure_table ("do this always", other655);
ddl_ensure_table ("do this always", other656);
ddl_ensure_table ("do this always", other657);
ddl_ensure_table ("do this always", other658);
ddl_ensure_table ("do this always", other659);
ddl_ensure_table ("do this always", other660);
ddl_ensure_table ("do this always", other661);
ddl_ensure_table ("do this always", other662);
ddl_ensure_table ("do this always", other663);
ddl_ensure_table ("do this always", other664);
ddl_ensure_table ("do this always", other665);
ddl_ensure_table ("do this always", other666);
ddl_ensure_table ("do this always", other667);
ddl_ensure_table ("do this always", other668);
ddl_ensure_table ("do this always", other669);
ddl_ensure_table ("do this always", other670);
ddl_ensure_table ("do this always", other671);
ddl_ensure_table ("do this always", other672);
ddl_ensure_table ("do this always", other673);
ddl_ensure_table ("do this always", other674);
ddl_ensure_table ("do this always", other675);
ddl_ensure_table ("do this always", other676);
ddl_ensure_table ("do this always", other677);
ddl_ensure_table ("do this always", other678);
ddl_ensure_table ("do this always", other679);
ddl_ensure_table ("do this always", other680);
ddl_ensure_table ("do this always", other681);
ddl_ensure_table ("do this always", other682);
ddl_ensure_table ("do this always", other683);
ddl_ensure_table ("do this always", other684);
ddl_ensure_table ("do this always", other685);
ddl_ensure_table ("do this always", other686);
ddl_ensure_table ("do this always", other687);
ddl_ensure_table ("do this always", other688);
ddl_ensure_table ("do this always", other689);
ddl_ensure_table ("do this always", other690);
ddl_ensure_table ("do this always", other691);
ddl_ensure_table ("do this always", other692);
ddl_ensure_table ("do this always", other693);
ddl_ensure_table ("do this always", other694);
ddl_ensure_table ("do this always", other695);
ddl_ensure_table ("do this always", other696);
ddl_ensure_table ("do this always", other697);
ddl_ensure_table ("do this always", other698);
ddl_ensure_table ("do this always", other699);
ddl_ensure_table ("do this always", other700);
ddl_ensure_table ("do this always", other701);
ddl_ensure_table ("do this always", other702);
ddl_ensure_table ("do this always", other703);
ddl_ensure_table ("do this always", other704);
ddl_ensure_table ("do this always", other705);
ddl_ensure_table ("do this always", other706);
ddl_ensure_table ("do this always", other707);
ddl_ensure_table ("do this always", other708);
ddl_ensure_table ("do this always", other709);
ddl_ensure_table ("do this always", other710);
ddl_ensure_table ("do this always", other711);
ddl_ensure_table ("do this always", other712);
ddl_ensure_table ("do this always", other713);
ddl_ensure_table ("do this always", other714);
ddl_ensure_table ("do this always", other715);
ddl_ensure_table ("do this always", other716);
ddl_ensure_table ("do this always", other717);
ddl_ensure_table ("do this always", other718);
ddl_ensure_table ("do this always", other719);
ddl_ensure_table ("do this always", other720);
ddl_ensure_table ("do this always", other721);
ddl_ensure_table ("do this always", other722);
ddl_ensure_table ("do this always", other723);
ddl_ensure_table ("do this always", other724);
ddl_ensure_table ("do this always", other725);
ddl_ensure_table ("do this always", other726);
ddl_ensure_table ("do this always", other727);
ddl_ensure_table ("do this always", other728);
ddl_ensure_table ("do this always", other729);
ddl_ensure_table ("do this always", other730);
ddl_ensure_table ("do this always", other731);
ddl_ensure_table ("do this always", other732);
ddl_ensure_table ("do this always", other733);
ddl_ensure_table ("do this always", other734);
ddl_ensure_table ("do this always", other735);
ddl_ensure_table ("do this always", other736);
ddl_ensure_table ("do this always", other737);
ddl_ensure_table ("do this always", other738);
ddl_ensure_table ("do this always", other739);
ddl_ensure_table ("do this always", other740);
ddl_ensure_table ("do this always", other741);
ddl_ensure_table ("do this always", other742);
ddl_ensure_table ("do this always", other743);
ddl_ensure_table ("do this always", other744);
ddl_ensure_table ("do this always", other745);
ddl_ensure_table ("do this always", other746);
ddl_ensure_table ("do this always", other747);
ddl_ensure_table ("do this always", other748);
ddl_ensure_table ("do this always", other749);
ddl_ensure_table ("do this always", other750);
ddl_ensure_table ("do this always", other751);
ddl_ensure_table ("do this always", other752);
ddl_ensure_table ("do this always", other753);
ddl_ensure_table ("do this always", other754);
ddl_ensure_table ("do this always", other755);
ddl_ensure_table ("do this always", other756);
ddl_ensure_table ("do this always", other757);
ddl_ensure_table ("do this always", other758);
ddl_ensure_table ("do this always", other759);
ddl_ensure_table ("do this always", other760);
ddl_ensure_table ("do this always", other761);
ddl_ensure_table ("do this always", other762);
ddl_ensure_table ("do this always", other763);
ddl_ensure_table ("do this always", other764);
ddl_ensure_table ("do this always", other765);
ddl_ensure_table ("do this always", other766);
ddl_ensure_table ("do this always", other767);
ddl_ensure_table ("do this always", other768);
ddl_ensure_table ("do this always", other769);
ddl_ensure_table ("do this always", other770);
ddl_ensure_table ("do this always", other771);
ddl_ensure_table ("do this always", other772);
ddl_ensure_table ("do this always", other773);
ddl_ensure_table ("do this always", other774);
ddl_ensure_table ("do this always", other775);
ddl_ensure_table ("do this always", other776);
ddl_ensure_table ("do this always", other777);
ddl_ensure_table ("do this always", other778);
ddl_ensure_table ("do this always", other779);
ddl_ensure_table ("do this always", other780);
ddl_ensure_table ("do this always", other781);
ddl_ensure_table ("do this always", other782);
ddl_ensure_table ("do this always", other783);
ddl_ensure_table ("do this always", other784);
ddl_ensure_table ("do this always", other785);
ddl_ensure_table ("do this always", other786);
ddl_ensure_table ("do this always", other787);
ddl_ensure_table ("do this always", other788);
ddl_ensure_table ("do this always", other789);
ddl_ensure_table ("do this always", other790);
ddl_ensure_table ("do this always", other791);
ddl_ensure_table ("do this always", other792);
ddl_ensure_table ("do this always", other793);
ddl_ensure_table ("do this always", other794);
ddl_ensure_table ("do this always", other795);
ddl_ensure_table ("do this always", other796);
ddl_ensure_table ("do this always", other797);
ddl_ensure_table ("do this always", other798);
ddl_ensure_table ("do this always", other799);
ddl_ensure_table ("do this always", other800);
ddl_ensure_table ("do this always", other801);
ddl_ensure_table ("do this always", other802);
ddl_ensure_table ("do this always", other803);
ddl_ensure_table ("do this always", other804);
ddl_ensure_table ("do this always", other805);
ddl_ensure_table ("do this always", other806);
ddl_ensure_table ("do this always", other807);
ddl_ensure_table ("do this always", other808);
ddl_ensure_table ("do this always", other809);
ddl_ensure_table ("do this always", other810);
ddl_ensure_table ("do this always", other811);
ddl_ensure_table ("do this always", other812);
ddl_ensure_table ("do this always", other813);
ddl_ensure_table ("do this always", other814);
ddl_ensure_table ("do this always", other815);
ddl_ensure_table ("do this always", other816);
ddl_ensure_table ("do this always", other817);
ddl_ensure_table ("do this always", other818);
ddl_ensure_table ("do this always", other819);
ddl_ensure_table ("do this always", other820);
ddl_ensure_table ("do this always", other821);
ddl_ensure_table ("do this always", other822);
ddl_ensure_table ("do this always", other823);
ddl_ensure_table ("do this always", other824);
ddl_ensure_table ("do this always", other825);
ddl_ensure_table ("do this always", other826);
ddl_ensure_table ("do this always", other827);
ddl_ensure_table ("do this always", other828);
ddl_ensure_table ("do this always", other829);
ddl_ensure_table ("do this always", other830);
ddl_ensure_table ("do this always", other831);
ddl_ensure_table ("do this always", other832);
ddl_ensure_table ("do this always", other833);
ddl_ensure_table ("do this always", other834);
ddl_ensure_table ("do this always", other835);
ddl_ensure_table ("do this always", other836);
ddl_ensure_table ("do this always", other837);
ddl_ensure_table ("do this always", other838);
ddl_ensure_table ("do this always", other839);
ddl_ensure_table ("do this always", other840);
ddl_ensure_table ("do this always", other841);
ddl_ensure_table ("do this always", other842);
ddl_ensure_table ("do this always", other843);
ddl_ensure_table ("do this always", other844);
ddl_ensure_table ("do this always", other845);
ddl_ensure_table ("do this always", other846);
ddl_ensure_table ("do this always", other847);
ddl_std_proc (trig0, 0x0);
ddl_std_proc (trig1, 0x0);
ddl_std_proc (trig2, 0x0);
DEFINE_PROC ("DB.DBA.DAV_PLAIN_SUBCOLS_P", proc12);
DEFINE_PROC ("DB.DBA.DAV_PLAIN_SUBCOLS_P_INT", proc13);
ddl_ensure_table ("DB.DBA.DAV_PLAIN_SUBCOLS", view6);
DEFINE_PROC ("DB.DBA.DAV_PLAIN_SUBMOUNTS_P", proc14);
DEFINE_PROC ("DB.DBA.DAV_PLAIN_SUBMOUNTS_P_INT", proc15);
ddl_ensure_table ("DB.DBA.DAV_PLAIN_SUBMOUNTS", view7);
DEFINE_PUBLIC_PROC ("DB.DBA.DAV_DIR_P", proc16);
ddl_ensure_table ("DB.DBA.DAV_DIR", view8);
ddl_ensure_table ("do this always", other848);
dk_free_box (bootstrap_cli->cli_qualifier);
bootstrap_cli->cli_qualifier = saved_qualifier;
/* mail_cli.sql */
ddl_ensure_table ("DB.DBA.MAIL_MESSAGE", tbl18);
ddl_ensure_table ("DB.DBA.MAIL_ATTACHMENT", tbl19);
ddl_std_proc (trig3, 0x0);
ddl_std_proc (trig4, 0x0);
ddl_std_proc (trig5, 0x0);
DEFINE_PROC ("DB.DBA.MAIL_MESSAGE_MM_BODY_INDEX_HOOK", proc17);
DEFINE_PROC ("DB.DBA.MAIL_MESSAGE_MM_BODY_UNINDEX_HOOK", proc18);
DEFINE_PROC ("MM_FEED_PART", proc19);
ddl_ensure_table ("do this always", other849);
ddl_ensure_table ("do this always", other850);
ddl_ensure_table ("DB.DBA.MAIL_PARTS", tbl20);
DEFINE_PUBLIC_PROC ("MIME_PART", proc20);
DEFINE_PUBLIC_PROC ("MIME_BODY", proc21);
DEFINE_PROC ("NEW_MAIL", proc22);
DEFINE_PROC ("MAIL_GET_NEXT_ID", proc23);
DEFINE_PROC ("BARE_NEW_MAIL", proc24);
DEFINE_PROC ("display_mime", proc25);
/* admin_ddl.sql */
ddl_ensure_table ("DB.DBA.ADMIN_SESSION", tbl21);
ddl_ensure_table ("DB.DBA.ADM_XML_VIEWS", view9);
ddl_ensure_table ("WS.WS.AUDIT_LOG", tbl22);
/* vfsddk.sql */
bootstrap_cli->cli_qualifier = box_string ("WS");
ddl_ensure_table ("WS.WS.VFS_URL", tbl23);
ddl_ensure_table ("WS.WS.VFS_QUEUE", tbl24);
ddl_ensure_table ("WS.WS.VFS_SITE", tbl25);
ddl_ensure_table ("WS.WS.VFS_SITE_RDF_MAP", tbl26);
ddl_ensure_column ("WS.WS.VFS_SITE", "VS_DEPTH", alter0, 0);
ddl_ensure_column ("WS.WS.VFS_SITE", "VS_CONVERT_HTML", alter1, 0);
ddl_ensure_column ("WS.WS.VFS_SITE", "VS_XPATH", alter2, 0);
ddl_ensure_column ("WS.WS.VFS_SITE", "VS_BOT", alter3, 0);
ddl_ensure_column ("WS.WS.VFS_SITE", "VS_IS_SITEMAP", alter4, 0);
ddl_ensure_column ("WS.WS.VFS_SITE", "VS_ACCEPT_RDF", alter5, 0);
ddl_ensure_column ("WS.WS.VFS_SITE", "VS_THREADS", alter6, 0);
ddl_ensure_column ("WS.WS.VFS_SITE", "VS_ROBOTS", alter7, 0);
ddl_ensure_column ("WS.WS.VFS_SITE", "VS_DELAY", alter8, 0);
ddl_ensure_column ("WS.WS.VFS_SITE", "VS_TIMEOUT", alter9, 0);
ddl_ensure_column ("WS.WS.VFS_SITE", "VS_HEADERS", alter10, 0);
ddl_ensure_column ("WS.WS.VFS_SITE", "VS_ID", alter11, 0);
ddl_ensure_column ("WS.WS.VFS_QUEUE", "VQ_LEVEL", alter12, 0);
ddl_ensure_column ("WS.WS.VFS_QUEUE", "VQ_VIA_SITEMAP", alter13, 0);
ddl_ensure_column ("WS.WS.VFS_QUEUE", "VQ_DT", alter14, 0);
ddl_ensure_column ("WS.WS.VFS_QUEUE", "VQ_ORIGIN", alter15, 0);
ddl_ensure_column ("WS.WS.VFS_URL", "VU_RES_ID", alter16, 0);
DEFINE_PROC ("WS.WS.VFS_UPGRADE", proc26);
dk_free_box (bootstrap_cli->cli_qualifier);
bootstrap_cli->cli_qualifier = saved_qualifier;
/* virtual_dir.sql */
ddl_ensure_table ("DB.DBA.HTTP_PATH", tbl27);
ddl_ensure_table ("DB.DBA.HTTP_ACL", tbl28);
ddl_ensure_column ("HTTP_ACL", "HA_LIMIT", alter17, 0);
ddl_std_proc (trig6, 0x0);
ddl_std_proc (trig7, 0x0);
ddl_std_proc (trig8, 0x0);
ddl_ensure_table ("DB.DBA.HTTP_PROXY_ACL", view10);
ddl_ensure_table ("DB.DBA.NEWS_ACL", view11);
ddl_ensure_table ("do this always", other852);
ddl_ensure_table ("do this always", other853);
ddl_ensure_table ("do this always", other854);
ddl_ensure_table ("do this always", other855);
ddl_ensure_table ("do this always", other856);
ddl_ensure_table ("do this always", other857);
ddl_ensure_table ("do this always", other858);
ddl_ensure_table ("do this always", other859);
ddl_ensure_table ("do this always", other860);
ddl_ensure_table ("do this always", other861);
ddl_ensure_table ("do this always", other862);
ddl_ensure_table ("do this always", other863);
ddl_ensure_table ("do this always", other864);
ddl_ensure_table ("do this always", other865);
DEFINE_PROC ("HTTP_SET_DBA_ADMIN", proc27);
DEFINE_PROC ("DB.DBA.IS_EMPTY_OR_NULL", proc28);
DEFINE_PROC ("INS_VIRTUAL_DIR", proc29);
DEFINE_PROC ("DEL_VIRTUAL_DIR", proc30);
DEFINE_PROC ("VHOST_DEFINE", proc31);
DEFINE_PROC ("VHOST_MAP_RELOAD", proc32);
DEFINE_PROC ("VHOST_REMOVE", proc33);
DEFINE_PROC ("HTTP_PROXY_ACCESS", proc34);
ddl_ensure_table ("WS.WS.SYS_RC_CACHE", tbl29);
ddl_ensure_table ("WS.WS.SYS_CACHEABLE", tbl30);
ddl_std_proc (trig9, 0x0);
ddl_std_proc (trig10, 0x0);
ddl_std_proc (trig11, 0x0);
DEFINE_PROC ("WS.WS.HTTP_CACHE_CHECK", proc35);
DEFINE_PROC ("WS.WS.HTTP_CACHE_STORE", proc36);
DEFINE_PROC ("virt_proxy_init", proc37);
DEFINE_PROC ("proxy_sp_html_error_page", proc38);
DEFINE_PROC ("str_fmt", proc39);
ddl_ensure_table ("DB.DBA.PROXY_SP_QRY", tbl31);
DEFINE_PROC ("ext_http_proxy_exec_qry", proc40);
DEFINE_PROC ("ext_http_proxy", proc41);
DEFINE_PROC ("DB.DBA.VHOST_DUMP_SQL", proc42);
DEFINE_PROC ("DB.DBA.HTTP_RDF_GET_ACCEPT_BY_Q", proc43);
DEFINE_PROC ("DB.DBA.HTTP_RDF_ACCEPT", proc44);
DEFINE_PROC ("WS.WS.DIR_INDEX_MAKE_XML", proc45);
ddl_ensure_table ("do this always", other868);
DEFINE_PROC ("WS.WS.DIR_INDEX_XML", proc46);
DEFINE_PROC ("DB.DBA.SERVICES_WSIL", proc47);
ddl_ensure_table ("WS.WS.HTTP_HOST_META", tbl32);
DEFINE_PROC ("WS.WS.host_meta_add", proc48);
DEFINE_PROC ("WS.WS.host_meta_del", proc49);
DEFINE_PROC ("WS.WS.host-meta", proc50);
DEFINE_PROC ("WS.WS.host_meta_init", proc51);
ddl_ensure_table ("do this always", other869);
DEFINE_PROC ("WS.WS.host_meta_dss", proc52);
/* url_rewrite.sql */
ddl_ensure_table ("DB.DBA.URL_REWRITE_RULE_LIST", tbl33);
ddl_ensure_table ("DB.DBA.URL_REWRITE_RULE", tbl34);
ddl_ensure_table ("DB.DBA.HTTP_VARIANT_MAP", tbl35);
DEFINE_PROC ("DB.DBA.URLREWRITE_CREATE_RULE", proc53);
DEFINE_PROC ("DB.DBA.URLREWRITE_CREATE_SPRINTF_RULE", proc54);
DEFINE_PROC ("DB.DBA.URLREWRITE_CREATE_REGEX_RULE", proc55);
DEFINE_PROC ("DB.DBA.URLREWRITE_DROP_RULE", proc56);
DEFINE_PROC ("DB.DBA.URLREWRITE_CREATE_RULELIST", proc57);
DEFINE_PROC ("DB.DBA.URLREWRITE_DROP_RULELIST", proc58);
DEFINE_PROC ("DB.DBA.URLREWRITE_ENUMERATE_RULES", proc59);
DEFINE_PROC ("DB.DBA.URLREWRITE_ENUMERATE_RULELISTS", proc60);
DEFINE_PROC ("DB.DBA.URLREWRITE_VPRINTF", proc61);
DEFINE_PROC ("DB.DBA.URLREWRITE_SPRINTF_RESULTS", proc62);
DEFINE_PROC ("DB.DBA.URLREWRITE_APPLY_RECURSIVE", proc63);
DEFINE_PROC ("DB.DBA.URLREWRITE_APPLY", proc64);
DEFINE_PROC ("DB.DBA.URLREWRITE_TRY_INVERSE", proc65);
DEFINE_PROC ("DB.DBA.HTTP_VARIANT_ADD", proc66);
DEFINE_PROC ("DB.DBA.HTTP_VARIANT_REMOVE", proc67);
DEFINE_PROC ("DB.DBA.URLREWRITE_CALC_QS", proc68);
DEFINE_PROC ("DB.DBA.HTTP_URLREWRITE_TCN_LIST", proc69);
DEFINE_PROC ("DB.DBA.HTTP_URLREWRITE_APPLY_PATTERN", proc70);
DEFINE_PROC ("DB.DBA.HTTP_LOC_NEW_URL", proc71);
DEFINE_PROC ("DB.DBA.URLREWRITE_APPLY_TCN", proc72);
DEFINE_PROC ("DB.DBA.HTTP_URLREWRITE", proc73);
DEFINE_PROC ("DB.DBA.URLREWRITE_DUMP_RULELIST_SQL", proc74);
ddl_ensure_table ("do this always", other870);
ddl_ensure_table ("do this always", other871);
DEFINE_PROC ("url_rewrite_mime_types", proc75);
DEFINE_PROC ("url_rewrite_mime_pattern", proc76);
DEFINE_PROC ("url_rewrite_gen_describe", proc77);
DEFINE_PROC ("url_rewrite_gen_vsp", proc78);
DEFINE_PROC ("url_rewrite_from_template", proc79);
}
void
sqls_arfw_define_ddk (void)
{
caddr_t saved_qualifier = bootstrap_cli->cli_qualifier;
/* vfsddk.sql */
bootstrap_cli->cli_qualifier = box_string ("WS");
ddl_ensure_table ("do this always", other851);
dk_free_box (bootstrap_cli->cli_qualifier);
bootstrap_cli->cli_qualifier = saved_qualifier;
/* virtual_dir.sql */
ddl_ensure_table ("do this always", other866);
ddl_ensure_table ("do this always", other867);
}
|