/usr/lib/perl5/DBD/ODBC/Changes.pm is in libdbd-odbc-perl 1.45-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | use strict;
=encoding utf8
=head1 NAME
DBD::ODBC::Changes - Log of significant changes to the DBD::ODBC
=head2 1.45 2013-10-28
[CHANGE IN BEHAVIOUR]
There is no intentional change in behaviour in this release but I'm
adding a warning that the next development release is highly liking
to contain some significant unicode changes in behaviour to fix some
bugs which have been around for quite a long time now.
[BUG FIXES]
If an SQLExecute ODBC API call returned SQL_NO_DATA DBD::ODBC was
still calling SQLError (which was a waste of time).
Since 1.44_1 odbc_out_connect_string stopped returning anything.
[MISCELLANEOUS]
Added another link to resources for supplementary characters.
Added 1 more test to 20SqlServer.t for update statement.
Small changes to 20SqlServer.t test to skip some tests and note the
problem if SQLExecute returns SQL_NO_DATA on a non searched update.
=head2 1.44_4 2013-10-16
[BUG FIXES]
Fix method redefinition warnings in threads on Perl >= 5.16 thanks
Dagfinn Ilmari Mannsåker
[MISCELLANEOUS]
Changed this Changes file to be closer to the version 0.03 change
file spec.
Added t/version.t test.
Added recommends Test::Version.
Updates to the odbc_more_results pod to help clarify its use after
some confusion was seen in a perlmonks thread.
=head2 1.44_3 2013-10-11
[CHANGE IN BEHAVIOUR]
If you attempt to set the ReadOnly attribute and the underlying
ODBC driver does not support this (SQL_SUCCESS_WITH_INFO and "option
value changed" is returned) a warning is issued. However, until RT
89015 "You cannot issue a warning in the STORE method" in DBI is
resolved you won't get this warning. As DBI 1.628 it is not
resolved. I've only seen the SQLite ODBC driver do this.
If you set ReadOnly and the underlying ODBC driver does not
support this then any subsequent attempts to fetch the ReadOnly
attribute will return the value you set.
[BUG FIXES]
The 82_table_info test assumed all database and ODBC Drivers
supported catalogs and schemas (some don't). Use get_info to
find out if catalogs and schemas are supported before
running these tests.
The rt_79190.t could incorrectly fail if your test DSN contained
the DRIVER attribute.
[MISCELLANEOUS]
Added RedHat spec file to examples courtesy of Michiel Beijen.
Added "use strict" to FAQ/Changes etc to quieten kwalitee test.
Added a workaround in the test suite for a probable bug in the
postgres ODBC driver which does not return COLUMN_SIZE from
SQLGetTypeInfo. It also issues a warning. See
http://www.postgresql.org/message-id/524EF455.6050409@ntlworld.com
=head2 1.44_3 2013-10-11
[MISCELLANEOUS]
Skip 70execute_array_native.t test if MS Access - even if behind an
ODBC Bridge.
Fixed some compiler warnings when attempting to print/trace SvCUR.
=head2 1.44_2 2013-09-07
[BUG FIXES]
When table_info was called with a '%' for any one of the catalog,
schema or type arguments with the rest all '' (the empty string),
only a list of catalogs, schemas or types should be returned. It was
not doing that as it was changing empty strings to undef/NULL.
pod for odbc_lob_read had an example only saying lob_read.
TYPE attribute for odbc_lob_read was actually coded as Type. It is
now as documented.
The example lob_read.pl had the TYPE set to 999 from when I was
testing it but it got checked in like this.
MANIFEST contained column_info.pl but the file was coltest.pl
[MISCELLANEOUS]
Fixed RT 86379 - spelling mistakes in ODBC.pm and FAQ - thanks
to David Steinbrunner.
Added 82_table_info.t test.
Added 87_odbc_log_read.t test.
=head2 1.44_1 2013-06-06
Moved from subversion to github as svn.perl.org is closing down.
Changed docs to show new repository.
[BUG FIXES]
Fixed RT 84450 - Database Handle Attribute Fetch broken. Thanks to
Stephen Oberholtzer for finding and supplying patch.
Fixed problem with attributes on bind_col not being sticky. You'll
probably only see this if you are using fetchall_arrayref with a
slice and setting TYPE or attributes in bind_col first.
=head2 1.43 2013-03-06
This is a full release of all the 1.42_* development releases.
plus:
[BUG FIXES]
Minor fix to 10handler.t test suite which relied on a native error
being true instead of defined.
=head2 1.42_5 2013-01-25
[BUG FIXES]
Not all modules used in test code were specified in build_requires.
=head2 1.42_4 2013-01-21
[ENHANCEMENTS]
odbc_trace and odbc_trace_file are now full connection attributes
so you can set them any time you like, not just in connect.
=head2 1.42_3 2013-01-17
[ENHANCEMENTS]
Added odbc_trace_file and odbc_trace attributes to the connect
method so you can now enable ODBC API tracing from the connect
method instead of having to use the ODBC Driver Manager. These also
only enable ODBC API tracing in the application which made the call
unlike the ODBC Driver Manager settings.
=head2 1.42_2 2012-12-17
[MISCELLANEOUS]
Changed any use of if SvUPGRADE to remove the if test as per email
from Dave Mitchell and posting at
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2012-12/msg00424.html.
=head2 1.42_1 2012-12-12
[BUG FIXES]
DBD::ODBC's ExecDirect method did not return an SQLLEN so if you
managed to affect a massive number of rows it would be cast to an
int and hence precision lost.
[CHANGE IN BEHAVIOUR]
When you called DBI's execute method and odbc_exec_direct was not
set (the default) if you managed to affect more rows than would fit
into an int you would get the incorrect count (NOTE on 32 bit
platforms ODBC's SQLRowCount can only return a 32bit value
anyway). You would get whatever casting an SQLLEN to an int would
give you. The fix for this needs a change to DBI (see RT 81911) and
the change would probably impact every DBD so until then DBD::ODBC
will a) warn if an overflow occurs and Warn is set on the handle b)
return INT_MAX and c) provide a new statement method odbc_rows which
you can use to get the correct value.
[ENHANCEMENTS]
New odbc_rows statement method (see above).
[MISCELLANEOUS]
New rt_81911.t test case.
=head2 1.42_0 2012-11-28
[BUG FIXES]
MS Access requires a longchar column to be bound using SQL_LONGVARCHAR.
However, MS Access does not support SQLDescribeParam and we default to
SQL_VARCHAR in this case. The point at which we switch to SQL_LONGVARCHAR
was defaulted to 4000 (for MS SQL Server). We now default to SQL_LONGVARCHAR
for MS Access when data is > 255. This means you can remove those
{TYPE => SQL_LONGVARCHAR} from your bind_param calls for longchar columns
in MS Access.
I seem to have introduced a bug in the test suite for MS Access.
The last test in the 09bind test binds dates as varchars (by
default) and this cannot work in MS Access (it needs to be a
timestamp). This test was skipped in the past and the skip got
removed.
[MISCELLANEOUS]
Steffen Goeldner reported some issues with execute_array in
DBD::Oracle where if ArrayTupleStatus was not specified and an error
occurred DBD::Oracle did not do the right thing. As I used
DBD::Oracle as a base when I wrote execute_for_fetch in DBD::ODBC I
added tests to the test suite to ensure these issues did not exist
in DBD::ODBC.
Minor change to sql_type_cast.t test which attempts to insert an
integer into a varchar. No databases so far have complained about
this until we ran the test against Derby. Changed to use '100'.
RT 80446 - fix spelling mistake - thanks to Xavier Guimar.
=head2 1.41 2012-10-23
A full release of the 1.40 development release series.
=head2 1.40_3 2012-10-08
[BUG FIXES]
Oops, changes to some rt tests fail when not run to MS SQL Server
and they should not be run for other drivers - there was a double
done_testing call.
[CHANGE IN BEHAVIOUR]
As I warned literally years ago DBD::ODBC's private function
DescribeCol has been removed. You can use DBI's statement attributes
like NAME, PRECISION etc, instead. All test code has been changed to
remove calls to DescribeCol and GetTypeInfo.
[MISCELLANEOUS]
New example sqlserver_supplementary_chrs.pl added which shows that
in MS SQL Server 2012 you can now store unicode characters
over 0xFFFF (ones which are surrogate pairs).
More documentation for odbc_out_connect_string.
=head2 1.40_2 2012-09-06
[BUG FIXES]
Fixed rt 78838 - bind_param does not correctly stringify blessed
objects when connected to MS SQL Server
Fix issue in dbd_bind_ph where if you passed a sql type and were
also attempting to change from in to out or vice versa or increasing
the size of an output bound param it would not spot this error.
Allowed the test cases to spot DB2 driver as libXXXdb2.
[MISCELLANEOUS]
New test cases added for some rts.
Added Test::NoWarnings to some tests where it was missing.
=head2 1.40_1 2012-09-04
[BUG FIXES]
Debian/Ubuntu have moved unixODBC into /usr/lib/i386-linux-gnu
so look in this dir for unixODBC as well - thanks to Meastro for finding.
Fixed rt 78838
I had a sequence point error which is only seen with some compilers
as it is sometimes optimized out. It could cause DBD::ODBC to omit
adding the UID/PWD to the end of the connection string when using DSN=.
Thanks to Zsolt Cserna for spotting it and to ilmari and Leon for
explaining it to me.
Fixed rt 79397
Output bound parameters may be incorrectly bound if changed after
bind_param_inout is called. If you start with an undef bound param
and change it to a defined string/number less than 28 characters
before calling execute the original undef will probably be bound.
Thanks to runrig on perl monks for providing an example.
[CHANGE IN BEHAVIOUR]
If you attempt to bind an rv without amagic DBD::ODBC will now
croak - related to rt 78838.
=head2 1.39 2012-07-07
[BUG FIXES]
Manifest mentioned 2 files in examples which do not exist - they
should have been execute_for_fetch.pl.
execute_for_fetch.pl example had not be changed since
odbc_disable_array_operations became odbc_array_operations.
=head2 1.38_3 2012-06-25
[BUG FIXES]
Added encoding line to this file to stop pod test from complaining.
[DOCUMENTATION]
Added link to 64 bit ODBC article.
Fixed some typos in the pod.
[MISCELLANEOUS]
Made pod.t an author test.
=head2 1.38_2 2012-05-24
[ENHANCEMENTS]
Added support for Oracle TAF (assuming your ODBC driver supports it)
- see odbc_taf_callback.
=head2 1.38_1 2012-05-19
[BUG FIXES]
Fixed rt 77283. If you overrode the bind type as SQL_INTEGER in a bind_col
call AFTER previously binding as another type (or not specifying a type)
you would not get the right value back. This also fixes the DiscardString
bind_col attribute for SQL_INTEGER binds (however, see below as DiscardString
is no longer required for SQL_INTEGER).
Fixed some format specifiers in trace calls.
[CHANGE IN BEHAVIOUR]
DBD::ODBC allowed you to change the bound column type in bind_col
after the column was already bound. It now does not allow this
and issues a warning.
You can nolonger override the bound column type (except with
SQL_NUMERIC and SQL_DOUBLE). All columns are now bound as either
SQL_C_LONG (integer columns) or SQL_C_[W]CHAR (all other columns).
If you are calling bind_col with a TYPE => xxx it most likely did
not do what you expected and you should examine it carefully with a
view to removing it altogether. As a result you no longer have to
override the bind type for MS SQL Server XML columns - these will be
bound as SQL_C_CHAR or SQL_C_WCHAR depending on whether Unicode is
enabled.
Integer columns are now bound as SQL_C_LONGs and not as before,
SQL_C_CHAR. This should not matter to you but if you were adding 0
to your integer columns retrieved to make them behave like integers
you should nolonger need to do it.
[OTHER]
Added some missing SQL_C_xxx types to S_SqlCTypeToString internal
function. This only affects tracing.
Some tests in 08bind were skipped when they did not need to be.
sql_type_cast tests rewritten due to fixes above.
=head2 1.37 2012-04-07
A full release of the 1.36 dev releases.
Please note the changes in behaviour below.
=head2 1.36_2 2012-03-31
[BUG FIXES]
* not strictly a bug fix, more a workaround. MS Access mdb driver
reports 22 for the size of doubles but then returns an empty string
for long doubles that still fit in 22 chrs. rt 69864.
[CHANGE IN BEHAVIOUR]
* The odbc_disable_array_operations has been replaced with
odbc_array_operations and the default for array operations is off.
Sorry, but I warned this was experimental. The
ODBC_DISABLE_ARRAY_OPERATIONS env var remains.
[DOCUMENTATION]
* Rewrote parts of "Unicode implementation in DBD::ODBC" to describe
UTF-16/UCS-2 internal implementation.
* Changed ordering of some of the pod sections.
=head2 1.36_1 2012-03-21
[BUG FIXES]
* Fixed 12blob.t skip count when driver does not have a big enough
varchar column to run the test.
* Work around problems hit during the test suite in DB2 driver which
only allows rows of size up to the page size and varchars of 4K.
* Fix bug in execute_for_fetch where it would ignore the parameters
processed when creating the ArrayTupleStatus and hence could
attempt to call SQLGetDiagRec on a parameter row which was not
executed. See the logs in rt 75687 which show this although this
is not a fix for this rt.
* The code wasn't catching success with info from SQLExecute in
execute_for_fetch.
* Add support for drivers (DB2 in this case) which return
SQL_PARAM_DIAG_UNAVAILABLE in bound parameter status array when
running execute_for_fetch. Any driver returning doing
SQL_PARC_NO_BATCH from SQLGetInfo(SQL_PARAM_ARRAY_ROW_COUNTS)
might do this.
* Fix test code for execute_for_fetch to a) handle drivers doing
SQL_PARC_NO_BATCH and b) add "not null" to primary key fields for
drivers like DB2 which require it.
[CHANGE IN BEHAVIOUR]
* In execute_for_fetch set the parameter status array to all 9999
(which is invalid) so we can see if the ODBC driver actually sets
them and we can warn if they don't.
* For freeTDS default odbc_disable_array_operations to 1 as no
version of the freeTDS driver can be found that works. I was
requested to do this by the dbix-class guys. I may revert this
later if freeTDS is fixed.
* as above for MS Access. It is a shame I cannot find any way of
finding out if a driver is capable of array operations.
[ENHANCEMENTS]
* execute_for_fetch code now checks the
ODBC_DISABLE_ARRAY_OPERATIONS environment variable which can
be set to 1 or 0 to override the internal default.
[DOCUMENTATION]
* Fixed ColAttributes example in pod which used a $dbh instead of a
$sth.
* Fixed DescribeCol example in pod which used a $dbh instead of a
$sth.
* new FAQ on SQLRowCount, freeTDS and execute_for_fetch
* Fix typo shown in rt 75860.
[OTHER]
* Reduced usage of D_imp_xxx to avoid calls to dbih_getcom2. See
thread on dbi-dev at
http://www.mail-archive.com/dbi-dev@perl.org/msg06675.html
* Changed the 70execute_array.t test to run it twice, once using
DBI's methods and once using the native one in DBD::ODBC.
* Made the 2 unicode tests work with DB2 ODBC driver.
=head2 1.35 2012-03-06
Full release of the 1.34 development releases
=head2 1.34_7 2012-03-02
[BUG FIXES]
* Fixed more compiler errors highlighed by a smoker using MS Visual
C where some code come before a variable definition.
=head2 1.34_6 2012-02-27
[BUG FIXES]
* Fixed some compiler warnings and a compile error highlighed by a
smoker using MS Visual C where some code come before a variable
definition.
=head2 1.34_5 2012-02-17
[BUG FIXES]
* The 40UnicodeRoundTrip tests counts could be 1 off in some cases.
* Fix for t/03batt.t which could fail a test if the data source had
no table - Kenichi Ishigaki
* If a driver misbehaves during global destruction e.g. SQLFreeStmt
fails but no error is available DBD::ODBC issues an error saying
an error occurred but no error diagnostics could be found. This is
pointless and irritating during global destruction. This stems
from a change in 1.28. Thanks to Peter Rabbitson for reporting
and suggested fix.
[CHANGE IN BEHAVIOUR]
* Prior to this release if you called selectall_* methods with a
non-select statement DBD::ODBC would raise an error saying "no
select statement currently executing". See RT 68720. After
discussions on dbi-dev the concensus seems to be that issuing a
warning in this case is better so that is what I've done. As a
result t/rt_68720.t has been removed and
t/85_selectall_non_select.t has been added.
[DOCUMENTATION]
* odbc_getdiagfield was incorrectly named odbc_getdiagrec in the pod
* add DBI version required for StrictlyTyped and DiscardString to
pod
* Added new FAQ on why a transaction may be committed when
AutoCommit is turned off.
[OTHER]
* Make examples\odbc_diag.pl more tolerant of drivers which do not
handle diagnostic calls properly.
* Make t/40UnicodeRoundTrip.t work with SQLite - Kenichi Ishigaki
* Make t/odbc_describe_parameter.t work with SQLite - Kenichi
Ishigaki
* Add 80_odbc_diags.t based on the same file in examples
=head2 1.34_4 2012-02-05
[BUG FIXES]
* When odbc_getdiag* methods were added they installed themselves
into DBI but did not set IMP_KEEP_ERR so calling them cleared
DBI's errors.
=head2 1.34_3 2012-02-03
[BUG FIXES]
* Linking against unixODBC was working by accident on most UNIX
machines and depended on the order of the files in /usr/lib (or
wherever) and what files there were (e.g. an archive or a shared
object). Same applied to iODBC but it was more broken especially
on machines where libiodbc.so.N.N existed but there was no
libiodbc.so which could lead to no adding the shared object at
all. I doubt anyone really noticed this but I did eventually on
Ubuntu where libiodbc.so.N.N existed but libiodbc.so did not.
[ENHANCEMENTS]
* Added experimental odbc_getdiagrec and odbc_getdiagrec methods,
examples/odbc_diag.pl and examples/params_in_error.pl.
[DOCUMENTATION]
* New FAQ entries.
=head2 1.34_2 2012-01-25
[BUG FIXES]
* Fixed rt73734 - debian moved where unixODBC libs are stored.
* Fixed memory leak of the parameter status array introduced in
previous release when execute_for_fetch used. When the statement
handle is destroyed the parameter status array was not freed.
[ENHANCEMENTS]
* Added environment variable PERL_DBD_ODBC_PREFER_UNIXODBC as a
synonym for -x from Rafael Kitover (Caelum).
[DOCUMENTATION]
* Add a deviation from DBI spec for type_info_all.
[OTHER]
* Added example execute_for_fetch.pl
=head2 1.34_1 2011-12-11
[ENHANCEMENTS]
* Added experimental execute_for_fetch support and associated
attributes odbc_batch_size and odbc_disable_array_operations.
=head2 1.33 2011-12-01
This is simply the official release of the 1.32 development
releases.
=head2 1.32_5 2011-11-24
[ENHANCEMENTS]
* Enable multiple active statement support in 70execute_array.t for
drivers we recognise which support MAS.
* Change column_info to support Unicode catalog/schema/table/column
names.
=head2 1.32_4 2011-11-22
[BUG FIXES]
* remove debugging printf which output "HERE" in some rare cases.
rt 72534 - thanks John Deighan for spotting this.
* The test 70execute_array.t could fail due to warning being output
if the driver does not support Multiple Active Statements.
[ENHANCEMENTS]
* Use SQLGetTypeInfoW on unicode builds.
=head2 1.32_3 2011-11-15
[BUG FIXES]
* Fix bug in utf16_copy which was not adding a trailing NUL but I'm
not sure this affected anyone until I changed table_info this
release.
[ENHANCEMENTS]
* DBD::ODBC now allows unicode catalog/schema/table parameters to be
passed to table_info. Of course they will only reliably work with
a supporting Unicode ODBC driver.
=head2 1.32_2 2011-10-22
[ENHANCEMENTS]
* Added new odbc_driver_complete attribute allowing the ODBC Driver
Manager and ODBC Driver to throw dialogues for incomplete
connection strings or expired passwords etc.
[OTHER]
* added more examples
[DOCUMENTATION]
* new FAQ entries
* added note saying you cannot pass unicode schema/table/column
names to metadata calls like table_info/column_info currently.
=head2 1.32_1 2011-06-24
[BUG FIXES]
* I omitted rt_68720.t from the 1.31 distribution which leads
to a warning as it is mentioned in the MANIFEST.
[OTHER]
* Changed line endings in README.af and README.unicode to be unix
line endings and native eol-style in subversion.
* Minor changes to Makefile.PL to save the opensuse guys patching.
* Added unicode_sql.pl and unicode_params.pl examples
=head2 1.31 2011-06-21
[BUG FIXES]
Recently introduced test sql_type_cast.t cannot work with DBI less
than 1.611.
Minor change to Makefile.PL to avoid use of unitialised warning on
$ENV{LD_LIBRARY_PATH} in warning when it is not set.
=head2 1.30_7 2011-06-15
[BUG FIXES]
Some time ago (I don't know when) a few internal errors generated by
DBD::ODBC got ignored. There are about 5 of them but I seriously
doubt anyone would hit any other than the data truncated error
(which is reported by the ODBC driver anyway) and "no select
statement currently executing". You can see rt_68720.t in the t
directory for an example of the latter.
[ENHANCEMENTS]
An extra argument has been added to the sub associated with
odbc_err_handler. The arguments passed to the odbc_err_handler are
now state (string), error (string), native error code (number) and
the status returned from the last ODBC API. The status will be
SQL_ERROR (-1) for errors or SQL_SUCCESS_WITH_INFO (1) for
informational messages.
=head2 1.30_6 2011-06-04
[BUG FIXES]
* When DBD::ODBC calls SQLExecDirect (the do method) it was not
reporting informational diagnostics (SQL_SUCCESS_WITH_INFO) and
not calling the error handler.
Arguably, this is a change in behaviour but one I've struggled to
resolve since in all other cases of warnings DBD::ODBC's error
handler is called. However, DBI does not call its error handler
for warnings so was DBD::ODBC wrong to call it's error in the
first place for warnings? I decided it was better to leave this as
it is but add checking of SQLExecDirect/do. Apart from anything
else if DBD::ODBC does not call its error handler for
informational diagnostics there is no way to retrieve print
statements etc from procedures.
* The odbc_describe_parameter.t test could fail with some versions
of MS SQL Server ODBC Driver. It was down to when
SQLDescribeParameter is disabled, the column_size passed to
SQLBindParameter is 0.
* pod example of odbc_err_handler incorrectly used \$err_handler
instead of \&err_handler.
=head2 1.30_5 2011-05-24
[BUG FIXES]
* The change in behavior detailed in 1.30_1 for wide character
binding was still not working properly (see
http://rt.cpan.org/Ticket/Display.html?id=67994). It was working
for SQL_CHAR described columns but not SQL_VARCHAR.
=head2 1.30_4 2011-05-18
[BUG FIXES]
* Fix issue described in
http://www.nntp.perl.org/group/perl.dbi.dev/2011/05/msg6567.html.
If you prepare a statement, disconnect and then try and execute the
statement you get an error but it does not tell what is wrong.
[ENHANCEMENTS]
* Added support for StrictlyTyped and DiscardString to the bind_col
method.
[OTHER]
* Minor changes to META.yml for mailing list, dynamic_config,
homepage and keywords.
* The pod was missing = before the heads on a couple of sections in
"Private DBD::ODBC Functions"
* TreatAsLob was incorrectly documented as BindAsLob.
=head2 1.30_3 2011-05-17
[BUG FIXES]
* Made the new odbc_describe_parameters work and added test case.
=head2 1.30_2 2011-05-16
[ENHANCEMENTS]
* Added the new odbc_describe_parameters attribute.
=head2 1.30_1 2011-05-12
[BUG FIXES]
* Fixed some compiler warnings shown with -Wall including some
printf formats that had extra/missing arguments.
* Fixed t/70execute_array.t which was missing an "order by" in the
check_data sub which could cause failures for drivers not
returning the rows in the order they were inserted.
* Minor fix to Makefile.PL to avoid issuing variable used in void
context.
[CHANGE IN BEHAVIOUR]
* DBD::ODBC used to quietly rollback any transactions when
disconnect was called and AutoCommit was off. This can mask a
problem and leads to different behaviour when disconnect is called
vs not calling disconnect (where you get a warning). This release
issues a warning if you call disconnect and a transaction is in
progress then it is rolled back.
* DBD::ODBC used to bind char/varchar/longvarchar columns as SQL_CHAR
meaning that in the unicode build of DBD::ODBC the bound column
data would be returned 8bit in whatever character-set (codepage) the
data was in, in the database. This was inconvenient and arguably a
mistake. Columns like nchar/nvarchar etc were bound as SQL_WCHAR and
returned as Unicode. This release changes the behaviour in a unicode
build of DBD::ODBC to bind all char columns as SQL_WCHAR. This may
inconvenience a few people who expected 8bit chars back, knew the
char set and decoded them (sorry). See odbc_old_unicode to return
to old behaviour.
[ENHANCEMENTS]
* added -w option to Makefile.PL to add "-Wall" to CCFLAGS and
-fno-strict-aliasing so I can find warnings.
* Cope with broken ODBC drivers that describe a parameter as SQL
type 0.
[OTHER]
* Add "disconnect and transactions" to pod describing what DBD::ODBC
does if you call disconnect with an outstanding transaction.
* Reorganised FAQ for bound parameter issues and added a lot on
bound parameter problems.
* Added new FAQ entry for Firebird
* Removed some unused variables and added some missing function
prototypes
=head2 1.29 2011-03-08
* An official release of the 1.28 development releases.
[NOTE]
* The 1.28 development releases made a change which causes a generic
error to be reported when an ODBC call fails but an error message
is not retrieved from the ODBC Driver. It appears this has caught
out a few ODBC drivers - notably freeTDS and Firebird. You now may
see errors that were missed before e.g., DBIx::Class's tests for
Firebird now errors test 21 "outer txn rolled back" (and others)
because SQLRowCount returns an error after "ROLLBACK TO SAVEPOINT
savepoint_0"; before this error was missed.
=head2 1.28_5 2011-03-06
[BUG FIXES]
* rt_59621.t had wrong skip count
* Fixed missing SQL_MAX_TABLE_NAME_LEN definition from test.
* Fixed problem with some drivers which batch "insert;select" where
SQLMoreResults is not required and an extra describe is done.
* Fixed "select 1" in 02simple.t for Firebird ODBC Driver.
* disconnect call added to 70execute_array.t was in the wrong place.
* In non-unicode mode we bind strings as SQL_CHAR but the driver may
have described them as SQL_WCHAR and we were not doing ChopBlanks
processing in that case.
[REQUIREMENTS]
* Now needs Test::Simple 0.90.
[OTHER]
* Added dml_counts.pl example
* worked around a problem in freeTDS in the 20SqlServer.t test
provided by Ralph Doncaster.
* Changed test rt_62033.t to try and make it work with freeTDS - I
failed. It now skips attempts to fetch when the insert fails.
* Worked around problem in Firebird ODBC driver which reports
timestamps have a display size of 24 characters but then can
return 29 which could lead to data truncation errors.
See http://tracker.firebirdsql.org/browse/ODBC-112
* Worked around problem in Firebird ODBC driver which reports
VARCHARs have a maximum length of 32765 but in fact it is 4000.
See http://tracker.firebirdsql.org/browse/ODBC-111
* Improvements in tracing to take account of DBI's neatsvpv lops 5
characters off maxsize on a string.
=head2 1.28_4 2011-02-24
[BUG FIXES]
* Fixed compilation problems with DBIf_TRACE_TXN
* Added missing disconnect call to 70execute_array.t
=head2 1.28_3 2011-02-22
[BUG FIXES]
* Fixed MANIFEST in 1.28_2 which named 2 files incorrectly.
* Fixed use of PREREQ_PRINT in versions of ExtUtils::MakeMaker which
don't support it.
* Fixed a check on LD_LIBRARY_PATH for unixODBC which could report
you've not set LD_LIBRARY_PATH correctly.
[ENHANCEMENTS]
* Added Perl and ExtUtils::MakeMaker version output to build process.
* Added support for DBI's new trace flags ENC, CON, TXN and
DBD. From DBI 1.617 you should be able to use: DBI_TRACE=DBD to
ONLY get DBD::ODBC tracing without DBI tracing ENC and CON DBI
flags are synonymous with DBD::ODBC's odbcconnection and
odbcunicode trace flags which you can still use for now.
[OTHER]
* From now on I'm changing the way the Changes file is written as
per article at
http://blog.urth.org/2011/01/changes-file-how-and-how-not-to.html
* Some broken drivers (freeTDS in this case) can return SQL_ERROR
from an ODBC API function and then SQLError does not return
error details. In this case set a generic error saying an error
occurred but we could not retrieve it.
* Added FAQ entry on MS Access and text columns limited to 255 chrs.
* Added 70execute_array.t test.
=head2 1.28_2 2011-01-24
Added -x argument to Makefile.PL saying you prefer unixODBC over
iODBC driver managers as a) we need to look for iODBC first on some
platforms to detect iODBC and b) some platforms (Debian/Ubuntu)
people have both binary packages installed but only unixODBC dev
package.
Patch from Rafael Kitover (Caelum) for better Cygwin handling.
Minor change to data sources test to cope with someone having no
data sources and using a DSN-less connection for testing.
Fixed MARS test when a DSN-less connection used for testing - thanks
to Rafael Kitover (Caelum) for spotting this.
pod patch for "CPAN Testers Reporting" to point at cpan testers wiki
from Rafael Kitover (Caelum).
Fixed some broken links in the FAQ.
Add a multiple active statement document link to random links and
the FAQ entry.
A call to SQLNumResultCols was not checked to test it succeeded.
Not seen anyone run into this as yet.
=head2 1.28_1 2010-12-29
Rewrote documentation on odbc_SQL_ROWSET_SIZE and added loads of
notes so I don't have to go through a huge irc conversation with
ribasushi again.
Workaround bug in DBI (prior to 1.616) which mistakenly issues a
FETCH on any attribute passed to the connect method and sometimes
driver managers error on SQL_ROWSET_SIZE in SQLGetConnectAttr.
ChopBlanks was not working on UCS-2 encoded data written into bound
columns and was also sometimes reading off the end of the bound
array.
Minor FAQ changes:
Added an additional way to read MS Access dbs from Unix
Clarified versions for MARS_Connection
updates to cancel_big_fetch.pl
Updated TO_DO with more stuff to do
Improved tracing output
Tidied up some of the examples
=head2 1.27 2010-12-29
Official release of the 1.26 development releases.
=head2 1.26_4 2010-12-14
Fixed bug highlighted by investigation into rt 62033 where the
active flag was sometimes not set on the statement after
SQLMoreResults indicates a result-set exists.
Fix rt 63550 reported by John Corcoran where if a do method call
fails the SQL C<Statement> is not available in an error handler as
we never created a DBI statement in the first place. Added a note
to "do" deviations pod.
Minor fix to head at wrong level in the pod.
Fix a possible snprintf buffer overflow in GetTypeInfo when
the type is specified and it is negative.
=head2 1.26_3 2010-11-18
Fixed rt 63108. The change to column binding in 1.24_2 was not
complete and causes bound columns to be rebound on each execute
wasting time and leaking memory. Found, diagnosed and proposed fix
by Steve Bentley.
=head2 1.26_2 2010-11-09
Fixed bug found by frew where an snprintf can overflow when binding
a lot of parameters.
=head2 1.26_1 October 24, 2010
There are over 200 block changes in the source code for this release
from the previous one (see below). If you are using DBD::ODBC in
production you should not upgrade without testing this release first
as it introduces a lot of internal changes. DBD::ODBC has now gone
entirely ODBC 3 and relies on an ODBC Driver Manager to map calls
to ODBC 2.0 drivers (why are you still using ODBC 2.0 drivers?).
From now on DBD::ODBC needs to be linked with an ODBC Driver Manager
and I recommend unixODBC on UNIX and the MS ODBC Driver Manager
on Windows. There are really good reasons for this but mainly it
is because an ODBC Driver Manager will map ODBC 2.0 calls to an
ODBC 3.0 driver and vice versa and handle UNICODE transparently.
Bumped Test::Simple requirement up to 0.90 so we can use done_testing
and note.
Bump Perl requirement to 5.8 as per DBI.
Workaround a bug in mdbtools which fails to set the out connection
string in a SQLDriverConnect call. This can lead to:
Fixed panic: sv_setpvn called with negative strlen at
blib/lib/DBD/ODBC.pm line 107.
Added rt_61370.t for rt 61370.
Removed last remaining sprintf calls and replaced with snprintf.
Changed the point at which DBD::ODBC switches from VARCHAR to
LONGVARCHAR or WVARCHAR to WLONGVARCHAR when SQLDesribeParam fails. It
was 4000 and is now 2000 for unicode builds. Works around a daft issue
in the MS SQL Server driver which will not allow 'x' x 2001 converted to
wide characters to be inserted into a varchar(8000).
Minor change to Makefile.PL to print out found libs for iODBC and
unixODBC.
Added some FAQs for problems with iODBC and a recent bug in DBI.
Added FAQ on my_snprintf problem.
Fixed some pod errors in FAQ document.
Fixed warning on 64 bit Strawberry Perl when compiling dbdimp.c for
cast from ptr to UDWORD.
Moved to_do items from Changes to TO_DO.
Reformatted this file to save Jens work.
Changed calls to SQLTransact (ODBC 2.0) to SQLEndTran (ODBC 3.0).
There really shouldn't be any ODBC 2.0 drivers still around but even
if there are, the ODBC driver manager should do the mapping for us.
Changed calls to SQLGetConnectOption/SQLSetConnectOption to
to SQLGetConnectAttr/SQLSetConnectAttr for ODBC 3.0.
Changed calls to SQLColAttributes (ODBC 2.0) to SQLColAttribute
(ODBC 3.0).
Bumped requirement on DBI to 1.609 because that is the first version
to contain a dbipport.h which defined my_snprintf - see
https://rt.cpan.org/Public/Bug/Display.html?id=62346 and
http://www.nntp.perl.org/group/perl.dbi.dev/2010/10/msg6335.html
Various small changes to dbdimp.c which should have no effect other
than to make it leaner:
Removed all dTHR occurrences from dbdimp.c as it is a NOOP since 5.8
and we need 5.8 at least.
Removed dbd_param_err as it was not used
Removed odbc_get_query_timeout as it was never compiled
Removed eod field from statement as it was never used
Removed a load of commented out code
Replaced some SvPV calls with SvPV_nolen when we didn't used the
length
Removed some silly code from dbd_db_execdirect which attempted to
return -3 - don't think it could ever get run.
Minor tracing output tidy up
Removed dbd_caution as it was no used
Localised more variable declarations
=head2 1.25 2010-09-22
Official release of 1.25 combining all the changes in the 1.24_x
development releases.
=head2 1.24_6 2010-09-16
rt 61370 - default XML type parameters in SQL Server to SQL_WCHAR so
they accept unicode strings.
=head2 1.24_5 2010-09-15
Fixed missing SvSETMAGIC on a bound scalar which was causing length() to
return the wrong result - see http://www.perlmonks.org/?node_id=860211
and a big thank you to Perl Monks and in particular ikegami.
Changed bind_col so it actually pays attention to the TYPE attribute as
you could not override the bind type of a bound column before.
=head2 1.24_4 2010-09-08
Left a sv_undef in - thanks smoke testers for finding that.
Change sprintf to snprintf for safety.
=head2 1.24_3 2010-09-06
Added note from Robert Freimuth for obtaining the last insert ID in MS
Access.
Changed all &sv_yes/&sv_no occurrances in XS to PL_sv_yes/PL_sv_no as
the originals have now gone from blead Perl.
Minor change to fix missing newline in trace output.
Added a FAQ entry for how "use regional settings" in MS SQL Server
breaks things.
=head2 1.24_2 2010-07-23
Fix rt57957 reported by Marc Prewitt. DBD::ODBC was not ignoring named
placeholders and ? inside comments. Comments are deemed as text between
"/*" and "*/" (if not in a literal) and line comments begin with "--".
Added a FAQ on procedures not completing in MS SQL Server. Thanks to
Peter Rabbitson for hitting this problem and reminding me I'd seen it a
couple of times before.
Added a FAQ on equality comparisons with ntext columns.
Added pod for last_insert_id which is not currently supported.
Fix bug where if SQLMoreResults was called and failed it was not
reported.
Removed some unused fields from the fbh structure which should save a
little memory for each column in a result-set.
Started adding support for DBI's DiscardString and StrictlyTyped but not
complete yet so don't use them yet.
Added experimental odbc_lob_read method - see pod. Thanks to tye and
ikegami on perlmonks for pointing out some problems with my initial
implementation.
Moved the binding of columns to the first call to fetch instead of after
execute is called as it prevents bind_col overrriding the type used for
binding and I needed it to support odbc_lob_read. This may have
undesired affects so any testing of this release would be appreciated.
Added bind_col method so DBD::ODBC can support attributes on a bind_col
call.
Removed support for DBI's blob_read - it was totally flawed and did not
work at all. May replace in the future.
Added support for MS SQL Server XML type (SQL type -152). See rt 59621.
Added note on do method implementation in DBD::ODBC and how some may
consider it to deviate from the DBI specification.
=head2 1.24_1 2010-05-27
Corrected pod and private attributes for the odbc_SQL_DRIVER_ODBC_VER
attribute which was documented as SQL_DRIVER_ODBC_VER.
Added FAQ on pauses on statement destruction when all the result-set has
not been retrieved (mostly freeTDS and MS SQL Server ODBC Driver).
Fixed bug introduced in 1.24 where if you are using MS SQL Server, and
you are preparing, binding placeholders and re-executing multiple times
you may get a "Invalid character value for cast specification"
error. Thanks to anonymous for spotting this and producing a standalone
example of the problem that made it so much easier to find.
=head2 1.24 2010-05-14
Minor change in Makefile.PL to only use NO_META if ExtUtils::MakeMaker
is at least at version 6.10. Reported by Chunmei Wu.
Minor change to test rt_50852 which had wrong skip count.
=head2 1.23_5 2010-05-06
Added advice from Jan Dubois (ActiveState) on building DBD::ODBC for
ActivePerl (see README.windows).
rt56692. Fix spelling mistake in DBD::ODBC pod - thanks to Ansgar
Burchardt.
Added a 7th way to help documentation - become a tester.
Hopefully fixed problems building on windows 32 bit platforms that have
old sql header files not mentioning SQLLEN/SQLULEN.
=head2 1.23_4 2010-04-13
Added more FAQs.
Small optimization to remove calls to SQLError when tracing is not
turned on. This was a bug. We only need to call SQLError when SQLExecute
succeeds if there is an error handler or if tracing is enabled. The test
was for tracing disabled!
Large experimental change primarily affecting MS SQL Server users but it
does impact on other drivers too. Firstly, for MS SQL Server users we no
longer SQLFreeStmt(SQL_RESET_PARAMS) and rebind bound parameters as it
is causing the MS SQL Server ODBC driver to re-prepare the SQL.
Secondly (for all drivers) we no longer call SQLBindParameter again IF
all the arguments to it are the same as the previous call. If you find
something not working you better let me know as this is such a speed up
I'm going to go with this unless anyone complains.
Minor change to avoid a double call to SQLGetInfo for SQL_DBMS_NAME
immediately after connection.
Small change for rt 55736 (reported by Matthew Kidd) to not assume a
parameter is varXXX(max) if SQLDescribeParam failed in the Microsoft
Native Client driver.
=head2 1.23_3 2010-03-24
Minor changes to Makefile.PL and dbdimp.c to remove some compiler
warnings.
Fix some calls to SQLMoreResults which were not passing informational
messages on to DBI's set_err. As you could not see all the informational
messages from procedures, only the first.
Fix minor issue in 02simple test which printed the Perl subversion
before the version.
Changes to 20SqlServer.t to fix a few typos and make table names
consistent wrt to case - (as someone had turned on case-sensitivity in
SQL Server) Similar changes in rt_38977.t and rt_50852.t
=head2 1.23_2 2010-01-26
Fixed bug in Makefile.PL which could fail to find unixODBC/iODBC header
files but not report it as a problem. Thanks to Thomas J. Dillman and
his smoker for finding this.
Fixed some compiler warnings in dbdimp.c output by latest gcc wrt to
format specifiers in calls to PerlIO_printf.
Added the odbc_force_bind_type attribute to help sort out problems with
ODBC Drivers which support SQLDescribeParam but describe the parameters
incorrectly (see rt 50852). Test case also added as rt_50852.t.
=head2 1.23_1 2009-10-21
makefile.PL changes:
some formatting changes to output warn if unixodbc headers are not
found that the unixodbc-dev package is not installed use $arext
instead of "a"
pattern match for pulling libodbc.* changed
warn if DBI_DSN etc not defined
change odbc_config output for stderr to /dev/null
missing / on /usr/local wheb finding find_dm_hdr_files()
New FAQ entries from Oystein Torget for bind parameter bugs in SQL
Server.
rt_46597.rt - update on wrong table
Copied dbivport.h from the latest DBI distribution into DBD::ODBC.
Added if_you_are_taking_over_this_code.txt.
Add latest Devel::PPPort ppport.h to DBD::ODBC and followed all
recommendations for changes to dbdimp.c.
Added change to Makefile.PL provided by Shawn Zong to make
Windows/Cygwin work again.
Minor change to Makefile.PL to output env vars to help in debugging
peoples build failures.
Added odbc_utf8_on attribute to dbh and sth handles to mark all strings
coming from the database as utf8. This is for Aster (based on
PostgreSQL) which returns all strings as UTF-8 encoded unicode. Thanks
to Noel Burton-Krahn.
=head2 1.23 2009-09-11
Only a readme change and version bumped to 1.23. This is a full release
of all the 1.22_x development releases.
=head2 1.22_3 2009-08-19
Fix skip count in rt_38977.t and typo in ok call.
Workaround a bug in unixODBC 2.2.11 which can write off the end of the
string buffer passed to SQLColAttributes.
Fix skip count in rt_null_nvarchar.t test for non SQL Server drivers.
Fix test in 02simple.t which reported a fail if you have no ODBC
datasources.
In 99_yaml.t pick up the yaml spec version from the meta file instead of
specifying it.
Change calls to SQLPrepare which passed in the string length of the SQL
to use SQL_NTS because a) they are null terminated and more importantly
b) unixODBC contains a bug in versions up to 2.2.16 which can overwrite
the stack by 1 byte if the string length is specified and not built with
iconv support and converting the SQL from ASCII to Unicode.
Fixed bug in ping method reported by Lee Anne Lester where it dies if
used after the connection is closed.
A great deal of changes to Makefile.PL to improve the automatic
detection and configuration for ODBC driver managers - especially on
64bit platforms. See rt47650 from Marten Lehmann which started it all
off.
Add changes from Chris Clark for detecting IngresCLI.
Fix for rt 48304. If you are using a Microsoft SQL Server database and
nvarchar(max) you could not insert values between 4001 and 8000
(inclusive) in size. A test was added to the existing rt_38977.t test.
Thanks to Michael Thomas for spotting this.
Added FAQ on UTF-8 encoding and IBM iSeries ODBC driver.
Add support for not passing usernames and passwords in call to connect.
Previously DBD::ODBC would set an unspecified username/password to '' in
ODBC.pm before calling one of the login_xxx functions. This allows the
driver to pull the username/password from elsewhere e.g., like the
odbc.ini file.
=head2 1.22_1 2009-06-16
Applied a slightly modified version of patch from Jens Rehsack to
improve support for finding the iODBC driver manager.
A UNICODE enabled DBD::ODBC (the default on Windows) did not handle
UNICODE usernames and passwords in the connect call properly.
Updated "Attribution" in ODBC.pm.
Unicode support is no longer experimental hence warning and prompt
removed from the Makefile.PL.
old_ping method removed.
Fixed bug in 02simple.t test which is supposed to check you have at
least one data source defined. Unfortunately, it was checking you had
more than 1 data source defined.
rt_null_varchar had wrong skip count meaning non-sql-server drivers or
sql server drivers too old skipped 2 tests more than were planned.
=head2 1.22 2009-06-10
Fixed bug which led to "Use of uninitialized value in subroutine entry"
warnings when writing a NULL into a NVARCHAR with a unicode-enabled
DBD::ODBC. Thanks to Jirka Novak and Pavel Richter who found, reported
and patched a fix.
Fixed serious bug in unicode_helper.c for utf16_len which I'm ashamed
to say was using an unsigned short to return the length. This meant you
could never have UTF16 strings of more than ~64K without risking
serious problems. The DBD::ODBC test code actually got a
*** glibc detected *** /usr/bin/perl: double free or corruption
(out): 0x406dd008 ***
If you use a UNICODE enabled DBD::ODBC (the default on Windows) and
unicode strings larger than 64K you should definitely upgrade now.
=head2 1.21_1 2009-06-02
Fixed bug referred to in rt 46597 reported by taioba and identified by
Tim Bunce. In Calls to bind_param for a given statement handle if you
specify a SQL type to bind as, this should be "sticky" for that
parameter. That means if you do:
$sth->bind_param(1, $param, DBI::SQL_LONGVARCHAR)
and follow it up with execute calls that also specify the parameter:
$sth->execute("a param");
then the parameter should stick with the SQL_LONGVARCHAR type and not
revert to the default parameter type. The DBI docs (from 1.609) make it
clear the parameter type is sticky for the duration of the statement but
some DBDs allow the parameter to be rebound with a different type -
DBD::ODBC is one of those drivers.
=head2 1.21 2009-04-27
Change 02simple test to output Perl, DBI and DBD::ODBC versions.
Fixed bug where if ODBC driver supports SQLDescribeParam and it succeeds
for a parameterised query but you override the parameter type, DBD::ODBC
was still using the size returned by SQLDescribeParam. Thanks to Brian
Becker for finding, diagnosing and fixing this issue.
Added FAQ entry about SQL Server and calling procedures with named
parameters out of order.
Added test_results.txt containing some supplied make test results.
=head2 1.20 2009-04-20
Fix bug in handling of SQL_WLONGVARCHAR when not built with unicode
support. The column was not identified as a long column and hence the
size of the column was not restricted to LongReadLen. Can cause
DBD::ODBC to attempt to allocate a huge amount of memory.
Minor changes to Makefile.PL to help diagnose how it decided which
driver manager to use and where it was found.
Offer suggestion to debian-based systems when some of unixODBC is found
(the bin part) but the development part is missing.
In 20SqlServer.t attempt to drop any procedures we created if they still
exist at the end of the test. Reported by Michael Higgins.
In 12blob.t separate code to delete test table into sub and call at
being and end, handle failures from prepare there were two ENDs.
In ODBCTEST.pm when no acceptable test column type is found output all
the found types and BAIL_OUT the entire test.
Skip rt_39841.t unless actually using the SQL Server ODBC driver or
native client.
Handle drivers which return 0 for SQL_MAX_COLUMN_NAME_LEN.
Double the buffer size used for column names if built with unicode.
=head2 1.19 2009-04-02
Some minor diagnostic output during tests when running against freeTDS
to show we know of issues in freeTDS.
Fixed issue in 20SqlServer.t where the connection string got set with
two consecutive semi-colons. Most drivers don't mind this but freeTDS
ignores everything after that point in the connection string.
Quieten some delete table output during tests.
Handle connect failures in 20SqlServer.t in the multiple active
statement tests.
In 02simple.t cope with ODBC drivers or databases that do not need a
username or password (MS Access).
In 20SqlServer.t fix skip count and an erroneous assignment for
driver_name.
Change some if tests to Test::More->is tests in 02simple.t.
Fix "invalid precision" error during tests with the new ACEODBC.DLL MS
Access driver. Same workaround applied for the old MS Access driver
(ODBCJT32.DLL) some time ago.
Fix out of memory error during tests against the new MS Access driver
(ACEODBC.DLL). The problem appears to be that the new Access driver
reports ridiculously large parameter sizes for "select ?" queries and
there are some of these in the unicode round trip test.
Fixed minor typo in Makefile.PL - diagnostic message mentioned "ODBC
HOME" instead of ODBCHOME.
12blob.t test somehow got lost from MANIFEST - replaced. Also changed
algorithm to get a long char type column as some MS Access drivers only
show SQL_WLONGVARCHAR type in unicode.
Added diagnostic output to 02simple.t to show the state of
odbc_has_unicode.
=head2 1.18_4 2009-03-13
A mistake in the MANIFEST lead to the rt_43384.t test being omitted.
Brian Becker reported the tables PERL_DBD_39897 and PERL_DBD_TEST are
left behind after testing. I've fixed the former but not the latter yet.
Yet another variation on the changes for rt 43384. If the parameter is
bound specifically as SQL_VARCHAR, you got invalid precision
error. Thanks to Øystein Torget for finding this and helping me verify
the fix.
If you attempt to insert large amounts of data into MS Access (which
does not have SQLDescribeParam) you can get an invalid precision error
which can be worked around by setting the bind type to
SQL_LONGVARCHAR. This version does that for you.
08bind2.t had a wrong skip count.
12blob.t had strict commented out and GetTypeInfo was not quoted. Also
introduced a skip if the execute fails as it just leads to more obvious
failures.
In dbdimp.c/rebind_ph there was a specific workaround for SQL Server
which was not done after testing if we are using SQL Server - this was
breaking tests to MS Access.
=head2 1.18_2 2009-03-09
Added yet another workaround for the SQL Server Native Client driver
version 2007.100.1600.22 and 2005.90.1399.00 (driver version 09.00.1399)
which leads to HY104, "Invalid precision value" in the rt_39841.t test.
=head2 1.18_1 2009-03-06
Fixed bug reported by Toni Salomäki leading to a describe failed error
when calling procedures with no results. Test cases added to
20SqlServer.t.
Fixed bug rt 43384 reported by Øystein Torget where you cannot insert
more than 127 characters into a Microsoft Access text(255) column when
DBD::ODBC is built in unicode mode.
=head2 1.18 2009-01-16
Major release of all the 1.17 development releases below.
=head2 1.17_3 2008-12-19
Reinstated the answer in the FAQ for "Why do I get invalid value for
cast specification" which had got lost - thanks to EvanCarroll in
rt41663.
rt 41713. Applied patch from JHF Remmelzwaal to handle ODBC drivers
which do not support SQL_COLUMN_DISPLAY_SIZE and SQL_COLUMN_LENGTH
attributes in the SQLColAttributes calls after SQLTables and
SQLColumns. Specifically, the driver he was using was the "Infor
Integration ODBC driver".
Added notes from JHF Remmelzwaal on resolving some problems he came
across building DBD::ODBC on Windows with Visual Studio 6.0 and SDK Feb
2003.
New odbc_column_display_size attribute for when drivers does not return
a display size.
Loads of tracing changes to make it easier for me to debug problems.
Fixed bug in tracing of dbd_execute when parameter is char but undef
which was leading to an access violation on Windows when tracing
enabled.
Minor changes to diagnostic output in some rt tests.
One of the rt tests was not skipping the correct number of tests if the
driver was not SQL Server.
=head2 1.17_2 2008-11-17
Changed ParamTypes attribute to be as specification i.e.,
{
parameter_1 => {TYPE => sql_type}
parameter_2 => {TYPE => sql_type}
...
}
and changed the tests in 07bind.t to reflect this.
A few minor perlcritic changes to ODBC.pm.
Added 99_yaml.t test to check META.yml.
Added patch from Spicy Jack to workaround problems with Strawberry Perl
setting INC on the command line when running Makefile.PL.
=head2 1.17_1 2008-10-10
Missing newline from end of META.yml upsets cpan
Add code to Makefile.PL to spot command line containing INC, outline
problem and resolution and not generate Makefile to avoid cpan-testers
failures.
Loads of pod formatting changes including a section in the wrong place
New kwalitee test
Fix rt 39841. Bug in SQL Server ODBC driver which describes parameters
by rearranging your SQL to do a select on the columns matching the
parameters. Sometimes it gets this wrong and ends up describing the
wrong column. This can lead to a varchar(10) being described with a
column-size less than 10 and hence you get data truncation on execute.
Added a test case for rt 39841.
Fix rt 39897. 1.17 added support for varchar(max) in SQL Server but it
broke support for SQL_VARCHAR columns in that they had LongReadLen and
LongTruncOk applied to them. This means that in 1.16 you could retrieve
a SQL_VARCHAR column without worrying about how long it was but in 1.17
if the same column was greater than 80 characters then you would get a
truncated error. The only way the around this was to set LongTruncOk or
LongReadLen.
Added a test case for rt 39897.
=head2 1.17 2008-09-22
In the absence of any bug reports since 1.16_4 this is the official 1.17
release. See below for changes since 1.16.
Minor pod changes.
Added support for ParamTypes (see DBI spec) and notes in DBD::ODBC pod.
=head2 1.16_4 2008-09-12
Small change to Makefile.PL to work around problem in darwin 8 with
iODBC which leads to "Symbol not found: _SQLGetPrivateProfileString"
errors.
Added new [n]varXXX(max) column type tests to 20SqlServer.t.
Fixed support for SQL_WCHAR and SQL_WVARCHAR support in non-unicode
build. These types had ended up only being included for unicode builds.
More changes to ODBC pod to 1) encourage people to use CPAN::Reporter,
2) rework contributing section, 3) mention DBIx::Log4perl 4) add a BUGS
section 5) add a "ODBC Support in ODBC Drivers" section etc.
Changed default fallback parameter bind type to SQL_WVARCHAR for unicode
builds. This affects ODBC drivers which don't have
SQLDescribeParam. Problem reported by Vasili Galka with MS Access when
reading unicode data from one table and inserting it into another table.
The read data was unicode but it was inserted as SQL_CHARs because
SQLDescribeParam does not exist in MS Access so we fallback to either a
default bind type (which was SQL_VARCHAR) or whatever was specified in
the bind_param call.
Fixed bug in 20SqlServer.t when DBI_DSN is defined including "DSN=".
=head2 1.16_3 2008-09-03
Changed Makefile.PL to add "-framework CoreFoundation" to linker line on
OSX/darwin.
Disallow building with iODBC if it is a unicode build.
More tracing for odbcconnect flag.
Fix bug in out connection string handling that attempted to use an out
connection string when SQLDriverConnect[W] fails.
Fixed yet more test count problems due to Test::NoWarnings not being
installed.
Skip private_attribute_info tests if DBI < 1.54
About a 30% rewrite of bound parameter code which started with an
attempt to support the new VARBINARY(MAX) and VARCHAR(MAX) columns in
SQL Server when the parameter length is > 400K in size (see elsewhere in
this Changelog). This is a seriously big change to DBD::ODBC to attempt
to be a bit more clever in its handling of drivers which either do not
support SQLDescribeParam or do support SQLDescribeParam but cannot
describe all parameters e.g., MS SQL Server ODBC driver cannot describe
"select ?, LEN(?)". If you specify the bound parameter type in your
calls to bind_param and run them to an ODBC driver which supports
SQLDescribeParam you may want to check carefully and probably remove the
parameter type from the bind_param method call.
Added rt_38977.t test to test suite to test varchar(max) and
varbinary(max) columns in SQL Server.
Moved most of README.unicode to ODBC.pm pod.
Added workaround for problem with the Microsoft SQL Server driver when
attempting to insert more than 400K into a varbinary(max) or
varchar(max) column. Thanks to Julian Lishev for finding the problem and
identifying 2 possible solutions.
=head2 1.16_2 2008-09-02
Removed szDummyBuffer field from imp_fbh_st and code in dbd_describe
which clears it. It was never used so this was a waste of time.
Changed the remaining calls to SQLAllocEnv, SQLAllocConnect and
SQLAllocStmt and their respective free calls to the ODBC 3.0
SQLAllocHandle and SQLFreeHandle equivalents.
Rewrote ColAttributes code to understand string and numeric attributes
rather than trying to guess by what the driver returns. If you see any
change in behaviour in ColAttributes calls you'll have to let me know as
there were a number of undocumented workarounds for drivers.
Unicode build of DBD::ODBC now supports:
column names
The retrieval of unicode column names
SQL strings
Unicode in prepare strings (but not unicode parameter names) e.g.,
select unicode_column from unicode_table
is fine but
select * from table where column = :unicode_param_name
is not so stick to ascii parameter names if you use named
parameters.
Unicode SQL strings passed to the do method are supported.
SQL strings passed to DBD::ODBC when the odbc_exec_direct attribute
is set will not be passed as unicode strings - this is a
limitation of the odbc_exec_direct attribute.
connection strings
True unicode connection string support will require a new version of
DBI (post 1.607).
Note that even though unicode connection strings are not
supported currently DBD::ODBC has had to be changed to call
SQLDriverConnectW/SQLConnectW to indicate to the driver manager it's
intention to use some of the ODBC wide APIs. This only affects
DBD::ODBC when built for unicode.
odbcunicode trace flag
There is a new odbcunicode trace flag to enable unicode-specific
tracing.
Skipped 40Unicode.t test if the ODBC driver is Oracle's ODBC as I cannot
make it work.
Changes internally to use sv_utf8_decode (where defined) instead of
setting utf8 flag.
Fix problems in the test when Test::NoWarnings is not installed.
Removed some unused variables that were leading to compiler warnings.
Changed a lot of tracing to use new odbcconnection flag
Changed to use dbd_db_login6_sv if DBI supports it.
Commented out a diag in 20SqlServer.t that was leading to confusion.
Added diag to 20SqlServer.t in mars test to explain why it may fail.
Various pod changes for clarification and to note odbc_err_handler is
deprecated.
Removed odbcdev trace flag - it was not really used.
New odbc_out_connect_string attribute for connections which returns the
ODBC driver out connection string.
=head2 1.16_1 2008-08-28
Fixed bug in odbc_cancel which was checking the ACTIVE flag was on
before calling SQLCancel. Non-select statements can also be cancelled so
this was wrong. Thanks to Dean Arnold for spotting.
Minor changes to test 01base to attempt to catch install_driver failing,
report it as a fail and skip other tests.
Fixed bug reported by James K. Lowden with asynchronous mode and
SQLParamData where the code was not expecting SQL_STILL_EXECUTING and
did not handle it
Added odbc_putdata_start attribute to determine when to start using
SQLPutData on lobs.
Fixed bug in lob inserts where decimal_digits was being set to the size
of the bound lob unnecessarily.
Minor change to connect/login code to delete driver-specific attributes
passed to connect so they do not have to be processed again when DBI
calls STORE with them.
New 12blob.t test.
A lot of code tidy up but not expecting any real benefit or detriment
when using DBD::ODBC.
Fixed retrieving [n]varchar(max) columns which were only returning 1
byte - thanks to Fumiaki Yoshimatsu and perl monks for finding it. See
http://markmail.org/message/fiym5r7q22oqlzsf#query:Fumiaki Yoshimatsu
odbc+page:1+mid:fiym5r7q22oqlzsf+state:results
Various minor changes to get the CPANTS kwalitee score up.
fixed pod issues in FAQ.pm
moved mytest dir to examples
added generated_by and requires perl version to META.yml
added pod and pod-coverage tests
removed executable flag from Makefile.PL
added use warnings to some modules and tests
fixed pod errors in ODBC.pm
added AUTHOR and LICENSE section to ODBC.pm
added Test::NoWarnings to tests
Added support for setting the new(ish) DBI ReadOnly attribute on a
connection. See notes in pod.
Changes to test suite to work around problems in Oracle's instant client
11r1 ODBC driver for Linux (SQLColAttributes problems - see 02simple.t).
New tests in 30Oracle.t for oracle procedures.
=head2 1.16 2008-05-13
=head3 Test Changes
Small change to the last test in 10handler.t to cope with the prepare
failing instead of the execute failing - spotted by Andrei Kovalevski
with the ODBCng Postgres driver.
Changed the 20SqlServer.t test to specifically disable MARS for the test
to check multiple active statements and added a new test to check that
when MARS_Connection is enabled multiple active statements are allowed.
Changed the 09multi.t test to use ; as a SQL statement seperator instead
of a newline.
A few minor "use of unitialised" fixes in tests when a test fails.
In 02simple.t Output DBMS_NAME/VER, DRIVER_NAME/VER as useful debugging
aid when cpan testers report a fail.
2 new tests for odbc_query_timeout added to 03dbatt.t.
Changed 02simple.t test which did not work for Oracle due to a "select
1" in the test. Test changed to do "select 1 from dual" for Oracle.
New tests for numbered and named placeholders.
=head3 Documentation Changes
Added references to DBD::ODBC ohloh listing and markmail archives.
Added Tracing sections.
Added "Deviations from the DBI specification" section.
Moved the FAQ entries from ODBC.pm to new FAQ document. You can view the
FAQ with perldoc DBD::ODBC::FAQ.
Added provisional README.windows document.
Rewrote pod for odbc_query_timeout.
Added a README.osx.
=head3 Internal Changes
More tracing in dbdimp.c for named parameters.
#ifdeffed out odbc_get_primary_keys in dbdimp.c as it is no longer used.
$h->func($catalog, $schema, $table, 'GetPrimaryKeys') ends up in
dbdimp.c/dbd_st_primary_keys now.
Reformatted dbdimp.c to avoid going over 80 columns.
Tracing changed. Levels reviewed and changed in many cases avoiding
levels 1 and 2 which are reserved for DBI. Now using DBIc_TRACE macro
internally. Also tracing SQL when 'SQL' flag set.
=head3 Build Changes
Changes to Makefile.PL to fix a newly introduced bug with 'tr', remove
easysoft OOB detection and to try and use odbc_config and odbcinst if we
find them to aid automatic configuration. This latter change also adds
"odbc_config --cflags" to the CC line when building DBD::ODBC.
Avoid warning when testing ExtUtils::MakeMaker version and it is a test
release with an underscore in the version.
=head3 Functionality Changes
Added support for parse_trace_flag and parse_trace_flags methods and
defined a DBD::ODBC private flag 'odbcdev' as a test case.
Add support for the 'SQL' trace type. Added private trace type odbcdev
as an experimental start.
Change odbc_query_timeout attribute handling so if it is set to 0 after
having set it to a non-zero value the default of no time out is
restored.
Added support for DBI's statistics_info method.
=head3 Bug Fixes
Fix bug in support for named placeholders leading to error "Can't rebind
placeholder" when there is more than one named placeholder.
Guard against scripts attempting to use a named placeholder more than
once in a single SQL statement.
If you called some methods after disconnecting (e.g., prepare/do and any
of the DBD::ODBC specific methods via "func") then no error was
generated.
Fixed issue with use of true/false as fields names in structure on MAC
OS X 10.5 (Leopard) thanks to Hayden Stainsby.
Remove tracing of bound wide characters as it relies on null-terminated
strings that don't exist.
Fix issue causing a problem with repeatedly executing a stored procedure
which returns no result-set. SQLMoreResults was only called on the first
execute and some drivers (SQL Server) insist a procedure is not finished
until SQLMoreResults returns SQL_NO_DATA.
=head2 1.15 2008-01-29
1.15 final release.
Fixed bug reported by Toni Salomaki where DBD::ODBC may call
SQLNumResultCols after SQLMoreResults returns SQL_NO_DATA. It led to the
error:
Describe failed during DBI::st=HASH(0x19c2048)->FETCH(NUM_OF_FIELDS,0)
when NUM_OF_FIELDS was referenced in the Perl script.
Updated odbc_exec_direct documentation to describe its requirement when
creating temporary objects in SQL Server.
Added FAQ on SQL Server temporary tables.
Fixed bug in dbdimp.c which was using SQL_WCHAR without testing it was
defined - thanks Jergen Dutch.
Fixed use of "our" in UCHelp.pm which fails on older Perls.
Minor changes to 02simple.t and 03dbatt.t to fix diagnostics output and
help debug DBD which does not handle long data properly.
Further changes to Makefile.PL to avoid change in behaviour of
ExtUtils::MakeMaker wrt order of execution of PREREQ_PM and CONFIGURE.
Now if DBI::DBD is not installed we just warn and exit 0 to avoid a
cpan-testers failure.
=head2 1.15_2 2007-11-14
Fix bug in DBD::ODBC's private function data_sources which was returning
data sources prefixed with "DBI:ODBC" instead of "dbi:ODBC".
If you don't have at least DBI 1.21 it is now a fatal error instead of
just a warning.
DBI->connect changed so informational diagnostics like "Changed database
context to 'master'" from SQL Server are available in
errstr/state. These don't cause DBI->connect to die but you can test
$h->err eq "" after connect and obtain the informational diagnostics
from errstr/state if you want them.
Fixed problem in 41Unicode.t where utf8 was used before testing we had a
recent enough Perl - thank you cpan testers.
Changed "our" back to "my" in Makefile.PL - thank you cpan testers.
Removed all calls to DBIh_EVENT2 in dbdimp.c as it is no longer used
(see posts on dbi-dev).
Changed text output when a driver manager is not found to stop referring
to iodbcsrc which is no longer included with DBD::ODBC.
Changed Makefile.PL to attempt to find unixODBC if -o or ODBCHOME not
specified.
Updated META.yml based on new 1.2 spec.
Changed Makefile.PL so if an ODBC driver manager is not found then we
issue warning and exit cleanly but not generating a Makefile. This
should stop cpan-testers from flagging a fail because they haven't got
an ODBC driver manager.
Changed Makefile.PL so it no longer "use"s DBI/DBI::DBD because this
makes cpan-testers log a fail if DBI is not installed. Changed to put
the DBI::DBD use in the CONFIGURE sub so PREREQ_PM will filter out
machines where DBI is not installed.
Fix a possible typo, used once in 10handler.t.
=head2 1.15_1 2007-11-06
Minor changes to 20SqlServer.t test for SQL Server 2008 (Katmai).
Timestamps now return an extra 4 digits of precision (all 0000) and the
driver reported in dbcc messages has a '.' in the version which was not
handled.
New FAQ entry and test code for "Datetime field overflow" problem in
Oracle.
Changed all ODBC code to use new SQLLEN/SQLULEN types where Microsoft's
headers indicate, principally so DBD::ODBC builds and works on
win64. NOTE: you will need an ODBC Driver Manager on UNIX which knows
SQLLEN/SQLULEN types. The unixODBC driver manager uses SQLLEN/SQLULEN in
versions from at least 2.2.12. Thanks to Nelson Oliveira for finding,
patching and testing this and then fixing problems with bound parameters
on 64 bit Windows.
Added private_attribute_info method DBI introduced (see DBI docs) and
test cases to 02simple.t.
Fairly major changes to dbd_describe in dbdimp.c to reduce ODBC calls by
1 SQLDescribeCol call per column when describing result sets. Instead of
calculating the amount of memory required to hold every column name we
work on the basis that (num_columns + 1) * SQL_MAX_COLUMN_NAME_LEN can
hold all column names. However, to avoid using a large amount of memory
unnecessarily if an ODBC driver supports massive column name lengths the
maximum size per column is restricted to 256.
Changed to avoid using explicit use of DBIc_ERRXXX in favour of newish
(ok, DBD::ODBC is a bit behind the times in this respect)
DBIh_SET_ERR_CHAR. This involved a reworking or the error handling and
although all test cases still pass I cannot guarantee it has no other
effects - please let me know if you spot differences in error messages.
Fixed bug in 20SqlServer test for multiple results that was passing but
for the wrong reason (namely, that the odbc_err_handler was being called
when it should not have been).
Fixed bug in odbc_err_handler that prevented it from being reset so you
don't have an error handler. Looks like the problem was in
dbd_db_STORE_attrib where "if(valuesv == &PL_sv_undef)" was used to
detect undef and I think it should be "if (!SvOK(valuesv))".
Improvements to odbc_err_handler documentation.
Added 10handler.t test cases.
More tests in 02simple.t to check NUM_OF_FIELDS and NAMES_uc.
Bit of a tidy up:
Removed some unused variable declarations from dbdimp.c.
Lots of changes to DBD::ODBC tracing, particularly in dbd_describe, and
dbd_error2 and login6.
Removed a lot of tracing code in comments or #if 0 as it never gets
built.
Changed dual tests on SQL_SUCCESS and SQL_SUCCESS_WITH_INFO to use
SQL_SUCCEEDED.
=head2 1.14 2007-07-17
Fix bug reported where ping crashes after disconnect thanks to Steffen
Goeldner.
Fix bug in dbd_bind_ph which leads to the error Can't change param 1
maxlen (51->50) after first bind in the 20SqlServer test. This is caused
by svGROW in Perl 5.8.8 being changed to possibly grow by more than you
asked (e.g. up to the next longword boundary).
Fix problem with binding undef as an output parameter. Reported by
Stephen More with IBM's ODBC driver for iSeries.
Removed comment delimiters in comments in dbdimp.h leading to warnings.
Removed some unused variable declarations leading to warnings.
Removed PerlIO_flush calls as it is believed they are not required.
Add logging for whether SQLDescribeParam is supported.
Fixed use of unitialised variable in dbd_bind_ph where an undef is bound
and tracing is enabled.
Fixed issue with TRACESTATUS change in 20SqlServer.t tests 28, 31, 32
and 33 leading to those tests failing when testing with SQL Server 2005
or Express.
Many compiler warnings fixed - especially for incompatible types.
Add provisional Unicode support - thanks to Alexander Foken. This change
is very experimental (especially on UNIX). Please see ODBC.pm
documentation. Also see README.unicode and README.af. New database
attribute odbc_has_unicode to test if DBD::ODBC was built with UNICODE
support. New tests for Unicode. New requirement for Perl 5.8.1 if
Unicode support required. New -[no]u argument to Makefile.PL. New
warning in Makefile.PL if Unicode support built for UNIX.
Fix use of unitialised var in Makefile.PL.
Fix use of scalar with no effect on Makefile.PL
Added warning to Makefile.PL about building/running with LANG using
UTF8.
Added warning to Makefile.PL about using thread-safe ODBC drivers.
Updated MANIFEST to include more test code from mytest and remove
MANIFEST.SKIP etc.
Removed calls to get ODBC errors when SQLMoreResults returns
SQL_NO_DATA. These are a waste of time since SQL_NO_DATA is expected
and there is no error diagnostic to retrieve.
Changes to test 17 of 02simple.t which got "not ok 17 - Col count
matches correct col count" errors with some Postgres ODBC
drivers. Caused by test expecting column names to come back
uppercase. Fixes by uppercasing returned column names.
Changes to tests in 03batt.t which correctly expects an ODBC 3 driver to
return the column names in SQLTables result-set as per ODBC 3.0
spec. Postgres which reports itself as an ODBC 3.0 driver seems to
return the ODBC 2 defined column names. Changed tests to catch ODBC 2.0
names are pass test put issue warning.
For postgres skip test (with warning) checking $sth->{NAME} returns
empty listafter execute on update
Updated FAQ, added a few more questions etc.
DBD::ODBC requires at least 5.6.0 of Perl.
Many updates to pod documentation.
Removed some dead HTTP links in the pod I could not find equivalents for
- let me know if you have working replacements for ones removed
Add some HTTP links to useful tutorials on DBD::ODBC
=head2 1.13 2004-11-08
Fix inconsistency/bug with odbc_exec_direct vs. odbc_execdirect
settings. Now made consistent with odbc_exec_direct. For now, will
still look for odbc_execdirect in prepare, but not as DBH attribute as a
backup (which is what it was doing), but that support will be dropped at
some time in the future. Please use odbc_exec_direct from now on...
Fix handling of print statements for SQL Server thanks to Martin Evans!
Thanks for all your work on this!
Due to bug in SQL Server, you must use odbc_exec_direct. See
t/20SqlServer.t for example. You will need to call
$sth->{odbc_more_results} to clear out any trailing messages.
Change tests to use Test::More. Whew, that's much nicer!
Fix Oracle integral/numeric output params so that warning not printed
about value not being numeric (even though it is!)
=head2 1.12 2004-10-26
Fix bug with odbc_execdirect attributed thanks to Martin Evans
Fix bug(s) with odbc_query_timeout and tested with SQL*Server. Oracle
tests failed with setting timeout. Probably not handled by Oracle's
ODBC driver
=head2 1.11 2004-10-11
Added odbc_timeout, but untested
=head2 1.10 2004-09-08
Fixed bug in Makefile.PL.
Added pod.t test, taken from DBI.
Fixed various small POD issues, discovered during the pod test.
Fixed bug in bind_param_inout
=head2 1.09 2004-03-10
Duh. I forgot to add new dbivport.h to MANIFEST and SVN before
submitting. Fixed.
=head2 1.08 2004-03-06
Added check in Makefile.PL to detect if the environment variable LANG is
Set. If so, prints a warning about potential makefile generation
issues.
Change to use dbivport.h per new DBI spec.
Add ability to set the cursor type during the connect. This may allow
some servers which do not support multiple concurrent statements to
permit them -- tested with SQL Server. Thanks to Martin Busik! See
odbc_cursortype information in the ODBC POD.
=head2 1.07 2004-02-19
Added to Subversion version control hosted by perl.org. Thanks Robert!
See ODBC.pm POD for more information.
Added contributing section to ODBC.pm POD -- see more details there!
Added parameter to odbc_errhandler for the NativeError -- thanks to
Martin Busik.
Fix for Makefile.PL not having tab in front of $(NOOP) (Finally).
Fix for SQLForeignKeys thanks to Kevin Shepherd.
=head2 1.06 2003-06-19
Fixed test in t/02simple.t to skip if the DSN defined by the user has
DSN= in it.
Added tests for wrong DSN, ensuring the DBI::errstr is appropriately
set.
Fixed small issue in Makefile.PL for Unix systems thanks to H.Merijn
Brand.
Update to NOT copy user id and password to connect string if UID or PWD
parameter in connect string.
Updated Makefile.PL for dmake, per patch by Steffen Goldner. Thanks
Steffen!
=head2 1.05 2003-03-14
Cleaned up Makefile.PL and added Informix support thanks to Jonathan
Leffler (see README.informix)
Added nicer error message when attempting to do anything while the
database is disconnected.
Fixed fetchrow_hashref('NAME_uc | NAME_lc') with odbc_more_results.
Added exporter to allow perl -MDBD::ODBC=9999 command line to determine
version
Fixed for building with DBI 1.33 and greater
Removed all C++ style comments
Ensured files are in Unix format, with the exception of the README type
information and Makefile.PL
=head2 1.04 2003-01-24
It seems that case insensitive string comparison with a limit causes
problems for multiple platforms. strncmpi, strncasecmp, _strcmpin are
all functions hit and it seems to be a hit-or-miss. Hence, I rewrote it
to upper case the string then do strncmp, which should be safe...sheesh.
A simple thing turned into a headache...
=head2 1.03 2003-01-17
Add automatic detection of DRIVER= or DSN= to add user id and password
to connect string.
=head2 1.02 2003-01-06
Fix to call finish() automatically if execute is re-called in a loop
(and test in t/02simple.t to ensure it's fixed)
Augmented error message when longs are truncated to help users determine
where to look for help.
Fixes for build under Win32 with Perl5.8.
=head2 1.01 2002-12-09
Forgot to fix require DBI 1.201 in ODBC.pm to work for perl 5.8. Fixed
=head2 1.00 2002-12-08
(Please see all changes since version 0.43)
Updated Makefile.PL to handle SQL_Wxxx types correctly with unixODBC and
linking directly with EasySoft OOB. Note that I could not find where
iODBC defines SQL_WLONG_VARCHAR, so I'm not sure it's fixed on all other
platforms. Should not have been a problem under Win32...
Found that the fix in _18 was only enabled if debug enabled and it broke
something else. removed the fix.
Updated Makefile.PL to use DBI version 1.21 instead of 1.201 to
facilitate builds under latest development versions of Perl.
Updated code to use the *greater* of the column display size and the
column length for allocating column buffers. This *should* workaround a
problem with DBD::ODBC and the Universe database.
Added code thanks to Michael Riber to handle SQLExecDirect instead of
SQLPrepare. There are two ways to get this:
$dbh->prepare($sql, { odbc_execdirect => 1});
and
$dbh->{odbc_execdirect} = 1;
When $dbh->prepare() is called with the attribute "ExecDirect" set to a
non-zero value dbd_st_prepare do NOT call SQLPrepare, but set the sth
flag odbc_exec_direct to 1.
Fixed numeric value binding when binding non-integral values. Now lets
the driver or the database handle the conversion.
Fixed makefile.pl generation of makefile to force the ODBC directory
first in the include list to help those installing ODBC driver managers
on systems which already have ODBC drivers in their standard include
path.
=head2 0.45_18 2002-09-26
Updated MANIFEST to include more of the mytest/* files (examples, tests)
Fixed problem when attempting to get NUM_OF_FIELDS after execute returns
no rows/columns.
=head2 0.45_17 2002-08-26
More fixes for multiple result sets. Needed to clear the DBIc_FIELDS_AV
when re-executing the multiple-result set stored procedure/query.
=head2 0.45_16 2002-08-26
Updated to fix output parameters with multiple result sets. The output
parameters are not set until the last result set has been retrieved.
=head2 0.45_15 2002-08-20
Updated for new DBIc_STATE macros (all debug, as it turned out) to be
thread safer in the long run
Updated for the new DBIc_LOGFP macros
Added CLONE method
Fix for SQL Server where multiple result sets being returned from a
stored proc, where one of the result sets was empty (insert/update).
Added new attribute odbc_force_rebind, which forces DBD::ODBC to check
recheck for new result sets every execute. This is only really
necessary if you have a stored procedure which returns different result
sets with each execute, given the same "prepare". Many times this will
be automatically set by DBD::ODBC, however, if there is only one result
set in the stored proc, but it can differ with each call, then DBD::ODBC
will not know to set it.
Updated the DBD::ODBC POD documentation to document DBD::ODBC private
attributes and usage.
=head2 0.45_14 2002-08-13
Added support to handle (better) DBI begin_work().
Fix for binding undef parameters on SQL Server.
Fix bug when connecting twice in the same script. Trying to set the
environment ODBC version twice against the same henv caused an error.
=head2 0.45_13 2002-08-09
Workaround problem with iODBC where SQLAllocHandleStd is not present in
iODBC.
Made Changes file accessible via perldoc DBD::ODBC::Changes. In the
near future the change log will be removed from here and put in changes
to tidy up a bit.
=head2 0.45_12 2002-08-09
Fixed global destruction access violation (which was seemingly random).
=head2 0.45_11 2002-08-08
Updated manifest to include more samples.
Working on checking for leaks on Linux, where I might get more
information about the process memory.
Working on fixing problems with MS SQL Server binding parameters. It
seems that SQLServer gets "confused" if you bind a NULL first. In
"older" (SQLServer 2000 initial release) versions of the driver, it
would truncate char fields. In "newer" versions of the SQL Server
driver, it seems to only truncate dates (actually, round them to the
nearest minute). If you have problems in the SQL Server tests, please
upgrade your driver to the latest version on Microsoft's website (MDAC
2.7 or above) http://www.microsoft.com/data
=head2 0.45_10 2002-07-30
Added database specific tests to ensure things are working. Some of the
tests may not work for all people or may not be desirable. I have tried
to keep them as safe as possible, but if they don't work, please let me
know.
Added support for the internal function GetFunctions to handle ODBC 3's
SQL_API_ODBC3_ALL_FUNCTIONS. Would have caused a memory overwrite on
the stack if it was called.
=head2 0.45_9 2002-07-30
Fixed bug in procedure handling for SQLServer. Was not re-describing
the result sets if the SQLMoreResults in the execute needs to be called.
=head2 0.45_8 2002-07-25
Fixed bug in tracing code when binding an undef parameter which did not
happen to have a valid buffer with tracing level >= 2
Fixed bug when binding undef after a valid data bind on a timestamp.
The Scale value was being calculated based upon the string that had been
bound prior to the bind of the undef and if that had a sub-second value,
then the scale would be set to the wrong value...I.e.
bind_param(1, '2000-05-17 00:01:00.250', SQL_TYPE_TIMESTAMP) then
execute
bind_param(1, undef, SQL_TYPE_TIMESTAMP) then
Fixed SQL Server issue when binding a null and the length was set to 0
instead of 1
=head2 0.45_7 2002-07-25
Adding support for array binding, but not finished.
Fixed bug where SqlServer Stored procedures which perform INSERT would
not correctly return a result set. Thanks to Joe Tebelskis for finding
it and Martin Evans for supplying a fix.
Fixed bug where binding the empty string would cuase a problem. Fixed
and added test in t/07bind.t.
=head2 0.45_6 2002-07-24
Added support for new DBI ParamValues feature.
=head2 0.45_5 2002-07-23
Added odbc_err_handler and odbc_async_exec thanks to patches by David
L. Good. See example in mytest/testerrhandler.pl
Here's the notes about it:
I've implemented two separate functions. The first is an "error
handler" similar to that in DBD::Sybase. The error handler can be
used to intercept error and status messages from the server. It is
the only way (at least currently) that you can retrieve non-error
status messages when execution is successful.
To use the error handler, set the "odbc_err_handler" attribute on your
database handle to a reference to a subroutine that will act as the
error handler. This subroutine will be passed two args, the SQLSTATE
and the error message. If the subroutine returns 0, the error message
will be otherwise ignored. If it returns non-zero, the error message
will be processed normally.
The second function implemented is asynchronous execution. It's only
useful for retrieving server messages with an error handler during an
execute() that takes a long time (such as a DBCC on a large database)
ODBC doesn't have the concept of a callback routine like Sybase's
DBlib/CTlib does, so asynchronous execution is needed to be able to
get the server messages before the SQL statement is done processing.
To use asynchronous execution, set the "odbc_async_exec" attribute on
your database handle to 1. Not all ODBC drivers support asynchronous
execution. To see if yours does, set odbc_async_exec to 1 and then
check it's value. If the value is 1, your ODBC driver can do
asynchronous execution. If the value is 0, your ODBC driver cannot.
=head2 0.45_4 2002-07-22
More fixes for DB2 tests and timestamp handling.
=head2 0.45_3 2002-07-22
Changes to internal timestamp type handling and test structure to ensure
tests work for all platforms. DB2 was giving me fits due to bad
assumptions. Thanks to Martin Evans (again) for help in identifying the
problems and helping research solutions. This includes the
scale/precision values to correctly store full timestamps.
=head2 0.45_2 2002-07-19
Moving API usage to ODBC 3.0 specifications. With lots of help from
Martin Evans (again!). Thanks Martin!!!!!
=head2 0.44 2002-07-18
.44 was never officially released.
Fix for do() and execute to handle DB2 correctly. Patch/discovery
thanks to Martin Evans.
Partly moving towards defaulting to ODBC 3.x standards.
=head2 0.43 2002-07-18
Fix for FoxPro (and potentially other) Drivers!!!!!
Add support for DBI column_info
Fix for binding undef value which comes from dereferencing hash
Fix to make all bound columns word (int) aligned in the buffer.
=head2 0.42 2002-07-08
Added patches to the tests to support ActiveState's automated build
process.
Fix ping() to try SQLTables for a test, instead of a strange query.
=head2 0.41 2002-04-15
Fixed problem where SQLDescribeParam would fail (probably bug in ODBC
driver). Now reverts to SQL_VARCHAR if that happens, instead of failing
the query.
Fixed error report when using Oracle's driver. There is a known
problem. Left the error on the test, but added warning indicating it's
a known problem.
=head2 0.40 2002-04-12
Most significant change is the change in the default binding type which
forces DBD::ODBC to attempt to determine the bind type if one is not
passed. I decided to make this the default behaviour to make things as
simple as possible.
Fixed connection code put in 0.39 to work correctly.
Two minor patches for building, one for Cygwin one if both iODBC and
unixODBC libraries are installed. Probably need better command line on
this, but if someone has the problem, please let me know (and hopefully
send a patch with it).
=head2 0.39 2002-03-12
See mytest/longbin.pl for demonstration of inserting and retrieving long
binary files to/from the db. Uses MD5 algorithm to verify data. Please
do some similar test(s) with your database before using it in
production. The various bind types are different for each database!
Finally removed distribution of old iODBC. See www.iodbc.org or
www.unixodbc.org for newer/better versions of the ODBC driver manager
for Unix (and others?).
Added ability to force ODBC environment version.
Fix to SQLColAttributes.
Changes to connect sequence to provide better error messages for those
using DSN-less connections.
=head2 0.38 2002-02-12
Fixed do function (again) thanks to work by Martin Evans.
=head2 0.37 2002-02-10
Patches for get_info where return type is string. Patches thanks to
Steffen Goldner. Thanks Steffen!
Patched get_info to NOT attempt to get data for SQL_DRIVER_HSTMT and
SQL_DRIVER_HDESC as they expect data in and have limited value (IMHO).
Further fixed build for ODBC 2.x drivers. The new SQLExecDirect code
had SQLAllocHandle which is a 3.x function, not a 2.x function. Sigh.
I should have caught that the first time. Signed, the Mad-and-
not-thorough-enough-patcher.
Additionally, a random core dump occurred in the tests, based upon the
new SQLExecDirect code. This has been fixed.
=head2 0.36 2002-02-10
Fixed build for ODBC 2.x drivers. The new SQLExecDirect code had
SQLFreeHandle which is a 3.x function, not a 2.x function.
=head2 0.35 2002-02-09
Fixed (finally) multiple result sets with differing numbers of columns.
The final fix was to call SQLFreeStmt(SQL_UNBIND) before repreparing the
statement for the next query.
Added more to the multi-statement tests to ensure the data retrieved was
what was expected.
Now, DBD::ODBC overrides DBI's do to call SQLExecDirect for simple
statements (those without parameters). Please advise if you run into
problems. Hopefully, this will provide some small speed improvement for
simple "do" statements. You can also call $dbh->func($stmt,
ExecDirect). I'm not sure this has great value unless you need to
ensure SQLExecDirect is being called. Patches thanks to Merijn Broeren.
Thanks Merijn!
=head2 0.34 2002-02-07
Further revamped tests to attempt to determine if SQLDescribeParam will
work to handle the binding types. The t/08bind.t attempts to determine
if SQLDescribeParam is supported. note that Oracle's ODBC driver under
NT doesn't work correctly when binding dates using the ODBC date
formatting {d } or {ts }. So, test #3 will fail in t/08bind.t
New support for primary_key_info thanks to patches by Martin Evans.
New support for catalog, schema, table and table_type in table_info
thanks to Martin Evans. Thanks Martin for your work and your continuing
testing, suggestions and general support!
Support for upcoming dbi get_info.
=head2 0.33_3 2002-02-04
Revamped tests to include tests for multiple result sets. The tests are
ODBC driver platform specific and will be skipped for drivers which do
not support multiple result sets.
=head2 0.33_2 2002-02-04
Finally tested new binding techniques with SQL Server 2000, but there is
a nice little bug in their MDAC and ODBC drivers according to the
knowledge base article # Q273813, titled
"FIX: "Incorrect Syntax near the Keyword 'by' "
Error Message with Column Names of "C", "CA" or "CAS" (Q273813)
DBD::ODBC now does not name any of the columns A, B, C, or D they are
now COL_A, COL_B, COL_C, COL_D.
*** NOTE: *** I AM STRONGLY CONSIDERING MAKING THE NEW BINDING the
default for future versions. I do not believe it will break much
existing code (if any) as anyone binding to non VARCHAR (without the
ODBC driver doing a good conversion from the VARCHAR) will have a
problem. It may be subtle, however, since much code will work, but
say, binding dates may not with some drivers.
Please comment soon...
=head2 0.33_1 2002-02-04
*** WARNING: ***
Changes to the binding code to allow the use of SQLDescribeParam to
determine if the type of column being bound. This is experimental and
activated by setting
$dbh->{odbc_default_bind_type} = 0; # before creating the query...
Currently the default value of odbc_default_bind_type = SQL_VARCHAR
which mimicks the current behaviour. If you set odbc_default_bind_type
to 0, then SQLDescribeParam will be called to determine the columen
type. Not ALL databases handle this correctly. For example, Oracle
returns SQL_VARCHAR for all types and attempts to convert to the correct
type for us. However, if you use the ODBC escaped date/time format such
as: {ts '1998-05-13 00:01:00'} then Oracle complains. If you bind this
with a SQL_TIMESTAMP type, however, Oracle's ODBC driver will parse the
time/date correctly. Use at your own risk!
Fix to dbdimp.c to allow quoted identifiers to begin/end with either "
or '. The following will not be treated as if they have a bind
placeholder:
"isEstimated?"
'01-JAN-1987 00:00:00'
'Does anyone insert a ?'
=head2 0.32 2002-01-22
More SAP patches to Makfile.PL to eliminate the call to Data Sources
A patch to the test (for SAP and potentially others), to allow fallback
to SQL_TYPE_DATE in the tests
=head2 0.31 2002-01-18
Added SAP patches to build directly against SAP driver instead of driver
manager thanks to Flemming Frandsen (thanks!)
Added support to fix ping for Oracle8. May break other databases, so
please report this as soon as possible. The downside is that we need to
actually execute the dummy query.
=head2 0.30 2002-01-08
Added ping patch for Solid courtesy of Marko Asplund
Updated disconnect to rollback if autocommit is not on. This should
silence some errors when disconnecting.
Updated SQL_ROWSET_SIZE attribute. Needed to force it to
odbc_SQL_ROWSET_SIZE to obey the DBI rules.
Added odbc_SQL_DRIVER_ODBC_VER, which obtains the version of the Driver
upon connect. This internal capture of the version is a read-only
attribute and is used during array binding of parameters.
Added odbc_ignore_named_placeholders attribute to facilicate creating
triggers within SAPDB and Oracle, to name two. The syntax in these DBs
is to allow use of :old and :new to access column values before and
after updates. Example:
$dbh->{odbc_ignore_named_placeholders} = 1;
# set it for all future statements
# ignores :foo, :new, etc, but not :1 or ?
$dbh->do("create or replace etc :new.D = sysdate etc");
=head2 0.29 2001-08-22
Cygwin patches from Neil Lunn (untested by me). Thanks Neil!
SQL_ROWSET_SIZE attribute patch from Andrew Brown
There are only 2 additional lines allowing for the setting of
SQL_ROWSET_SIZE as db handle option.
The purpose to my madness is simple. SqlServer (7 anyway) by default
supports only one select statement at once (using std ODBC cursors).
According to the SqlServer documentation you can alter the default
setting of three values to force the use of server cursors - in which
case multiple selects are possible.
The code change allows for:
$dbh->{SQL_ROWSET_SIZE} = 2; # Any value > 1
For this very purpose.
The setting of SQL_ROWSET_SIZE only affects the extended fetch command
as far as I can work out and thus setting this option shouldn't affect
DBD::ODBC operations directly in any way.
Andrew
VMS and other patches from Martin Evans (thanks!)
[1] a fix for Makefile.PL to build DBD::ODBC on OpenVMS.
[2] fix trace message coredumping after SQLDriverConnect
[3] fix call to SQLCancel which fails to pass the statement handle
properly.
[4] consume diagnostics after SQLDriverConnect/SQLConnect call or they
remain until the next error occurs and it then looks confusing (this
is due to ODBC spec for SQLError). e.g. test 02simple returns a data
truncated error only now instead of all the informational diags that
are left from the connect call, like the "database changed", "language
changed" messages you get from MS SQL Server.
Replaced C++ style comments with C style to support more platforms more
easily.
Fixed bug which use the single quote (') instead of a double quote (")
for "literal" column names. This helped when having a colon (:) in the
column name.
Fixed bug which would cause DBD::ODBC to core-dump (crash) if DBI
tracing level was greater than 3.
Fixed problem where ODBC.pm would have "use of uninitialized variable"
if calling DBI's type_info.
Fixed problem where ODBC.xs *may* have an overrun when calling
SQLDataSources.
Fixed problem with DBI 1.14, where fprintf was being called instead of
PerlIO_printf for debug information
Fixed problem building with unixODBC per patch from Nick Gorham
Added ability to bind_param_inout() via patches from Jeremy Cooper.
Haven't figured out a good, non-db specific way to test. My current
test platform attempts to determine the connected database type via ugly
hacks and will test, if it thinks it can. Feel free to patch and send
me something...Also, my current Oracle ODBC driver fails miserably and
dies.
Updated t/02simple.t to not print an error, when there is not one.
=head2 0.28 2000-03-23
Added support for SQLSpecialColumns thanks to patch provided by Martin
J. Evans
Fixed bug introduced in 0.26 which was introduced of SQLMoreResults was
not supported by the driver.
=head2 0.27 2000-03-08
Examined patch for ping method to repair problem reported by Chris
Bezil. Thanks Chris!
Added simple test for ping method working which should identify this in
the future.
=head2 0.26 2000-03-05
Put in patch for returning only positive rowcounts from dbd_st_execute.
The original patch was submitted by Jon Smirl and put back in by David
Good. Reasoning seems sound, so I put it back in. However, any
databases that return negative rowcounts for specific reasons, will no
longer do so.
Put in David Good's patch for multiple result sets. Thanks David! See
mytest\moreresults.pl for an example of usage.
Added readme.txt in iodbcsrc explaining an issue there with iODBC 2.50.3
and C<data_sources>.
Put in rudimentary cancel support via SQLCancel. Call $sth->cencel to
utilize. However, it is largely untested by me, as I do not have a good
sample for this yet. It may come in handy with threaded perl, someday
or it may work in a signal handler.
=head2 0.25 2000-03-04
Added conditional compilation for SQL_WVARCHAR and SQL_WLONGVARCHAR. If
they are not defined by your driver manager, they will not be compiled
in to the code. If you would like to support these types on some
platforms, you may be able to #define SQL_WVARCHAR (-9) #define
SQL_WLONGVARCHAR (-10)
Added more long tests with binding in t\09bind.t. Note use of
bind_param!
=head2 0.24 2000-02-24
Fixed Test #13 in 02simple.t. Would fail, improperly, if there was only
one data source defined.
Fixed (hopefully) SQL Server 7 and ntext type "Out of Memory!" errors
via patch from Thomas Lowery. Thanks Thomas!
Added more support for Solid to handle the fact that it does not support
data_sources nor SQLDriverConnect. Patch supplied by Samuli Karkkainen
[skarkkai@woods.iki.fi]. Thanks! It's untested by me, however.
Added some information from Adam Curtin about a bug in iodbc 2.50.3's
data_sources. See iodbcsrc\readme.txt.
Added information in this pod from Stephen Arehart regarding DSNLess
connections.
Added fix for sp_prepare/sp_execute bug reported by Paul G. Weiss.
Added some code for handling a hint on disconnect where the user gets an
error for not committing.
=head2 0.22 1999-09-08
Fixed for threaded perl builds. Note that this was tested only on
Win32, with no threads in use and using DBI 1.13. Note, for
ActiveState/PERL_OBJECT builds, DBI 1.13_01 is required as of 9/8/99.
If you are using ActiveState's perl, this can be installed by using PPM.
=head2 0.21 Unknown
Thanks to all who provided patches!
Added ability to connect to an ODBC source without prior creation of
DSN. See mytest/contest.pl for example with MS Access. (Also note that
you will need documentation for your ODBC driver -- which, sadly, can be
difficult to find).
Fixed case sensitivity in tests.
Hopefully fixed test #4 in t/09bind.t. Updated it to insert the date
column and updated it to find the right type of the column. However, it
doesn't seem to work on my Linux test machine, using the OpenLink
drivers with MS-SQL Server (6.5). It complains about binding the date
time. The same test works under Win32 with SQL Server 6.5, Oracle 8.0.3
and MS Access 97 ODBC drivers. Hmmph.
Fixed some binary type issues (patches from Jon Smirl)
Added SQLStatistics, SQLForeignKeys, SQLPrimaryKeys (patches from Jon
Smirl) Thanks (again), Jon, for providing the build_results function to
help reduce duplicate code!
Worked on LongTruncOk for Openlink drivers.
Note: those trying to bind variables need to remember that you should
use the following syntax:
use DBI;
...
$sth->bind_param(1, $str, DBI::SQL_LONGVARCHAR);
Added support for unixodbc (per Nick Gorham)
Added support for OpenLinks udbc (per Patrick van Kleef)
Added Support for esodbc (per Martin Evans)
Added Support for Easysoft (per Bob Kline)
Changed table_info to produce a list of views, too.
Fixed bug in SQLColumns call.
Fixed blob handling via patches from Jochen Wiedmann.
Added data_sources capability via snarfing code from DBD::Adabas (Jochen
Wiedmann)
=head2 0.20 1998-08-14
SQLColAttributes fixes for SQL Server and MySQL. Fixed tables method by
renaming to new table_info method. Added new tyoe_info_all method.
Improved Makefile.PL support for Adabase.
=head2 0.19 Unknown
Added iODBC source code to distribution.Fall-back to using iODBC header
files in some cases.
=head2 0.18 Unknown
Enhancements to build process. Better handling of errors in error
handling code.
=head2 0.17 Unknown
This release is mostly due to the good work of Jeff Urlwin. My eternal
thanks to you Jeff.
Fixed "SQLNumResultCols err" on joins and 'order by' with some drivers
(see Microsoft Knowledge Base article #Q124899). Thanks to Paul
O'Fallon for that one.
Added more (probably incomplete) support for unix ODBC in Makefile.PL
Increased default SQL_COLUMN_DISPLAY_SIZE and SQL_COLUMN_LENGTH to 2000
for drivers that don't provide a way to query them dynamically. Was 100!
When fetch reaches the end-of-data it automatically frees the internal
ODBC statement handle and marks the DBI statement handle as inactive
(thus an explicit 'finish' is *not* required).
Also:
LongTruncOk for Oracle ODBC (where fbh->datalen < 0)
Added tracing into SQLBindParameter (help diagnose oracle odbc bug)
Fixed/worked around bug/result from Latest Oracle ODBC driver where in
SQLColAttribute cbInfoValue was changed to 0 to indicate fDesc had a value
Added work around for compiling w/ActiveState PRK (PERL_OBJECT)
Updated tests to include date insert and type
Added more "backup" SQL_xxx types for tests
Updated bind test to test binding select
NOTE: bind insert fails on Paradox driver (don't know why)
Added support for: (see notes below)
SQLGetInfo via $dbh->func(xxx, GetInfo)
SQLGetTypeInfo via $dbh->func(xxx, GetTypeInfo)
SQLDescribeCol via $sth->func(colno, DescribeCol)
SQLColAttributes via $sth->func(xxx, colno, ColAttributes)
SQLGetFunctions via $dbh->func(xxx, GetFunctions)
SQLColumns via $dbh->func(catalog, schema, table, column, 'columns')
Fixed $DBI::err to reflect the real ODBC error code which is a 5 char
code, not necessarily numeric.
Fixed fetches when LongTruncOk == 1.
Updated tests to pass more often (hopefully 100% <G>)
Updated tests to test long reading, inserting and the LongTruncOk attribute.
Updated tests to be less driver specific.
They now rely upon SQLGetTypeInfo I<heavily> in order to create the
tables. The test use this function to "ask" the driver for the name of
the SQL type to correctly create long, varchar, etc types. For example,
in Oracle the SQL_VARCHAR type is VARCHAR2, while MS Access uses TEXT
for the SQL Name. Again, in Oracle the SQL_LONGVARCHAR is LONG, while
in Access it's MEMO. The tests currently handle this correctly (at
least with Access and Oracle, MS SQL server will be tested also).
=cut
|