1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
0.4 Changelog
—
SQLAlchemy 0.9 Documentation
</title>
<!-- begin iterate through SQLA + sphinx environment css_files -->
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/docs.css" type="text/css" />
<link rel="stylesheet" href="../_static/sphinx_paramlinks.css" type="text/css" />
<link rel="stylesheet" href="../_static/changelog.css" type="text/css" />
<!-- end iterate through SQLA + sphinx environment css_files -->
<!-- begin layout.mako headers -->
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '0.9.8',
COLLAPSE_MODINDEX: false,
FILE_SUFFIX: '.html'
};
</script>
<!-- begin iterate through sphinx environment script_files -->
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<!-- end iterate through sphinx environment script_files -->
<script type="text/javascript" src="../_static/detectmobile.js"></script>
<script type="text/javascript" src="../_static/init.js"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="copyright" title="Copyright" href="../copyright.html" />
<link rel="top" title="SQLAlchemy 0.9 Documentation" href="../index.html" />
<link rel="up" title="Changes and Migration" href="index.html" />
<link rel="next" title="0.3 Changelog" href="changelog_03.html" />
<link rel="prev" title="0.5 Changelog" href="changelog_05.html" />
<!-- end layout.mako headers -->
</head>
<body>
<div id="docs-container">
<div id="docs-top-navigation-container" class="body-background">
<div id="docs-header">
<div id="docs-version-header">
Release: <span class="version-num">0.9.8</span> | Release Date: October 13, 2014
</div>
<h1>SQLAlchemy 0.9 Documentation</h1>
</div>
</div>
<div id="docs-body-container">
<div id="fixed-sidebar" class="withsidebar">
<div id="docs-sidebar-popout">
<h3><a href="../index.html">SQLAlchemy 0.9 Documentation</a></h3>
<p id="sidebar-paginate">
<a href="index.html" title="Changes and Migration">Up</a> |
<a href="changelog_05.html" title="0.5 Changelog">Prev</a> |
<a href="changelog_03.html" title="0.3 Changelog">Next</a>
</p>
<p id="sidebar-topnav">
<a href="../index.html">Contents</a> |
<a href="../genindex.html">Index</a>
</p>
<div id="sidebar-search">
<form class="search" action="../search.html" method="get">
<input type="text" name="q" size="12" /> <input type="submit" value="Search" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<div id="docs-sidebar">
<h3><a href="#">
0.4 Changelog
</a></h3>
<ul>
<li><a class="reference internal" href="#">0.4 Changelog</a><ul>
<li><a class="reference internal" href="#change-0.4.8">0.4.8</a><ul>
<li><a class="reference internal" href="#change-0.4.8-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.4.8-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.4.8-mysql">mysql</a></li>
<li><a class="reference internal" href="#change-0.4.8-sqlite">sqlite</a></li>
<li><a class="reference internal" href="#change-0.4.8-oracle">oracle</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.4.7p1">0.4.7p1</a><ul>
<li><a class="reference internal" href="#change-0.4.7p1-orm">orm</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.4.7">0.4.7</a><ul>
<li><a class="reference internal" href="#change-0.4.7-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.4.7-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.4.7-schema">schema</a></li>
<li><a class="reference internal" href="#change-0.4.7-mysql">mysql</a></li>
<li><a class="reference internal" href="#change-0.4.7-oracle">oracle</a></li>
<li><a class="reference internal" href="#change-0.4.7-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.4.6">0.4.6</a><ul>
<li><a class="reference internal" href="#change-0.4.6-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.4.6-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.4.6-mssql">mssql</a></li>
<li><a class="reference internal" href="#change-0.4.6-firebird">firebird</a></li>
<li><a class="reference internal" href="#change-0.4.6-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.4.5">0.4.5</a><ul>
<li><a class="reference internal" href="#change-0.4.5-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.4.5-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.4.5-mysql">mysql</a></li>
<li><a class="reference internal" href="#change-0.4.5-mssql">mssql</a></li>
<li><a class="reference internal" href="#change-0.4.5-oracle">oracle</a></li>
<li><a class="reference internal" href="#change-0.4.5-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.4.4">0.4.4</a><ul>
<li><a class="reference internal" href="#change-0.4.4-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.4.4-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.4.4-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.4.3">0.4.3</a><ul>
<li><a class="reference internal" href="#change-0.4.3-general">general</a></li>
<li><a class="reference internal" href="#change-0.4.3-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.4.3-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.4.3-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.4.2p3">0.4.2p3</a><ul>
<li><a class="reference internal" href="#change-0.4.2p3-general">general</a></li>
<li><a class="reference internal" href="#change-0.4.2p3-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.4.2p3-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.4.2p3-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.4.2">0.4.2</a><ul>
<li><a class="reference internal" href="#change-0.4.2-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.4.2-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.4.2-firebird">firebird</a></li>
<li><a class="reference internal" href="#change-0.4.2-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.4.1">0.4.1</a><ul>
<li><a class="reference internal" href="#change-0.4.1-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.4.1-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.4.1-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.4.0">0.4.0</a></li>
<li><a class="reference internal" href="#change-0.4.0beta6">0.4.0beta6</a></li>
<li><a class="reference internal" href="#change-0.4.0beta5">0.4.0beta5</a></li>
<li><a class="reference internal" href="#change-0.4.0beta4">0.4.0beta4</a></li>
<li><a class="reference internal" href="#change-0.4.0beta3">0.4.0beta3</a></li>
<li><a class="reference internal" href="#change-0.4.0beta2">0.4.0beta2</a><ul>
<li><a class="reference internal" href="#change-0.4.0beta2-oracle">oracle</a></li>
<li><a class="reference internal" href="#change-0.4.0beta2-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.4.0beta1">0.4.0beta1</a><ul>
<li><a class="reference internal" href="#change-0.4.0beta1-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.4.0beta1-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.4.0beta1-mysql">mysql</a></li>
<li><a class="reference internal" href="#change-0.4.0beta1-oracle">oracle</a></li>
<li><a class="reference internal" href="#change-0.4.0beta1-misc">misc</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div id="docs-body" class="withsidebar" >
<div class="section" id="changelog">
<h1>0.4 Changelog<a class="headerlink" href="#changelog" title="Permalink to this headline">¶</a></h1>
<div class="section" id="change-0.4.8">
<h2>0.4.8<a class="headerlink" href="#change-0.4.8" title="Permalink to this headline">¶</a></h2>
Released: Sun Oct 12 2008<div class="section" id="change-0.4.8-orm">
<h3>orm<a class="headerlink" href="#change-0.4.8-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.8-0"><span class="target" id="change-4000d9f2d4389a85854ede3e007aaba5"><strong>[orm] </strong></span>Fixed bug regarding inherit_condition passed
with “A=B” versus “B=A” leading to errors<a class="changeset-link headerlink reference internal" href="#change-4000d9f2d4389a85854ede3e007aaba5">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1039">#1039</a></p>
</p>
</li>
<li><p id="change-0.4.8-1"><span class="target" id="change-2690aa1e520f493331cb61a6326c56c4"><strong>[orm] </strong></span>Changes made to new, dirty and deleted
collections in
SessionExtension.before_flush() will take
effect for that flush.<a class="changeset-link headerlink reference internal" href="#change-2690aa1e520f493331cb61a6326c56c4">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.8-2"><span class="target" id="change-13623d94e18e8b3b92030ae525a030ec"><strong>[orm] </strong></span>Added label() method to InstrumentedAttribute
to establish forwards compatibility with 0.5.<a class="changeset-link headerlink reference internal" href="#change-13623d94e18e8b3b92030ae525a030ec">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.8-sql">
<h3>sql<a class="headerlink" href="#change-0.4.8-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.8-3"><span class="target" id="change-7fee195a017ac2215e80b38b868365e9"><strong>[sql] </strong></span>column.in_(someselect) can now be used as
a columns-clause expression without the subquery
bleeding into the FROM clause<a class="changeset-link headerlink reference internal" href="#change-7fee195a017ac2215e80b38b868365e9">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1074">#1074</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.8-mysql">
<h3>mysql<a class="headerlink" href="#change-0.4.8-mysql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.8-4"><span class="target" id="change-341091ae1d33ebc9cf02df1ca798516a"><strong>[mysql] </strong></span>Added MSMediumInteger type.<a class="changeset-link headerlink reference internal" href="#change-341091ae1d33ebc9cf02df1ca798516a">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1146">#1146</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.8-sqlite">
<h3>sqlite<a class="headerlink" href="#change-0.4.8-sqlite" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.8-5"><span class="target" id="change-67cbed9a85982025c41cb138787f8f47"><strong>[sqlite] </strong></span>Supplied a custom strftime() function which
handles dates before 1900.<a class="changeset-link headerlink reference internal" href="#change-67cbed9a85982025c41cb138787f8f47">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/968">#968</a></p>
</p>
</li>
<li><p id="change-0.4.8-6"><span class="target" id="change-7cabaeb41bcd3c0b9074d2704bca61c6"><strong>[sqlite] </strong></span>String’s (and Unicode’s, UnicodeText’s, etc.)
convert_unicode logic disabled in the sqlite dialect,
to adjust for pysqlite 2.5.0’s new requirement that
only Python unicode objects are accepted;
<a class="reference external" href="http://itsystementwicklung.de/pipermail/list-pysqlite/2008-March/000018.html">http://itsystementwicklung.de/pipermail/list-pysqlite/2008-March/000018.html</a><a class="changeset-link headerlink reference internal" href="#change-7cabaeb41bcd3c0b9074d2704bca61c6">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.8-oracle">
<h3>oracle<a class="headerlink" href="#change-0.4.8-oracle" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.8-7"><span class="target" id="change-c1ece36939d26084e64ecd6b3519de17"><strong>[oracle] </strong></span>has_sequence() now takes schema name into account<a class="changeset-link headerlink reference internal" href="#change-c1ece36939d26084e64ecd6b3519de17">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1155">#1155</a></p>
</p>
</li>
<li><p id="change-0.4.8-8"><span class="target" id="change-e15a9ca2c0e8d6a5e56b4fc468592e10"><strong>[oracle] </strong></span>added BFILE to the list of reflected types<a class="changeset-link headerlink reference internal" href="#change-e15a9ca2c0e8d6a5e56b4fc468592e10">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1121">#1121</a></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.4.7p1">
<h2>0.4.7p1<a class="headerlink" href="#change-0.4.7p1" title="Permalink to this headline">¶</a></h2>
Released: Thu Jul 31 2008<div class="section" id="change-0.4.7p1-orm">
<h3>orm<a class="headerlink" href="#change-0.4.7p1-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.7p1-0"><span class="target" id="change-8845ae575ef66cb76fb504e32b6b0e26"><strong>[orm] </strong></span>Added “add()” and “add_all()” to scoped_session
methods. Workaround for 0.4.7:<div class="highlight-python"><div class="highlight"><pre><span class="kn">from</span> <span class="nn">sqlalchemy.orm.scoping</span> <span class="kn">import</span> <span class="n">ScopedSession</span><span class="p">,</span> <span class="n">instrument</span>
<span class="nb">setattr</span><span class="p">(</span><span class="n">ScopedSession</span><span class="p">,</span> <span class="s">"add"</span><span class="p">,</span> <span class="n">instrument</span><span class="p">(</span><span class="s">"add"</span><span class="p">))</span>
<span class="nb">setattr</span><span class="p">(</span><span class="n">ScopedSession</span><span class="p">,</span> <span class="s">"add_all"</span><span class="p">,</span> <span class="n">instrument</span><span class="p">(</span><span class="s">"add_all"</span><span class="p">))</span></pre></div>
</div>
<a class="changeset-link headerlink reference internal" href="#change-8845ae575ef66cb76fb504e32b6b0e26">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.7p1-1"><span class="target" id="change-8150f6bc3321b0e5940f462af85fea59"><strong>[orm] </strong></span>Fixed non-2.3 compatible usage of set() and generator
expression within relation().<a class="changeset-link headerlink reference internal" href="#change-8150f6bc3321b0e5940f462af85fea59">¶</a><p></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.4.7">
<h2>0.4.7<a class="headerlink" href="#change-0.4.7" title="Permalink to this headline">¶</a></h2>
Released: Sat Jul 26 2008<div class="section" id="change-0.4.7-orm">
<h3>orm<a class="headerlink" href="#change-0.4.7-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.7-0"><span class="target" id="change-96d6f0048a53ef8280afa881d15981e4"><strong>[orm] </strong></span>The contains() operator when used with many-to-many
will alias() the secondary (association) table so
that multiple contains() calls will not conflict
with each other<a class="changeset-link headerlink reference internal" href="#change-96d6f0048a53ef8280afa881d15981e4">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1058">#1058</a></p>
</p>
</li>
<li><p id="change-0.4.7-1"><span class="target" id="change-043f1fb5d04c32f0e61d5443a46b23e6"><strong>[orm] </strong></span>fixed bug preventing merge() from functioning in
conjunction with a comparable_property()<a class="changeset-link headerlink reference internal" href="#change-043f1fb5d04c32f0e61d5443a46b23e6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.7-2"><span class="target" id="change-2c1a9b40953961921023dfe557a4326c"><strong>[orm] </strong></span>the enable_typechecks=False setting on relation()
now only allows subtypes with inheriting mappers.
Totally unrelated types, or subtypes not set up with
mapper inheritance against the target mapper are
still not allowed.<a class="changeset-link headerlink reference internal" href="#change-2c1a9b40953961921023dfe557a4326c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.7-3"><span class="target" id="change-25f41185c603cbb10bde56a17f623433"><strong>[orm] </strong></span>Added is_active flag to Sessions to detect when
a transaction is in progress. This
flag is always True with a “transactional”
(in 0.5 a non-“autocommit”) Session.<a class="changeset-link headerlink reference internal" href="#change-25f41185c603cbb10bde56a17f623433">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/976">#976</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.7-sql">
<h3>sql<a class="headerlink" href="#change-0.4.7-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.7-4"><span class="target" id="change-01ca8336bd39c6bb69577aad5d1d730e"><strong>[sql] </strong></span>Fixed bug when calling select([literal(‘foo’)])
or select([bindparam(‘foo’)]).<a class="changeset-link headerlink reference internal" href="#change-01ca8336bd39c6bb69577aad5d1d730e">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.7-schema">
<h3>schema<a class="headerlink" href="#change-0.4.7-schema" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.7-5"><span class="target" id="change-738cf5e3972ba6f7723c2c7acf6decc9"><strong>[schema] </strong></span>create_all(), drop_all(), create(), drop() all raise
an error if the table name or schema name contains
more characters than that dialect’s configured
character limit. Some DB’s can handle too-long
table names during usage, and SQLA can handle this
as well. But various reflection/
checkfirst-during-create scenarios fail since we are
looking for the name within the DB’s catalog tables.<a class="changeset-link headerlink reference internal" href="#change-738cf5e3972ba6f7723c2c7acf6decc9">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/571">#571</a></p>
</p>
</li>
<li><p id="change-0.4.7-6"><span class="target" id="change-d85ff361d06db88fdb94e3932a143ad0"><strong>[schema] </strong></span>The index name generated when you say “index=True”
on a Column is truncated to the length appropriate
for the dialect. Additionally, an Index with a too-
long name cannot be explicitly dropped with
Index.drop(), similar to.<a class="changeset-link headerlink reference internal" href="#change-d85ff361d06db88fdb94e3932a143ad0">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/571">#571</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/820">#820</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.7-mysql">
<h3>mysql<a class="headerlink" href="#change-0.4.7-mysql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.7-7"><span class="target" id="change-0514aaebdc79f7f9ff25dca47dc4b225"><strong>[mysql] </strong></span>Added ‘CALL’ to the list of SQL keywords which return
result rows.<a class="changeset-link headerlink reference internal" href="#change-0514aaebdc79f7f9ff25dca47dc4b225">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.7-oracle">
<h3>oracle<a class="headerlink" href="#change-0.4.7-oracle" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.7-8"><span class="target" id="change-aca4b41d0da66d4a3bd0e82c3a84cf5a"><strong>[oracle] </strong></span>Oracle get_default_schema_name() “normalizes” the name
before returning, meaning it returns a lower-case name
when the identifier is detected as case insensitive.<a class="changeset-link headerlink reference internal" href="#change-aca4b41d0da66d4a3bd0e82c3a84cf5a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.7-9"><span class="target" id="change-b47186d61937faba11d31de8eb03a326"><strong>[oracle] </strong></span>creating/dropping tables takes schema name into account
when searching for the existing table, so that tables
in other owner namespaces with the same name do not
conflict<a class="changeset-link headerlink reference internal" href="#change-b47186d61937faba11d31de8eb03a326">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/709">#709</a></p>
</p>
</li>
<li><p id="change-0.4.7-10"><span class="target" id="change-7568973ef20ea5f8c81322c145b9057f"><strong>[oracle] </strong></span>Cursors now have “arraysize” set to 50 by default on
them, the value of which is configurable using the
“arraysize” argument to create_engine() with the
Oracle dialect. This to account for cx_oracle’s default
setting of “1”, which has the effect of many round trips
being sent to Oracle. This actually works well in
conjunction with BLOB/CLOB-bound cursors, of which
there are any number available but only for the life of
that row request (so BufferedColumnRow is still needed,
but less so).<a class="changeset-link headerlink reference internal" href="#change-7568973ef20ea5f8c81322c145b9057f">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1062">#1062</a></p>
</p>
</li>
<li><p id="change-0.4.7-11"><span class="target" id="change-f9736a0cc3c4e162b300a782b7eca3f9"><strong>[oracle] </strong></span><dl class="docutils">
<dt>sqlite</dt>
<dd><ul class="first last">
<li>add SLFloat type, which matches the SQLite REAL
type affinity. Previously, only SLNumeric was provided
which fulfills NUMERIC affinity, but that’s not the
same as REAL.</li>
</ul>
</dd>
</dl>
<a class="changeset-link headerlink reference internal" href="#change-f9736a0cc3c4e162b300a782b7eca3f9">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.7-misc">
<h3>misc<a class="headerlink" href="#change-0.4.7-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.7-12"><span class="target" id="change-62dc8bb9ccdb89ab5046417cb1d71934"><strong>[postgres] </strong></span>Repaired server_side_cursors to properly detect
text() clauses.<a class="changeset-link headerlink reference internal" href="#change-62dc8bb9ccdb89ab5046417cb1d71934">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.7-13"><span class="target" id="change-1d3294865f665d0cd4ea5f969d56a278"><strong>[postgres] </strong></span>Added PGCidr type.<a class="changeset-link headerlink reference internal" href="#change-1d3294865f665d0cd4ea5f969d56a278">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1092">#1092</a></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.4.6">
<h2>0.4.6<a class="headerlink" href="#change-0.4.6" title="Permalink to this headline">¶</a></h2>
Released: Sat May 10 2008<div class="section" id="change-0.4.6-orm">
<h3>orm<a class="headerlink" href="#change-0.4.6-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.6-0"><span class="target" id="change-e31fe2fb2fc3ae1652c5eec0dfa0d711"><strong>[orm] </strong></span>Fix to the recent relation() refactoring which fixes
exotic viewonly relations which join between local and
remote table multiple times, with a common column shared
between the joins.<a class="changeset-link headerlink reference internal" href="#change-e31fe2fb2fc3ae1652c5eec0dfa0d711">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-1"><span class="target" id="change-f75f03e2d2f84749c5a66468e9f1a35f"><strong>[orm] </strong></span>Also re-established viewonly relation() configurations
that join across multiple tables.<a class="changeset-link headerlink reference internal" href="#change-f75f03e2d2f84749c5a66468e9f1a35f">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-2"><span class="target" id="change-8eaf754f74a237ae2563356bab985463"><strong>[orm] </strong></span>Added experimental relation() flag to help with
primaryjoins across functions, etc.,
_local_remote_pairs=[tuples]. This complements a complex
primaryjoin condition allowing you to provide the
individual column pairs which comprise the relation’s
local and remote sides. Also improved lazy load SQL
generation to handle placing bind params inside of
functions and other expressions. (partial progress
towards)<a class="changeset-link headerlink reference internal" href="#change-8eaf754f74a237ae2563356bab985463">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/610">#610</a></p>
</p>
</li>
<li><p id="change-0.4.6-3"><span class="target" id="change-cc35ebaf57ac910c9fbb17727e48eac6"><strong>[orm] </strong></span>repaired single table inheritance such that you
can single-table inherit from a joined-table inherting
mapper without issue.<a class="changeset-link headerlink reference internal" href="#change-cc35ebaf57ac910c9fbb17727e48eac6">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1036">#1036</a></p>
</p>
</li>
<li><p id="change-0.4.6-4"><span class="target" id="change-0ff3c2bd9a30aeb035bd70efcc0b5bb4"><strong>[orm] </strong></span>Fixed “concatenate tuple” bug which could occur with
Query.order_by() if clause adaption had taken place.<a class="changeset-link headerlink reference internal" href="#change-0ff3c2bd9a30aeb035bd70efcc0b5bb4">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1027">#1027</a></p>
</p>
</li>
<li><p id="change-0.4.6-5"><span class="target" id="change-9e5d19c9631cbe865600f279d1869f33"><strong>[orm] </strong></span>Removed ancient assertion that mapped selectables require
“alias names” - the mapper creates its own alias now if
none is present. Though in this case you need to use the
class, not the mapped selectable, as the source of column
attributes - so a warning is still issued.<a class="changeset-link headerlink reference internal" href="#change-9e5d19c9631cbe865600f279d1869f33">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-6"><span class="target" id="change-dde11f9e942ea94174168e9c076316e5"><strong>[orm] </strong></span>fixes to the “exists” function involving inheritance (any(),
has(), ~contains()); the full target join will be rendered
into the EXISTS clause for relations that link to subclasses.<a class="changeset-link headerlink reference internal" href="#change-dde11f9e942ea94174168e9c076316e5">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-7"><span class="target" id="change-104376c27707b3a37374971243e2423c"><strong>[orm] </strong></span>restored usage of append_result() extension method for primary
query rows, when the extension is present and only a single-
entity result is being returned.<a class="changeset-link headerlink reference internal" href="#change-104376c27707b3a37374971243e2423c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-8"><span class="target" id="change-302298aee07ec1d1aac10fe144468a7a"><strong>[orm] </strong></span>Also re-established viewonly relation() configurations that
join across multiple tables.<a class="changeset-link headerlink reference internal" href="#change-302298aee07ec1d1aac10fe144468a7a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-9"><span class="target" id="change-6f570f7ef26a5a9b11b822a63353d962"><strong>[orm] </strong></span>removed ancient assertion that mapped selectables require
“alias names” - the mapper creates its own alias now if
none is present. Though in this case you need to use
the class, not the mapped selectable, as the source of
column attributes - so a warning is still issued.<a class="changeset-link headerlink reference internal" href="#change-6f570f7ef26a5a9b11b822a63353d962">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-10"><span class="target" id="change-c3ba9d4b644bae5e507a69b17fad45b3"><strong>[orm] </strong></span>refined mapper._save_obj() which was unnecessarily calling
__ne__() on scalar values during flush<a class="changeset-link headerlink reference internal" href="#change-c3ba9d4b644bae5e507a69b17fad45b3">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1015">#1015</a></p>
</p>
</li>
<li><p id="change-0.4.6-11"><span class="target" id="change-71081f223b7ec2f83fe88a95bb74c96b"><strong>[orm] </strong></span>added a feature to eager loading whereby subqueries set
as column_property() with explicit label names (which is not
necessary, btw) will have the label anonymized when
the instance is part of the eager join, to prevent
conflicts with a subquery or column of the same name
on the parent object.<a class="changeset-link headerlink reference internal" href="#change-71081f223b7ec2f83fe88a95bb74c96b">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1019">#1019</a></p>
</p>
</li>
<li><p id="change-0.4.6-12"><span class="target" id="change-1e0e2c1b7d8337b2961576a28f6152dd"><strong>[orm] </strong></span>set-based collections |=, -=, ^= and &= are stricter about
their operands and only operate on sets, frozensets or
subclasses of the collection type. Previously, they would
accept any duck-typed set.<a class="changeset-link headerlink reference internal" href="#change-1e0e2c1b7d8337b2961576a28f6152dd">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-13"><span class="target" id="change-b1518ae6a45f510afd237e22960d4dbc"><strong>[orm] </strong></span>added an example dynamic_dict/dynamic_dict.py, illustrating
a simple way to place dictionary behavior on top of
a dynamic_loader.<a class="changeset-link headerlink reference internal" href="#change-b1518ae6a45f510afd237e22960d4dbc">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.6-sql">
<h3>sql<a class="headerlink" href="#change-0.4.6-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.6-14"><span class="target" id="change-c0a253c2a3ac8a52b71f9074c836045e"><strong>[sql] </strong></span>Added COLLATE support via the .collate(<collation>)
expression operator and collate(<expr>, <collation>) sql
function.<a class="changeset-link headerlink reference internal" href="#change-c0a253c2a3ac8a52b71f9074c836045e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-15"><span class="target" id="change-3425affd500ef60da0ceda4319ff76ac"><strong>[sql] </strong></span>Fixed bug with union() when applied to non-Table connected
select statements<a class="changeset-link headerlink reference internal" href="#change-3425affd500ef60da0ceda4319ff76ac">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-16"><span class="target" id="change-c946f492d8c12da19c9976c66867241a"><strong>[sql] </strong></span>improved behavior of text() expressions when used as
FROM clauses, such as select().select_from(text(“sometext”))<a class="changeset-link headerlink reference internal" href="#change-c946f492d8c12da19c9976c66867241a">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1014">#1014</a></p>
</p>
</li>
<li><p id="change-0.4.6-17"><span class="target" id="change-79b0f66b8b318392d68b1e09fb21dbad"><strong>[sql] </strong></span>Column.copy() respects the value of “autoincrement”,
fixes usage with Migrate<a class="changeset-link headerlink reference internal" href="#change-79b0f66b8b318392d68b1e09fb21dbad">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1021">#1021</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.6-mssql">
<h3>mssql<a class="headerlink" href="#change-0.4.6-mssql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.6-18"><span class="target" id="change-4bf92261ee5df21cc151f29b57009c2d"><strong>[mssql] </strong></span>Added “odbc_autotranslate” parameter to engine / dburi
parameters. Any given string will be passed through to the
ODBC connection string as:<blockquote>
<div>“AutoTranslate=%s” % odbc_autotranslate</div></blockquote>
<a class="changeset-link headerlink reference internal" href="#change-4bf92261ee5df21cc151f29b57009c2d">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1005">#1005</a></p>
</p>
</li>
<li><p id="change-0.4.6-19"><span class="target" id="change-c27df151a64a19d159ffaed249f8c5ec"><strong>[mssql] </strong></span>Added “odbc_options” parameter to engine / dburi
parameters. The given string is simply appended to the
SQLAlchemy-generated odbc connection string.<p>This should obviate the need of adding a myriad of ODBC
options in the future.</p>
<a class="changeset-link headerlink reference internal" href="#change-c27df151a64a19d159ffaed249f8c5ec">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.6-firebird">
<h3>firebird<a class="headerlink" href="#change-0.4.6-firebird" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.6-20"><span class="target" id="change-3135f866ba259ae39feef5c8fd6e9dc8"><strong>[firebird] </strong></span>Handle the “SUBSTRING(:string FROM :start FOR :length)”
builtin.<a class="changeset-link headerlink reference internal" href="#change-3135f866ba259ae39feef5c8fd6e9dc8">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.6-misc">
<h3>misc<a class="headerlink" href="#change-0.4.6-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.6-21"><span class="target" id="change-6e72bcfc5ea35d0926f998977a8d8f6b"><strong>[declarative] [extension] </strong></span>Joined table inheritance mappers use a slightly relaxed
function to create the “inherit condition” to the parent
table, so that other foreign keys to not-yet-declared
Table objects don’t trigger an error.<a class="changeset-link headerlink reference internal" href="#change-6e72bcfc5ea35d0926f998977a8d8f6b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-22"><span class="target" id="change-7cf86b76b69093e8eaf193d8766bd8ce"><strong>[declarative] [extension] </strong></span>fixed reentrant mapper compile hang when
a declared attribute is used within ForeignKey,
ie. ForeignKey(MyOtherClass.someattribute)<a class="changeset-link headerlink reference internal" href="#change-7cf86b76b69093e8eaf193d8766bd8ce">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-23"><span class="target" id="change-bd1c9b334fbda8764b59adae68a98d7d"><strong>[engines] </strong></span>Pool listeners can now be provided as a dictionary of
callables or a (possibly partial) duck-type of
PoolListener, your choice.<a class="changeset-link headerlink reference internal" href="#change-bd1c9b334fbda8764b59adae68a98d7d">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-24"><span class="target" id="change-1026db7afd8b57d4eb7e9698f6304feb"><strong>[engines] </strong></span>added “rollback_returned” option to Pool which will
disable the rollback() issued when connections are
returned. This flag is only safe to use with a database
which does not support transactions (i.e. MySQL/MyISAM).<a class="changeset-link headerlink reference internal" href="#change-1026db7afd8b57d4eb7e9698f6304feb">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-25"><span class="target" id="change-68c00352100f06ff96b4b08752086944"><strong>[ext] </strong></span>set-based association proxies |=, -=, ^= and &= are
stricter about their operands and only operate on sets,
frozensets or other association proxies. Previously, they
would accept any duck-typed set.<a class="changeset-link headerlink reference internal" href="#change-68c00352100f06ff96b4b08752086944">¶</a><p></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.4.5">
<h2>0.4.5<a class="headerlink" href="#change-0.4.5" title="Permalink to this headline">¶</a></h2>
Released: Fri Apr 04 2008<div class="section" id="change-0.4.5-orm">
<h3>orm<a class="headerlink" href="#change-0.4.5-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.5-0"><span class="target" id="change-2c9bdeacf621a1e5c68e65432e78acc9"><strong>[orm] </strong></span>A small change in behavior to session.merge() - existing
objects are checked for based on primary key attributes, not
necessarily _instance_key. So the widely requested
capability, that:<blockquote>
<div>x = MyObject(id=1)
x = sess.merge(x)</div></blockquote>
<p>will in fact load MyObject with id #1 from the database if
present, is now available. merge() still copies the state
of the given object to the persistent one, so an example
like the above would typically have copied “None” from all
attributes of “x” onto the persistent copy. These can be
reverted using session.expire(x).</p>
<a class="changeset-link headerlink reference internal" href="#change-2c9bdeacf621a1e5c68e65432e78acc9">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-1"><span class="target" id="change-ecb686988dd36c2668f8c1f13ab0b426"><strong>[orm] </strong></span>Also fixed behavior in merge() whereby collection elements
present on the destination but not the merged collection
were not being removed from the destination.<a class="changeset-link headerlink reference internal" href="#change-ecb686988dd36c2668f8c1f13ab0b426">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-2"><span class="target" id="change-8c3e6ca94ae7018ad418fb8989b56c18"><strong>[orm] </strong></span>Added a more aggressive check for “uncompiled mappers”,
helps particularly with declarative layer<a class="changeset-link headerlink reference internal" href="#change-8c3e6ca94ae7018ad418fb8989b56c18">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/995">#995</a></p>
</p>
</li>
<li><p id="change-0.4.5-3"><span class="target" id="change-92147b4d8f5dc129bb6af919988b1578"><strong>[orm] </strong></span>The methodology behind “primaryjoin”/”secondaryjoin” has
been refactored. Behavior should be slightly more
intelligent, primarily in terms of error messages which
have been pared down to be more readable. In a slight
number of scenarios it can better resolve the correct
foreign key than before.<a class="changeset-link headerlink reference internal" href="#change-92147b4d8f5dc129bb6af919988b1578">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-4"><span class="target" id="change-e9af0076f84f16dc139143d25c2481c4"><strong>[orm] </strong></span>Added comparable_property(), adds query Comparator
behavior to regular, unmanaged Python properties<a class="changeset-link headerlink reference internal" href="#change-e9af0076f84f16dc139143d25c2481c4">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-5"><span class="target" id="change-9a3c3752fa2fda67a4fbb703fcd690ab"><strong>[orm] [‘machines’] [Company.employees.of_type(Engineer)] </strong></span>the functionality of query.with_polymorphic() has
been added to mapper() as a configuration option.<dl class="docutils">
<dt>It’s set via several forms:</dt>
<dd>with_polymorphic=’*’
with_polymorphic=[mappers]
with_polymorphic=(‘*’, selectable)
with_polymorphic=([mappers], selectable)</dd>
</dl>
<p>This controls the default polymorphic loading strategy
for inherited mappers. When a selectable is not given,
outer joins are created for all joined-table inheriting
mappers requested. Note that the auto-create of joins
is not compatible with concrete table inheritance.</p>
<p>The existing select_table flag on mapper() is now
deprecated and is synonymous with
with_polymorphic(‘*’, select_table). Note that the
underlying “guts” of select_table have been
completely removed and replaced with the newer,
more flexible approach.</p>
<p>The new approach also automatically allows eager loads
to work for subclasses, if they are present, for
example:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">sess</span><span class="o">.</span><span class="n">query</span><span class="p">(</span><span class="n">Company</span><span class="p">)</span><span class="o">.</span><span class="n">options</span><span class="p">(</span>
<span class="n">eagerload_all</span><span class="p">(</span>
<span class="p">))</span></pre></div>
</div>
<p>to load Company objects, their employees, and the
‘machines’ collection of employees who happen to be
Engineers. A “with_polymorphic” Query option should be
introduced soon as well which would allow per-Query
control of with_polymorphic() on relations.</p>
<a class="changeset-link headerlink reference internal" href="#change-9a3c3752fa2fda67a4fbb703fcd690ab">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-6"><span class="target" id="change-8b57d2ed0d6bbe58c75f64223341c1c8"><strong>[orm] </strong></span>added two “experimental” features to Query,
“experimental” in that their specific name/behavior
is not carved in stone just yet: _values() and
_from_self(). We’d like feedback on these.<ul>
<li>_values(*columns) is given a list of column
expressions, and returns a new Query that only
returns those columns. When evaluated, the return
value is a list of tuples just like when using
add_column() or add_entity(), the only difference is
that “entity zero”, i.e. the mapped class, is not
included in the results. This means it finally makes
sense to use group_by() and having() on Query, which
have been sitting around uselessly until now.<p>A future change to this method may include that its
ability to join, filter and allow other options not
related to a “resultset” are removed, so the feedback
we’re looking for is how people want to use
_values()...i.e. at the very end, or do people prefer
to continue generating after it’s called.</p>
</li>
<li>_from_self() compiles the SELECT statement for the
Query (minus any eager loaders), and returns a new
Query that selects from that SELECT. So basically you
can query from a Query without needing to extract the
SELECT statement manually. This gives meaning to
operations like query[3:5]._from_self().filter(some
criterion). There’s not much controversial here
except that you can quickly create highly nested
queries that are less efficient, and we want feedback
on the naming choice.</li>
</ul>
<a class="changeset-link headerlink reference internal" href="#change-8b57d2ed0d6bbe58c75f64223341c1c8">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-7"><span class="target" id="change-2deb85fd835bde751f8cfd2461527a8e"><strong>[orm] </strong></span>query.order_by() and query.group_by() will accept
multiple arguments using *args (like select()
already does).<a class="changeset-link headerlink reference internal" href="#change-2deb85fd835bde751f8cfd2461527a8e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-8"><span class="target" id="change-86eb8853972534a7dafcbff8b9986332"><strong>[orm] </strong></span>Added some convenience descriptors to Query:
query.statement returns the full SELECT construct,
query.whereclause returns just the WHERE part of the
SELECT construct.<a class="changeset-link headerlink reference internal" href="#change-86eb8853972534a7dafcbff8b9986332">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-9"><span class="target" id="change-aa4cb730a2e43a1ad4e1443ec05973fe"><strong>[orm] </strong></span>Fixed/covered case when using a False/0 value as a
polymorphic discriminator.<a class="changeset-link headerlink reference internal" href="#change-aa4cb730a2e43a1ad4e1443ec05973fe">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-10"><span class="target" id="change-02cba4fb2cbfa1275190cc9ed35f1d16"><strong>[orm] </strong></span>Fixed bug which was preventing synonym() attributes from
being used with inheritance<a class="changeset-link headerlink reference internal" href="#change-02cba4fb2cbfa1275190cc9ed35f1d16">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-11"><span class="target" id="change-c58703687f6e5690fb29d5c65bec8f2e"><strong>[orm] </strong></span>Fixed SQL function truncation of trailing underscores<a class="changeset-link headerlink reference internal" href="#change-c58703687f6e5690fb29d5c65bec8f2e">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/996">#996</a></p>
</p>
</li>
<li><p id="change-0.4.5-12"><span class="target" id="change-4d790ba27407b3f2c5e5442e941ee625"><strong>[orm] </strong></span>When attributes are expired on a pending instance, an
error will not be raised when the “refresh” action is
triggered and no result is found.<a class="changeset-link headerlink reference internal" href="#change-4d790ba27407b3f2c5e5442e941ee625">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-13"><span class="target" id="change-ee82467594e923772bba0a03199886e6"><strong>[orm] </strong></span>Session.execute can now find binds from metadata<a class="changeset-link headerlink reference internal" href="#change-ee82467594e923772bba0a03199886e6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-14"><span class="target" id="change-79438d10e98c888cce0932f09a42a26f"><strong>[orm] </strong></span>Adjusted the definition of “self-referential” to be any
two mappers with a common parent (this affects whether or
not aliased=True is required when joining with Query).<a class="changeset-link headerlink reference internal" href="#change-79438d10e98c888cce0932f09a42a26f">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-15"><span class="target" id="change-f896c87995fe90330fd02cbf21c852bf"><strong>[orm] </strong></span>Made some fixes to the “from_joinpoint” argument to
query.join() so that if the previous join was aliased and
this one isn’t, the join still happens successfully.<a class="changeset-link headerlink reference internal" href="#change-f896c87995fe90330fd02cbf21c852bf">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-16"><span class="target" id="change-721ade134b0684d73d040e1d5c61feb9"><strong>[orm] </strong></span><dl class="docutils">
<dt>Assorted “cascade deletes” fixes:</dt>
<dd><ul class="first last">
<li>Fixed “cascade delete” operation of dynamic relations,
which had only been implemented for foreign-key
nulling behavior in 0.4.2 and not actual cascading
deletes</li>
<li>Delete cascade without delete-orphan cascade on a
many-to-one will not delete orphans which were
disconnected from the parent before session.delete()
is called on the parent (one-to-many already had
this).</li>
<li>Delete cascade with delete-orphan will delete orphans
whether or not it remains attached to its also-deleted
parent.</li>
<li>delete-orphan casacde is properly detected on relations
that are present on superclasses when using inheritance.</li>
</ul>
</dd>
</dl>
<a class="changeset-link headerlink reference internal" href="#change-721ade134b0684d73d040e1d5c61feb9">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/895">#895</a></p>
</p>
</li>
<li><p id="change-0.4.5-17"><span class="target" id="change-510cb165c89c094b6cc2b5db3787b360"><strong>[orm] </strong></span>Fixed order_by calculation in Query to properly alias
mapper-config’ed order_by when using select_from()<a class="changeset-link headerlink reference internal" href="#change-510cb165c89c094b6cc2b5db3787b360">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-18"><span class="target" id="change-94f2275e47afba73d8f37f7572917466"><strong>[orm] </strong></span>Refactored the diffing logic that kicks in when replacing
one collection with another into collections.bulk_replace,
useful to anyone building multi-level collections.<a class="changeset-link headerlink reference internal" href="#change-94f2275e47afba73d8f37f7572917466">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-19"><span class="target" id="change-67d9d0b8806c805bf6baa1e8ed8dd735"><strong>[orm] </strong></span>Cascade traversal algorithm converted from recursive to
iterative to support deep object graphs.<a class="changeset-link headerlink reference internal" href="#change-67d9d0b8806c805bf6baa1e8ed8dd735">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.5-sql">
<h3>sql<a class="headerlink" href="#change-0.4.5-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.5-20"><span class="target" id="change-86518949b9a04cceb5d9eef390e32768"><strong>[sql] </strong></span>schema-qualified tables now will place the schemaname
ahead of the tablename in all column expressions as well
as when generating column labels. This prevents cross-
schema name collisions in all cases<a class="changeset-link headerlink reference internal" href="#change-86518949b9a04cceb5d9eef390e32768">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/999">#999</a></p>
</p>
</li>
<li><p id="change-0.4.5-21"><span class="target" id="change-3bb024dda072d0b61145352051204bfc"><strong>[sql] </strong></span>can now allow selects which correlate all FROM clauses
and have no FROM themselves. These are typically
used in a scalar context, i.e. SELECT x, (SELECT x WHERE y)
FROM table. Requires explicit correlate() call.<a class="changeset-link headerlink reference internal" href="#change-3bb024dda072d0b61145352051204bfc">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-22"><span class="target" id="change-b98de44bd2b73a6b57d74988b3c71e30"><strong>[sql] </strong></span>‘name’ is no longer a required constructor argument for
Column(). It (and .key) may now be deferred until the
column is added to a Table.<a class="changeset-link headerlink reference internal" href="#change-b98de44bd2b73a6b57d74988b3c71e30">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-23"><span class="target" id="change-d248403840e6a2e0c66b497f9dfd1f44"><strong>[sql] </strong></span>like(), ilike(), contains(), startswith(), endswith() take
an optional keyword argument “escape=<somestring>”, which
is set as the escape character using the syntax “x LIKE y
ESCAPE ‘<somestring>’”.<a class="changeset-link headerlink reference internal" href="#change-d248403840e6a2e0c66b497f9dfd1f44">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/791">#791</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/993">#993</a></p>
</p>
</li>
<li><p id="change-0.4.5-24"><span class="target" id="change-7f02bb91d56e815b7b631be7c7323f79"><strong>[sql] </strong></span>random() is now a generic sql function and will compile to
the database’s random implementation, if any.<a class="changeset-link headerlink reference internal" href="#change-7f02bb91d56e815b7b631be7c7323f79">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-25"><span class="target" id="change-a08969f0ce6ab98d21abf6e35cebaa1d"><strong>[sql] </strong></span>update().values() and insert().values() take keyword
arguments.<a class="changeset-link headerlink reference internal" href="#change-a08969f0ce6ab98d21abf6e35cebaa1d">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-26"><span class="target" id="change-085c87879e1a4fb0d6206454a950a1ce"><strong>[sql] </strong></span>Fixed an issue in select() regarding its generation of
FROM clauses, in rare circumstances two clauses could be
produced when one was intended to cancel out the other.
Some ORM queries with lots of eager loads might have seen
this symptom.<a class="changeset-link headerlink reference internal" href="#change-085c87879e1a4fb0d6206454a950a1ce">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-27"><span class="target" id="change-fb0089247521d91d7d7bb262cb411a64"><strong>[sql] </strong></span>The case() function now also takes a dictionary as its
whens parameter. It also interprets the “THEN”
expressions as values by default, meaning case([(x==y,
“foo”)]) will interpret “foo” as a bound value, not a SQL
expression. use text(expr) for literal SQL expressions in
this case. For the criterion itself, these may be literal
strings only if the “value” keyword is present, otherwise
SA will force explicit usage of either text() or
literal().<a class="changeset-link headerlink reference internal" href="#change-fb0089247521d91d7d7bb262cb411a64">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.5-mysql">
<h3>mysql<a class="headerlink" href="#change-0.4.5-mysql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.5-28"><span class="target" id="change-c22f3fdf2cdf167542da47643dfc68ab"><strong>[mysql] </strong></span>The connection.info keys the dialect uses to cache server
settings have changed and are now namespaced.<a class="changeset-link headerlink reference internal" href="#change-c22f3fdf2cdf167542da47643dfc68ab">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.5-mssql">
<h3>mssql<a class="headerlink" href="#change-0.4.5-mssql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.5-29"><span class="target" id="change-c08d60f2100e58e57023f2ea19c2c241"><strong>[mssql] </strong></span>Reflected tables will now automatically load other tables
which are referenced by Foreign keys in the auto-loaded
table,.<a class="changeset-link headerlink reference internal" href="#change-c08d60f2100e58e57023f2ea19c2c241">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/979">#979</a></p>
</p>
</li>
<li><p id="change-0.4.5-30"><span class="target" id="change-bd1313c4dc35f7c1f3a1380578f9c1e5"><strong>[mssql] </strong></span>Added executemany check to skip identity fetch,.<a class="changeset-link headerlink reference internal" href="#change-bd1313c4dc35f7c1f3a1380578f9c1e5">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/916">#916</a></p>
</p>
</li>
<li><p id="change-0.4.5-31"><span class="target" id="change-80eac4c5f370dd297d4e3cafbad27a96"><strong>[mssql] </strong></span>Added stubs for small date type.<a class="changeset-link headerlink reference internal" href="#change-80eac4c5f370dd297d4e3cafbad27a96">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/884">#884</a></p>
</p>
</li>
<li><p id="change-0.4.5-32"><span class="target" id="change-171f3ad2f4dba5fde36680baa1dc3875"><strong>[mssql] </strong></span>Added a new ‘driver’ keyword parameter for the pyodbc dialect.
Will substitute into the ODBC connection string if given,
defaults to ‘SQL Server’.<a class="changeset-link headerlink reference internal" href="#change-171f3ad2f4dba5fde36680baa1dc3875">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-33"><span class="target" id="change-81777f583ac945b32caaf0ee3aee5e0f"><strong>[mssql] </strong></span>Added a new ‘max_identifier_length’ keyword parameter for
the pyodbc dialect.<a class="changeset-link headerlink reference internal" href="#change-81777f583ac945b32caaf0ee3aee5e0f">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-34"><span class="target" id="change-4a7ee1c669796dd4516a38bfb42b52ff"><strong>[mssql] </strong></span>Improvements to pyodbc + Unix. If you couldn’t get that
combination to work before, please try again.<a class="changeset-link headerlink reference internal" href="#change-4a7ee1c669796dd4516a38bfb42b52ff">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.5-oracle">
<h3>oracle<a class="headerlink" href="#change-0.4.5-oracle" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.5-35"><span class="target" id="change-34b821a274800e05021e8fb2396ee13c"><strong>[oracle] </strong></span>The “owner” keyword on Table is now deprecated, and is
exactly synonymous with the “schema” keyword. Tables can
now be reflected with alternate “owner” attributes,
explicitly stated on the Table object or not using
“schema”.<a class="changeset-link headerlink reference internal" href="#change-34b821a274800e05021e8fb2396ee13c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-36"><span class="target" id="change-fa31cab3a0232df3b107e07f3910f759"><strong>[oracle] </strong></span>All of the “magic” searching for synonyms, DBLINKs etc.
during table reflection are disabled by default unless you
specify “oracle_resolve_synonyms=True” on the Table
object. Resolving synonyms necessarily leads to some
messy guessing which we’d rather leave off by default.
When the flag is set, tables and related tables will be
resolved against synonyms in all cases, meaning if a
synonym exists for a particular table, reflection will use
it when reflecting related tables. This is stickier
behavior than before which is why it’s off by default.<a class="changeset-link headerlink reference internal" href="#change-fa31cab3a0232df3b107e07f3910f759">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-37"><span class="target" id="change-34b821a274800e05021e8fb2396ee13c"><strong>[oracle] </strong></span>The “owner” keyword on Table is now deprecated, and is
exactly synonymous with the “schema” keyword. Tables can
now be reflected with alternate “owner” attributes,
explicitly stated on the Table object or not using
“schema”.<a class="changeset-link headerlink reference internal" href="#change-34b821a274800e05021e8fb2396ee13c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-38"><span class="target" id="change-fa31cab3a0232df3b107e07f3910f759"><strong>[oracle] </strong></span>All of the “magic” searching for synonyms, DBLINKs etc.
during table reflection are disabled by default unless you
specify “oracle_resolve_synonyms=True” on the Table
object. Resolving synonyms necessarily leads to some
messy guessing which we’d rather leave off by default.
When the flag is set, tables and related tables will be
resolved against synonyms in all cases, meaning if a
synonym exists for a particular table, reflection will use
it when reflecting related tables. This is stickier
behavior than before which is why it’s off by default.<a class="changeset-link headerlink reference internal" href="#change-fa31cab3a0232df3b107e07f3910f759">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.5-misc">
<h3>misc<a class="headerlink" href="#change-0.4.5-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.5-39"><span class="target" id="change-f5fc92b64655f9897a0758861123e3dc"><strong>[declarative] [extension] </strong></span>The “synonym” function is now directly usable with
“declarative”. Pass in the decorated property using the
“descriptor” keyword argument, e.g.: somekey =
synonym(‘_somekey’, descriptor=property(g, s))<a class="changeset-link headerlink reference internal" href="#change-f5fc92b64655f9897a0758861123e3dc">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-40"><span class="target" id="change-1c8b78acb5469017fa9165603b123205"><strong>[declarative] [extension] </strong></span>The “deferred” function is usable with “declarative”.
Simplest usage is to declare deferred and Column together,
e.g.: data = deferred(Column(Text))<a class="changeset-link headerlink reference internal" href="#change-1c8b78acb5469017fa9165603b123205">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-41"><span class="target" id="change-92af8493880c77b027ad568e9fea4a4e"><strong>[declarative] [extension] </strong></span>Declarative also gained @synonym_for(...) and
@comparable_using(...), front-ends for synonym and
comparable_property.<a class="changeset-link headerlink reference internal" href="#change-92af8493880c77b027ad568e9fea4a4e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-42"><span class="target" id="change-2e0484c6c3c3b159d5dce42185fd83af"><strong>[declarative] [extension] </strong></span>Improvements to mapper compilation when using declarative;
already-compiled mappers will still trigger compiles of
other uncompiled mappers when used<a class="changeset-link headerlink reference internal" href="#change-2e0484c6c3c3b159d5dce42185fd83af">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/995">#995</a></p>
</p>
</li>
<li><p id="change-0.4.5-43"><span class="target" id="change-ab9ef5d41c92c8b3e3cf08569f4910fe"><strong>[declarative] [extension] </strong></span>Declarative will complete setup for Columns lacking names,
allows a more DRY syntax.<blockquote>
<div><dl class="docutils">
<dt>class Foo(Base):</dt>
<dd>__tablename__ = ‘foos’
id = Column(Integer, primary_key=True)</dd>
</dl>
</div></blockquote>
<a class="changeset-link headerlink reference internal" href="#change-ab9ef5d41c92c8b3e3cf08569f4910fe">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-44"><span class="target" id="change-47dc505eeee78f8e4a2036cd9ec269e8"><strong>[declarative] [extension] </strong></span>inheritance in declarative can be disabled when sending
“inherits=None” to __mapper_args__.<a class="changeset-link headerlink reference internal" href="#change-47dc505eeee78f8e4a2036cd9ec269e8">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-45"><span class="target" id="change-d23aa381b803d1871f4a8e5090558669"><strong>[declarative] [extension] </strong></span>declarative_base() takes optional kwarg “mapper”, which
is any callable/class/method that produces a mapper,
such as declarative_base(mapper=scopedsession.mapper).
This property can also be set on individual declarative
classes using the “__mapper_cls__” property.<a class="changeset-link headerlink reference internal" href="#change-d23aa381b803d1871f4a8e5090558669">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-46"><span class="target" id="change-b6f64ab87a83752e5c837be7a29259da"><strong>[postgres] </strong></span>Got PG server side cursors back into shape, added fixed
unit tests as part of the default test suite. Added
better uniqueness to the cursor ID<a class="changeset-link headerlink reference internal" href="#change-b6f64ab87a83752e5c837be7a29259da">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1001">#1001</a></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.4.4">
<h2>0.4.4<a class="headerlink" href="#change-0.4.4" title="Permalink to this headline">¶</a></h2>
Released: Wed Mar 12 2008<div class="section" id="change-0.4.4-orm">
<h3>orm<a class="headerlink" href="#change-0.4.4-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.4-0"><span class="target" id="change-26d54c6302b65f9de74b3cf2e3a5d512"><strong>[orm] </strong></span>any(), has(), contains(), ~contains(), attribute level ==
and != now work properly with self-referential relations -
the clause inside the EXISTS is aliased on the “remote”
side to distinguish it from the parent table. This
applies to single table self-referential as well as
inheritance-based self-referential.<a class="changeset-link headerlink reference internal" href="#change-26d54c6302b65f9de74b3cf2e3a5d512">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-1"><span class="target" id="change-57e9f7b0e107e07a75467467df6a2d2d"><strong>[orm] </strong></span>Repaired behavior of == and != operators at the relation()
level when compared against NULL for one-to-one relations<a class="changeset-link headerlink reference internal" href="#change-57e9f7b0e107e07a75467467df6a2d2d">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/985">#985</a></p>
</p>
</li>
<li><p id="change-0.4.4-2"><span class="target" id="change-6b0aad45ce1f29ad9158b8009df12108"><strong>[orm] </strong></span>Fixed bug whereby session.expire() attributes were not
loading on an polymorphically-mapped instance mapped by a
select_table mapper.<a class="changeset-link headerlink reference internal" href="#change-6b0aad45ce1f29ad9158b8009df12108">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-3"><span class="target" id="change-4a735ee740f2ee53043439ca2374e2bd"><strong>[orm] </strong></span>Added query.with_polymorphic() - specifies a list of
classes which descend from the base class, which will be
added to the FROM clause of the query. Allows subclasses
to be used within filter() criterion as well as eagerly
loads the attributes of those subclasses.<a class="changeset-link headerlink reference internal" href="#change-4a735ee740f2ee53043439ca2374e2bd">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-4"><span class="target" id="change-260b0a787300d2b7ce427e108dcbf68d"><strong>[orm] </strong></span>Your cries have been heard: removing a pending item from
an attribute or collection with delete-orphan expunges the
item from the session; no FlushError is raised. Note that
if you session.save()’ed the pending item explicitly, the
attribute/collection removal still knocks it out.<a class="changeset-link headerlink reference internal" href="#change-260b0a787300d2b7ce427e108dcbf68d">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-5"><span class="target" id="change-6af8ad8ff1bc8b70b4267a621b75aa56"><strong>[orm] </strong></span>session.refresh() and session.expire() raise an error when
called on instances which are not persistent within the
session<a class="changeset-link headerlink reference internal" href="#change-6af8ad8ff1bc8b70b4267a621b75aa56">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-6"><span class="target" id="change-39aac3cdd599e8bac76663700e034c9e"><strong>[orm] </strong></span>Fixed potential generative bug when the same Query was
used to generate multiple Query objects using join().<a class="changeset-link headerlink reference internal" href="#change-39aac3cdd599e8bac76663700e034c9e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-7"><span class="target" id="change-b9f84fa3c8eb53ab3417b2ff57afae13"><strong>[orm] </strong></span>Fixed bug which was introduced in 0.4.3, whereby loading
an already-persistent instance mapped with joined table
inheritance would trigger a useless “secondary” load from
its joined table, when using the default “select”
polymorphic_fetch. This was due to attributes being
marked as expired during its first load and not getting
unmarked from the previous “secondary” load. Attributes
are now unexpired based on presence in __dict__ after any
load or commit operation succeeds.<a class="changeset-link headerlink reference internal" href="#change-b9f84fa3c8eb53ab3417b2ff57afae13">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-8"><span class="target" id="change-5c46e27af0aab071053f1150c32ad167"><strong>[orm] </strong></span>Deprecated Query methods apply_sum(), apply_max(),
apply_min(), apply_avg(). Better methodologies are
coming....<a class="changeset-link headerlink reference internal" href="#change-5c46e27af0aab071053f1150c32ad167">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-9"><span class="target" id="change-1a2a5f137d66ae4e45a504a7fcb25a9b"><strong>[orm] </strong></span>relation() can accept a callable for its first argument,
which returns the class to be related. This is in place
to assist declarative packages to define relations without
classes yet being in place.<a class="changeset-link headerlink reference internal" href="#change-1a2a5f137d66ae4e45a504a7fcb25a9b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-10"><span class="target" id="change-a4ea39df253b6f91a5d8204bf227ada0"><strong>[orm] </strong></span>Added a new “higher level” operator called “of_type()”:
used in join() as well as with any() and has(), qualifies
the subclass which will be used in filter criterion, e.g.:<blockquote>
<div><dl class="docutils">
<dt>query.filter(Company.employees.of_type(Engineer).</dt>
<dd>any(Engineer.name==’foo’))</dd>
</dl>
<p>or</p>
<dl class="docutils">
<dt>query.join(Company.employees.of_type(Engineer)).</dt>
<dd>filter(Engineer.name==’foo’)</dd>
</dl>
</div></blockquote>
<a class="changeset-link headerlink reference internal" href="#change-a4ea39df253b6f91a5d8204bf227ada0">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-11"><span class="target" id="change-1272340a6e01cf700e61e3d2f39cdacf"><strong>[orm] </strong></span>Preventive code against a potential lost-reference bug in
flush().<a class="changeset-link headerlink reference internal" href="#change-1272340a6e01cf700e61e3d2f39cdacf">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-12"><span class="target" id="change-664f4f2b4efd0e58806d46ba15d2618a"><strong>[orm] </strong></span>Expressions used in filter(), filter_by() and others, when
they make usage of a clause generated from a relation
using the identity of a child object (e.g.,
filter(Parent.child==<somechild>)), evaluate the actual
primary key value of <somechild> at execution time so that
the autoflush step of the Query can complete, thereby
populating the PK value of <somechild> in the case that
<somechild> was pending.<a class="changeset-link headerlink reference internal" href="#change-664f4f2b4efd0e58806d46ba15d2618a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-13"><span class="target" id="change-92a43783a44458853e3f87836801b5f0"><strong>[orm] </strong></span>setting the relation()-level order by to a column in the
many-to-many “secondary” table will now work with eager
loading, previously the “order by” wasn’t aliased against
the secondary table’s alias.<a class="changeset-link headerlink reference internal" href="#change-92a43783a44458853e3f87836801b5f0">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-14"><span class="target" id="change-8c8e596e12f51cbaab0d60f9eb39e22a"><strong>[orm] </strong></span>Synonyms riding on top of existing descriptors are now
full proxies to those descriptors.<a class="changeset-link headerlink reference internal" href="#change-8c8e596e12f51cbaab0d60f9eb39e22a">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.4-sql">
<h3>sql<a class="headerlink" href="#change-0.4.4-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.4-15"><span class="target" id="change-361cea88f023decd2edcc9f4bcfb85d9"><strong>[sql] </strong></span>Can again create aliases of selects against textual FROM
clauses.<a class="changeset-link headerlink reference internal" href="#change-361cea88f023decd2edcc9f4bcfb85d9">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/975">#975</a></p>
</p>
</li>
<li><p id="change-0.4.4-16"><span class="target" id="change-f29b12fe4c2de26e389d59d438cf1ea8"><strong>[sql] </strong></span>The value of a bindparam() can be a callable, in which
case it’s evaluated at statement execution time to get the
value.<a class="changeset-link headerlink reference internal" href="#change-f29b12fe4c2de26e389d59d438cf1ea8">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-17"><span class="target" id="change-fa73dc1b6400960fc86f04e571789eac"><strong>[sql] </strong></span>Added exception wrapping/reconnect support to result set
fetching. Reconnect works for those databases that raise
a catchable data error during results (i.e. doesn’t work
on MySQL)<a class="changeset-link headerlink reference internal" href="#change-fa73dc1b6400960fc86f04e571789eac">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/978">#978</a></p>
</p>
</li>
<li><p id="change-0.4.4-18"><span class="target" id="change-82a8a6a9be6beb556e3c11919db1d762"><strong>[sql] </strong></span>Implemented two-phase API for “threadlocal” engine, via
engine.begin_twophase(), engine.prepare()<a class="changeset-link headerlink reference internal" href="#change-82a8a6a9be6beb556e3c11919db1d762">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/936">#936</a></p>
</p>
</li>
<li><p id="change-0.4.4-19"><span class="target" id="change-3ca250e58167aa467bdd74e86f81f8e2"><strong>[sql] </strong></span>Fixed bug which was preventing UNIONS from being
cloneable.<a class="changeset-link headerlink reference internal" href="#change-3ca250e58167aa467bdd74e86f81f8e2">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/986">#986</a></p>
</p>
</li>
<li><p id="change-0.4.4-20"><span class="target" id="change-cace8907ce2c688f149a3b7193cb6f03"><strong>[sql] </strong></span>Added “bind” keyword argument to insert(), update(),
delete() and DDL(). The .bind property is now assignable
on those statements as well as on select().<a class="changeset-link headerlink reference internal" href="#change-cace8907ce2c688f149a3b7193cb6f03">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-21"><span class="target" id="change-0e487d0efd2d32fd049531b232a703ea"><strong>[sql] </strong></span>Insert statements can now be compiled with extra “prefix”
words between INSERT and INTO, for vendor extensions like
MySQL’s INSERT IGNORE INTO table.<a class="changeset-link headerlink reference internal" href="#change-0e487d0efd2d32fd049531b232a703ea">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.4-misc">
<h3>misc<a class="headerlink" href="#change-0.4.4-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.4-22"><span class="target" id="change-e896f826ca21ffa3a8aee4ce1aa75540"><strong>[dialects] </strong></span>Invalid SQLite connection URLs now raise an error.<a class="changeset-link headerlink reference internal" href="#change-e896f826ca21ffa3a8aee4ce1aa75540">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-23"><span class="target" id="change-1f49158d705ba22bde8f415aae01e7df"><strong>[dialects] </strong></span>postgres TIMESTAMP renders correctly<a class="changeset-link headerlink reference internal" href="#change-1f49158d705ba22bde8f415aae01e7df">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/981">#981</a></p>
</p>
</li>
<li><p id="change-0.4.4-24"><span class="target" id="change-26c194222a2217765863b953678f61d7"><strong>[dialects] </strong></span>postgres PGArray is a “mutable” type by default; when used
with the ORM, mutable-style equality/ copy-on-write
techniques are used to test for changes.<a class="changeset-link headerlink reference internal" href="#change-26c194222a2217765863b953678f61d7">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-25"><span class="target" id="change-11410361d1e94b674b2dd45f62aa879c"><strong>[extensions] </strong></span>a new super-small “declarative” extension has been added,
which allows Table and mapper() configuration to take
place inline underneath a class declaration. This
extension differs from ActiveMapper and Elixir in that it
does not redefine any SQLAlchemy semantics at all; literal
Column, Table and relation() constructs are used to define
the class behavior and table definition.<a class="changeset-link headerlink reference internal" href="#change-11410361d1e94b674b2dd45f62aa879c">¶</a><p></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.4.3">
<h2>0.4.3<a class="headerlink" href="#change-0.4.3" title="Permalink to this headline">¶</a></h2>
Released: Thu Feb 14 2008<div class="section" id="change-0.4.3-general">
<h3>general<a class="headerlink" href="#change-0.4.3-general" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.3-0"><span class="target" id="change-6edf54fb64a6efb12a4b41bf8fca7e85"><strong>[general] </strong></span>Fixed a variety of hidden and some not-so-hidden
compatibility issues for Python 2.3, thanks to new support
for running the full test suite on 2.3.<a class="changeset-link headerlink reference internal" href="#change-6edf54fb64a6efb12a4b41bf8fca7e85">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-1"><span class="target" id="change-8292102deab2ae8658025f199f4dba39"><strong>[general] </strong></span>Warnings are now issued as type exceptions.SAWarning.<a class="changeset-link headerlink reference internal" href="#change-8292102deab2ae8658025f199f4dba39">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.3-orm">
<h3>orm<a class="headerlink" href="#change-0.4.3-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.3-2"><span class="target" id="change-ed63aadc46e831e27192365c26bcbd40"><strong>[orm] </strong></span>Every Session.begin() must now be accompanied by a
corresponding commit() or rollback() unless the session is
closed with Session.close(). This also includes the begin()
which is implicit to a session created with
transactional=True. The biggest change introduced here is
that when a Session created with transactional=True raises
an exception during flush(), you must call
Session.rollback() or Session.close() in order for that
Session to continue after an exception.<a class="changeset-link headerlink reference internal" href="#change-ed63aadc46e831e27192365c26bcbd40">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-3"><span class="target" id="change-4066869a71ee4e92e757eed30c24fcd6"><strong>[orm] </strong></span>Fixed merge() collection-doubling bug when merging transient
entities with backref’ed collections.<a class="changeset-link headerlink reference internal" href="#change-4066869a71ee4e92e757eed30c24fcd6">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/961">#961</a></p>
</p>
</li>
<li><p id="change-0.4.3-4"><span class="target" id="change-f30c07f4ca0f0cba96e2f3cb6182473e"><strong>[orm] </strong></span>merge(dont_load=True) does not accept transient entities,
this is in continuation with the fact that
merge(dont_load=True) does not accept any “dirty” objects
either.<a class="changeset-link headerlink reference internal" href="#change-f30c07f4ca0f0cba96e2f3cb6182473e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-5"><span class="target" id="change-12a5e6022a8effac005d99575c5c415b"><strong>[orm] </strong></span>Added standalone “query” class attribute generated by a
scoped_session. This provides MyClass.query without using
Session.mapper. Use via:<blockquote>
<div>MyClass.query = Session.query_property()</div></blockquote>
<a class="changeset-link headerlink reference internal" href="#change-12a5e6022a8effac005d99575c5c415b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-6"><span class="target" id="change-73db7d20e8dbfeedb6ba0b6cc4788aea"><strong>[orm] </strong></span>The proper error message is raised when trying to access
expired instance attributes with no session present<a class="changeset-link headerlink reference internal" href="#change-73db7d20e8dbfeedb6ba0b6cc4788aea">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-7"><span class="target" id="change-549192f88e74438d43000f482dc4a551"><strong>[orm] </strong></span>dynamic_loader() / lazy=”dynamic” now accepts and uses
the order_by parameter in the same way in which it works
with relation().<a class="changeset-link headerlink reference internal" href="#change-549192f88e74438d43000f482dc4a551">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-8"><span class="target" id="change-ff6e9ef1dbfd714585ff152dd416a7d6"><strong>[orm] </strong></span>Added expire_all() method to Session. Calls expire() for
all persistent instances. This is handy in conjunction
with...<a class="changeset-link headerlink reference internal" href="#change-ff6e9ef1dbfd714585ff152dd416a7d6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-9"><span class="target" id="change-42759467a8bd5b23f099a069100e4e3a"><strong>[orm] </strong></span>Instances which have been partially or fully expired will
have their expired attributes populated during a regular
Query operation which affects those objects, preventing a
needless second SQL statement for each instance.<a class="changeset-link headerlink reference internal" href="#change-42759467a8bd5b23f099a069100e4e3a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-10"><span class="target" id="change-b8b6e98149bfd5318ccf249d510a02ee"><strong>[orm] </strong></span>Dynamic relations, when referenced, create a strong
reference to the parent object so that the query still has a
parent to call against even if the parent is only created
(and otherwise dereferenced) within the scope of a single
expression.<a class="changeset-link headerlink reference internal" href="#change-b8b6e98149bfd5318ccf249d510a02ee">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/938">#938</a></p>
</p>
</li>
<li><p id="change-0.4.3-11"><span class="target" id="change-45880f45e498cf7f425d5f004b1ec762"><strong>[orm] </strong></span>Added a mapper() flag “eager_defaults”. When set to True,
defaults that are generated during an INSERT or UPDATE
operation are post-fetched immediately, instead of being
deferred until later. This mimics the old 0.3 behavior.<a class="changeset-link headerlink reference internal" href="#change-45880f45e498cf7f425d5f004b1ec762">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-12"><span class="target" id="change-3891a133d4bd12b14d6068cb8f605156"><strong>[orm] </strong></span>query.join() can now accept class-mapped attributes as
arguments. These can be used in place or in any combination
with strings. In particular this allows construction of
joins to subclasses on a polymorphic relation, i.e.:<blockquote>
<div>query(Company).join([‘employees’, Engineer.name])</div></blockquote>
<a class="changeset-link headerlink reference internal" href="#change-3891a133d4bd12b14d6068cb8f605156">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-13"><span class="target" id="change-42b75449eedabd47e5cb497bfbb59051"><strong>[orm] [people.join(engineer))] [(‘employees’] [Engineer.name] </strong></span>query.join() can also accept tuples of attribute name/some
selectable as arguments. This allows construction of joins
<em>from</em> subclasses of a polymorphic relation, i.e.:<blockquote>
<div>query(Company).join(<p>)</p>
</div></blockquote>
<a class="changeset-link headerlink reference internal" href="#change-42b75449eedabd47e5cb497bfbb59051">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-14"><span class="target" id="change-899c6f1ca175ba0b8f026dc0aa41d68b"><strong>[orm] </strong></span>General improvements to the behavior of join() in
conjunction with polymorphic mappers, i.e. joining from/to
polymorphic mappers and properly applying aliases.<a class="changeset-link headerlink reference internal" href="#change-899c6f1ca175ba0b8f026dc0aa41d68b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-15"><span class="target" id="change-4701dbe6a7375d90fa6b81601106e759"><strong>[orm] </strong></span>Fixed/improved behavior when a mapper determines the natural
“primary key” of a mapped join, it will more effectively
reduce columns which are equivalent via foreign key
relation. This affects how many arguments need to be sent
to query.get(), among other things.<a class="changeset-link headerlink reference internal" href="#change-4701dbe6a7375d90fa6b81601106e759">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/933">#933</a></p>
</p>
</li>
<li><p id="change-0.4.3-16"><span class="target" id="change-d7ca86341f6b875bc802fc522eda643c"><strong>[orm] </strong></span>The lazy loader can now handle a join condition where the
“bound” column (i.e. the one that gets the parent id sent as
a bind parameter) appears more than once in the join
condition. Specifically this allows the common task of a
relation() which contains a parent-correlated subquery, such
as “select only the most recent child item”.<a class="changeset-link headerlink reference internal" href="#change-d7ca86341f6b875bc802fc522eda643c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/946">#946</a></p>
</p>
</li>
<li><p id="change-0.4.3-17"><span class="target" id="change-7ebcbb5cac084dd34f876f1e979346d5"><strong>[orm] </strong></span>Fixed bug in polymorphic inheritance where an incorrect
exception is raised when base polymorphic_on column does not
correspond to any columns within the local selectable of an
inheriting mapper more than one level deep<a class="changeset-link headerlink reference internal" href="#change-7ebcbb5cac084dd34f876f1e979346d5">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-18"><span class="target" id="change-52902ccac0e5570582c25b376fecb10b"><strong>[orm] </strong></span>Fixed bug in polymorphic inheritance which made it difficult
to set a working “order_by” on a polymorphic mapper.<a class="changeset-link headerlink reference internal" href="#change-52902ccac0e5570582c25b376fecb10b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-19"><span class="target" id="change-2202798af2faf2de027d6e9cb53425b2"><strong>[orm] </strong></span>Fixed a rather expensive call in Query that was slowing down
polymorphic queries.<a class="changeset-link headerlink reference internal" href="#change-2202798af2faf2de027d6e9cb53425b2">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-20"><span class="target" id="change-1174dcf99d9e604b10ae1b362749fc8d"><strong>[orm] </strong></span>“Passive defaults” and other “inline” defaults can now be
loaded during a flush() call if needed; in particular, this
allows constructing relations() where a foreign key column
references a server-side-generated, non-primary-key
column.<a class="changeset-link headerlink reference internal" href="#change-1174dcf99d9e604b10ae1b362749fc8d">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/954">#954</a></p>
</p>
</li>
<li><p id="change-0.4.3-21"><span class="target" id="change-33a848efb3c77483bf094e0593a0f304"><strong>[orm] </strong></span><dl class="docutils">
<dt>Additional Session transaction fixes/changes:</dt>
<dd><ul class="first last">
<li>Fixed bug with session transaction management: parent
transactions weren’t started on the connection when
adding a connection to a nested transaction.</li>
<li>session.transaction now always refers to the innermost
active transaction, even when commit/rollback are called
directly on the session transaction object.</li>
<li>Two-phase transactions can now be prepared.</li>
<li>When preparing a two-phase transaction fails on one
connection, all the connections are rolled back.</li>
<li>session.close() didn’t close all transactions when
nested transactions were used.</li>
<li>rollback() previously erroneously set the current
transaction directly to the parent of the transaction
that could be rolled back to. Now it rolls back the next
transaction up that can handle it, but sets the current
transaction to its parent and inactivates the
transactions in between. Inactive transactions can only
be rolled back or closed, any other call results in an
error.</li>
<li>autoflush for commit() wasn’t flushing for simple
subtransactions.</li>
<li>unitofwork flush didn’t close the failed transaction
when the session was not in a transaction and committing
the transaction failed.</li>
</ul>
</dd>
</dl>
<a class="changeset-link headerlink reference internal" href="#change-33a848efb3c77483bf094e0593a0f304">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-22"><span class="target" id="change-156ce1b0bbba6a383724228e99b59141"><strong>[orm] </strong></span>Miscellaneous tickets:<a class="changeset-link headerlink reference internal" href="#change-156ce1b0bbba6a383724228e99b59141">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/964">#964</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/940">#940</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.3-sql">
<h3>sql<a class="headerlink" href="#change-0.4.3-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.3-23"><span class="target" id="change-6dc387bc33169ccc70dccd8218f63eb6"><strong>[sql] </strong></span>Added “schema.DDL”, an executable free-form DDL statement.
DDLs can be executed in isolation or attached to Table or
MetaData instances and executed automatically when those
objects are created and/or dropped.<a class="changeset-link headerlink reference internal" href="#change-6dc387bc33169ccc70dccd8218f63eb6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-24"><span class="target" id="change-7a15201e78fb2f315a974ea2f2fdf57e"><strong>[sql] </strong></span>Table columns and constraints can be overridden on a an
existing table (such as a table that was already reflected)
using the ‘useexisting=True’ flag, which now takes into
account the arguments passed along with it.<a class="changeset-link headerlink reference internal" href="#change-7a15201e78fb2f315a974ea2f2fdf57e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-25"><span class="target" id="change-9901077c4d7b859ebcf02d4e4c960588"><strong>[sql] </strong></span>Added a callable-based DDL events interface, adds hooks
before and after Tables and MetaData create and drop.<a class="changeset-link headerlink reference internal" href="#change-9901077c4d7b859ebcf02d4e4c960588">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-26"><span class="target" id="change-55f9b7d9b3f544d05ee33d474e48e718"><strong>[sql] </strong></span>Added generative where(<criterion>) method to delete() and
update() constructs which return a new object with criterion
joined to existing criterion via AND, just like
select().where().<a class="changeset-link headerlink reference internal" href="#change-55f9b7d9b3f544d05ee33d474e48e718">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-27"><span class="target" id="change-cda5a8913a71356022156500329b8ea2"><strong>[sql] </strong></span>Added “ilike()” operator to column operations. Compiles to
ILIKE on postgres, lower(x) LIKE lower(y) on all
others.<a class="changeset-link headerlink reference internal" href="#change-cda5a8913a71356022156500329b8ea2">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/727">#727</a></p>
</p>
</li>
<li><p id="change-0.4.3-28"><span class="target" id="change-f9d50ae6c3ab814c61e765a4597db4a7"><strong>[sql] </strong></span>Added “now()” as a generic function; on SQLite, Oracle
and MSSQL compiles as “CURRENT_TIMESTAMP”; “now()” on
all others.<a class="changeset-link headerlink reference internal" href="#change-f9d50ae6c3ab814c61e765a4597db4a7">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/943">#943</a></p>
</p>
</li>
<li><p id="change-0.4.3-29"><span class="target" id="change-dc43f597e2f6c04ee681a57b1cdcab9f"><strong>[sql] </strong></span>The startswith(), endswith(), and contains() operators now
concatenate the wildcard operator with the given operand in
SQL, i.e. “’%’ || <bindparam>” in all cases, accept
text(‘something’) operands properly<a class="changeset-link headerlink reference internal" href="#change-dc43f597e2f6c04ee681a57b1cdcab9f">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/962">#962</a></p>
</p>
</li>
<li><p id="change-0.4.3-30"><span class="target" id="change-6e11a1c8b10e4f234d4523225bd257ef"><strong>[sql] </strong></span>cast() accepts text(‘something’) and other non-literal
operands properly<a class="changeset-link headerlink reference internal" href="#change-6e11a1c8b10e4f234d4523225bd257ef">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/962">#962</a></p>
</p>
</li>
<li><p id="change-0.4.3-31"><span class="target" id="change-058b2c299ce6bcfa574f984a4c4a6e71"><strong>[sql] </strong></span>fixed bug in result proxy where anonymously generated
column labels would not be accessible using their straight
string name<a class="changeset-link headerlink reference internal" href="#change-058b2c299ce6bcfa574f984a4c4a6e71">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-32"><span class="target" id="change-3115dcb8cdb282b57a31d91ec76e5e43"><strong>[sql] </strong></span>Deferrable constraints can now be defined.<a class="changeset-link headerlink reference internal" href="#change-3115dcb8cdb282b57a31d91ec76e5e43">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-33"><span class="target" id="change-0fdb4ae6ed3cdbc2764f585352789ad5"><strong>[sql] </strong></span>Added “autocommit=True” keyword argument to select() and
text(), as well as generative autocommit() method on
select(); for statements which modify the database through
some user-defined means other than the usual INSERT/UPDATE/
DELETE etc. This flag will enable “autocommit” behavior
during execution if no transaction is in progress.<a class="changeset-link headerlink reference internal" href="#change-0fdb4ae6ed3cdbc2764f585352789ad5">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/915">#915</a></p>
</p>
</li>
<li><p id="change-0.4.3-34"><span class="target" id="change-8ab38a99c33031ed1be3e3d2f2018ad6"><strong>[sql] </strong></span>The ‘.c.’ attribute on a selectable now gets an entry for
every column expression in its columns clause. Previously,
“unnamed” columns like functions and CASE statements weren’t
getting put there. Now they will, using their full string
representation if no ‘name’ is available.<a class="changeset-link headerlink reference internal" href="#change-8ab38a99c33031ed1be3e3d2f2018ad6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-35"><span class="target" id="change-dee2d53230f0bb2006399dd3a1acc69b"><strong>[sql] </strong></span>a CompositeSelect, i.e. any union(), union_all(),
intersect(), etc. now asserts that each selectable contains
the same number of columns. This conforms to the
corresponding SQL requirement.<a class="changeset-link headerlink reference internal" href="#change-dee2d53230f0bb2006399dd3a1acc69b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-36"><span class="target" id="change-9aaabc97770589be11258354e4103c20"><strong>[sql] </strong></span>The anonymous ‘label’ generated for otherwise unlabeled
functions and expressions now propagates outwards at compile
time for expressions like select([select([func.foo()])]).<a class="changeset-link headerlink reference internal" href="#change-9aaabc97770589be11258354e4103c20">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-37"><span class="target" id="change-e38291a9bb6875caafe6ff4eb62837d6"><strong>[sql] </strong></span>Building on the above ideas, CompositeSelects now build up
their ”.c.” collection based on the names present in the
first selectable only; corresponding_column() now works
fully for all embedded selectables.<a class="changeset-link headerlink reference internal" href="#change-e38291a9bb6875caafe6ff4eb62837d6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-38"><span class="target" id="change-effacbc8cacf7eccb6b38ba3cbbae70c"><strong>[sql] </strong></span>Oracle and others properly encode SQL used for defaults like
sequences, etc., even if no unicode idents are used since
identifier preparer may return a cached unicode identifier.<a class="changeset-link headerlink reference internal" href="#change-effacbc8cacf7eccb6b38ba3cbbae70c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-39"><span class="target" id="change-1d04331648e18d01c0c95d1e615df08e"><strong>[sql] </strong></span>Column and clause comparisons to datetime objects on the
left hand side of the expression now work (d < table.c.col).
(datetimes on the RHS have always worked, the LHS exception
is a quirk of the datetime implementation.)<a class="changeset-link headerlink reference internal" href="#change-1d04331648e18d01c0c95d1e615df08e">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.3-misc">
<h3>misc<a class="headerlink" href="#change-0.4.3-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.3-40"><span class="target" id="change-f63c306a189efd4f901b963ab28adb1f"><strong>[dialects] </strong></span>Better support for schemas in SQLite (linked in by ATTACH
DATABASE ... AS name). In some cases in the past, schema
names were omitted from generated SQL for SQLite. This is
no longer the case.<a class="changeset-link headerlink reference internal" href="#change-f63c306a189efd4f901b963ab28adb1f">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-41"><span class="target" id="change-9dee0f004a0cf1c0917dc6380650d13a"><strong>[dialects] </strong></span>table_names on SQLite now picks up temporary tables as well.<a class="changeset-link headerlink reference internal" href="#change-9dee0f004a0cf1c0917dc6380650d13a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-42"><span class="target" id="change-60a5b994550ff76a748f3c1c1876328e"><strong>[dialects] </strong></span>Auto-detect an unspecified MySQL ANSI_QUOTES mode during
reflection operations, support for changing the mode
midstream. Manual mode setting is still required if no
reflection is used.<a class="changeset-link headerlink reference internal" href="#change-60a5b994550ff76a748f3c1c1876328e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-43"><span class="target" id="change-d2deeecdb1769a651e3418d54d79a6f7"><strong>[dialects] </strong></span>Fixed reflection of TIME columns on SQLite.<a class="changeset-link headerlink reference internal" href="#change-d2deeecdb1769a651e3418d54d79a6f7">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-44"><span class="target" id="change-df90bbae9a24a548712386fea17c51d7"><strong>[dialects] </strong></span>Finally added PGMacAddr type to postgres<a class="changeset-link headerlink reference internal" href="#change-df90bbae9a24a548712386fea17c51d7">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/580">#580</a></p>
</p>
</li>
<li><p id="change-0.4.3-45"><span class="target" id="change-aa4961efc15ee34be7bcbce396b294c8"><strong>[dialects] </strong></span>Reflect the sequence associated to a PK field (typically
with a BEFORE INSERT trigger) under Firebird<a class="changeset-link headerlink reference internal" href="#change-aa4961efc15ee34be7bcbce396b294c8">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-46"><span class="target" id="change-b06276ebd78dee4b8b236cfc9f6ea19e"><strong>[dialects] </strong></span>Oracle assembles the correct columns in the result set
column mapping when generating a LIMIT/OFFSET subquery,
allows columns to map properly to result sets even if
long-name truncation kicks in<a class="changeset-link headerlink reference internal" href="#change-b06276ebd78dee4b8b236cfc9f6ea19e">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/941">#941</a></p>
</p>
</li>
<li><p id="change-0.4.3-47"><span class="target" id="change-34c2a03d48cdd10e0016278bc5941d22"><strong>[dialects] </strong></span>MSSQL now includes EXEC in the _is_select regexp, which
should allow row-returning stored procedures to be used.<a class="changeset-link headerlink reference internal" href="#change-34c2a03d48cdd10e0016278bc5941d22">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-48"><span class="target" id="change-1fc2c8bc3c3438aaf84a962c2176c65b"><strong>[dialects] </strong></span>MSSQL now includes an experimental implementation of
LIMIT/OFFSET using the ANSI SQL row_number() function, so it
requires MSSQL-2005 or higher. To enable the feature, add
“has_window_funcs” to the keyword arguments for connect, or
add ”?has_window_funcs=1” to your dburi query arguments.<a class="changeset-link headerlink reference internal" href="#change-1fc2c8bc3c3438aaf84a962c2176c65b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-49"><span class="target" id="change-937a4731635f0eb9fc1445d0e3061924"><strong>[ext] </strong></span>Changed ext.activemapper to use a non-transactional session
for the objectstore.<a class="changeset-link headerlink reference internal" href="#change-937a4731635f0eb9fc1445d0e3061924">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-50"><span class="target" id="change-9adb592707c367ff5863e266ed996077"><strong>[ext] </strong></span>Fixed output order of “[‘a’] + obj.proxied” binary operation
on association-proxied lists.<a class="changeset-link headerlink reference internal" href="#change-9adb592707c367ff5863e266ed996077">¶</a><p></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.4.2p3">
<h2>0.4.2p3<a class="headerlink" href="#change-0.4.2p3" title="Permalink to this headline">¶</a></h2>
Released: Wed Jan 09 2008<div class="section" id="change-0.4.2p3-general">
<h3>general<a class="headerlink" href="#change-0.4.2p3-general" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.2p3-0"><span class="target" id="change-65d413b7ad515c5729bde99fb2e96731"><strong>[general] </strong></span>sub version numbering scheme changed to suite
setuptools version number rules; easy_install -u
should now get this version over 0.4.2.<a class="changeset-link headerlink reference internal" href="#change-65d413b7ad515c5729bde99fb2e96731">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.2p3-orm">
<h3>orm<a class="headerlink" href="#change-0.4.2p3-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.2p3-1"><span class="target" id="change-da292c6c47e2281b50fe3872d622ec66"><strong>[orm] </strong></span>fixed bug with session.dirty when using “mutable
scalars” (such as PickleTypes)<a class="changeset-link headerlink reference internal" href="#change-da292c6c47e2281b50fe3872d622ec66">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-2"><span class="target" id="change-e84ebdc378fd322dd6276c9b7906ed92"><strong>[orm] </strong></span>added a more descriptive error message when flushing
on a relation() that has non-locally-mapped columns
in its primary or secondary join condition<a class="changeset-link headerlink reference internal" href="#change-e84ebdc378fd322dd6276c9b7906ed92">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-3"><span class="target" id="change-d24181f3ffcf556b44aa903e5a74b37e"><strong>[orm] </strong></span>suppressing <em>all</em> errors in
InstanceState.__cleanup() now.<a class="changeset-link headerlink reference internal" href="#change-d24181f3ffcf556b44aa903e5a74b37e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-4"><span class="target" id="change-d2a931ab43317f5fcf9c6bdb7f4f4a39"><strong>[orm] </strong></span>fixed an attribute history bug whereby assigning a
new collection to a collection-based attribute which
already had pending changes would generate incorrect
history<a class="changeset-link headerlink reference internal" href="#change-d2a931ab43317f5fcf9c6bdb7f4f4a39">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/922">#922</a></p>
</p>
</li>
<li><p id="change-0.4.2p3-5"><span class="target" id="change-d81770ec7c97121d21e6eb326d9bb5da"><strong>[orm] </strong></span>fixed delete-orphan cascade bug whereby setting the
same object twice to a scalar attribute could log it
as an orphan<a class="changeset-link headerlink reference internal" href="#change-d81770ec7c97121d21e6eb326d9bb5da">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/925">#925</a></p>
</p>
</li>
<li><p id="change-0.4.2p3-6"><span class="target" id="change-13a128b105a34070dcf5a5147913fa10"><strong>[orm] </strong></span>Fixed cascades on a += assignment to a list-based
relation.<a class="changeset-link headerlink reference internal" href="#change-13a128b105a34070dcf5a5147913fa10">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-7"><span class="target" id="change-331b7392042497e067064bc0ea7a7a43"><strong>[orm] </strong></span>synonyms can now be created against props that don’t
exist yet, which are later added via add_property().
This commonly includes backrefs. (i.e. you can make
synonyms for backrefs without worrying about the
order of operations)<a class="changeset-link headerlink reference internal" href="#change-331b7392042497e067064bc0ea7a7a43">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/919">#919</a></p>
</p>
</li>
<li><p id="change-0.4.2p3-8"><span class="target" id="change-72cde5697e7ad6e3b60d641e29048733"><strong>[orm] </strong></span>fixed bug which could occur with polymorphic “union”
mapper which falls back to “deferred” loading of
inheriting tables<a class="changeset-link headerlink reference internal" href="#change-72cde5697e7ad6e3b60d641e29048733">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-9"><span class="target" id="change-fed49544228d810c496b9938b4c43c75"><strong>[orm] </strong></span>the “columns” collection on a mapper/mapped class
(i.e. ‘c’) is against the mapped table, not the
select_table in the case of polymorphic “union”
loading (this shouldn’t be noticeable).<a class="changeset-link headerlink reference internal" href="#change-fed49544228d810c496b9938b4c43c75">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-10"><span class="target" id="change-3ca851d8498ea2458bba602dee5ad8dd"><strong>[orm] </strong></span>fixed fairly critical bug whereby the same instance could be listed
more than once in the unitofwork.new collection; most typically
reproduced when using a combination of inheriting mappers and
ScopedSession.mapper, as the multiple __init__ calls per instance
could save() the object with distinct _state objects<a class="changeset-link headerlink reference internal" href="#change-3ca851d8498ea2458bba602dee5ad8dd">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-11"><span class="target" id="change-b0ea0f39c7d503288cdab2a995ef5b83"><strong>[orm] </strong></span>added very rudimentary yielding iterator behavior to Query. Call
query.yield_per(<number of rows>) and evaluate the Query in an
iterative context; every collection of N rows will be packaged up
and yielded. Use this method with extreme caution since it does
not attempt to reconcile eagerly loaded collections across
result batch boundaries, nor will it behave nicely if the same
instance occurs in more than one batch. This means that an eagerly
loaded collection will get cleared out if it’s referenced in more than
one batch, and in all cases attributes will be overwritten on instances
that occur in more than one batch.<a class="changeset-link headerlink reference internal" href="#change-b0ea0f39c7d503288cdab2a995ef5b83">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-12"><span class="target" id="change-779e1c774fac07bedf9baab019348183"><strong>[orm] </strong></span>Fixed in-place set mutation operators for set collections and association
proxied sets.<a class="changeset-link headerlink reference internal" href="#change-779e1c774fac07bedf9baab019348183">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/920">#920</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.2p3-sql">
<h3>sql<a class="headerlink" href="#change-0.4.2p3-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.2p3-13"><span class="target" id="change-6a9e11d8c0bcdb3037efda66da46f2b0"><strong>[sql] </strong></span>Text type is properly exported now and does not
raise a warning on DDL create; String types with no
length only raise warnings during CREATE TABLE<a class="changeset-link headerlink reference internal" href="#change-6a9e11d8c0bcdb3037efda66da46f2b0">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/912">#912</a></p>
</p>
</li>
<li><p id="change-0.4.2p3-14"><span class="target" id="change-52447b5d997e550edaff1460987456ea"><strong>[sql] </strong></span>new UnicodeText type is added, to specify an
encoded, unlengthed Text type<a class="changeset-link headerlink reference internal" href="#change-52447b5d997e550edaff1460987456ea">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-15"><span class="target" id="change-c6e6be84c763b537b8b61ef8374ed8fe"><strong>[sql] </strong></span>fixed bug in union() so that select() statements
which don’t derive from FromClause objects can be
unioned<a class="changeset-link headerlink reference internal" href="#change-c6e6be84c763b537b8b61ef8374ed8fe">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-16"><span class="target" id="change-b4c8efafaa4b6fccec8239e9c9d14b0f"><strong>[sql] </strong></span>changed name of TEXT to Text since its a “generic”
type; TEXT name is deprecated until 0.5. The
“upgrading” behavior of String to Text when no
length is present is also deprecated until 0.5; will
issue a warning when used for CREATE TABLE
statements (String with no length for SQL expression
purposes is still fine)<a class="changeset-link headerlink reference internal" href="#change-b4c8efafaa4b6fccec8239e9c9d14b0f">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/912">#912</a></p>
</p>
</li>
<li><p id="change-0.4.2p3-17"><span class="target" id="change-11b279a02c641038e4cf01bcf7a3de4c"><strong>[sql] </strong></span>generative select.order_by(None) / group_by(None)
was not managing to reset order by/group by
criterion, fixed<a class="changeset-link headerlink reference internal" href="#change-11b279a02c641038e4cf01bcf7a3de4c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/924">#924</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.2p3-misc">
<h3>misc<a class="headerlink" href="#change-0.4.2p3-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.2p3-18"><span class="target" id="change-266d2296f2e6b99bc2514a5fd438deae"><strong>[dialects] </strong></span>Fixed reflection of mysql empty string column
defaults.<a class="changeset-link headerlink reference internal" href="#change-266d2296f2e6b99bc2514a5fd438deae">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-19"><span class="target" id="change-564eaa28aa3238cb8107b93c413f59d9"><strong>[ext] </strong></span>‘+’, ‘*’, ‘+=’ and ‘*=’ support for association
proxied lists.<a class="changeset-link headerlink reference internal" href="#change-564eaa28aa3238cb8107b93c413f59d9">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-20"><span class="target" id="change-88e678f937cdc36ead073631a00ca08b"><strong>[dialects] </strong></span>mssql - narrowed down the test for “date”/”datetime”
in MSDate/ MSDateTime subclasses so that incoming
“datetime” objects don’t get mis-interpreted as
“date” objects and vice versa.<a class="changeset-link headerlink reference internal" href="#change-88e678f937cdc36ead073631a00ca08b">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/923">#923</a></p>
</p>
</li>
<li><p id="change-0.4.2p3-21"><span class="target" id="change-3ed94dc039b8b2b50313d99519db04d5"><strong>[dialects] </strong></span>Fixed the missing call to subtype result processor for the PGArray
type.<a class="changeset-link headerlink reference internal" href="#change-3ed94dc039b8b2b50313d99519db04d5">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/913">#913</a></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.4.2">
<h2>0.4.2<a class="headerlink" href="#change-0.4.2" title="Permalink to this headline">¶</a></h2>
Released: Wed Jan 02 2008<div class="section" id="change-0.4.2-orm">
<h3>orm<a class="headerlink" href="#change-0.4.2-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.2-0"><span class="target" id="change-63f5538d57cbeccd4405271fb765620d"><strong>[orm] </strong></span>a major behavioral change to collection-based backrefs: they no
longer trigger lazy loads ! “reverse” adds and removes
are queued up and are merged with the collection when it is
actually read from and loaded; but do not trigger a load beforehand.
For users who have noticed this behavior, this should be much more
convenient than using dynamic relations in some cases; for those who
have not, you might notice your apps using a lot fewer queries than
before in some situations.<a class="changeset-link headerlink reference internal" href="#change-63f5538d57cbeccd4405271fb765620d">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/871">#871</a></p>
</p>
</li>
<li><p id="change-0.4.2-1"><span class="target" id="change-217b4c5e361c5fb21dea6f5061d41edc"><strong>[orm] </strong></span>mutable primary key support is added. primary key columns can be
changed freely, and the identity of the instance will change upon
flush. In addition, update cascades of foreign key referents (primary
key or not) along relations are supported, either in tandem with the
database’s ON UPDATE CASCADE (required for DB’s like Postgres) or
issued directly by the ORM in the form of UPDATE statements, by setting
the flag “passive_cascades=False”.<a class="changeset-link headerlink reference internal" href="#change-217b4c5e361c5fb21dea6f5061d41edc">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-2"><span class="target" id="change-e8ea4a2d69bd572ec6dfb581a1a81bc8"><strong>[orm] </strong></span>inheriting mappers now inherit the MapperExtensions of their parent
mapper directly, so that all methods for a particular MapperExtension
are called for subclasses as well. As always, any MapperExtension
can return either EXT_CONTINUE to continue extension processing
or EXT_STOP to stop processing. The order of mapper resolution is:
<extensions declared on the classes mapper> <extensions declared on the
classes’ parent mapper> <globally declared extensions>.<p>Note that if you instantiate the same extension class separately
and then apply it individually for two mappers in the same inheritance
chain, the extension will be applied twice to the inheriting class,
and each method will be called twice.</p>
<p>To apply a mapper extension explicitly to each inheriting class but
have each method called only once per operation, use the same
instance of the extension for both mappers.</p>
<a class="changeset-link headerlink reference internal" href="#change-e8ea4a2d69bd572ec6dfb581a1a81bc8">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/490">#490</a></p>
</p>
</li>
<li><p id="change-0.4.2-3"><span class="target" id="change-32b5c8ae4f1ba4eae88b6d041b12a29d"><strong>[orm] </strong></span>MapperExtension.before_update() and after_update() are now called
symmetrically; previously, an instance that had no modified column
attributes (but had a relation() modification) could be called with
before_update() but not after_update()<a class="changeset-link headerlink reference internal" href="#change-32b5c8ae4f1ba4eae88b6d041b12a29d">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/907">#907</a></p>
</p>
</li>
<li><p id="change-0.4.2-4"><span class="target" id="change-27b98340e4e7bca99aa258a02c0b8f4c"><strong>[orm] </strong></span>columns which are missing from a Query’s select statement
now get automatically deferred during load.<a class="changeset-link headerlink reference internal" href="#change-27b98340e4e7bca99aa258a02c0b8f4c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-5"><span class="target" id="change-63184f50e7524cf31995dceb7eba804c"><strong>[orm] </strong></span>mapped classes which extend “object” and do not provide an
__init__() method will now raise TypeError if non-empty *args
or **kwargs are present at instance construction time (and are
not consumed by any extensions such as the scoped_session mapper),
consistent with the behavior of normal Python classes<a class="changeset-link headerlink reference internal" href="#change-63184f50e7524cf31995dceb7eba804c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/908">#908</a></p>
</p>
</li>
<li><p id="change-0.4.2-6"><span class="target" id="change-e0d48778c2223c5f35f8ee0a6f6241f4"><strong>[orm] </strong></span>fixed Query bug when filter_by() compares a relation against None<a class="changeset-link headerlink reference internal" href="#change-e0d48778c2223c5f35f8ee0a6f6241f4">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/899">#899</a></p>
</p>
</li>
<li><p id="change-0.4.2-7"><span class="target" id="change-4790b003fa9887f231b4dab765719240"><strong>[orm] </strong></span>improved support for pickling of mapped entities. Per-instance
lazy/deferred/expired callables are now serializable so that
they serialize and deserialize with _state.<a class="changeset-link headerlink reference internal" href="#change-4790b003fa9887f231b4dab765719240">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-8"><span class="target" id="change-9d03199c53171e51a07d7087bbc50381"><strong>[orm] </strong></span>new synonym() behavior: an attribute will be placed on the mapped
class, if one does not exist already, in all cases. if a property
already exists on the class, the synonym will decorate the property
with the appropriate comparison operators so that it can be used in
column expressions just like any other mapped attribute (i.e. usable in
filter(), etc.) the “proxy=True” flag is deprecated and no longer means
anything. Additionally, the flag “map_column=True” will automatically
generate a ColumnProperty corresponding to the name of the synonym,
i.e.: ‘somename’:synonym(‘_somename’, map_column=True) will map the
column named ‘somename’ to the attribute ‘_somename’. See the example
in the mapper docs.<a class="changeset-link headerlink reference internal" href="#change-9d03199c53171e51a07d7087bbc50381">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/801">#801</a></p>
</p>
</li>
<li><p id="change-0.4.2-9"><span class="target" id="change-784457e85ca18f636410e38e12185882"><strong>[orm] </strong></span>Query.select_from() now replaces all existing FROM criterion with
the given argument; the previous behavior of constructing a list
of FROM clauses was generally not useful as is required
filter() calls to create join criterion, and new tables introduced
within filter() already add themselves to the FROM clause. The
new behavior allows not just joins from the main table, but select
statements as well. Filter criterion, order bys, eager load
clauses will be “aliased” against the given statement.<a class="changeset-link headerlink reference internal" href="#change-784457e85ca18f636410e38e12185882">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-10"><span class="target" id="change-3a785137de08700b2cd2a32fba4f0a05"><strong>[orm] </strong></span>this month’s refactoring of attribute instrumentation changes
the “copy-on-load” behavior we’ve had since midway through 0.3
with “copy-on-modify” in most cases. This takes a sizable chunk
of latency out of load operations and overall does less work
as only attributes which are actually modified get their
“committed state” copied. Only “mutable scalar” attributes
(i.e. a pickled object or other mutable item), the reason for
the copy-on-load change in the first place, retain the old
behavior.<a class="changeset-link headerlink reference internal" href="#change-3a785137de08700b2cd2a32fba4f0a05">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-11"><span class="target" id="change-b5fb4c5dc6e51819e3330abdfa847cd0"><strong>[orm] [attrname] </strong></span>a slight behavioral change to attributes is, del’ing an attribute
does <em>not</em> cause the lazyloader of that attribute to fire off again;
the “del” makes the effective value of the attribute “None”. To
re-trigger the “loader” for an attribute, use
session.expire(instance,).<a class="changeset-link headerlink reference internal" href="#change-b5fb4c5dc6e51819e3330abdfa847cd0">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-12"><span class="target" id="change-2a465341874590d5feb725a00240b735"><strong>[orm] </strong></span>query.filter(SomeClass.somechild == None), when comparing
a many-to-one property to None, properly generates “id IS NULL”
including that the NULL is on the right side.<a class="changeset-link headerlink reference internal" href="#change-2a465341874590d5feb725a00240b735">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-13"><span class="target" id="change-3e8fd64d48f2bbde6c0011dd994f32cb"><strong>[orm] </strong></span>query.order_by() takes into account aliased joins, i.e.
query.join(‘orders’, aliased=True).order_by(Order.id)<a class="changeset-link headerlink reference internal" href="#change-3e8fd64d48f2bbde6c0011dd994f32cb">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-14"><span class="target" id="change-e0a2026f22b806fae3b51161f90eb4aa"><strong>[orm] </strong></span>eagerload(), lazyload(), eagerload_all() take an optional
second class-or-mapper argument, which will select the mapper
to apply the option towards. This can select among other
mappers which were added using add_entity().<a class="changeset-link headerlink reference internal" href="#change-e0a2026f22b806fae3b51161f90eb4aa">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-15"><span class="target" id="change-330cf46efeb1b16709defe4dc85891b0"><strong>[orm] </strong></span>eagerloading will work with mappers added via add_entity().<a class="changeset-link headerlink reference internal" href="#change-330cf46efeb1b16709defe4dc85891b0">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-16"><span class="target" id="change-3e54b894ee7ef3856d24b7831a0b878e"><strong>[orm] </strong></span>added “cascade delete” behavior to “dynamic” relations just like
that of regular relations. if passive_deletes flag (also just added)
is not set, a delete of the parent item will trigger a full load of
the child items so that they can be deleted or updated accordingly.<a class="changeset-link headerlink reference internal" href="#change-3e54b894ee7ef3856d24b7831a0b878e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-17"><span class="target" id="change-c1b93949b70a2298405d46cc8d9e165c"><strong>[orm] </strong></span>also with dynamic, implemented correct count() behavior as well
as other helper methods.<a class="changeset-link headerlink reference internal" href="#change-c1b93949b70a2298405d46cc8d9e165c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-18"><span class="target" id="change-6d7297ea5825ce8f0a6afbfd061aeb45"><strong>[orm] </strong></span>fix to cascades on polymorphic relations, such that cascades
from an object to a polymorphic collection continue cascading
along the set of attributes specific to each element in the collection.<a class="changeset-link headerlink reference internal" href="#change-6d7297ea5825ce8f0a6afbfd061aeb45">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-19"><span class="target" id="change-a8ef939d2a84ff9c730c84834a7362d0"><strong>[orm] </strong></span>query.get() and query.load() do not take existing filter or other
criterion into account; these methods <em>always</em> look up the given id
in the database or return the current instance from the identity map,
disregarding any existing filter, join, group_by or other criterion
which has been configured.<a class="changeset-link headerlink reference internal" href="#change-a8ef939d2a84ff9c730c84834a7362d0">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/893">#893</a></p>
</p>
</li>
<li><p id="change-0.4.2-20"><span class="target" id="change-6bde88eab909a760935eadb9a4ede0f1"><strong>[orm] </strong></span>added support for version_id_col in conjunction with inheriting mappers.
version_id_col is typically set on the base mapper in an inheritance
relationship where it takes effect for all inheriting mappers.<a class="changeset-link headerlink reference internal" href="#change-6bde88eab909a760935eadb9a4ede0f1">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/883">#883</a></p>
</p>
</li>
<li><p id="change-0.4.2-21"><span class="target" id="change-eafb815c0a21fff7306edd70ede3f73f"><strong>[orm] </strong></span>relaxed rules on column_property() expressions having labels; any
ColumnElement is accepted now, as the compiler auto-labels non-labeled
ColumnElements now. a selectable, like a select() statement, still
requires conversion to ColumnElement via as_scalar() or label().<a class="changeset-link headerlink reference internal" href="#change-eafb815c0a21fff7306edd70ede3f73f">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-22"><span class="target" id="change-0d02bce2307e213d0540d00aa850c909"><strong>[orm] </strong></span>fixed backref bug where you could not del instance.attr if attr
was None<a class="changeset-link headerlink reference internal" href="#change-0d02bce2307e213d0540d00aa850c909">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-23"><span class="target" id="change-8a557aa11c6f764820c17470e54658ce"><strong>[orm] </strong></span>several ORM attributes have been removed or made private:
mapper.get_attr_by_column(), mapper.set_attr_by_column(),
mapper.pks_by_table, mapper.cascade_callable(),
MapperProperty.cascade_callable(), mapper.canload(),
mapper.save_obj(), mapper.delete_obj(), mapper._mapper_registry,
attributes.AttributeManager<a class="changeset-link headerlink reference internal" href="#change-8a557aa11c6f764820c17470e54658ce">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-24"><span class="target" id="change-92cef2776421e3d2d6177bee48214fac"><strong>[orm] </strong></span>Assigning an incompatible collection type to a relation attribute now
raises TypeError instead of sqlalchemy’s ArgumentError.<a class="changeset-link headerlink reference internal" href="#change-92cef2776421e3d2d6177bee48214fac">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-25"><span class="target" id="change-df17f2469a0bb5f1a22d42fc865f73a4"><strong>[orm] </strong></span>Bulk assignment of a MappedCollection now raises an error if a key in the
incoming dictionary does not match the key that the collection’s keyfunc
would use for that value.<a class="changeset-link headerlink reference internal" href="#change-df17f2469a0bb5f1a22d42fc865f73a4">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/886">#886</a></p>
</p>
</li>
<li><p id="change-0.4.2-26"><span class="target" id="change-228dca0bafaa198350cfc39cb6561e8c"><strong>[orm] [newval2] [newval1] </strong></span>Custom collections can now specify a @converter method to translate
objects used in “bulk” assignment into a stream of values, as in:<div class="highlight-python"><pre>obj.col =
# or
obj.dictcol = {'foo': newval1, 'bar': newval2}</pre>
</div>
<p>The MappedCollection uses this hook to ensure that incoming key/value
pairs are sane from the collection’s perspective.</p>
<a class="changeset-link headerlink reference internal" href="#change-228dca0bafaa198350cfc39cb6561e8c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-27"><span class="target" id="change-abc2dcd6fd504baa411c4ede8eda7189"><strong>[orm] </strong></span>fixed endless loop issue when using lazy=”dynamic” on both
sides of a bi-directional relationship<a class="changeset-link headerlink reference internal" href="#change-abc2dcd6fd504baa411c4ede8eda7189">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/872">#872</a></p>
</p>
</li>
<li><p id="change-0.4.2-28"><span class="target" id="change-5d359376de51a0ecf63071076057725e"><strong>[orm] </strong></span>more fixes to the LIMIT/OFFSET aliasing applied with Query + eagerloads,
in this case when mapped against a select statement<a class="changeset-link headerlink reference internal" href="#change-5d359376de51a0ecf63071076057725e">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/904">#904</a></p>
</p>
</li>
<li><p id="change-0.4.2-29"><span class="target" id="change-6705a0a328a243a3c879e94a69346ca4"><strong>[orm] </strong></span>fix to self-referential eager loading such that if the same mapped
instance appears in two or more distinct sets of columns in the same
result set, its eagerly loaded collection will be populated regardless
of whether or not all of the rows contain a set of “eager” columns for
that collection. this would also show up as a KeyError when fetching
results with join_depth turned on.<a class="changeset-link headerlink reference internal" href="#change-6705a0a328a243a3c879e94a69346ca4">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-30"><span class="target" id="change-8ce8cb627bff40401582485251bd4caf"><strong>[orm] </strong></span>fixed bug where Query would not apply a subquery to the SQL when LIMIT
was used in conjunction with an inheriting mapper where the eager
loader was only in the parent mapper.<a class="changeset-link headerlink reference internal" href="#change-8ce8cb627bff40401582485251bd4caf">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-31"><span class="target" id="change-a583ca54c9f72d5e381ee158389cc17b"><strong>[orm] </strong></span>clarified the error message which occurs when you try to update()
an instance with the same identity key as an instance already present
in the session.<a class="changeset-link headerlink reference internal" href="#change-a583ca54c9f72d5e381ee158389cc17b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-32"><span class="target" id="change-765a4998bb1fb50421b5910813efbcc2"><strong>[orm] </strong></span>some clarifications and fixes to merge(instance, dont_load=True).
fixed bug where lazy loaders were getting disabled on returned instances.
Also, we currently do not support merging an instance which has uncommitted
changes on it, in the case that dont_load=True is used....this will
now raise an error. This is due to complexities in merging the
“committed state” of the given instance to correctly correspond to the
newly copied instance, as well as other modified state.
Since the use case for dont_load=True is caching, the given instances
shouldn’t have any uncommitted changes on them anyway.
We also copy the instances over without using any events now, so that
the ‘dirty’ list on the new session remains unaffected.<a class="changeset-link headerlink reference internal" href="#change-765a4998bb1fb50421b5910813efbcc2">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-33"><span class="target" id="change-ea7de496771c635bee87d7670889f0ee"><strong>[orm] </strong></span>fixed bug which could arise when using session.begin_nested() in conjunction
with more than one level deep of enclosing session.begin() statements<a class="changeset-link headerlink reference internal" href="#change-ea7de496771c635bee87d7670889f0ee">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-34"><span class="target" id="change-688cfda7b6b1b358dcef128e1f80b4bb"><strong>[orm] </strong></span>fixed session.refresh() with instance that has custom entity_name<a class="changeset-link headerlink reference internal" href="#change-688cfda7b6b1b358dcef128e1f80b4bb">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/914">#914</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.2-sql">
<h3>sql<a class="headerlink" href="#change-0.4.2-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.2-35"><span class="target" id="change-f840d15646468f91261fb9f4f827c464"><strong>[sql] </strong></span>generic functions ! we introduce a database of known SQL functions, such
as current_timestamp, coalesce, and create explicit function objects
representing them. These objects have constrained argument lists, are
type aware, and can compile in a dialect-specific fashion. So saying
func.char_length(“foo”, “bar”) raises an error (too many args),
func.coalesce(datetime.date(2007, 10, 5), datetime.date(2005, 10, 15))
knows that its return type is a Date. We only have a few functions
represented so far but will continue to add to the system<a class="changeset-link headerlink reference internal" href="#change-f840d15646468f91261fb9f4f827c464">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/615">#615</a></p>
</p>
</li>
<li><p id="change-0.4.2-36"><span class="target" id="change-50091a15ff9c9366b36b0868152e0df2"><strong>[sql] </strong></span>auto-reconnect support improved; a Connection can now automatically
reconnect after its underlying connection is invalidated, without
needing to connect() again from the engine. This allows an ORM session
bound to a single Connection to not need a reconnect.
Open transactions on the Connection must be rolled back after an invalidation
of the underlying connection else an error is raised. Also fixed
bug where disconnect detect was not being called for cursor(), rollback(),
or commit().<a class="changeset-link headerlink reference internal" href="#change-50091a15ff9c9366b36b0868152e0df2">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-37"><span class="target" id="change-4abfbfe6bea22beedb689afde26eee55"><strong>[sql] </strong></span>added new flag to String and create_engine(),
assert_unicode=(True|False|’warn’|None). Defaults to <cite>False</cite> or <cite>None</cite> on
create_engine() and String, <cite>‘warn’</cite> on the Unicode type. When <cite>True</cite>,
results in all unicode conversion operations raising an exception when a
non-unicode bytestring is passed as a bind parameter. ‘warn’ results
in a warning. It is strongly advised that all unicode-aware applications
make proper use of Python unicode objects (i.e. u’hello’ and not ‘hello’)
so that data round trips accurately.<a class="changeset-link headerlink reference internal" href="#change-4abfbfe6bea22beedb689afde26eee55">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-38"><span class="target" id="change-1943253ba506b5613bb311d47f20a9de"><strong>[sql] </strong></span>generation of “unique” bind parameters has been simplified to use the same
“unique identifier” mechanisms as everything else. This doesn’t affect
user code, except any code that might have been hardcoded against the generated
names. Generated bind params now have the form “<paramname>_<num>”,
whereas before only the second bind of the same name would have this form.<a class="changeset-link headerlink reference internal" href="#change-1943253ba506b5613bb311d47f20a9de">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-39"><span class="target" id="change-8295165b5c3dd3ddc3c1d71843d664ad"><strong>[sql] </strong></span>select().as_scalar() will raise an exception if the select does not have
exactly one expression in its columns clause.<a class="changeset-link headerlink reference internal" href="#change-8295165b5c3dd3ddc3c1d71843d664ad">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-40"><span class="target" id="change-6e780ec732e6e0f32ed07d926adb7257"><strong>[sql] </strong></span>bindparam() objects themselves can be used as keys for execute(), i.e.
statement.execute({bind1:’foo’, bind2:’bar’})<a class="changeset-link headerlink reference internal" href="#change-6e780ec732e6e0f32ed07d926adb7257">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-41"><span class="target" id="change-96927335ae179f9639f2658179eca869"><strong>[sql] </strong></span>added new methods to TypeDecorator, process_bind_param() and
process_result_value(), which automatically take advantage of the processing
of the underlying type. Ideal for using with Unicode or Pickletype.
TypeDecorator should now be the primary way to augment the behavior of any
existing type including other TypeDecorator subclasses such as PickleType.<a class="changeset-link headerlink reference internal" href="#change-96927335ae179f9639f2658179eca869">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-42"><span class="target" id="change-d16902bc09502cb5a78b696a5f86caf1"><strong>[sql] </strong></span>selectables (and others) will issue a warning when two columns in
their exported columns collection conflict based on name.<a class="changeset-link headerlink reference internal" href="#change-d16902bc09502cb5a78b696a5f86caf1">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-43"><span class="target" id="change-a7fd85cad8879a7cb7a882408ae2fc00"><strong>[sql] </strong></span>tables with schemas can still be used in sqlite, firebird,
schema name just gets dropped<a class="changeset-link headerlink reference internal" href="#change-a7fd85cad8879a7cb7a882408ae2fc00">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/890">#890</a></p>
</p>
</li>
<li><p id="change-0.4.2-44"><span class="target" id="change-2925ff88bfebf6c66313f6cf18859909"><strong>[sql] </strong></span>changed the various “literal” generation functions to use an anonymous
bind parameter. not much changes here except their labels now look
like ”:param_1”, ”:param_2” instead of ”:literal”<a class="changeset-link headerlink reference internal" href="#change-2925ff88bfebf6c66313f6cf18859909">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-45"><span class="target" id="change-2ab31cbdc0db31fb85313f8aa8fd9480"><strong>[sql] </strong></span>column labels in the form “tablename.columname”, i.e. with a dot, are now
supported.<a class="changeset-link headerlink reference internal" href="#change-2ab31cbdc0db31fb85313f8aa8fd9480">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-46"><span class="target" id="change-8fa1b1ab3760497c5d0dedf5bc7e031e"><strong>[sql] </strong></span>from_obj keyword argument to select() can be a scalar or a list.<a class="changeset-link headerlink reference internal" href="#change-8fa1b1ab3760497c5d0dedf5bc7e031e">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.2-firebird">
<h3>firebird<a class="headerlink" href="#change-0.4.2-firebird" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.2-47"><span class="target" id="change-296229733dda9c08bbcde17a5331e5fc"><strong>[firebird] [backend] </strong></span>does properly reflect domains (partially fixing) and
PassiveDefaults<a class="changeset-link headerlink reference internal" href="#change-296229733dda9c08bbcde17a5331e5fc">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/410">#410</a></p>
</p>
</li>
<li><p id="change-0.4.2-48"><span class="target" id="change-5c5bf54d072226185c9bcd8b439d9bed"><strong>[firebird] [3562] [backend] </strong></span>reverted to use default poolclass (was set to SingletonThreadPool in
0.4.0 for test purposes)<a class="changeset-link headerlink reference internal" href="#change-5c5bf54d072226185c9bcd8b439d9bed">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-49"><span class="target" id="change-c4e420a3bd5661f308a26a6dbe3bc067"><strong>[firebird] [backend] </strong></span>map func.length() to ‘char_length’ (easily overridable with the UDF
‘strlen’ on old versions of Firebird)<a class="changeset-link headerlink reference internal" href="#change-c4e420a3bd5661f308a26a6dbe3bc067">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.2-misc">
<h3>misc<a class="headerlink" href="#change-0.4.2-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.2-50"><span class="target" id="change-2c81613f5859b7c1f3ceca0a78b13cfd"><strong>[dialects] </strong></span>sqlite SLDate type will not erroneously render “microseconds” portion
of a datetime or time object.<a class="changeset-link headerlink reference internal" href="#change-2c81613f5859b7c1f3ceca0a78b13cfd">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-51"><span class="target" id="change-8ca793172781cfe8727359f0bb56604c"><strong>[dialects] </strong></span><dl class="docutils">
<dt>oracle</dt>
<dd><ul class="first last">
<li>added disconnect detection support for Oracle</li>
<li>some cleanup to binary/raw types so that cx_oracle.LOB is detected
on an ad-hoc basis</li>
</ul>
</dd>
</dl>
<a class="changeset-link headerlink reference internal" href="#change-8ca793172781cfe8727359f0bb56604c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/902">#902</a></p>
</p>
</li>
<li><p id="change-0.4.2-52"><span class="target" id="change-e26463d0e09920a810721d5acec0fc1f"><strong>[dialects] </strong></span><dl class="docutils">
<dt>MSSQL</dt>
<dd><ul class="first last">
<li>PyODBC no longer has a global “set nocount on”.</li>
<li>Fix non-identity integer PKs on autload</li>
<li>Better support for convert_unicode</li>
<li>Less strict date conversion for pyodbc/adodbapi</li>
<li>Schema-qualified tables / autoload</li>
</ul>
</dd>
</dl>
<a class="changeset-link headerlink reference internal" href="#change-e26463d0e09920a810721d5acec0fc1f">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/824">#824</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/839">#839</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/842">#842</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/901">#901</a></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.4.1">
<h2>0.4.1<a class="headerlink" href="#change-0.4.1" title="Permalink to this headline">¶</a></h2>
Released: Sun Nov 18 2007<div class="section" id="change-0.4.1-orm">
<h3>orm<a class="headerlink" href="#change-0.4.1-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.1-0"><span class="target" id="change-0b89c1898d4084608e81d2938ee20609"><strong>[orm] </strong></span>eager loading with LIMIT/OFFSET applied no longer adds the primary
table joined to a limited subquery of itself; the eager loads now
join directly to the subquery which also provides the primary table’s
columns to the result set. This eliminates a JOIN from all eager loads
with LIMIT/OFFSET.<a class="changeset-link headerlink reference internal" href="#change-0b89c1898d4084608e81d2938ee20609">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/843">#843</a></p>
</p>
</li>
<li><p id="change-0.4.1-1"><span class="target" id="change-594a0081d5108bf4ee29921c0a5a842e"><strong>[orm] </strong></span>session.refresh() and session.expire() now support an additional argument
“attribute_names”, a list of individual attribute keynames to be refreshed
or expired, allowing partial reloads of attributes on an already-loaded
instance.<a class="changeset-link headerlink reference internal" href="#change-594a0081d5108bf4ee29921c0a5a842e">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/802">#802</a></p>
</p>
</li>
<li><p id="change-0.4.1-2"><span class="target" id="change-b28a496490baf96e53a35fd41141c45c"><strong>[orm] </strong></span>added op() operator to instrumented attributes; i.e.
User.name.op(‘ilike’)(‘%somename%’)<a class="changeset-link headerlink reference internal" href="#change-b28a496490baf96e53a35fd41141c45c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/767">#767</a></p>
</p>
</li>
<li><p id="change-0.4.1-3"><span class="target" id="change-eb31b9d3e5311a271dc3c49b5404c206"><strong>[orm] </strong></span>Mapped classes may now define __eq__, __hash__, and __nonzero__ methods
with arbitrary semantics. The orm now handles all mapped instances on
an identity-only basis. (e.g. ‘is’ vs ‘==’)<a class="changeset-link headerlink reference internal" href="#change-eb31b9d3e5311a271dc3c49b5404c206">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/676">#676</a></p>
</p>
</li>
<li><p id="change-0.4.1-4"><span class="target" id="change-3f023f26f562df58ce90608560fd6504"><strong>[orm] </strong></span>the “properties” accessor on Mapper is removed; it now throws an informative
exception explaining the usage of mapper.get_property() and
mapper.iterate_properties<a class="changeset-link headerlink reference internal" href="#change-3f023f26f562df58ce90608560fd6504">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-5"><span class="target" id="change-2fc98bef8342a30df5eaf8d717ab428d"><strong>[orm] </strong></span>added having() method to Query, applies HAVING to the generated statement
in the same way as filter() appends to the WHERE clause.<a class="changeset-link headerlink reference internal" href="#change-2fc98bef8342a30df5eaf8d717ab428d">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-6"><span class="target" id="change-1ca51b23a65e7b311c38e71e4f06f672"><strong>[orm] </strong></span>The behavior of query.options() is now fully based on paths, i.e. an
option such as eagerload_all(‘x.y.z.y.x’) will apply eagerloading to
only those paths, i.e. and not ‘x.y.x’; eagerload(‘children.children’)
applies only to exactly two-levels deep, etc.<a class="changeset-link headerlink reference internal" href="#change-1ca51b23a65e7b311c38e71e4f06f672">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/777">#777</a></p>
</p>
</li>
<li><p id="change-0.4.1-7"><span class="target" id="change-25697ecfe693193b2646032ae6cbe5e3"><strong>[orm] </strong></span>PickleType will compare using <cite>==</cite> when set up with mutable=False,
and not the <cite>is</cite> operator. To use <cite>is</cite> or any other comparator, send
in a custom comparison function using PickleType(comparator=my_custom_comparator).<a class="changeset-link headerlink reference internal" href="#change-25697ecfe693193b2646032ae6cbe5e3">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-8"><span class="target" id="change-6541ab9074117cd48928f7885253addf"><strong>[orm] </strong></span>query doesn’t throw an error if you use distinct() and an order_by()
containing UnaryExpressions (or other) together<a class="changeset-link headerlink reference internal" href="#change-6541ab9074117cd48928f7885253addf">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/848">#848</a></p>
</p>
</li>
<li><p id="change-0.4.1-9"><span class="target" id="change-4f9647deaa363941af6a3cc05cd1f193"><strong>[orm] </strong></span>order_by() expressions from joined tables are properly added to columns
clause when using distinct()<a class="changeset-link headerlink reference internal" href="#change-4f9647deaa363941af6a3cc05cd1f193">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/786">#786</a></p>
</p>
</li>
<li><p id="change-0.4.1-10"><span class="target" id="change-24e4c45db8fecf131cab8c0a13b7dbed"><strong>[orm] </strong></span>fixed error where Query.add_column() would not accept a class-bound
attribute as an argument; Query also raises an error if an invalid
argument was sent to add_column() (at instances() time)<a class="changeset-link headerlink reference internal" href="#change-24e4c45db8fecf131cab8c0a13b7dbed">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/858">#858</a></p>
</p>
</li>
<li><p id="change-0.4.1-11"><span class="target" id="change-8a9ee44baa74c1b5e3bd072e563eb7c4"><strong>[orm] </strong></span>added a little more checking for garbage-collection dereferences in
InstanceState.__cleanup() to reduce “gc ignored” errors on app
shutdown<a class="changeset-link headerlink reference internal" href="#change-8a9ee44baa74c1b5e3bd072e563eb7c4">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-12"><span class="target" id="change-a42838089d8927d06dc3e4f5fb731b84"><strong>[orm] </strong></span>The session API has been solidified:<a class="changeset-link headerlink reference internal" href="#change-a42838089d8927d06dc3e4f5fb731b84">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-13"><span class="target" id="change-5e08c60d85b9c39cc11a409fafc3424f"><strong>[orm] </strong></span>It’s an error to session.save() an object which is already
persistent<a class="changeset-link headerlink reference internal" href="#change-5e08c60d85b9c39cc11a409fafc3424f">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/840">#840</a></p>
</p>
</li>
<li><p id="change-0.4.1-14"><span class="target" id="change-4869e0999f48ab540716a33356319094"><strong>[orm] </strong></span>It’s an error to session.delete() an object which is <em>not</em>
persistent.<a class="changeset-link headerlink reference internal" href="#change-4869e0999f48ab540716a33356319094">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-15"><span class="target" id="change-e629f6ef18ff5d02c5e58f3269d83bb7"><strong>[orm] </strong></span>session.update() and session.delete() raise an error when updating
or deleting an instance that is already in the session with a
different identity.<a class="changeset-link headerlink reference internal" href="#change-e629f6ef18ff5d02c5e58f3269d83bb7">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-16"><span class="target" id="change-01dbce273a2adf5114b01dc0b145907c"><strong>[orm] </strong></span>The session checks more carefully when determining “object X already
in another session”; e.g. if you pickle a series of objects and
unpickle (i.e. as in a Pylons HTTP session or similar), they can go
into a new session without any conflict<a class="changeset-link headerlink reference internal" href="#change-01dbce273a2adf5114b01dc0b145907c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-17"><span class="target" id="change-70e068257ffe2a9509dde98014d7fc8f"><strong>[orm] </strong></span>merge() includes a keyword argument “dont_load=True”. setting this
flag will cause the merge operation to not load any data from the
database in response to incoming detached objects, and will accept
the incoming detached object as though it were already present in
that session. Use this to merge detached objects from external
caching systems into the session.<a class="changeset-link headerlink reference internal" href="#change-70e068257ffe2a9509dde98014d7fc8f">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-18"><span class="target" id="change-6ef45e3576f11236b5bc83eb98617664"><strong>[orm] </strong></span>Deferred column attributes no longer trigger a load operation when the
attribute is assigned to. In those cases, the newly assigned value
will be present in the flushes’ UPDATE statement unconditionally.<a class="changeset-link headerlink reference internal" href="#change-6ef45e3576f11236b5bc83eb98617664">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-19"><span class="target" id="change-91e4cc2655c18b9537f4d744bfdd2708"><strong>[orm] </strong></span>Fixed a truncation error when re-assigning a subset of a collection
(obj.relation = obj.relation[1:])<a class="changeset-link headerlink reference internal" href="#change-91e4cc2655c18b9537f4d744bfdd2708">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/834">#834</a></p>
</p>
</li>
<li><p id="change-0.4.1-20"><span class="target" id="change-41c6f4041a8bb7bdfbc47fec3d053013"><strong>[orm] </strong></span>De-cruftified backref configuration code, backrefs which step on
existing properties now raise an error<a class="changeset-link headerlink reference internal" href="#change-41c6f4041a8bb7bdfbc47fec3d053013">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/832">#832</a></p>
</p>
</li>
<li><p id="change-0.4.1-21"><span class="target" id="change-759a3aea37ad25edb343df437295e6e6"><strong>[orm] </strong></span>Improved behavior of add_property() etc., fixed involving
synonym/deferred.<a class="changeset-link headerlink reference internal" href="#change-759a3aea37ad25edb343df437295e6e6">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/831">#831</a></p>
</p>
</li>
<li><p id="change-0.4.1-22"><span class="target" id="change-5d9a9be98d135fcb8ef55e33ae16b4e9"><strong>[orm] </strong></span>Fixed clear_mappers() behavior to better clean up after itself.<a class="changeset-link headerlink reference internal" href="#change-5d9a9be98d135fcb8ef55e33ae16b4e9">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-23"><span class="target" id="change-c43e29a204caeb3c86ea12bedc74a885"><strong>[orm] </strong></span>Fix to “row switch” behavior, i.e. when an INSERT/DELETE is combined
into a single UPDATE; many-to-many relations on the parent object
update properly.<a class="changeset-link headerlink reference internal" href="#change-c43e29a204caeb3c86ea12bedc74a885">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/841">#841</a></p>
</p>
</li>
<li><p id="change-0.4.1-24"><span class="target" id="change-ccf7e204c172dae174612768df596949"><strong>[orm] </strong></span>Fixed __hash__ for association proxy- these collections are unhashable,
just like their mutable Python counterparts.<a class="changeset-link headerlink reference internal" href="#change-ccf7e204c172dae174612768df596949">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-25"><span class="target" id="change-2754c6abcf835f7d57e9369b9cfdcd6a"><strong>[orm] </strong></span>Added proxying of save_or_update, __contains__ and __iter__ methods for
scoped sessions.<a class="changeset-link headerlink reference internal" href="#change-2754c6abcf835f7d57e9369b9cfdcd6a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-26"><span class="target" id="change-94bbc737fc90680c013c33b8fd5c6177"><strong>[orm] </strong></span>fixed very hard-to-reproduce issue where by the FROM clause of Query
could get polluted by certain generative calls<a class="changeset-link headerlink reference internal" href="#change-94bbc737fc90680c013c33b8fd5c6177">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/852">#852</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.1-sql">
<h3>sql<a class="headerlink" href="#change-0.4.1-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.1-27"><span class="target" id="change-c4010d5d99cc7a8ff9d77a8cf6a8aef4"><strong>[sql] </strong></span>the “shortname” keyword parameter on bindparam() has been
deprecated.<a class="changeset-link headerlink reference internal" href="#change-c4010d5d99cc7a8ff9d77a8cf6a8aef4">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-28"><span class="target" id="change-cc475e4294cf5bc311cbfa7da8a7cc8f"><strong>[sql] </strong></span>Added contains operator (generates a “LIKE %<other>%” clause).<a class="changeset-link headerlink reference internal" href="#change-cc475e4294cf5bc311cbfa7da8a7cc8f">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-29"><span class="target" id="change-4d5450de721c9aeffc95905577b27182"><strong>[sql] </strong></span>anonymous column expressions are automatically labeled.
e.g. select([x* 5]) produces “SELECT x * 5 AS anon_1”.
This allows the labelname to be present in the cursor.description
which can then be appropriately matched to result-column processing
rules. (we can’t reliably use positional tracking for result-column
matches since text() expressions may represent multiple columns).<a class="changeset-link headerlink reference internal" href="#change-4d5450de721c9aeffc95905577b27182">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-30"><span class="target" id="change-5378ee3b3457f069b4aece9be3205155"><strong>[sql] </strong></span>operator overloading is now controlled by TypeEngine objects - the
one built-in operator overload so far is String types overloading
‘+’ to be the string concatenation operator.
User-defined types can also define their own operator overloading
by overriding the adapt_operator(self, op) method.<a class="changeset-link headerlink reference internal" href="#change-5378ee3b3457f069b4aece9be3205155">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-31"><span class="target" id="change-84a5f6328d01750340ded0b38bddf0b1"><strong>[sql] </strong></span>untyped bind parameters on the right side of a binary expression
will be assigned the type of the left side of the operation, to better
enable the appropriate bind parameter processing to take effect<a class="changeset-link headerlink reference internal" href="#change-84a5f6328d01750340ded0b38bddf0b1">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/819">#819</a></p>
</p>
</li>
<li><p id="change-0.4.1-32"><span class="target" id="change-1c04ab02a23376e994e8ae24241f0a56"><strong>[sql] </strong></span>Removed regular expression step from most statement compilations.
Also fixes<a class="changeset-link headerlink reference internal" href="#change-1c04ab02a23376e994e8ae24241f0a56">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/833">#833</a></p>
</p>
</li>
<li><p id="change-0.4.1-33"><span class="target" id="change-843aea1d01efb76d3683d2d7c05850a3"><strong>[sql] </strong></span>Fixed empty (zero column) sqlite inserts, allowing inserts on
autoincrementing single column tables.<a class="changeset-link headerlink reference internal" href="#change-843aea1d01efb76d3683d2d7c05850a3">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-34"><span class="target" id="change-b7662d8394714cbb6d9daa235d86c4b6"><strong>[sql] </strong></span>Fixed expression translation of text() clauses; this repairs various
ORM scenarios where literal text is used for SQL expressions<a class="changeset-link headerlink reference internal" href="#change-b7662d8394714cbb6d9daa235d86c4b6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-35"><span class="target" id="change-36a4d5696bd619c85b8b8b650728d842"><strong>[sql] </strong></span>Removed ClauseParameters object; compiled.params returns a regular
dictionary now, as well as result.last_inserted_params() /
last_updated_params().<a class="changeset-link headerlink reference internal" href="#change-36a4d5696bd619c85b8b8b650728d842">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-36"><span class="target" id="change-246ac6dc033a79f2373e3fc6a80fdfe8"><strong>[sql] </strong></span>Fixed INSERT statements w.r.t. primary key columns that have
SQL-expression based default generators on them; SQL expression
executes inline as normal but will not trigger a “postfetch” condition
for the column, for those DB’s who provide it via cursor.lastrowid<a class="changeset-link headerlink reference internal" href="#change-246ac6dc033a79f2373e3fc6a80fdfe8">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-37"><span class="target" id="change-4313d5275f28eb3f99349b58aad9a963"><strong>[sql] </strong></span>func. objects can be pickled/unpickled<a class="changeset-link headerlink reference internal" href="#change-4313d5275f28eb3f99349b58aad9a963">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/844">#844</a></p>
</p>
</li>
<li><p id="change-0.4.1-38"><span class="target" id="change-530c7500b6d6596c5e44ff1bcc3bce10"><strong>[sql] </strong></span>rewrote and simplified the system used to “target” columns across
selectable expressions. On the SQL side this is represented by the
“corresponding_column()” method. This method is used heavily by the ORM
to “adapt” elements of an expression to similar, aliased expressions,
as well as to target result set columns originally bound to a
table or selectable to an aliased, “corresponding” expression. The new
rewrite features completely consistent and accurate behavior.<a class="changeset-link headerlink reference internal" href="#change-530c7500b6d6596c5e44ff1bcc3bce10">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-39"><span class="target" id="change-9ce2e2e3ce7ee6bc38d6391ca49d1bc1"><strong>[sql] </strong></span>Added a field (“info”) for storing arbitrary data on schema items<a class="changeset-link headerlink reference internal" href="#change-9ce2e2e3ce7ee6bc38d6391ca49d1bc1">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/573">#573</a></p>
</p>
</li>
<li><p id="change-0.4.1-40"><span class="target" id="change-e82d8124e2cacd51fd60363bf86daeee"><strong>[sql] </strong></span>The “properties” collection on Connections has been renamed “info” to
match schema’s writable collections. Access is still available via
the “properties” name until 0.5.<a class="changeset-link headerlink reference internal" href="#change-e82d8124e2cacd51fd60363bf86daeee">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-41"><span class="target" id="change-6e152ccd5b3f9e3f7ee75b1efb1f7acd"><strong>[sql] </strong></span>fixed the close() method on Transaction when using strategy=’threadlocal’<a class="changeset-link headerlink reference internal" href="#change-6e152ccd5b3f9e3f7ee75b1efb1f7acd">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-42"><span class="target" id="change-74a921aec37d54b685b3772d6afe21c8"><strong>[sql] </strong></span>fix to compiled bind parameters to not mistakenly populate None<a class="changeset-link headerlink reference internal" href="#change-74a921aec37d54b685b3772d6afe21c8">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/853">#853</a></p>
</p>
</li>
<li><p id="change-0.4.1-43"><span class="target" id="change-d7e28424562953a96441f068c4371b86"><strong>[sql] </strong></span><Engine|Connection>._execute_clauseelement becomes a public method
Connectable.execute_clauseelement<a class="changeset-link headerlink reference internal" href="#change-d7e28424562953a96441f068c4371b86">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.1-misc">
<h3>misc<a class="headerlink" href="#change-0.4.1-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.1-44"><span class="target" id="change-87d6ffbdea8e609cece2a7580f1cbfd8"><strong>[dialects] </strong></span>Added experimental support for MaxDB (versions >= 7.6.03.007 only).<a class="changeset-link headerlink reference internal" href="#change-87d6ffbdea8e609cece2a7580f1cbfd8">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-45"><span class="target" id="change-914074ff8e5eed82fab96d0b8a6b71cc"><strong>[dialects] </strong></span>oracle will now reflect “DATE” as an OracleDateTime column, not
OracleDate<a class="changeset-link headerlink reference internal" href="#change-914074ff8e5eed82fab96d0b8a6b71cc">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-46"><span class="target" id="change-ea8c17afee12829dee303f9a3b5e9e93"><strong>[dialects] </strong></span>added awareness of schema name in oracle table_names() function,
fixes metadata.reflect(schema=’someschema’)<a class="changeset-link headerlink reference internal" href="#change-ea8c17afee12829dee303f9a3b5e9e93">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/847">#847</a></p>
</p>
</li>
<li><p id="change-0.4.1-47"><span class="target" id="change-bd6478eaa69e057034c6c987444e39a2"><strong>[dialects] </strong></span>MSSQL anonymous labels for selection of functions made deterministic<a class="changeset-link headerlink reference internal" href="#change-bd6478eaa69e057034c6c987444e39a2">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-48"><span class="target" id="change-538b138b4fd33c8a8761b3953aa54d96"><strong>[dialects] </strong></span>sqlite will reflect “DECIMAL” as a numeric column.<a class="changeset-link headerlink reference internal" href="#change-538b138b4fd33c8a8761b3953aa54d96">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-49"><span class="target" id="change-1b89ee1a9467ff024e61a062369696f0"><strong>[dialects] </strong></span>Made access dao detection more reliable<a class="changeset-link headerlink reference internal" href="#change-1b89ee1a9467ff024e61a062369696f0">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/828">#828</a></p>
</p>
</li>
<li><p id="change-0.4.1-50"><span class="target" id="change-b559a79228b5f4bf95f4c9c0621d82e4"><strong>[dialects] </strong></span>Renamed the Dialect attribute ‘preexecute_sequences’ to
‘preexecute_pk_sequences’. An attribute porxy is in place for
out-of-tree dialects using the old name.<a class="changeset-link headerlink reference internal" href="#change-b559a79228b5f4bf95f4c9c0621d82e4">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-51"><span class="target" id="change-cd70ea2a75cf0f0058a871da3c0a7381"><strong>[dialects] </strong></span>Added test coverage for unknown type reflection. Fixed sqlite/mysql
handling of type reflection for unknown types.<a class="changeset-link headerlink reference internal" href="#change-cd70ea2a75cf0f0058a871da3c0a7381">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-52"><span class="target" id="change-e8a0ddea13b9ebc8886d4b136d2b1d68"><strong>[dialects] </strong></span>Added REAL for mysql dialect (for folks exploiting the
REAL_AS_FLOAT sql mode).<a class="changeset-link headerlink reference internal" href="#change-e8a0ddea13b9ebc8886d4b136d2b1d68">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-53"><span class="target" id="change-0f02a6b3d522bc191f30d77738ee5134"><strong>[dialects] </strong></span>mysql Float, MSFloat and MSDouble constructed without arguments
now produce no-argument DDL, e.g.’FLOAT’.<a class="changeset-link headerlink reference internal" href="#change-0f02a6b3d522bc191f30d77738ee5134">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-54"><span class="target" id="change-e83c6ba370ca3384eed62f241d8b80d9"><strong>[misc] </strong></span>Removed unused util.hash().<a class="changeset-link headerlink reference internal" href="#change-e83c6ba370ca3384eed62f241d8b80d9">¶</a><p></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.4.0">
<h2>0.4.0<a class="headerlink" href="#change-0.4.0" title="Permalink to this headline">¶</a></h2>
Released: Wed Oct 17 2007<ul class="simple">
<li><p id="change-0.4.0-0"><span class="target" id="change-b4fc8b2d58a4d717e756adb83fde5498"></span>(see 0.4.0beta1 for the start of major changes against 0.3,
as well as <a class="reference external" href="http://www.sqlalchemy.org/trac/wiki/WhatsNewIn04">http://www.sqlalchemy.org/trac/wiki/WhatsNewIn04</a> )<a class="changeset-link headerlink reference internal" href="#change-b4fc8b2d58a4d717e756adb83fde5498">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-1"><span class="target" id="change-bcf3dff7b0aa6e5210dcc06d54677447"></span>Added initial Sybase support (mxODBC so far)<a class="changeset-link headerlink reference internal" href="#change-bcf3dff7b0aa6e5210dcc06d54677447">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/785">#785</a></p>
</p>
</li>
<li><p id="change-0.4.0-2"><span class="target" id="change-25fce3a42aa163243a076187861b48a8"></span>Added partial index support for PostgreSQL. Use the postgres_where keyword
on the Index.<a class="changeset-link headerlink reference internal" href="#change-25fce3a42aa163243a076187861b48a8">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-3"><span class="target" id="change-50353e4f1d87383f71322fa8c91dc8dc"></span>string-based query param parsing/config file parser understands
wider range of string values for booleans<a class="changeset-link headerlink reference internal" href="#change-50353e4f1d87383f71322fa8c91dc8dc">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/817">#817</a></p>
</p>
</li>
<li><p id="change-0.4.0-4"><span class="target" id="change-c14bc3996acddaff218f64dced993cbc"></span>backref remove object operation doesn’t fail if the other-side
collection doesn’t contain the item, supports noload collections<a class="changeset-link headerlink reference internal" href="#change-c14bc3996acddaff218f64dced993cbc">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/813">#813</a></p>
</p>
</li>
<li><p id="change-0.4.0-5"><span class="target" id="change-3fe165fcf8b210dd06e23fe29c90fdcf"></span>removed __len__ from “dynamic” collection as it would require issuing
a SQL “count()” operation, thus forcing all list evaluations to issue
redundant SQL<a class="changeset-link headerlink reference internal" href="#change-3fe165fcf8b210dd06e23fe29c90fdcf">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/818">#818</a></p>
</p>
</li>
<li><p id="change-0.4.0-6"><span class="target" id="change-fed60a94c48be9f1d4fbf64b773478a9"></span>inline optimizations added to locate_dirty() which can greatly speed up
repeated calls to flush(), as occurs with autoflush=True<a class="changeset-link headerlink reference internal" href="#change-fed60a94c48be9f1d4fbf64b773478a9">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/816">#816</a></p>
</p>
</li>
<li><p id="change-0.4.0-7"><span class="target" id="change-6931e3874f7028b6166fbaee26c13735"></span>The IdentifierPreprarer’s _requires_quotes test is now regex based. Any
out-of-tree dialects that provide custom sets of legal_characters or
illegal_initial_characters will need to move to regexes or override
_requires_quotes.<a class="changeset-link headerlink reference internal" href="#change-6931e3874f7028b6166fbaee26c13735">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-8"><span class="target" id="change-5a64dfccda02d75cc5a717a5d72f1d75"></span>Firebird has supports_sane_rowcount and supports_sane_multi_rowcount set
to False due to ticket #370 (right way).<a class="changeset-link headerlink reference internal" href="#change-5a64dfccda02d75cc5a717a5d72f1d75">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-9"><span class="target" id="change-a9896a5318c3109f7c89af2ad2c36bc9"></span><dl class="docutils">
<dt>Improvements and fixes on Firebird reflection:</dt>
<dd><ul class="first last">
<li>FBDialect now mimics OracleDialect, regarding case-sensitivity of TABLE and
COLUMN names (see ‘case_sensitive remotion’ topic on this current file).</li>
<li>FBDialect.table_names() doesn’t bring system tables (ticket:796).</li>
<li>FB now reflects Column’s nullable property correctly.</li>
</ul>
</dd>
</dl>
<a class="changeset-link headerlink reference internal" href="#change-a9896a5318c3109f7c89af2ad2c36bc9">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-10"><span class="target" id="change-7a9f394245eb8aa496bcd282b6cb9d91"></span>Fixed SQL compiler’s awareness of top-level column labels as used
in result-set processing; nested selects which contain the same column
names don’t affect the result or conflict with result-column metadata.<a class="changeset-link headerlink reference internal" href="#change-7a9f394245eb8aa496bcd282b6cb9d91">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-11"><span class="target" id="change-d558e9c84b1e5793e3c4a3c171f163af"></span>query.get() and related functions (like many-to-one lazyloading)
use compile-time-aliased bind parameter names, to prevent
name conflicts with bind parameters that already exist in the
mapped selectable.<a class="changeset-link headerlink reference internal" href="#change-d558e9c84b1e5793e3c4a3c171f163af">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-12"><span class="target" id="change-05e3bf9bc8a5fbc5cb566b518f8c3d52"></span>Fixed three- and multi-level select and deferred inheritance loading
(i.e. abc inheritance with no select_table).<a class="changeset-link headerlink reference internal" href="#change-05e3bf9bc8a5fbc5cb566b518f8c3d52">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/795">#795</a></p>
</p>
</li>
<li><p id="change-0.4.0-13"><span class="target" id="change-5d0fab06b154a736d16cc1f5f05124d6"></span>Ident passed to id_chooser in shard.py always a list.<a class="changeset-link headerlink reference internal" href="#change-5d0fab06b154a736d16cc1f5f05124d6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-14"><span class="target" id="change-900edd4aa3ce5b35e0379abe1f1aceec"></span>The no-arg ResultProxy._row_processor() is now the class attribute
<cite>_process_row</cite>.<a class="changeset-link headerlink reference internal" href="#change-900edd4aa3ce5b35e0379abe1f1aceec">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-15"><span class="target" id="change-a888d5a2b3097f6a24d949a8c8094ba0"></span>Added support for returning values from inserts and updates for
PostgreSQL 8.2+.<a class="changeset-link headerlink reference internal" href="#change-a888d5a2b3097f6a24d949a8c8094ba0">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/797">#797</a></p>
</p>
</li>
<li><p id="change-0.4.0-16"><span class="target" id="change-737ba18b8c4d08ef01910aa20772d16a"></span>PG reflection, upon seeing the default schema name being used explicitly
as the “schema” argument in a Table, will assume that this is the
user’s desired convention, and will explicitly set the “schema” argument
in foreign-key-related reflected tables, thus making them match only
with Table constructors that also use the explicit “schema” argument
(even though its the default schema).
In other words, SA assumes the user is being consistent in this usage.<a class="changeset-link headerlink reference internal" href="#change-737ba18b8c4d08ef01910aa20772d16a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-17"><span class="target" id="change-ebf15415b10e013bcf0d9a82f892a217"></span>fixed sqlite reflection of BOOL/BOOLEAN<a class="changeset-link headerlink reference internal" href="#change-ebf15415b10e013bcf0d9a82f892a217">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/808">#808</a></p>
</p>
</li>
<li><p id="change-0.4.0-18"><span class="target" id="change-f1c6c0df2c06bf883b72c36b13e92e75"></span>Added support for UPDATE with LIMIT on mysql.<a class="changeset-link headerlink reference internal" href="#change-f1c6c0df2c06bf883b72c36b13e92e75">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-19"><span class="target" id="change-efe5107a0d07dac76612b27de5b70784"></span>null foreign key on a m2o doesn’t trigger a lazyload<a class="changeset-link headerlink reference internal" href="#change-efe5107a0d07dac76612b27de5b70784">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/803">#803</a></p>
</p>
</li>
<li><p id="change-0.4.0-20"><span class="target" id="change-528c46ca19ca4d864d2acad507616b4c"></span>oracle does not implicitly convert to unicode for non-typed result
sets (i.e. when no TypeEngine/String/Unicode type is even being used;
previously it was detecting DBAPI types and converting regardless).
should fix<a class="changeset-link headerlink reference internal" href="#change-528c46ca19ca4d864d2acad507616b4c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/800">#800</a></p>
</p>
</li>
<li><p id="change-0.4.0-21"><span class="target" id="change-77dbca629719cb4cb77e1ddf562e7d9a"></span>fix to anonymous label generation of long table/column names<a class="changeset-link headerlink reference internal" href="#change-77dbca629719cb4cb77e1ddf562e7d9a">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/806">#806</a></p>
</p>
</li>
<li><p id="change-0.4.0-22"><span class="target" id="change-220b2721e3178a042f4628ddf67103d4"></span>Firebird dialect now uses SingletonThreadPool as poolclass.<a class="changeset-link headerlink reference internal" href="#change-220b2721e3178a042f4628ddf67103d4">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-23"><span class="target" id="change-a9a8ada8cf6f9e910f573eaa9489415b"></span>Firebird now uses dialect.preparer to format sequences names<a class="changeset-link headerlink reference internal" href="#change-a9a8ada8cf6f9e910f573eaa9489415b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-24"><span class="target" id="change-3a7b59bf8fe3093a054925308b7f4799"></span>Fixed breakage with postgres and multiple two-phase transactions. Two-phase
commits and rollbacks didn’t automatically end up with a new transaction
as the usual dbapi commits/rollbacks do.<a class="changeset-link headerlink reference internal" href="#change-3a7b59bf8fe3093a054925308b7f4799">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/810">#810</a></p>
</p>
</li>
<li><p id="change-0.4.0-25"><span class="target" id="change-dcfcc254bf2beebefed7c884d53fdbbc"></span>Added an option to the _ScopedExt mapper extension to not automatically
save new objects to session on object initialization.<a class="changeset-link headerlink reference internal" href="#change-dcfcc254bf2beebefed7c884d53fdbbc">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-26"><span class="target" id="change-5c1e6eaf781c2a9ecb4b8d604b4c12d7"></span>fixed Oracle non-ansi join syntax<a class="changeset-link headerlink reference internal" href="#change-5c1e6eaf781c2a9ecb4b8d604b4c12d7">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-27"><span class="target" id="change-2d010cff627c0048b473b58acfd31fc3"></span>PickleType and Interval types (on db not supporting it natively) are now
slightly faster.<a class="changeset-link headerlink reference internal" href="#change-2d010cff627c0048b473b58acfd31fc3">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-28"><span class="target" id="change-1aa7ff5a74776a60681a3dc879294a54"></span>Added Float and Time types to Firebird (FBFloat and FBTime). Fixed
BLOB SUB_TYPE for TEXT and Binary types.<a class="changeset-link headerlink reference internal" href="#change-1aa7ff5a74776a60681a3dc879294a54">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-29"><span class="target" id="change-90371ac2603990896e47a63773b4be24"></span>Changed the API for the in_ operator. in_() now accepts a single argument
that is a sequence of values or a selectable. The old API of passing in
values as varargs still works but is deprecated.<a class="changeset-link headerlink reference internal" href="#change-90371ac2603990896e47a63773b4be24">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.0beta6">
<h2>0.4.0beta6<a class="headerlink" href="#change-0.4.0beta6" title="Permalink to this headline">¶</a></h2>
Released: Thu Sep 27 2007<ul class="simple">
<li><p id="change-0.4.0beta6-0"><span class="target" id="change-1df819a6cf9fd245a16b40d9c188c60f"></span>The Session identity map is now <em>weak referencing</em> by default, use
weak_identity_map=False to use a regular dict. The weak dict we are using
is customized to detect instances which are “dirty” and maintain a
temporary strong reference to those instances until changes are flushed.<a class="changeset-link headerlink reference internal" href="#change-1df819a6cf9fd245a16b40d9c188c60f">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta6-1"><span class="target" id="change-1d1c0f14569b491f750569e9ee7529b3"></span>Mapper compilation has been reorganized such that most compilation occurs
upon mapper construction. This allows us to have fewer calls to
mapper.compile() and also to allow class-based properties to force a
compilation (i.e. User.addresses == 7 will compile all mappers; this is). The only caveat here is that an inheriting mapper now
looks for its inherited mapper upon construction; so mappers within
inheritance relationships need to be constructed in inheritance order
(which should be the normal case anyway).<a class="changeset-link headerlink reference internal" href="#change-1d1c0f14569b491f750569e9ee7529b3">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/758">#758</a></p>
</p>
</li>
<li><p id="change-0.4.0beta6-2"><span class="target" id="change-b7cf4f4d67686ec87fdba236e7d68f25"></span>added “FETCH” to the keywords detected by Postgres to indicate a
result-row holding statement (i.e. in addition to “SELECT”).<a class="changeset-link headerlink reference internal" href="#change-b7cf4f4d67686ec87fdba236e7d68f25">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta6-3"><span class="target" id="change-9547226b45b928b5e944366ec8a0ab93"></span>Added full list of SQLite reserved keywords so that they get escaped
properly.<a class="changeset-link headerlink reference internal" href="#change-9547226b45b928b5e944366ec8a0ab93">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta6-4"><span class="target" id="change-f4cba78c179582e4bb530a36c5e55152"></span>Tightened up the relationship between the Query’s generation of “eager
load” aliases, and Query.instances() which actually grabs the eagerly
loaded rows. If the aliases were not specifically generated for that
statement by EagerLoader, the EagerLoader will not take effect when the
rows are fetched. This prevents columns from being grabbed accidentally
as being part of an eager load when they were not meant for such, which
can happen with textual SQL as well as some inheritance situations. It’s
particularly important since the “anonymous aliasing” of columns uses
simple integer counts now to generate labels.<a class="changeset-link headerlink reference internal" href="#change-f4cba78c179582e4bb530a36c5e55152">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta6-5"><span class="target" id="change-066c676b077070c937c1d23f53d45e3a"></span>Removed “parameters” argument from clauseelement.compile(), replaced with
“column_keys”. The parameters sent to execute() only interact with the
insert/update statement compilation process in terms of the column names
present but not the values for those columns. Produces more consistent
execute/executemany behavior, simplifies things a bit internally.<a class="changeset-link headerlink reference internal" href="#change-066c676b077070c937c1d23f53d45e3a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta6-6"><span class="target" id="change-a57972bf47c37142d2f8450ba8343433"></span>Added ‘comparator’ keyword argument to PickleType. By default, “mutable”
PickleType does a “deep compare” of objects using their dumps()
representation. But this doesn’t work for dictionaries. Pickled objects
which provide an adequate __eq__() implementation can be set up with
“PickleType(comparator=operator.eq)”<a class="changeset-link headerlink reference internal" href="#change-a57972bf47c37142d2f8450ba8343433">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/560">#560</a></p>
</p>
</li>
<li><p id="change-0.4.0beta6-7"><span class="target" id="change-86b7e1bcfc257a95dd46f409ad3ed7d4"></span>Added session.is_modified(obj) method; performs the same “history”
comparison operation as occurs within a flush operation; setting
include_collections=False gives the same result as is used when the flush
determines whether or not to issue an UPDATE for the instance’s row.<a class="changeset-link headerlink reference internal" href="#change-86b7e1bcfc257a95dd46f409ad3ed7d4">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta6-8"><span class="target" id="change-3353f6e734c51856789b2c7c67e6ba70"></span>Added “schema” argument to Sequence; use this with Postgres /Oracle when
the sequence is located in an alternate schema. Implements part of, should fix.<a class="changeset-link headerlink reference internal" href="#change-3353f6e734c51856789b2c7c67e6ba70">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/584">#584</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/761">#761</a></p>
</p>
</li>
<li><p id="change-0.4.0beta6-9"><span class="target" id="change-1b5a20829be72cd57e395d53c965f562"></span>Fixed reflection of the empty string for mysql enums.<a class="changeset-link headerlink reference internal" href="#change-1b5a20829be72cd57e395d53c965f562">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta6-10"><span class="target" id="change-d3dde7998c563eec40c710cbada1d8af"></span>Changed MySQL dialect to use the older LIMIT <offset>, <limit> syntax
instead of LIMIT <l> OFFSET <o> for folks using 3.23.<a class="changeset-link headerlink reference internal" href="#change-d3dde7998c563eec40c710cbada1d8af">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/794">#794</a></p>
</p>
</li>
<li><p id="change-0.4.0beta6-11"><span class="target" id="change-9d4fe872e8b59bfeefb5183ab7684f9a"></span>Added ‘passive_deletes=”all”’ flag to relation(), disables all nulling-out
of foreign key attributes during a flush where the parent object is
deleted.<a class="changeset-link headerlink reference internal" href="#change-9d4fe872e8b59bfeefb5183ab7684f9a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta6-12"><span class="target" id="change-563c3cbf44802188d12788163d985e16"></span>Column defaults and onupdates, executing inline, will add parenthesis for
subqueries and other parenthesis-requiring expressions<a class="changeset-link headerlink reference internal" href="#change-563c3cbf44802188d12788163d985e16">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta6-13"><span class="target" id="change-12d3f310eb9663bf0ecfedbe0a47fbad"></span>The behavior of String/Unicode types regarding that they auto-convert to
TEXT/CLOB when no length is present now occurs <em>only</em> for an exact type of
String or Unicode with no arguments. If you use VARCHAR or NCHAR
(subclasses of String/Unicode) with no length, they will be interpreted by
the dialect as VARCHAR/NCHAR; no “magic” conversion happens there. This
is less surprising behavior and in particular this helps Oracle keep
string-based bind parameters as VARCHARs and not CLOBs.<a class="changeset-link headerlink reference internal" href="#change-12d3f310eb9663bf0ecfedbe0a47fbad">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/793">#793</a></p>
</p>
</li>
<li><p id="change-0.4.0beta6-14"><span class="target" id="change-f455b93bc401877daa0ba14fb70ec408"></span>Fixes to ShardedSession to work with deferred columns.<a class="changeset-link headerlink reference internal" href="#change-f455b93bc401877daa0ba14fb70ec408">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/771">#771</a></p>
</p>
</li>
<li><p id="change-0.4.0beta6-15"><span class="target" id="change-955f25fb13ad169f392d6f1a17e804ac"></span>User-defined shard_chooser() function must accept “clause=None” argument;
this is the ClauseElement passed to session.execute(statement) and can be
used to determine correct shard id (since execute() doesn’t take an
instance.)<a class="changeset-link headerlink reference internal" href="#change-955f25fb13ad169f392d6f1a17e804ac">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta6-16"><span class="target" id="change-e2bee4b5e6c30d433fb8a7e4ae81663a"></span>Adjusted operator precedence of NOT to match ‘==’ and others, so that
~(x <operator> y) produces NOT (x <op> y), which is better compatible
with older MySQL versions.. This doesn’t apply to “~(x==y)”
as it does in 0.3 since ~(x==y) compiles to “x != y”, but still applies
to operators like BETWEEN.<a class="changeset-link headerlink reference internal" href="#change-e2bee4b5e6c30d433fb8a7e4ae81663a">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/764">#764</a></p>
</p>
</li>
<li><p id="change-0.4.0beta6-17"><span class="target" id="change-72a7f7aec701fc5fbf615366585da0c8"></span>Other tickets:,,.<a class="changeset-link headerlink reference internal" href="#change-72a7f7aec701fc5fbf615366585da0c8">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/757">#757</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/768">#768</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/779">#779</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/728">#728</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.0beta5">
<h2>0.4.0beta5<a class="headerlink" href="#change-0.4.0beta5" title="Permalink to this headline">¶</a></h2>
no release date<ul class="simple">
<li><p id="change-0.4.0beta5-0"><span class="target" id="change-8d770fefd20726d046539230358cf916"></span>Connection pool fixes; the better performance of beta4 remains but fixes
“connection overflow” and other bugs which were present (like).<a class="changeset-link headerlink reference internal" href="#change-8d770fefd20726d046539230358cf916">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/754">#754</a></p>
</p>
</li>
<li><p id="change-0.4.0beta5-1"><span class="target" id="change-e4680818ac93f4cde5adbfd53ec55dce"></span>Fixed bugs in determining proper sync clauses from custom inherit
conditions.<a class="changeset-link headerlink reference internal" href="#change-e4680818ac93f4cde5adbfd53ec55dce">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/769">#769</a></p>
</p>
</li>
<li><p id="change-0.4.0beta5-2"><span class="target" id="change-2c611a783379e4c4bbf0acadbc498ce5"></span>Extended ‘engine_from_config’ coercion for QueuePool size / overflow.<a class="changeset-link headerlink reference internal" href="#change-2c611a783379e4c4bbf0acadbc498ce5">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/763">#763</a></p>
</p>
</li>
<li><p id="change-0.4.0beta5-3"><span class="target" id="change-a02fe61d853e712245ea2fa9e3cf8182"></span>mysql views can be reflected again.<a class="changeset-link headerlink reference internal" href="#change-a02fe61d853e712245ea2fa9e3cf8182">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/748">#748</a></p>
</p>
</li>
<li><p id="change-0.4.0beta5-4"><span class="target" id="change-43e8bb9fe2e39b744b2a496fb3f5ac6f"></span>AssociationProxy can now take custom getters and setters.<a class="changeset-link headerlink reference internal" href="#change-43e8bb9fe2e39b744b2a496fb3f5ac6f">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta5-5"><span class="target" id="change-80a35e2d5a32af8ce1f16c72e2776cc9"></span>Fixed malfunctioning BETWEEN in orm queries.<a class="changeset-link headerlink reference internal" href="#change-80a35e2d5a32af8ce1f16c72e2776cc9">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta5-6"><span class="target" id="change-99c2f326bb6523f16579523728bf307c"></span>Fixed OrderedProperties pickling<a class="changeset-link headerlink reference internal" href="#change-99c2f326bb6523f16579523728bf307c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/762">#762</a></p>
</p>
</li>
<li><p id="change-0.4.0beta5-7"><span class="target" id="change-3a2a0bf70aa28afcbafdd2992791f31d"></span>SQL-expression defaults and sequences now execute “inline” for all
non-primary key columns during an INSERT or UPDATE, and for all columns
during an executemany()-style call. inline=True flag on any insert/update
statement also forces the same behavior with a single execute().
result.postfetch_cols() is a collection of columns for which the previous
single insert or update statement contained a SQL-side default expression.<a class="changeset-link headerlink reference internal" href="#change-3a2a0bf70aa28afcbafdd2992791f31d">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta5-8"><span class="target" id="change-ffca3b05b1018517a278afe82229a29c"></span>Fixed PG executemany() behavior.<a class="changeset-link headerlink reference internal" href="#change-ffca3b05b1018517a278afe82229a29c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/759">#759</a></p>
</p>
</li>
<li><p id="change-0.4.0beta5-9"><span class="target" id="change-3a401edfbc7ebb4442cd5e73acb6d51e"></span>postgres reflects tables with autoincrement=False for primary key columns
which have no defaults.<a class="changeset-link headerlink reference internal" href="#change-3a401edfbc7ebb4442cd5e73acb6d51e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta5-10"><span class="target" id="change-ba060cbd953a2ef43be8d18f2fd83983"></span>postgres no longer wraps executemany() with individual execute() calls,
instead favoring performance. “rowcount”/”concurrency” checks with
deleted items (which use executemany) are disabled with PG since psycopg2
does not report proper rowcount for executemany().<a class="changeset-link headerlink reference internal" href="#change-ba060cbd953a2ef43be8d18f2fd83983">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta5-11"><span class="target" id="change-45d7d861a3365452e7c1d9a6ec39b83c"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-45d7d861a3365452e7c1d9a6ec39b83c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/742">#742</a></p>
</p>
</li>
<li><p id="change-0.4.0beta5-12"><span class="target" id="change-45d7d861a3365452e7c1d9a6ec39b83c"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-45d7d861a3365452e7c1d9a6ec39b83c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/748">#748</a></p>
</p>
</li>
<li><p id="change-0.4.0beta5-13"><span class="target" id="change-45d7d861a3365452e7c1d9a6ec39b83c"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-45d7d861a3365452e7c1d9a6ec39b83c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/760">#760</a></p>
</p>
</li>
<li><p id="change-0.4.0beta5-14"><span class="target" id="change-45d7d861a3365452e7c1d9a6ec39b83c"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-45d7d861a3365452e7c1d9a6ec39b83c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/762">#762</a></p>
</p>
</li>
<li><p id="change-0.4.0beta5-15"><span class="target" id="change-45d7d861a3365452e7c1d9a6ec39b83c"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-45d7d861a3365452e7c1d9a6ec39b83c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/763">#763</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.0beta4">
<h2>0.4.0beta4<a class="headerlink" href="#change-0.4.0beta4" title="Permalink to this headline">¶</a></h2>
Released: Wed Aug 22 2007<ul class="simple">
<li><p id="change-0.4.0beta4-0"><span class="target" id="change-f4d29dc7b02b99ed3260ef11c8fe9840"></span>Tidied up what ends up in your namespace when you ‘from sqlalchemy import *’:<a class="changeset-link headerlink reference internal" href="#change-f4d29dc7b02b99ed3260ef11c8fe9840">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-1"><span class="target" id="change-6890b669137922b1f67f9c81c9e393cd"></span>‘table’ and ‘column’ are no longer imported. They remain available by
direct reference (as in ‘sql.table’ and ‘sql.column’) or a glob import
from the sql package. It was too easy to accidentally use a
sql.expressions.table instead of schema.Table when just starting out
with SQLAlchemy, likewise column.<a class="changeset-link headerlink reference internal" href="#change-6890b669137922b1f67f9c81c9e393cd">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-2"><span class="target" id="change-2663410f9071b570a253c86fb4d09031"></span>Internal-ish classes like ClauseElement, FromClause, NullTypeEngine,
etc., are also no longer imported into your namespace<a class="changeset-link headerlink reference internal" href="#change-2663410f9071b570a253c86fb4d09031">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-3"><span class="target" id="change-487de14a19636219ee9867528df4aee5"></span>The ‘Smallinteger’ compatibility name (small i!) is no longer imported,
but remains in schema.py for now. SmallInteger (big I!) is still
imported.<a class="changeset-link headerlink reference internal" href="#change-487de14a19636219ee9867528df4aee5">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-4"><span class="target" id="change-8b98efdb7b0519850778b7118b3c2e6d"></span>The connection pool uses a “threadlocal” strategy internally to return
the same connection already bound to a thread, for “contextual” connections;
these are the connections used when you do a “connectionless” execution
like insert().execute(). This is like a “partial” version of the
“threadlocal” engine strategy but without the thread-local transaction part
of it. We’re hoping it reduces connection pool overhead as well as
database usage. However, if it proves to impact stability in a negative way,
we’ll roll it right back.<a class="changeset-link headerlink reference internal" href="#change-8b98efdb7b0519850778b7118b3c2e6d">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-5"><span class="target" id="change-acf296f37f99428d8f44ec69e3890aa0"></span>Fix to bind param processing such that “False” values (like blank strings)
still get processed/encoded.<a class="changeset-link headerlink reference internal" href="#change-acf296f37f99428d8f44ec69e3890aa0">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-6"><span class="target" id="change-401edf6c4209442b8a393d710989444a"></span>Fix to select() “generative” behavior, such that calling column(),
select_from(), correlate(), and with_prefix() does not modify the
original select object<a class="changeset-link headerlink reference internal" href="#change-401edf6c4209442b8a393d710989444a">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/752">#752</a></p>
</p>
</li>
<li><p id="change-0.4.0beta4-7"><span class="target" id="change-954a4eace190252f4ee50417a801d00c"></span>Added a “legacy” adapter to types, such that user-defined TypeEngine
and TypeDecorator classes which define convert_bind_param() and/or
convert_result_value() will continue to function. Also supports
calling the super() version of those methods.<a class="changeset-link headerlink reference internal" href="#change-954a4eace190252f4ee50417a801d00c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-8"><span class="target" id="change-044df9e23478cf328cff40782234c4f6"></span>Added session.prune(), trims away instances cached in a session that
are no longer referenced elsewhere. (A utility for strong-ref
identity maps).<a class="changeset-link headerlink reference internal" href="#change-044df9e23478cf328cff40782234c4f6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-9"><span class="target" id="change-8d0b91ca4fcfc0ad6d3b9cd553567fba"></span>Added close() method to Transaction. Closes out a transaction using
rollback if it’s the outermost transaction, otherwise just ends
without affecting the outer transaction.<a class="changeset-link headerlink reference internal" href="#change-8d0b91ca4fcfc0ad6d3b9cd553567fba">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-10"><span class="target" id="change-dfe299aa8afc78c5d63d67f689f3815a"></span>Transactional and non-transactional Session integrates better with
bound connection; a close() will ensure that connection
transactional state is the same as that which existed on it before
being bound to the Session.<a class="changeset-link headerlink reference internal" href="#change-dfe299aa8afc78c5d63d67f689f3815a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-11"><span class="target" id="change-dc59c0230dc589d9da18567e46119d37"></span>Modified SQL operator functions to be module-level operators,
allowing SQL expressions to be pickleable.<a class="changeset-link headerlink reference internal" href="#change-dc59c0230dc589d9da18567e46119d37">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/735">#735</a></p>
</p>
</li>
<li><p id="change-0.4.0beta4-12"><span class="target" id="change-91eb02a84f178101962db7b783aa809a"></span>Small adjustment to mapper class.__init__ to allow for Py2.6
object.__init__() behavior.<a class="changeset-link headerlink reference internal" href="#change-91eb02a84f178101962db7b783aa809a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-13"><span class="target" id="change-ff553271888137520292109b17a04720"></span>Fixed ‘prefix’ argument for select()<a class="changeset-link headerlink reference internal" href="#change-ff553271888137520292109b17a04720">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-14"><span class="target" id="change-e4222fd4e054c51dc51cbb0643020566"></span>Connection.begin() no longer accepts nested=True, this logic is now
all in begin_nested().<a class="changeset-link headerlink reference internal" href="#change-e4222fd4e054c51dc51cbb0643020566">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-15"><span class="target" id="change-678e4addb4b749e32601ce1f3fa4f806"></span>Fixes to new “dynamic” relation loader involving cascades<a class="changeset-link headerlink reference internal" href="#change-678e4addb4b749e32601ce1f3fa4f806">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-16"><span class="target" id="change-4af6f88998dc3d47b1e2144c8709f9cc"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-4af6f88998dc3d47b1e2144c8709f9cc">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/735">#735</a></p>
</p>
</li>
<li><p id="change-0.4.0beta4-17"><span class="target" id="change-4af6f88998dc3d47b1e2144c8709f9cc"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-4af6f88998dc3d47b1e2144c8709f9cc">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/752">#752</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.0beta3">
<h2>0.4.0beta3<a class="headerlink" href="#change-0.4.0beta3" title="Permalink to this headline">¶</a></h2>
Released: Thu Aug 16 2007<ul class="simple">
<li><p id="change-0.4.0beta3-0"><span class="target" id="change-f5cf19f3f7be3f62710b12ab0c1a7f21"></span>SQL types optimization:<a class="changeset-link headerlink reference internal" href="#change-f5cf19f3f7be3f62710b12ab0c1a7f21">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta3-1"><span class="target" id="change-75d0b6d4c9572877034c53d512674299"></span>New performance tests show a combined mass-insert/mass-select test as
having 68% fewer function calls than the same test run against 0.3.<a class="changeset-link headerlink reference internal" href="#change-75d0b6d4c9572877034c53d512674299">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta3-2"><span class="target" id="change-b75224a719e77f997a148bc85a071410"></span>General performance improvement of result set iteration is around 10-20%.<a class="changeset-link headerlink reference internal" href="#change-b75224a719e77f997a148bc85a071410">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta3-3"><span class="target" id="change-ef940138c452b9816295b5d82d66f548"></span>In types.AbstractType, convert_bind_param() and convert_result_value()
have migrated to callable-returning bind_processor() and
result_processor() methods. If no callable is returned, no pre/post
processing function is called.<a class="changeset-link headerlink reference internal" href="#change-ef940138c452b9816295b5d82d66f548">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta3-4"><span class="target" id="change-c35fd87db1a5b5f45a1bf543d34cd61b"></span>Hooks added throughout base/sql/defaults to optimize the calling of bind
aram/result processors so that method call overhead is minimized.<a class="changeset-link headerlink reference internal" href="#change-c35fd87db1a5b5f45a1bf543d34cd61b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta3-5"><span class="target" id="change-c8f92244fa634dc13e7327afd269b6b4"></span>Support added for executemany() scenarios such that unneeded “last row id”
logic doesn’t kick in, parameters aren’t excessively traversed.<a class="changeset-link headerlink reference internal" href="#change-c8f92244fa634dc13e7327afd269b6b4">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta3-6"><span class="target" id="change-17bd7748986ad2bd56cfce9a8078756b"></span>Added ‘inherit_foreign_keys’ arg to mapper().<a class="changeset-link headerlink reference internal" href="#change-17bd7748986ad2bd56cfce9a8078756b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta3-7"><span class="target" id="change-dba458ce8601c7fccb26c149512fbe0d"></span>Added support for string date passthrough in sqlite.<a class="changeset-link headerlink reference internal" href="#change-dba458ce8601c7fccb26c149512fbe0d">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta3-8"><span class="target" id="change-54e4755a0af97b6ee1bd86616e80216d"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-54e4755a0af97b6ee1bd86616e80216d">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/738">#738</a></p>
</p>
</li>
<li><p id="change-0.4.0beta3-9"><span class="target" id="change-54e4755a0af97b6ee1bd86616e80216d"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-54e4755a0af97b6ee1bd86616e80216d">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/739">#739</a></p>
</p>
</li>
<li><p id="change-0.4.0beta3-10"><span class="target" id="change-54e4755a0af97b6ee1bd86616e80216d"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-54e4755a0af97b6ee1bd86616e80216d">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/743">#743</a></p>
</p>
</li>
<li><p id="change-0.4.0beta3-11"><span class="target" id="change-54e4755a0af97b6ee1bd86616e80216d"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-54e4755a0af97b6ee1bd86616e80216d">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/744">#744</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.0beta2">
<h2>0.4.0beta2<a class="headerlink" href="#change-0.4.0beta2" title="Permalink to this headline">¶</a></h2>
Released: Tue Aug 14 2007<div class="section" id="change-0.4.0beta2-oracle">
<h3>oracle<a class="headerlink" href="#change-0.4.0beta2-oracle" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.0beta2-0"><span class="target" id="change-27a03f85e379bb466ed82ab2bae62c14"><strong>[oracle] [improvements.] </strong></span>Auto-commit after LOAD DATA INFILE for mysql.<a class="changeset-link headerlink reference internal" href="#change-27a03f85e379bb466ed82ab2bae62c14">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta2-1"><span class="target" id="change-2bfda89d7a3397e856da817c3ebe21ef"><strong>[oracle] [improvements.] </strong></span>A rudimental SessionExtension class has been added, allowing user-defined
functionality to take place at flush(), commit(), and rollback() boundaries.<a class="changeset-link headerlink reference internal" href="#change-2bfda89d7a3397e856da817c3ebe21ef">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta2-2"><span class="target" id="change-eead32c9c30ad838d3dd8335b30c3cc5"><strong>[oracle] [improvements.] </strong></span>Added engine_from_config() function for helping to create_engine() from an
.ini style config.<a class="changeset-link headerlink reference internal" href="#change-eead32c9c30ad838d3dd8335b30c3cc5">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta2-3"><span class="target" id="change-b0bb14e6d31421d0f6c217f9639275b0"><strong>[oracle] [improvements.] </strong></span>base_mapper() becomes a plain attribute.<a class="changeset-link headerlink reference internal" href="#change-b0bb14e6d31421d0f6c217f9639275b0">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta2-4"><span class="target" id="change-15ded3b2513f94c39817cee6f52b785b"><strong>[oracle] [improvements.] </strong></span>session.execute() and scalar() can search for a Table with which to bind from
using the given ClauseElement.<a class="changeset-link headerlink reference internal" href="#change-15ded3b2513f94c39817cee6f52b785b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta2-5"><span class="target" id="change-25c6fb3d43b7dc1f4e87ea3b94d97e32"><strong>[oracle] [improvements.] </strong></span>Session automatically extrapolates tables from mappers with binds, also uses
base_mapper so that inheritance hierarchies bind automatically.<a class="changeset-link headerlink reference internal" href="#change-25c6fb3d43b7dc1f4e87ea3b94d97e32">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta2-6"><span class="target" id="change-c8b69249d8076c0cd3f9d71973a0c16f"><strong>[oracle] [improvements.] </strong></span>Moved ClauseVisitor traversal back to inlined non-recursive.<a class="changeset-link headerlink reference internal" href="#change-c8b69249d8076c0cd3f9d71973a0c16f">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.0beta2-misc">
<h3>misc<a class="headerlink" href="#change-0.4.0beta2-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.0beta2-7"><span class="target" id="change-7f72c630ecf1937ef9e22932a61de352"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-7f72c630ecf1937ef9e22932a61de352">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/730">#730</a></p>
</p>
</li>
<li><p id="change-0.4.0beta2-8"><span class="target" id="change-7f72c630ecf1937ef9e22932a61de352"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-7f72c630ecf1937ef9e22932a61de352">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/732">#732</a></p>
</p>
</li>
<li><p id="change-0.4.0beta2-9"><span class="target" id="change-7f72c630ecf1937ef9e22932a61de352"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-7f72c630ecf1937ef9e22932a61de352">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/733">#733</a></p>
</p>
</li>
<li><p id="change-0.4.0beta2-10"><span class="target" id="change-7f72c630ecf1937ef9e22932a61de352"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-7f72c630ecf1937ef9e22932a61de352">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/734">#734</a></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.4.0beta1">
<h2>0.4.0beta1<a class="headerlink" href="#change-0.4.0beta1" title="Permalink to this headline">¶</a></h2>
Released: Sun Aug 12 2007<div class="section" id="change-0.4.0beta1-orm">
<h3>orm<a class="headerlink" href="#change-0.4.0beta1-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.0beta1-0"><span class="target" id="change-73240e5294e8bb13d8b6f22802a98b27"><strong>[orm] </strong></span>Speed! Along with recent speedups to ResultProxy, total number of function
calls significantly reduced for large loads.<a class="changeset-link headerlink reference internal" href="#change-73240e5294e8bb13d8b6f22802a98b27">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-1"><span class="target" id="change-d6d237dcaf791d97938c5d2cb8ebcff0"><strong>[orm] </strong></span>test/perf/masseagerload.py reports 0.4 as having the fewest number of
function calls across all SA versions (0.1, 0.2, and 0.3).<a class="changeset-link headerlink reference internal" href="#change-d6d237dcaf791d97938c5d2cb8ebcff0">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-2"><span class="target" id="change-4a456a11201666fadfcbbfcb69bd3d5e"><strong>[orm] </strong></span>New collection_class api and implementation. Collections are
now instrumented via decorations rather than proxying. You can now have
collections that manage their own membership, and your class instance will
be directly exposed on the relation property. The changes are transparent
for most users.<a class="changeset-link headerlink reference internal" href="#change-4a456a11201666fadfcbbfcb69bd3d5e">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/213">#213</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-3"><span class="target" id="change-ac7854a38e375ff1341e8a1b2a022235"><strong>[orm] </strong></span>InstrumentedList (as it was) is removed, and relation properties no
longer have ‘clear()’, ‘.data’, or any other added methods beyond those
provided by the collection type. You are free, of course, to add them to
a custom class.<a class="changeset-link headerlink reference internal" href="#change-ac7854a38e375ff1341e8a1b2a022235">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-4"><span class="target" id="change-bbebf85d0077a44cbe2ac84913a07d0b"><strong>[orm] </strong></span>__setitem__-like assignments now fire remove events for the existing
value, if any.<a class="changeset-link headerlink reference internal" href="#change-bbebf85d0077a44cbe2ac84913a07d0b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-5"><span class="target" id="change-1a0c1db9fbcb17a7c2ba890ea4d9bdc1"><strong>[orm] </strong></span>dict-likes used as collection classes no longer need to change __iter__
semantics- itervalues() is used by default instead. This is a backwards
incompatible change.<a class="changeset-link headerlink reference internal" href="#change-1a0c1db9fbcb17a7c2ba890ea4d9bdc1">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-6"><span class="target" id="change-12084d2d1417fb4bf746fd0665112f5f"><strong>[orm] </strong></span>Subclassing dict for a mapped collection is no longer needed in most
cases. orm.collections provides canned implementations that key objects
by a specified column or a custom function of your choice.<a class="changeset-link headerlink reference internal" href="#change-12084d2d1417fb4bf746fd0665112f5f">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-7"><span class="target" id="change-4db3f11e48432727edaead94e272e84a"><strong>[orm] </strong></span>Collection assignment now requires a compatible type- assigning None to
clear a collection or assigning a list to a dict collection will now
raise an argument error.<a class="changeset-link headerlink reference internal" href="#change-4db3f11e48432727edaead94e272e84a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-8"><span class="target" id="change-4431e2ff75387079894f22115c2f811e"><strong>[orm] </strong></span>AttributeExtension moved to interfaces, and .delete is now .remove The
event method signature has also been swapped around.<a class="changeset-link headerlink reference internal" href="#change-4431e2ff75387079894f22115c2f811e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-9"><span class="target" id="change-e23a2954c9bd9fb1bde4aeceefe5d541"><strong>[orm] </strong></span>Major overhaul for Query:<a class="changeset-link headerlink reference internal" href="#change-e23a2954c9bd9fb1bde4aeceefe5d541">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-10"><span class="target" id="change-2503ad929a0fe516710bf9a1780fd348"><strong>[orm] </strong></span>All selectXXX methods are deprecated. Generative methods are now the
standard way to do things, i.e. filter(), filter_by(), all(), one(),
etc. Deprecated methods are docstring’ed with their new replacements.<a class="changeset-link headerlink reference internal" href="#change-2503ad929a0fe516710bf9a1780fd348">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-11"><span class="target" id="change-1693eadbe7a1e73418dc29c3c9f5f383"><strong>[orm] </strong></span>Class-level properties are now usable as query elements... no more
‘.c.’! “Class.c.propname” is now superseded by “Class.propname”. All
clause operators are supported, as well as higher level operators such
as Class.prop==<some instance> for scalar attributes,
Class.prop.contains(<some instance>) and Class.prop.any(<some
expression>) for collection-based attributes (all are also
negatable). Table-based column expressions as well as columns mounted
on mapped classes via ‘c’ are of course still fully available and can be
freely mixed with the new attributes.<a class="changeset-link headerlink reference internal" href="#change-1693eadbe7a1e73418dc29c3c9f5f383">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/643">#643</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-12"><span class="target" id="change-6a051d0e61d70a59ef63537773b2b738"><strong>[orm] </strong></span>Removed ancient query.select_by_attributename() capability.<a class="changeset-link headerlink reference internal" href="#change-6a051d0e61d70a59ef63537773b2b738">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-13"><span class="target" id="change-f99a8e52f17864f9bdbcd276ea36c00e"><strong>[orm] </strong></span>The aliasing logic used by eager loading has been generalized, so that
it also adds full automatic aliasing support to Query. It’s no longer
necessary to create an explicit Alias to join to the same tables
multiple times; <em>even for self-referential relationships</em>.<ul>
<li>join() and outerjoin() take arguments “aliased=True”. Yhis causes
their joins to be built on aliased tables; subsequent calls to
filter() and filter_by() will translate all table expressions (yes,
real expressions using the original mapped Table) to be that of the
Alias for the duration of that join() (i.e. until reset_joinpoint() or
another join() is called).</li>
<li>join() and outerjoin() take arguments “id=<somestring>”. When used
with “aliased=True”, the id can be referenced by add_entity(cls,
id=<somestring>) so that you can select the joined instances even if
they’re from an alias.</li>
<li>join() and outerjoin() now work with self-referential relationships!
Using “aliased=True”, you can join as many levels deep as desired,
i.e. query.join([‘children’, ‘children’], aliased=True); filter
criterion will be against the rightmost joined table</li>
</ul>
<a class="changeset-link headerlink reference internal" href="#change-f99a8e52f17864f9bdbcd276ea36c00e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-14"><span class="target" id="change-3f64e9fd6a4f77b6f36bda3cef6dc70c"><strong>[orm] </strong></span>Added query.populate_existing(), marks the query to reload all
attributes and collections of all instances touched in the query,
including eagerly-loaded entities.<a class="changeset-link headerlink reference internal" href="#change-3f64e9fd6a4f77b6f36bda3cef6dc70c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/660">#660</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-15"><span class="target" id="change-d588f4a694c199bddb5e48ec5c218e25"><strong>[orm] </strong></span>Added eagerload_all(), allows eagerload_all(‘x.y.z’) to specify eager
loading of all properties in the given path.<a class="changeset-link headerlink reference internal" href="#change-d588f4a694c199bddb5e48ec5c218e25">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-16"><span class="target" id="change-a392d359411abd1fdd70fd91eee275f6"><strong>[orm] </strong></span>Major overhaul for Session:<a class="changeset-link headerlink reference internal" href="#change-a392d359411abd1fdd70fd91eee275f6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-17"><span class="target" id="change-b3a93d1308868a3fe8596d48cba80f96"><strong>[orm] </strong></span>New function which “configures” a session called “sessionmaker()”. Send
various keyword arguments to this function once, returns a new class
which creates a Session against that stereotype.<a class="changeset-link headerlink reference internal" href="#change-b3a93d1308868a3fe8596d48cba80f96">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-18"><span class="target" id="change-d081429019999b17e12865d77c0fe190"><strong>[orm] </strong></span>SessionTransaction removed from “public” API. You now can call begin()/
commit()/rollback() on the Session itself.<a class="changeset-link headerlink reference internal" href="#change-d081429019999b17e12865d77c0fe190">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-19"><span class="target" id="change-d803dd5eca36864f998d6bec158fd580"><strong>[orm] </strong></span>Session also supports SAVEPOINT transactions; call begin_nested().<a class="changeset-link headerlink reference internal" href="#change-d803dd5eca36864f998d6bec158fd580">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-20"><span class="target" id="change-e2ebb386a75361f672fdc4c3c1aa6b9d"><strong>[orm] </strong></span>Session supports two-phase commit behavior when vertically or
horizontally partitioning (i.e., using more than one engine). Use
twophase=True.<a class="changeset-link headerlink reference internal" href="#change-e2ebb386a75361f672fdc4c3c1aa6b9d">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-21"><span class="target" id="change-9a345bfb97770dff468324795e2f74b4"><strong>[orm] </strong></span>Session flag “transactional=True” produces a session which always places
itself into a transaction when first used. Upon commit(), rollback() or
close(), the transaction ends; but begins again on the next usage.<a class="changeset-link headerlink reference internal" href="#change-9a345bfb97770dff468324795e2f74b4">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-22"><span class="target" id="change-80cbb51c05d836b884ed1dc60c229fcb"><strong>[orm] </strong></span>Session supports “autoflush=True”. This issues a flush() before each
query. Use in conjunction with transactional, and you can just
save()/update() and then query, the new objects will be there. Use
commit() at the end (or flush() if non-transactional) to flush remaining
changes.<a class="changeset-link headerlink reference internal" href="#change-80cbb51c05d836b884ed1dc60c229fcb">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-23"><span class="target" id="change-7e824e1c9899b1998d251013e315f0d0"><strong>[orm] </strong></span>New scoped_session() function replaces SessionContext and assignmapper.
Builds onto “sessionmaker()” concept to produce a class whos Session()
construction returns the thread-local session. Or, call all Session
methods as class methods, i.e. Session.save(foo); Session.commit().
just like the old “objectstore” days.<a class="changeset-link headerlink reference internal" href="#change-7e824e1c9899b1998d251013e315f0d0">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-24"><span class="target" id="change-750a1ea55476904ec3c0c11ffc957b4c"><strong>[orm] </strong></span>Added new “binds” argument to Session to support configuration of
multiple binds with sessionmaker() function.<a class="changeset-link headerlink reference internal" href="#change-750a1ea55476904ec3c0c11ffc957b4c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-25"><span class="target" id="change-a7615aa7295fda4b76a5dc6b9ad79844"><strong>[orm] </strong></span>A rudimental SessionExtension class has been added, allowing
user-defined functionality to take place at flush(), commit(), and
rollback() boundaries.<a class="changeset-link headerlink reference internal" href="#change-a7615aa7295fda4b76a5dc6b9ad79844">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-26"><span class="target" id="change-9bd37da16a971ed83453125c1b474094"><strong>[orm] </strong></span>Query-based relation()s available with dynamic_loader(). This is a
<em>writable</em> collection (supporting append() and remove()) which is also a
live Query object when accessed for reads. Ideal for dealing with very
large collections where only partial loading is desired.<a class="changeset-link headerlink reference internal" href="#change-9bd37da16a971ed83453125c1b474094">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-27"><span class="target" id="change-f765c92d74ee81bbf71b692a95131664"><strong>[orm] </strong></span>flush()-embedded inline INSERT/UPDATE expressions. Assign any SQL
expression, like “sometable.c.column + 1”, to an instance’s attribute.
Upon flush(), the mapper detects the expression and embeds it directly in
the INSERT or UPDATE statement; the attribute gets deferred on the
instance so it loads the new value the next time you access it.<a class="changeset-link headerlink reference internal" href="#change-f765c92d74ee81bbf71b692a95131664">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-28"><span class="target" id="change-e9bf598b4653d8e6c0b87142da0e83bd"><strong>[orm] </strong></span>A rudimental sharding (horizontal scaling) system is introduced. This
system uses a modified Session which can distribute read and write
operations among multiple databases, based on user-defined functions
defining the “sharding strategy”. Instances and their dependents can be
distributed and queried among multiple databases based on attribute
values, round-robin approaches or any other user-defined
system.<a class="changeset-link headerlink reference internal" href="#change-e9bf598b4653d8e6c0b87142da0e83bd">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/618">#618</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-29"><span class="target" id="change-a02e26a19bf5a4351869a565aed6dbd4"><strong>[orm] </strong></span>Eager loading has been enhanced to allow even more joins in more places.
It now functions at any arbitrary depth along self-referential and
cyclical structures. When loading cyclical structures, specify
“join_depth” on relation() indicating how many times you’d like the table
to join to itself; each level gets a distinct table alias. The alias
names themselves are generated at compile time using a simple counting
scheme now and are a lot easier on the eyes, as well as of course
completely deterministic.<a class="changeset-link headerlink reference internal" href="#change-a02e26a19bf5a4351869a565aed6dbd4">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/659">#659</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-30"><span class="target" id="change-3ee39648a350e0ce7f6e88a460ef4222"><strong>[orm] </strong></span>Added composite column properties. This allows you to create a type which
is represented by more than one column, when using the ORM. Objects of
the new type are fully functional in query expressions, comparisons,
query.get() clauses, etc. and act as though they are regular single-column
scalars... except they’re not! Use the function composite(cls, *columns)
inside of the mapper’s “properties” dict, and instances of cls will be
created/mapped to a single attribute, comprised of the values corresponding
to *columns.<a class="changeset-link headerlink reference internal" href="#change-3ee39648a350e0ce7f6e88a460ef4222">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/211">#211</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-31"><span class="target" id="change-5e44b305ff3b453bab31a4f4dd315202"><strong>[orm] </strong></span>Improved support for custom column_property() attributes which feature
correlated subqueries, works better with eager loading now.<a class="changeset-link headerlink reference internal" href="#change-5e44b305ff3b453bab31a4f4dd315202">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-32"><span class="target" id="change-16479493bb7436bccac47ec4d52aa7ab"><strong>[orm] </strong></span>Primary key “collapse” behavior; the mapper will analyze all columns in
its given selectable for primary key “equivalence”, that is, columns which
are equivalent via foreign key relationship or via an explicit
inherit_condition. primarily for joined-table inheritance scenarios where
different named PK columns in inheriting tables should “collapse” into a
single-valued (or fewer-valued) primary key. Fixes things like.<a class="changeset-link headerlink reference internal" href="#change-16479493bb7436bccac47ec4d52aa7ab">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/611">#611</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-33"><span class="target" id="change-8b14a583258b389d8befb88ffab4616e"><strong>[orm] </strong></span>Joined-table inheritance will now generate the primary key columns of all
inherited classes against the root table of the join only. This implies
that each row in the root table is distinct to a single instance. If for
some rare reason this is not desirable, explicit primary_key settings on
individual mappers will override it.<a class="changeset-link headerlink reference internal" href="#change-8b14a583258b389d8befb88ffab4616e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-34"><span class="target" id="change-5ecb81bd3049827ea00f874dff8a47e2"><strong>[orm] </strong></span>When “polymorphic” flags are used with joined-table or single-table
inheritance, all identity keys are generated against the root class of the
inheritance hierarchy; this allows query.get() to work polymorphically
using the same caching semantics as a non-polymorphic get. Note that this
currently does not work with concrete inheritance.<a class="changeset-link headerlink reference internal" href="#change-5ecb81bd3049827ea00f874dff8a47e2">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-35"><span class="target" id="change-b92f42ac37b868e4e25064ca4b5d334d"><strong>[orm] </strong></span>Secondary inheritance loading: polymorphic mappers can be constructed
<em>without</em> a select_table argument. inheriting mappers whose tables were
not represented in the initial load will issue a second SQL query
immediately, once per instance (i.e. not very efficient for large lists),
in order to load the remaining columns.<a class="changeset-link headerlink reference internal" href="#change-b92f42ac37b868e4e25064ca4b5d334d">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-36"><span class="target" id="change-e17dea4885205655b3c0e9dc601c5577"><strong>[orm] </strong></span>Secondary inheritance loading can also move its second query into a
column-level “deferred” load, via the “polymorphic_fetch” argument, which
can be set to ‘select’ or ‘deferred’<a class="changeset-link headerlink reference internal" href="#change-e17dea4885205655b3c0e9dc601c5577">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-37"><span class="target" id="change-ba1a26695302fe5a0797ba0c2382d86e"><strong>[orm] </strong></span>It’s now possible to map only a subset of available selectable columns
onto mapper properties, using include_columns/exclude_columns..<a class="changeset-link headerlink reference internal" href="#change-ba1a26695302fe5a0797ba0c2382d86e">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/696">#696</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-38"><span class="target" id="change-d0fafbe316e5579935f88cf76fc3be57"><strong>[orm] </strong></span>Added undefer_group() MapperOption, sets a set of “deferred” columns
joined by a “group” to load as “undeferred”.<a class="changeset-link headerlink reference internal" href="#change-d0fafbe316e5579935f88cf76fc3be57">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-39"><span class="target" id="change-c76aef44f5e7e8717c85b529552921fa"><strong>[orm] </strong></span>Rewrite of the “deterministic alias name” logic to be part of the SQL
layer, produces much simpler alias and label names more in the style of
Hibernate<a class="changeset-link headerlink reference internal" href="#change-c76aef44f5e7e8717c85b529552921fa">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.0beta1-sql">
<h3>sql<a class="headerlink" href="#change-0.4.0beta1-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.0beta1-40"><span class="target" id="change-194d03e759795cb2ff68bbe9af23b306"><strong>[sql] </strong></span>Speed! Clause compilation as well as the mechanics of SQL constructs have
been streamlined and simplified to a significant degree, for a 20-30%
improvement of the statement construction/compilation overhead of 0.3.<a class="changeset-link headerlink reference internal" href="#change-194d03e759795cb2ff68bbe9af23b306">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-41"><span class="target" id="change-78c937a453ae2a2e9d60a9d7a1b498ac"><strong>[sql] </strong></span>All “type” keyword arguments, such as those to bindparam(), column(),
Column(), and func.<something>(), renamed to “type_”. Those objects still
name their “type” attribute as “type”.<a class="changeset-link headerlink reference internal" href="#change-78c937a453ae2a2e9d60a9d7a1b498ac">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-42"><span class="target" id="change-52f227bbb5a90b801adc6ecfd0cc6e3a"><strong>[sql] </strong></span>case_sensitive=(True|False) setting removed from schema items, since
checking this state added a lot of method call overhead and there was no
decent reason to ever set it to False. Table and column names which are
all lower case will be treated as case-insensitive (yes we adjust for
Oracle’s UPPERCASE style too).<a class="changeset-link headerlink reference internal" href="#change-52f227bbb5a90b801adc6ecfd0cc6e3a">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.0beta1-mysql">
<h3>mysql<a class="headerlink" href="#change-0.4.0beta1-mysql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.0beta1-43"><span class="target" id="change-c9ff316cda3e7c6e32e67deee9bdb175"><strong>[mysql] </strong></span>Table and column names loaded via reflection are now Unicode.<a class="changeset-link headerlink reference internal" href="#change-c9ff316cda3e7c6e32e67deee9bdb175">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-44"><span class="target" id="change-4db25c57037e2e33e840cb086dca3781"><strong>[mysql] </strong></span>All standard column types are now supported, including SET.<a class="changeset-link headerlink reference internal" href="#change-4db25c57037e2e33e840cb086dca3781">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-45"><span class="target" id="change-5117b0e81758578c4222aa8bbd429983"><strong>[mysql] </strong></span>Table reflection can now be performed in as little as one round-trip.<a class="changeset-link headerlink reference internal" href="#change-5117b0e81758578c4222aa8bbd429983">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-46"><span class="target" id="change-a5b4e4cd9830ca04727e6cc01578d944"><strong>[mysql] </strong></span>ANSI and ANSI_QUOTES sql modes are now supported.<a class="changeset-link headerlink reference internal" href="#change-a5b4e4cd9830ca04727e6cc01578d944">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-47"><span class="target" id="change-3b4260991961474e8042e1a66c9f73b0"><strong>[mysql] </strong></span>Indexes are now reflected.<a class="changeset-link headerlink reference internal" href="#change-3b4260991961474e8042e1a66c9f73b0">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.0beta1-oracle">
<h3>oracle<a class="headerlink" href="#change-0.4.0beta1-oracle" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.0beta1-48"><span class="target" id="change-cf0060d4bbf9e676c4a7c5beb5f02382"><strong>[oracle] </strong></span>Very rudimental support for OUT parameters added; use sql.outparam(name,
type) to set up an OUT parameter, just like bindparam(); after execution,
values are available via result.out_parameters dictionary.<a class="changeset-link headerlink reference internal" href="#change-cf0060d4bbf9e676c4a7c5beb5f02382">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/507">#507</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.0beta1-misc">
<h3>misc<a class="headerlink" href="#change-0.4.0beta1-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.0beta1-49"><span class="target" id="change-ef7a1ed2659338f4b08899b9caaab99b"><strong>[transactions] </strong></span>Added context manager (with statement) support for transactions.<a class="changeset-link headerlink reference internal" href="#change-ef7a1ed2659338f4b08899b9caaab99b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-50"><span class="target" id="change-c77644da7acda73068dc7396e5f398af"><strong>[transactions] </strong></span>Added support for two phase commit, works with mysql and postgres so far.<a class="changeset-link headerlink reference internal" href="#change-c77644da7acda73068dc7396e5f398af">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-51"><span class="target" id="change-df709470ae31b3f45008bbaa141d6d2c"><strong>[transactions] </strong></span>Added a subtransaction implementation that uses savepoints.<a class="changeset-link headerlink reference internal" href="#change-df709470ae31b3f45008bbaa141d6d2c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-52"><span class="target" id="change-8ade1ccb1059d3677b8b76a06a346099"><strong>[transactions] </strong></span>Added support for savepoints.<a class="changeset-link headerlink reference internal" href="#change-8ade1ccb1059d3677b8b76a06a346099">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-53"><span class="target" id="change-57d0fe83f069aa4fcd55bfbfe003c8f0"><strong>[metadata] </strong></span>Tables can be reflected from the database en-masse without declaring
them in advance. MetaData(engine, reflect=True) will load all tables
present in the database, or use metadata.reflect() for finer control.<a class="changeset-link headerlink reference internal" href="#change-57d0fe83f069aa4fcd55bfbfe003c8f0">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-54"><span class="target" id="change-c614e9a639adda152c6ab95d984bf7d5"><strong>[metadata] </strong></span>DynamicMetaData has been renamed to ThreadLocalMetaData<a class="changeset-link headerlink reference internal" href="#change-c614e9a639adda152c6ab95d984bf7d5">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-55"><span class="target" id="change-ec45f540628c12b33729f88a7567a8d3"><strong>[metadata] </strong></span>The ThreadLocalMetaData constructor now takes no arguments.<a class="changeset-link headerlink reference internal" href="#change-ec45f540628c12b33729f88a7567a8d3">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-56"><span class="target" id="change-df3a2a76ccedf6eff1bec3c34ea2c717"><strong>[metadata] </strong></span>BoundMetaData has been removed- regular MetaData is equivalent<a class="changeset-link headerlink reference internal" href="#change-df3a2a76ccedf6eff1bec3c34ea2c717">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-57"><span class="target" id="change-91306d19b451219b417b42a60215a684"><strong>[metadata] </strong></span>Numeric and Float types now have an “asdecimal” flag; defaults to True for
Numeric, False for Float. When True, values are returned as
decimal.Decimal objects; when False, values are returned as float(). The
defaults of True/False are already the behavior for PG and MySQL’s DBAPI
modules.<a class="changeset-link headerlink reference internal" href="#change-91306d19b451219b417b42a60215a684">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/646">#646</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-58"><span class="target" id="change-08e4ad114c618cb250f9f7dfd398ee15"><strong>[metadata] </strong></span>New SQL operator implementation which removes all hardcoded operators from
expression structures and moves them into compilation; allows greater
flexibility of operator compilation; for example, “+” compiles to “||”
when used in a string context, or “concat(a,b)” on MySQL; whereas in a
numeric context it compiles to “+”. Fixes.<a class="changeset-link headerlink reference internal" href="#change-08e4ad114c618cb250f9f7dfd398ee15">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/475">#475</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-59"><span class="target" id="change-b3b40957f331feb3c0753ba57969930d"><strong>[metadata] </strong></span>“Anonymous” alias and label names are now generated at SQL compilation
time in a completely deterministic fashion... no more random hex IDs<a class="changeset-link headerlink reference internal" href="#change-b3b40957f331feb3c0753ba57969930d">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-60"><span class="target" id="change-e48f6937efaa01d2cb93a212c539a175"><strong>[metadata] </strong></span>Significant architectural overhaul to SQL elements (ClauseElement). All
elements share a common “mutability” framework which allows a consistent
approach to in-place modifications of elements as well as generative
behavior. Improves stability of the ORM which makes heavy usage of
mutations to SQL expressions.<a class="changeset-link headerlink reference internal" href="#change-e48f6937efaa01d2cb93a212c539a175">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-61"><span class="target" id="change-14a7a270d71f45154959854f228c79f8"><strong>[metadata] </strong></span>select() and union()’s now have “generative” behavior. Methods like
order_by() and group_by() return a <em>new</em> instance - the original instance
is left unchanged. Non-generative methods remain as well.<a class="changeset-link headerlink reference internal" href="#change-14a7a270d71f45154959854f228c79f8">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-62"><span class="target" id="change-b2f095c257ecd4fc1b70ea9343fab060"><strong>[metadata] </strong></span>The internals of select/union vastly simplified- all decision making
regarding “is subquery” and “correlation” pushed to SQL generation phase.
select() elements are now <em>never</em> mutated by their enclosing containers or
by any dialect’s compilation process<a class="changeset-link headerlink reference internal" href="#change-b2f095c257ecd4fc1b70ea9343fab060">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/569">#569</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/52">#52</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-63"><span class="target" id="change-cd01f4b5a2b4d78a16a7b4d48f5c73f0"><strong>[metadata] </strong></span>select(scalar=True) argument is deprecated; use select(..).as_scalar().
The resulting object obeys the full “column” interface and plays better
within expressions.<a class="changeset-link headerlink reference internal" href="#change-cd01f4b5a2b4d78a16a7b4d48f5c73f0">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-64"><span class="target" id="change-10b500c2c9cba9a5927217ff7420f2b0"><strong>[metadata] </strong></span>Added select().with_prefix(‘foo’) allowing any set of keywords to be
placed before the columns clause of the SELECT<a class="changeset-link headerlink reference internal" href="#change-10b500c2c9cba9a5927217ff7420f2b0">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/504">#504</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-65"><span class="target" id="change-df8444af8624fed7a285c5b7bf482a29"><strong>[metadata] </strong></span>Added array slice support to row[<index>]<a class="changeset-link headerlink reference internal" href="#change-df8444af8624fed7a285c5b7bf482a29">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/686">#686</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-66"><span class="target" id="change-071fcdfe4ff56a5b234d1de2137bbf1d"><strong>[metadata] </strong></span>Result sets make a better attempt at matching the DBAPI types present in
cursor.description to the TypeEngine objects defined by the dialect, which
are then used for result-processing. Note this only takes effect for
textual SQL; constructed SQL statements always have an explicit type map.<a class="changeset-link headerlink reference internal" href="#change-071fcdfe4ff56a5b234d1de2137bbf1d">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-67"><span class="target" id="change-5df181a5d5e28fb2cade70322001e596"><strong>[metadata] </strong></span>Result sets from CRUD operations close their underlying cursor immediately
and will also autoclose the connection if defined for the operation; this
allows more efficient usage of connections for successive CRUD operations
with less chance of “dangling connections”.<a class="changeset-link headerlink reference internal" href="#change-5df181a5d5e28fb2cade70322001e596">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-68"><span class="target" id="change-89948a9f39a2ae2cba3dc69fc35f2d88"><strong>[metadata] </strong></span>Column defaults and onupdate Python functions (i.e. passed to
ColumnDefault) may take zero or one arguments; the one argument is the
ExecutionContext, from which you can call “context.parameters[someparam]”
to access the other bind parameter values affixed to the statement. The connection used for the execution is available as well
so that you can pre-execute statements.<a class="changeset-link headerlink reference internal" href="#change-89948a9f39a2ae2cba3dc69fc35f2d88">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/559">#559</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-69"><span class="target" id="change-3424c25ad26ee106ba392edc6c3a817c"><strong>[metadata] </strong></span>Added “explcit” create/drop/execute support for sequences (i.e. you can
pass a “connectable” to each of those methods on Sequence).<a class="changeset-link headerlink reference internal" href="#change-3424c25ad26ee106ba392edc6c3a817c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-70"><span class="target" id="change-7bb1f65298c3ca1debf3d2f941ac1247"><strong>[metadata] </strong></span>Better quoting of identifiers when manipulating schemas.<a class="changeset-link headerlink reference internal" href="#change-7bb1f65298c3ca1debf3d2f941ac1247">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-71"><span class="target" id="change-35fdc74c58ccab72b6a95ed3fd9c27bd"><strong>[metadata] </strong></span>Standardized the behavior for table reflection where types can’t be
located; NullType is substituted instead, warning is raised.<a class="changeset-link headerlink reference internal" href="#change-35fdc74c58ccab72b6a95ed3fd9c27bd">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-72"><span class="target" id="change-91634a26453429e65ac127027572ca43"><strong>[metadata] </strong></span>ColumnCollection (i.e. the ‘c’ attribute on tables) follows dictionary
semantics for “__contains__”<a class="changeset-link headerlink reference internal" href="#change-91634a26453429e65ac127027572ca43">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/606">#606</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-73"><span class="target" id="change-c2feef689fd707ec3da5f884a6aa2987"><strong>[engines] </strong></span>Speed! The mechanics of result processing and bind parameter processing
have been overhauled, streamlined and optimized to issue as little method
calls as possible. Bench tests for mass INSERT and mass rowset iteration
both show 0.4 to be over twice as fast as 0.3, using 68% fewer function
calls.<a class="changeset-link headerlink reference internal" href="#change-c2feef689fd707ec3da5f884a6aa2987">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-74"><span class="target" id="change-dbcb4c5e8906eb7ab54649e1e2eee3e6"><strong>[engines] </strong></span>You can now hook into the pool lifecycle and run SQL statements or other
logic at new each DBAPI connection, pool check-out and check-in.<a class="changeset-link headerlink reference internal" href="#change-dbcb4c5e8906eb7ab54649e1e2eee3e6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-75"><span class="target" id="change-fd980057fb18ce87420a619497401906"><strong>[engines] </strong></span>Connections gain a .properties collection, with contents scoped to the
lifetime of the underlying DBAPI connection<a class="changeset-link headerlink reference internal" href="#change-fd980057fb18ce87420a619497401906">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-76"><span class="target" id="change-7db700fb15caca564e6d1b470ddbf1c7"><strong>[engines] </strong></span>Removed auto_close_cursors and disallow_open_cursors arguments from Pool;
reduces overhead as cursors are normally closed by ResultProxy and
Connection.<a class="changeset-link headerlink reference internal" href="#change-7db700fb15caca564e6d1b470ddbf1c7">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-77"><span class="target" id="change-3b532a60bc0029ec354daf934d3a927a"><strong>[extensions] </strong></span>proxyengine is temporarily removed, pending an actually working
replacement.<a class="changeset-link headerlink reference internal" href="#change-3b532a60bc0029ec354daf934d3a927a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-78"><span class="target" id="change-4365514b9b0ac1a9bf2782c1798256a6"><strong>[extensions] </strong></span>SelectResults has been replaced by Query. SelectResults /
SelectResultsExt still exist but just return a slightly modified Query
object for backwards-compatibility. join_to() method from SelectResults
isn’t present anymore, need to use join().<a class="changeset-link headerlink reference internal" href="#change-4365514b9b0ac1a9bf2782c1798256a6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-79"><span class="target" id="change-bf48335461a856fcc94af29e957c22d2"><strong>[postgres] </strong></span>Added PGArray datatype for using postgres array datatypes.<a class="changeset-link headerlink reference internal" href="#change-bf48335461a856fcc94af29e957c22d2">¶</a><p></p>
</p>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div id="docs-bottom-navigation" class="docs-navigation-links">
Previous:
<a href="changelog_05.html" title="previous chapter">0.5 Changelog</a>
Next:
<a href="changelog_03.html" title="next chapter">0.3 Changelog</a>
<div id="docs-copyright">
© <a href="../copyright.html">Copyright</a> 2007-2014, the SQLAlchemy authors and contributors.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.2b1.
</div>
</div>
</div>
</body>
</html>
|