summaryrefslogtreecommitdiff
path: root/doc/build/changelog/changelog_04.rst
blob: 993a374bbbb6b45fb58a85c3a2a093fbaaec9902 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196

=============
0.4 Changelog
=============

                
.. changelog::
    :version: 0.4.8
    :released: Sun Oct 12 2008

    .. change::
        :tags: orm
        :tickets: 1039

      Fixed bug regarding inherit_condition passed
      with "A=B" versus "B=A" leading to errors

    .. change::
        :tags: orm
        :tickets: 

      Changes made to new, dirty and deleted
      collections in
      SessionExtension.before_flush() will take
      effect for that flush.

    .. change::
        :tags: orm
        :tickets: 

      Added label() method to InstrumentedAttribute
      to establish forwards compatibility with 0.5.

    .. change::
        :tags: sql
        :tickets: 1074

      column.in_(someselect) can now be used as
      a columns-clause expression without the subquery
      bleeding into the FROM clause

    .. change::
        :tags: mysql
        :tickets: 1146

      Added MSMediumInteger type.

    .. change::
        :tags: sqlite
        :tickets: 968

      Supplied a custom strftime() function which
      handles dates before 1900.

    .. change::
        :tags: sqlite
        :tickets: 

      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;
      http://itsystementwicklung.de/pipermail/list-pysqlite/2008-March/000018.html

    .. change::
        :tags: oracle
        :tickets: 1155

      has_sequence() now takes schema name into account

    .. change::
        :tags: oracle
        :tickets: 1121

      added BFILE to the list of reflected types

.. changelog::
    :version: 0.4.7p1
    :released: Thu Jul 31 2008

    .. change::
        :tags: orm
        :tickets: 

      Added "add()" and "add_all()" to scoped_session
      methods.  Workaround for 0.4.7::
      
        from sqlalchemy.orm.scoping import ScopedSession, instrument
        setattr(ScopedSession, "add", instrument("add"))
        setattr(ScopedSession, "add_all", instrument("add_all"))

    .. change::
        :tags: orm
        :tickets: 

      Fixed non-2.3 compatible usage of set() and generator
      expression within relation().

.. changelog::
    :version: 0.4.7
    :released: Sat Jul 26 2008

    .. change::
        :tags: orm
        :tickets: 1058

      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

    .. change::
        :tags: orm
        :tickets: 

      fixed bug preventing merge() from functioning in
      conjunction with a comparable_property()

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 976

      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.

    .. change::
        :tags: sql
        :tickets: 

      Fixed bug when calling select([literal('foo')])
      or select([bindparam('foo')]).

    .. change::
        :tags: schema
        :tickets: 571

      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.

    .. change::
        :tags: schema
        :tickets: 571, 820

      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.

    .. change::
        :tags: postgres
        :tickets: 

      Repaired server_side_cursors to properly detect
      text() clauses.

    .. change::
        :tags: postgres
        :tickets: 1092

      Added PGCidr type.

    .. change::
        :tags: mysql
        :tickets: 

      Added 'CALL' to the list of SQL keywords which return
      result rows.

    .. change::
        :tags: oracle
        :tickets: 

      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.

    .. change::
        :tags: oracle
        :tickets: 709

      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

    .. change::
        :tags: oracle
        :tickets: 1062

      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).

    .. change::
        :tags: oracle
        :tickets: 

      sqlite
          - 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.

.. changelog::
    :version: 0.4.6
    :released: Sat May 10 2008

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      Also re-established viewonly relation() configurations
      that join across multiple tables.

    .. change::
        :tags: orm
        :tickets: 610

      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)

    .. change::
        :tags: orm
        :tickets: 1036

      repaired single table inheritance such that you
      can single-table inherit from a joined-table inheriting
      mapper without issue.

    .. change::
        :tags: orm
        :tickets: 1027

      Fixed "concatenate tuple" bug which could occur with
      Query.order_by() if clause adaption had taken place.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      Also re-established viewonly relation() configurations that
      join across multiple tables.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 1015

      refined mapper._save_obj() which was unnecessarily calling
      __ne__() on scalar values during flush

    .. change::
        :tags: orm
        :tickets: 1019

      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.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      added an example dynamic_dict/dynamic_dict.py, illustrating
      a simple way to place dictionary behavior on top of
      a dynamic_loader.

    .. change::
        :tags: declarative, extension
        :tickets: 

      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.

    .. change::
        :tags: declarative, extension
        :tickets: 

      fixed reentrant mapper compile hang when
      a declared attribute is used within ForeignKey,
      ie. ForeignKey(MyOtherClass.someattribute)

    .. change::
        :tags: sql
        :tickets: 

      Added COLLATE support via the .collate(<collation>)
      expression operator and collate(<expr>, <collation>) sql
      function.

    .. change::
        :tags: sql
        :tickets: 

      Fixed bug with union() when applied to non-Table connected
      select statements

    .. change::
        :tags: sql
        :tickets: 1014

      improved behavior of text() expressions when used as
      FROM clauses, such as select().select_from(text("sometext"))

    .. change::
        :tags: sql
        :tickets: 1021

      Column.copy() respects the value of "autoincrement",
      fixes usage with Migrate

    .. change::
        :tags: engines
        :tickets: 

      Pool listeners can now be provided as a dictionary of
      callables or a (possibly partial) duck-type of
      PoolListener, your choice.

    .. change::
        :tags: engines
        :tickets: 

      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).

    .. change::
        :tags: ext
        :tickets: 

      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.

    .. change::
        :tags: mssql
        :tickets: 1005

      Added "odbc_autotranslate" parameter to engine / dburi
      parameters. Any given string will be passed through to the
      ODBC connection string as:
      
            "AutoTranslate=%s" % odbc_autotranslate

    .. change::
        :tags: mssql
        :tickets: 

      Added "odbc_options" parameter to engine / dburi
      parameters. The given string is simply appended to the
      SQLAlchemy-generated odbc connection string.
      
      This should obviate the need of adding a myriad of ODBC
      options in the future.

    .. change::
        :tags: firebird
        :tickets: 

      Handle the "SUBSTRING(:string FROM :start FOR :length)"
      builtin.

.. changelog::
    :version: 0.4.5
    :released: Fri Apr 04 2008

    .. change::
        :tags: orm
        :tickets: 

      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:
      
            x = MyObject(id=1)
            x = sess.merge(x)
      
      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).

    .. change::
        :tags: orm
        :tickets: 

      Also fixed behavior in merge() whereby collection elements
      present on the destination but not the merged collection
      were not being removed from the destination.

    .. change::
        :tags: orm
        :tickets: 995

      Added a more aggressive check for "uncompiled mappers",
      helps particularly with declarative layer

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      Added comparable_property(), adds query Comparator
      behavior to regular, unmanaged Python properties

    .. change::
        :tags: orm, Company.employees.of_type(Engineer), 'machines'
        :tickets: 

      the functionality of query.with_polymorphic() has
      been added to mapper() as a configuration option.
      
      It's set via several forms:
            with_polymorphic='*'
            with_polymorphic=[mappers]
            with_polymorphic=('*', selectable)
            with_polymorphic=([mappers], selectable)
      
      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.
      
      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.
      
      The new approach also automatically allows eager loads
      to work for subclasses, if they are present, for
      example::

        sess.query(Company).options(
         eagerload_all(
        ))

      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.

    .. change::
        :tags: orm
        :tickets: 

      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.
      
      - _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.
      
        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.
      
      - _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.

    .. change::
        :tags: orm
        :tickets: 

      query.order_by() and query.group_by() will accept
      multiple arguments using \*args (like select()
      already does).

    .. change::
        :tags: orm
        :tickets: 

      Added some convenience descriptors to Query:
      query.statement returns the full SELECT construct,
      query.whereclause returns just the WHERE part of the
      SELECT construct.

    .. change::
        :tags: orm
        :tickets: 

      Fixed/covered case when using a False/0 value as a
      polymorphic discriminator.

    .. change::
        :tags: orm
        :tickets: 

      Fixed bug which was preventing synonym() attributes from
      being used with inheritance

    .. change::
        :tags: orm
        :tickets: 996

      Fixed SQL function truncation of trailing underscores

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      Session.execute can now find binds from metadata

    .. change::
        :tags: orm
        :tickets: 

      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).

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 895

      Assorted "cascade deletes" fixes:
        - 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
      
        - 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).
      
        - Delete cascade with delete-orphan will delete orphans
          whether or not it remains attached to its also-deleted
          parent.
      
        - delete-orphan cascade is properly detected on relations
          that are present on superclasses when using inheritance.

    .. change::
        :tags: orm
        :tickets: 

      Fixed order_by calculation in Query to properly alias
      mapper-config'ed order_by when using select_from()

    .. change::
        :tags: orm
        :tickets: 

      Refactored the diffing logic that kicks in when replacing
      one collection with another into collections.bulk_replace,
      useful to anyone building multi-level collections.

    .. change::
        :tags: orm
        :tickets: 

      Cascade traversal algorithm converted from recursive to
      iterative to support deep object graphs.

    .. change::
        :tags: sql
        :tickets: 999

      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

    .. change::
        :tags: sql
        :tickets: 

      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.

    .. change::
        :tags: sql
        :tickets: 

      '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.

    .. change::
        :tags: sql
        :tickets: 791, 993

      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>'".

    .. change::
        :tags: sql
        :tickets: 

      random() is now a generic sql function and will compile to
      the database's random implementation, if any.

    .. change::
        :tags: sql
        :tickets: 

      update().values() and insert().values() take keyword
      arguments.

    .. change::
        :tags: sql
        :tickets: 

      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.

    .. change::
        :tags: sql
        :tickets: 

      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().

    .. change::
        :tags: oracle
        :tickets: 

      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".

    .. change::
        :tags: oracle
        :tickets: 

      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.

    .. change::
        :tags: declarative, extension
        :tickets: 

      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))

    .. change::
        :tags: declarative, extension
        :tickets: 

      The "deferred" function is usable with "declarative".
      Simplest usage is to declare deferred and Column together,
      e.g.: data = deferred(Column(Text))

    .. change::
        :tags: declarative, extension
        :tickets: 

      Declarative also gained @synonym_for(...) and
      @comparable_using(...), front-ends for synonym and
      comparable_property.

    .. change::
        :tags: declarative, extension
        :tickets: 995

      Improvements to mapper compilation when using declarative;
      already-compiled mappers will still trigger compiles of
      other uncompiled mappers when used

    .. change::
        :tags: declarative, extension
        :tickets: 

      Declarative will complete setup for Columns lacking names,
      allows a more DRY syntax.
      
        class Foo(Base):
            __tablename__ = 'foos'
            id = Column(Integer, primary_key=True)

    .. change::
        :tags: declarative, extension
        :tickets: 

      inheritance in declarative can be disabled when sending
      "inherits=None" to __mapper_args__.

    .. change::
        :tags: declarative, extension
        :tickets: 

      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.

    .. change::
        :tags: postgres
        :tickets: 1001

      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

    .. change::
        :tags: oracle
        :tickets: 

      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".

    .. change::
        :tags: oracle
        :tickets: 

      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.

    .. change::
        :tags: mssql
        :tickets: 979

      Reflected tables will now automatically load other tables
      which are referenced by Foreign keys in the auto-loaded
      table,.

    .. change::
        :tags: mssql
        :tickets: 916

      Added executemany check to skip identity fetch,.

    .. change::
        :tags: mssql
        :tickets: 884

      Added stubs for small date type.

    .. change::
        :tags: mssql
        :tickets: 

      Added a new 'driver' keyword parameter for the pyodbc dialect.
      Will substitute into the ODBC connection string if given,
      defaults to 'SQL Server'.

    .. change::
        :tags: mssql
        :tickets: 

      Added a new 'max_identifier_length' keyword parameter for
      the pyodbc dialect.

    .. change::
        :tags: mssql
        :tickets: 

      Improvements to pyodbc + Unix. If you couldn't get that
      combination to work before, please try again.

    .. change::
        :tags: mysql
        :tickets: 

      The connection.info keys the dialect uses to cache server
      settings have changed and are now namespaced.

.. changelog::
    :version: 0.4.4
    :released: Wed Mar 12 2008

    .. change::
        :tags: sql
        :tickets: 975

      Can again create aliases of selects against textual FROM
      clauses.

    .. change::
        :tags: sql
        :tickets: 

      The value of a bindparam() can be a callable, in which
      case it's evaluated at statement execution time to get the
      value.

    .. change::
        :tags: sql
        :tickets: 978

      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)

    .. change::
        :tags: sql
        :tickets: 936

      Implemented two-phase API for "threadlocal" engine, via
      engine.begin_twophase(), engine.prepare()

    .. change::
        :tags: sql
        :tickets: 986

      Fixed bug which was preventing UNIONS from being
      cloneable.

    .. change::
        :tags: sql
        :tickets: 

      Added "bind" keyword argument to insert(), update(),
      delete() and DDL(). The .bind property is now assignable
      on those statements as well as on select().

    .. change::
        :tags: sql
        :tickets: 

      Insert statements can now be compiled with extra "prefix"
      words between INSERT and INTO, for vendor extensions like
      MySQL's INSERT IGNORE INTO table.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 985

      Repaired behavior of == and != operators at the relation()
      level when compared against NULL for one-to-one relations

    .. change::
        :tags: orm
        :tickets: 

      Fixed bug whereby session.expire() attributes were not
      loading on an polymorphically-mapped instance mapped by a
      select_table mapper.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      session.refresh() and session.expire() raise an error when
      called on instances which are not persistent within the
      session

    .. change::
        :tags: orm
        :tickets: 

      Fixed potential generative bug when the same Query was
      used to generate multiple Query objects using join().

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      Deprecated Query methods apply_sum(), apply_max(),
      apply_min(), apply_avg().  Better methodologies are
      coming....

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      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.:
      
        query.filter(Company.employees.of_type(Engineer).
          any(Engineer.name=='foo'))
      
        or
      
        query.join(Company.employees.of_type(Engineer)).
          filter(Engineer.name=='foo')

    .. change::
        :tags: orm
        :tickets: 

      Preventive code against a potential lost-reference bug in
      flush().

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      Synonyms riding on top of existing descriptors are now
      full proxies to those descriptors.

    .. change::
        :tags: dialects
        :tickets: 

      Invalid SQLite connection URLs now raise an error.

    .. change::
        :tags: dialects
        :tickets: 981

      postgres TIMESTAMP renders correctly

    .. change::
        :tags: dialects
        :tickets: 

      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.

    .. change::
        :tags: extensions
        :tickets: 

      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.

.. changelog::
    :version: 0.4.3
    :released: Thu Feb 14 2008

    .. change::
        :tags: sql
        :tickets: 

      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.

    .. change::
        :tags: sql
        :tickets: 

      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.

    .. change::
        :tags: sql
        :tickets: 

      Added a callable-based DDL events interface, adds hooks
      before and after Tables and MetaData create and drop.

    .. change::
        :tags: sql
        :tickets: 

      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().

    .. change::
        :tags: sql
        :tickets: 727

      Added "ilike()" operator to column operations.  Compiles to
      ILIKE on postgres, lower(x) LIKE lower(y) on all
      others.

    .. change::
        :tags: sql
        :tickets: 943

      Added "now()" as a generic function; on SQLite, Oracle
      and MSSQL compiles as "CURRENT_TIMESTAMP"; "now()" on
      all others.

    .. change::
        :tags: sql
        :tickets: 962

      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

    .. change::
        :tags: sql
        :tickets: 962

      cast() accepts text('something') and other non-literal
      operands properly

    .. change::
        :tags: sql
        :tickets: 

      fixed bug in result proxy where anonymously generated
      column labels would not be accessible using their straight
      string name

    .. change::
        :tags: sql
        :tickets: 

      Deferrable constraints can now be defined.

    .. change::
        :tags: sql
        :tickets: 915

      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.

    .. change::
        :tags: sql
        :tickets: 

      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.

    .. change::
        :tags: sql
        :tickets: 

      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.

    .. change::
        :tags: sql
        :tickets: 

      The anonymous 'label' generated for otherwise unlabeled
      functions and expressions now propagates outwards at compile
      time for expressions like select([select([func.foo()])]).

    .. change::
        :tags: sql
        :tickets: 

      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.

    .. change::
        :tags: sql
        :tickets: 

      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.

    .. change::
        :tags: sql
        :tickets: 

      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.)

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 961

      Fixed merge() collection-doubling bug when merging transient
      entities with backref'ed collections.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      Added standalone "query" class attribute generated by a
      scoped_session.  This provides MyClass.query without using
      Session.mapper.  Use via:
      
        MyClass.query = Session.query_property()

    .. change::
        :tags: orm
        :tickets: 

      The proper error message is raised when trying to access
      expired instance attributes with no session present

    .. change::
        :tags: orm
        :tickets: 

      dynamic_loader() / lazy="dynamic" now accepts and uses
      the order_by parameter in the same way in which it works
      with relation().

    .. change::
        :tags: orm
        :tickets: 

      Added expire_all() method to Session.  Calls expire() for
      all persistent instances.  This is handy in conjunction
      with...

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 938

      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.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      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.:
      
        query(Company).join(['employees', Engineer.name])

    .. change::
        :tags: orm, ('employees', people.join(engineer)), Engineer.name
        :tickets: 

      query.join() can also accept tuples of attribute name/some
      selectable as arguments.  This allows construction of joins
      *from* subclasses of a polymorphic relation, i.e.:
      
        query(Company).\
        join(
         
        )

    .. change::
        :tags: orm
        :tickets: 

      General improvements to the behavior of join() in
      conjunction with polymorphic mappers, i.e. joining from/to
      polymorphic mappers and properly applying aliases.

    .. change::
        :tags: orm
        :tickets: 933

      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.

    .. change::
        :tags: orm
        :tickets: 946

      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".

    .. change::
        :tags: orm
        :tickets: 

      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

    .. change::
        :tags: orm
        :tickets: 

      Fixed bug in polymorphic inheritance which made it difficult
      to set a working "order_by" on a polymorphic mapper.

    .. change::
        :tags: orm
        :tickets: 

      Fixed a rather expensive call in Query that was slowing down
      polymorphic queries.

    .. change::
        :tags: orm
        :tickets: 954

      "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.

    .. change::
        :tags: orm
        :tickets: 

      Additional Session transaction fixes/changes:
        - Fixed bug with session transaction management: parent
          transactions weren't started on the connection when
          adding a connection to a nested transaction.
      
        - session.transaction now always refers to the innermost
          active transaction, even when commit/rollback are called
          directly on the session transaction object.
      
        - Two-phase transactions can now be prepared.
      
        - When preparing a two-phase transaction fails on one
          connection, all the connections are rolled back.
      
        - session.close() didn't close all transactions when
          nested transactions were used.
      
        - 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.
      
        - autoflush for commit() wasn't flushing for simple
          subtransactions.
      
        - unitofwork flush didn't close the failed transaction
          when the session was not in a transaction and committing
          the transaction failed.

    .. change::
        :tags: orm
        :tickets: 964, 940

      Miscellaneous tickets:

    .. change::
        :tags: general
        :tickets: 

      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.

    .. change::
        :tags: general
        :tickets: 

      Warnings are now issued as type exceptions.SAWarning.

    .. change::
        :tags: dialects
        :tickets: 

      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.

    .. change::
        :tags: dialects
        :tickets: 

      table_names on SQLite now picks up temporary tables as well.

    .. change::
        :tags: dialects
        :tickets: 

      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.

    .. change::
        :tags: dialects
        :tickets: 

      Fixed reflection of TIME columns on SQLite.

    .. change::
        :tags: dialects
        :tickets: 580

      Finally added PGMacAddr type to postgres

    .. change::
        :tags: dialects
        :tickets: 

      Reflect the sequence associated to a PK field (typically
      with a BEFORE INSERT trigger) under Firebird

    .. change::
        :tags: dialects
        :tickets: 941

      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

    .. change::
        :tags: dialects
        :tickets: 

      MSSQL now includes EXEC in the _is_select regexp, which
      should allow row-returning stored procedures to be used.

    .. change::
        :tags: dialects
        :tickets: 

      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.

    .. change::
        :tags: ext
        :tickets: 

      Changed ext.activemapper to use a non-transactional session
      for the objectstore.

    .. change::
        :tags: ext
        :tickets: 

      Fixed output order of "['a'] + obj.proxied" binary operation
      on association-proxied lists.

.. changelog::
    :version: 0.4.2p3
    :released: Wed Jan 09 2008

    .. change::
        :tags: general
        :tickets: 

      sub version numbering scheme changed to suite
      setuptools version number rules; easy_install -u
      should now get this version over 0.4.2.

    .. change::
        :tags: sql
        :tickets: 912

      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

    .. change::
        :tags: sql
        :tickets: 

      new UnicodeText type is added, to specify an
      encoded, unlengthed Text type

    .. change::
        :tags: sql
        :tickets: 

      fixed bug in union() so that select() statements
      which don't derive from FromClause objects can be
      unioned

    .. change::
        :tags: orm
        :tickets: 

      fixed bug with session.dirty when using "mutable
      scalars" (such as PickleTypes)

    .. change::
        :tags: orm
        :tickets: 

      added a more descriptive error message when flushing
      on a relation() that has non-locally-mapped columns
      in its primary or secondary join condition

    .. change::
        :tags: dialects
        :tickets: 

      Fixed reflection of mysql empty string column
      defaults.

    .. change::
        :tags: sql
        :tickets: 912

      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)

    .. change::
        :tags: sql
        :tickets: 924

      generative select.order_by(None) / group_by(None)
      was not managing to reset order by/group by
      criterion, fixed

    .. change::
        :tags: orm
        :tickets: 

      suppressing *all* errors in
      InstanceState.__cleanup() now.

    .. change::
        :tags: orm
        :tickets: 922

      fixed an attribute history bug whereby assigning a
      new collection to a collection-based attribute which
      already had pending changes would generate incorrect
      history

    .. change::
        :tags: orm
        :tickets: 925

      fixed delete-orphan cascade bug whereby setting the
      same object twice to a scalar attribute could log it
      as an orphan

    .. change::
        :tags: orm
        :tickets: 

      Fixed cascades on a += assignment to a list-based
      relation.

    .. change::
        :tags: orm
        :tickets: 919

      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)

    .. change::
        :tags: orm
        :tickets: 

      fixed bug which could occur with polymorphic "union"
      mapper which falls back to "deferred" loading of
      inheriting tables

    .. change::
        :tags: orm
        :tickets: 

      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).

    .. change::
        :tags: ext
        :tickets: 

      '+', '*', '+=' and '\*=' support for association
      proxied lists.

    .. change::
        :tags: dialects
        :tickets: 923

      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.

    .. change::
        :tags: orm
        :tickets: 

      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

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 920

      Fixed in-place set mutation operators for set collections and association
      proxied sets.

    .. change::
        :tags: dialects
        :tickets: 913

      Fixed the missing call to subtype result processor for the PGArray
      type.

.. changelog::
    :version: 0.4.2
    :released: Wed Jan 02 2008

    .. change::
        :tags: sql
        :tickets: 615

      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

    .. change::
        :tags: sql
        :tickets: 

      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().

    .. change::
        :tags: sql
        :tickets: 

      added new flag to String and create_engine(),
      assert_unicode=(True|False|'warn'\|None). Defaults to `False` or `None` on
      create_engine() and String, `'warn'` on the Unicode type. When `True`,
      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.

    .. change::
        :tags: sql
        :tickets: 

      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.

    .. change::
        :tags: sql
        :tickets: 

      select().as_scalar() will raise an exception if the select does not have
      exactly one expression in its columns clause.

    .. change::
        :tags: sql
        :tickets: 

      bindparam() objects themselves can be used as keys for execute(), i.e.
      statement.execute({bind1:'foo', bind2:'bar'})

    .. change::
        :tags: sql
        :tickets: 

      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.

    .. change::
        :tags: sql
        :tickets: 

      selectables (and others) will issue a warning when two columns in
      their exported columns collection conflict based on name.

    .. change::
        :tags: sql
        :tickets: 890

      tables with schemas can still be used in sqlite, firebird,
      schema name just gets dropped

    .. change::
        :tags: sql
        :tickets: 

      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"

    .. change::
        :tags: sql
        :tickets: 

      column labels in the form "tablename.columname", i.e. with a dot, are now
      supported.

    .. change::
        :tags: sql
        :tickets: 

      from_obj keyword argument to select() can be a scalar or a list.

    .. change::
        :tags: orm
        :tickets: 871

      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.

    .. change::
        :tags: orm
        :tickets: 

      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".

    .. change::
        :tags: orm
        :tickets: 490

      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>.
      
      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.
      
      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.

    .. change::
        :tags: orm
        :tickets: 907

      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()

    .. change::
        :tags: orm
        :tickets: 

      columns which are missing from a Query's select statement
      now get automatically deferred during load.

    .. change::
        :tags: orm
        :tickets: 908

      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

    .. change::
        :tags: orm
        :tickets: 899

      fixed Query bug when filter_by() compares a relation against None

    .. change::
        :tags: orm
        :tickets: 

      improved support for pickling of mapped entities.  Per-instance
      lazy/deferred/expired callables are now serializable so that
      they serialize and deserialize with _state.

    .. change::
        :tags: orm
        :tickets: 801

      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.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: attrname, orm
        :tickets: 

      a slight behavioral change to attributes is, del'ing an attribute
      does *not* 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,).

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      query.order_by() takes into account aliased joins, i.e.
      query.join('orders', aliased=True).order_by(Order.id)

    .. change::
        :tags: orm
        :tickets: 

      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().

    .. change::
        :tags: orm
        :tickets: 

      eagerloading will work with mappers added via add_entity().

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      also with dynamic, implemented correct count() behavior as well
      as other helper methods.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 893

      query.get() and query.load() do not take existing filter or other
      criterion into account; these methods *always* 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.

    .. change::
        :tags: orm
        :tickets: 883

      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.

    .. change::
        :tags: orm
        :tickets: 

      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().

    .. change::
        :tags: orm
        :tickets: 

      fixed backref bug where you could not del instance.attr if attr
      was None

    .. change::
        :tags: orm
        :tickets: 

      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

    .. change::
        :tags: orm
        :tickets: 

      Assigning an incompatible collection type to a relation attribute now
      raises TypeError instead of sqlalchemy's ArgumentError.

    .. change::
        :tags: orm
        :tickets: 886

      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.

    .. change::
        :tags: orm, newval1, newval2
        :tickets: 

      Custom collections can now specify a @converter method to translate
      objects used in "bulk" assignment into a stream of values, as in::
      
         obj.col =
         # or
         obj.dictcol = {'foo': newval1, 'bar': newval2}
      
      The MappedCollection uses this hook to ensure that incoming key/value
      pairs are sane from the collection's perspective.

    .. change::
        :tags: orm
        :tickets: 872

      fixed endless loop issue when using lazy="dynamic" on both
      sides of a bi-directional relationship

    .. change::
        :tags: orm
        :tickets: 904

      more fixes to the LIMIT/OFFSET aliasing applied with Query + eagerloads,
      in this case when mapped against a select statement

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      fixed bug which could arise when using session.begin_nested() in conjunction
      with more than one level deep of enclosing session.begin() statements

    .. change::
        :tags: orm
        :tickets: 914

      fixed session.refresh() with instance that has custom entity_name

    .. change::
        :tags: dialects
        :tickets: 

      sqlite SLDate type will not erroneously render "microseconds" portion
      of a datetime or time object.

    .. change::
        :tags: dialects
        :tickets: 902

      oracle
       - added disconnect detection support for Oracle
       - some cleanup to binary/raw types so that cx_oracle.LOB is detected
         on an ad-hoc basis

    .. change::
        :tags: dialects
        :tickets: 824, 839, 842, 901

      MSSQL
       - PyODBC no longer has a global "set nocount on".
       - Fix non-identity integer PKs on autoload
       - Better support for convert_unicode
       - Less strict date conversion for pyodbc/adodbapi
       - Schema-qualified tables / autoload

    .. change::
        :tags: firebird, backend
        :tickets: 410

      does properly reflect domains (partially fixing) and
      PassiveDefaults

    .. change::
        :tags: 3562, firebird, backend
        :tickets: 

      reverted to use default poolclass (was set to SingletonThreadPool in
      0.4.0 for test purposes)

    .. change::
        :tags: firebird, backend
        :tickets: 

      map func.length() to 'char_length' (easily overridable with the UDF
      'strlen' on old versions of Firebird)

.. changelog::
    :version: 0.4.1
    :released: Sun Nov 18 2007

    .. change::
        :tags: sql
        :tickets: 

      the "shortname" keyword parameter on bindparam() has been
      deprecated.

    .. change::
        :tags: sql
        :tickets: 

      Added contains operator (generates a "LIKE %<other>%" clause).

    .. change::
        :tags: sql
        :tickets: 

      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).

    .. change::
        :tags: sql
        :tickets: 

      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.

    .. change::
        :tags: sql
        :tickets: 819

      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

    .. change::
        :tags: sql
        :tickets: 833

      Removed regular expression step from most statement compilations.
      Also fixes

    .. change::
        :tags: sql
        :tickets: 

      Fixed empty (zero column) sqlite inserts, allowing inserts on
      autoincrementing single column tables.

    .. change::
        :tags: sql
        :tickets: 

      Fixed expression translation of text() clauses; this repairs various
      ORM scenarios where literal text is used for SQL expressions

    .. change::
        :tags: sql
        :tickets: 

      Removed ClauseParameters object; compiled.params returns a regular
      dictionary now, as well as result.last_inserted_params() /
      last_updated_params().

    .. change::
        :tags: sql
        :tickets: 

      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

    .. change::
        :tags: sql
        :tickets: 844

      func. objects can be pickled/unpickled

    .. change::
        :tags: sql
        :tickets: 

      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.

    .. change::
        :tags: sql
        :tickets: 573

      Added a field ("info") for storing arbitrary data on schema items

    .. change::
        :tags: sql
        :tickets: 

      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.

    .. change::
        :tags: sql
        :tickets: 

      fixed the close() method on Transaction when using strategy='threadlocal'

    .. change::
        :tags: sql
        :tickets: 853

      fix to compiled bind parameters to not mistakenly populate None

    .. change::
        :tags: sql
        :tickets: 

      <Engine|Connection>._execute_clauseelement becomes a public method
      Connectable.execute_clauseelement

    .. change::
        :tags: orm
        :tickets: 843

      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.

    .. change::
        :tags: orm
        :tickets: 802

      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.

    .. change::
        :tags: orm
        :tickets: 767

      added op() operator to instrumented attributes; i.e.
      User.name.op('ilike')('%somename%')

    .. change::
        :tags: orm
        :tickets: 676

      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 '==')

    .. change::
        :tags: orm
        :tickets: 

      the "properties" accessor on Mapper is removed; it now throws an informative
      exception explaining the usage of mapper.get_property() and
      mapper.iterate_properties

    .. change::
        :tags: orm
        :tickets: 

      added having() method to Query, applies HAVING to the generated statement
      in the same way as filter() appends to the WHERE clause.

    .. change::
        :tags: orm
        :tickets: 777

      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.

    .. change::
        :tags: orm
        :tickets: 

      PickleType will compare using `==` when set up with mutable=False,
      and not the `is` operator.  To use `is` or any other comparator, send
      in a custom comparison function using PickleType(comparator=my_custom_comparator).

    .. change::
        :tags: orm
        :tickets: 848

      query doesn't throw an error if you use distinct() and an order_by()
      containing UnaryExpressions (or other) together

    .. change::
        :tags: orm
        :tickets: 786

      order_by() expressions from joined tables are properly added to columns
      clause when using distinct()

    .. change::
        :tags: orm
        :tickets: 858

      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)

    .. change::
        :tags: orm
        :tickets: 

      added a little more checking for garbage-collection dereferences in
      InstanceState.__cleanup() to reduce "gc ignored" errors on app
      shutdown

    .. change::
        :tags: orm
        :tickets: 

      The session API has been solidified:

    .. change::
        :tags: orm
        :tickets: 840

      It's an error to session.save() an object which is already
      persistent

    .. change::
        :tags: orm
        :tickets: 

      It's an error to session.delete() an object which is *not*
      persistent.

    .. change::
        :tags: orm
        :tickets: 

      session.update() and session.delete() raise an error when updating
      or deleting an instance that is already in the session with a
      different identity.

    .. change::
        :tags: orm
        :tickets: 

      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

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 834

      Fixed a truncation error when re-assigning a subset of a collection
      (obj.relation = obj.relation[1:])

    .. change::
        :tags: orm
        :tickets: 832

      De-cruftified backref configuration code, backrefs which step on
      existing properties now raise an error

    .. change::
        :tags: orm
        :tickets: 831

      Improved behavior of add_property() etc., fixed involving
      synonym/deferred.

    .. change::
        :tags: orm
        :tickets: 

      Fixed clear_mappers() behavior to better clean up after itself.

    .. change::
        :tags: orm
        :tickets: 841

      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.

    .. change::
        :tags: orm
        :tickets: 

      Fixed __hash__ for association proxy- these collections are unhashable,
      just like their mutable Python counterparts.

    .. change::
        :tags: orm
        :tickets: 

      Added proxying of save_or_update, __contains__ and __iter__ methods for
      scoped sessions.

    .. change::
        :tags: orm
        :tickets: 852

      fixed very hard-to-reproduce issue where by the FROM clause of Query
      could get polluted by certain generative calls

    .. change::
        :tags: dialects
        :tickets: 

      Added experimental support for MaxDB (versions >= 7.6.03.007 only).

    .. change::
        :tags: dialects
        :tickets: 

      oracle will now reflect "DATE" as an OracleDateTime column, not
      OracleDate

    .. change::
        :tags: dialects
        :tickets: 847

      added awareness of schema name in oracle table_names() function,
      fixes metadata.reflect(schema='someschema')

    .. change::
        :tags: dialects
        :tickets: 

      MSSQL anonymous labels for selection of functions made deterministic

    .. change::
        :tags: dialects
        :tickets: 

      sqlite will reflect "DECIMAL" as a numeric column.

    .. change::
        :tags: dialects
        :tickets: 828

      Made access dao detection more reliable

    .. change::
        :tags: dialects
        :tickets: 

      Renamed the Dialect attribute 'preexecute_sequences' to
      'preexecute_pk_sequences'.  An attribute proxy is in place for
      out-of-tree dialects using the old name.

    .. change::
        :tags: dialects
        :tickets: 

      Added test coverage for unknown type reflection. Fixed sqlite/mysql
      handling of type reflection for unknown types.

    .. change::
        :tags: dialects
        :tickets: 

      Added REAL for mysql dialect (for folks exploiting the
      REAL_AS_FLOAT sql mode).

    .. change::
        :tags: dialects
        :tickets: 

      mysql Float, MSFloat and MSDouble constructed without arguments
      now produce no-argument DDL, e.g.'FLOAT'.

    .. change::
        :tags: misc
        :tickets: 

      Removed unused util.hash().

.. changelog::
    :version: 0.4.0
    :released: Wed Oct 17 2007

    .. change::
        :tags: 
        :tickets: 

      (see 0.4.0beta1 for the start of major changes against 0.3,
      as well as http://www.sqlalchemy.org/trac/wiki/WhatsNewIn04 )

    .. change::
        :tags: 
        :tickets: 785

      Added initial Sybase support (mxODBC so far)

    .. change::
        :tags: 
        :tickets: 

      Added partial index support for PostgreSQL. Use the postgres_where keyword
      on the Index.

    .. change::
        :tags: 
        :tickets: 817

      string-based query param parsing/config file parser understands
      wider range of string values for booleans

    .. change::
        :tags: 
        :tickets: 813

      backref remove object operation doesn't fail if the other-side
      collection doesn't contain the item, supports noload collections

    .. change::
        :tags: 
        :tickets: 818

      removed __len__ from "dynamic" collection as it would require issuing
      a SQL "count()" operation, thus forcing all list evaluations to issue
      redundant SQL

    .. change::
        :tags: 
        :tickets: 816

      inline optimizations added to locate_dirty() which can greatly speed up
      repeated calls to flush(), as occurs with autoflush=True

    .. change::
        :tags: 
        :tickets: 

      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.

    .. change::
        :tags: 
        :tickets: 

      Firebird has supports_sane_rowcount and supports_sane_multi_rowcount set
      to False due to ticket #370 (right way).

    .. change::
        :tags: 
        :tickets: 

      Improvements and fixes on Firebird reflection:
        * FBDialect now mimics OracleDialect, regarding case-sensitivity of TABLE and
          COLUMN names (see 'case_sensitive remotion' topic on this current file).
        * FBDialect.table_names() doesn't bring system tables (ticket:796).
        * FB now reflects Column's nullable property correctly.

    .. change::
        :tags: 
        :tickets: 

      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.

    .. change::
        :tags: 
        :tickets: 

      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.

    .. change::
        :tags: 
        :tickets: 795

      Fixed three- and multi-level select and deferred inheritance loading
      (i.e. abc inheritance with no select_table).

    .. change::
        :tags: 
        :tickets: 

      Ident passed to id_chooser in shard.py always a list.

    .. change::
        :tags: 
        :tickets: 

      The no-arg ResultProxy._row_processor() is now the class attribute
      `_process_row`.

    .. change::
        :tags: 
        :tickets: 797

      Added support for returning values from inserts and updates for
      PostgreSQL 8.2+.

    .. change::
        :tags: 
        :tickets: 

      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.

    .. change::
        :tags: 
        :tickets: 808

      fixed sqlite reflection of BOOL/BOOLEAN

    .. change::
        :tags: 
        :tickets: 

      Added support for UPDATE with LIMIT on mysql.

    .. change::
        :tags: 
        :tickets: 803

      null foreign key on a m2o doesn't trigger a lazyload

    .. change::
        :tags: 
        :tickets: 800

      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

    .. change::
        :tags: 
        :tickets: 806

      fix to anonymous label generation of long table/column names

    .. change::
        :tags: 
        :tickets: 

      Firebird dialect now uses SingletonThreadPool as poolclass.

    .. change::
        :tags: 
        :tickets: 

      Firebird now uses dialect.preparer to format sequences names

    .. change::
        :tags: 
        :tickets: 810

      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.

    .. change::
        :tags: 
        :tickets: 

      Added an option to the _ScopedExt mapper extension to not automatically
      save new objects to session on object initialization.

    .. change::
        :tags: 
        :tickets: 

      fixed Oracle non-ansi join syntax

    .. change::
        :tags: 
        :tickets: 

      PickleType and Interval types (on db not supporting it natively) are now
      slightly faster.

    .. change::
        :tags: 
        :tickets: 

      Added Float and Time types to Firebird (FBFloat and FBTime). Fixed
      BLOB SUB_TYPE for TEXT and Binary types.

    .. change::
        :tags: 
        :tickets: 

      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.

.. changelog::
    :version: 0.4.0beta6
    :released: Thu Sep 27 2007

    .. change::
        :tags: 
        :tickets: 

      The Session identity map is now *weak referencing* 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.

    .. change::
        :tags: 
        :tickets: 758

      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).

    .. change::
        :tags: 
        :tickets: 

      added "FETCH" to the keywords detected by Postgres to indicate a
      result-row holding statement (i.e. in addition to "SELECT").

    .. change::
        :tags: 
        :tickets: 

      Added full list of SQLite reserved keywords so that they get escaped
      properly.

    .. change::
        :tags: 
        :tickets: 

      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.

    .. change::
        :tags: 
        :tickets: 

      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.

    .. change::
        :tags: 
        :tickets: 560

      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)"

    .. change::
        :tags: 
        :tickets: 

      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.

    .. change::
        :tags: 
        :tickets: 584, 761

      Added "schema" argument to Sequence; use this with Postgres /Oracle when
      the sequence is located in an alternate schema.  Implements part of, should fix.

    .. change::
        :tags: 
        :tickets: 

      Fixed reflection of the empty string for mysql enums.

    .. change::
        :tags: 
        :tickets: 794

      Changed MySQL dialect to use the older LIMIT <offset>, <limit> syntax
      instead of LIMIT <l> OFFSET <o> for folks using 3.23.

    .. change::
        :tags: 
        :tickets: 

      Added 'passive_deletes="all"' flag to relation(), disables all nulling-out
      of foreign key attributes during a flush where the parent object is
      deleted.

    .. change::
        :tags: 
        :tickets: 

      Column defaults and onupdates, executing inline, will add parenthesis for
      subqueries and other parenthesis-requiring expressions

    .. change::
        :tags: 
        :tickets: 793

      The behavior of String/Unicode types regarding that they auto-convert to
      TEXT/CLOB when no length is present now occurs *only* 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.

    .. change::
        :tags: 
        :tickets: 771

      Fixes to ShardedSession to work with deferred columns.

    .. change::
        :tags: 
        :tickets: 

      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.)

    .. change::
        :tags: 
        :tickets: 764

      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.

    .. change::
        :tags: 
        :tickets: 757, 768, 779, 728

      Other tickets:,,.

.. changelog::
    :version: 0.4.0beta5
    :released: 

    .. change::
        :tags: 
        :tickets: 754

      Connection pool fixes; the better performance of beta4 remains but fixes
      "connection overflow" and other bugs which were present (like).

    .. change::
        :tags: 
        :tickets: 769

      Fixed bugs in determining proper sync clauses from custom inherit
      conditions.

    .. change::
        :tags: 
        :tickets: 763

      Extended 'engine_from_config' coercion for QueuePool size / overflow.

    .. change::
        :tags: 
        :tickets: 748

      mysql views can be reflected again.

    .. change::
        :tags: 
        :tickets: 

      AssociationProxy can now take custom getters and setters.

    .. change::
        :tags: 
        :tickets: 

      Fixed malfunctioning BETWEEN in orm queries.

    .. change::
        :tags: 
        :tickets: 762

      Fixed OrderedProperties pickling

    .. change::
        :tags: 
        :tickets: 

      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.

    .. change::
        :tags: 
        :tickets: 759

      Fixed PG executemany() behavior.

    .. change::
        :tags: 
        :tickets: 

      postgres reflects tables with autoincrement=False for primary key columns
      which have no defaults.

    .. change::
        :tags: 
        :tickets: 

      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().

    .. change::
        :tags: tickets, fixed
        :tickets: 742

      

    .. change::
        :tags: tickets, fixed
        :tickets: 748

      

    .. change::
        :tags: tickets, fixed
        :tickets: 760

      

    .. change::
        :tags: tickets, fixed
        :tickets: 762

      

    .. change::
        :tags: tickets, fixed
        :tickets: 763

      

.. changelog::
    :version: 0.4.0beta4
    :released: Wed Aug 22 2007

    .. change::
        :tags: 
        :tickets: 

      Tidied up what ends up in your namespace when you 'from sqlalchemy import \*':

    .. change::
        :tags: 
        :tickets: 

      '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.

    .. change::
        :tags: 
        :tickets: 

      Internal-ish classes like ClauseElement, FromClause, NullTypeEngine,
      etc., are also no longer imported into your namespace

    .. change::
        :tags: 
        :tickets: 

      The 'Smallinteger' compatibility name (small i!) is no longer imported,
      but remains in schema.py for now.  SmallInteger (big I!) is still
      imported.

    .. change::
        :tags: 
        :tickets: 

      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.

    .. change::
        :tags: 
        :tickets: 

      Fix to bind param processing such that "False" values (like blank strings)
      still get processed/encoded.

    .. change::
        :tags: 
        :tickets: 752

      Fix to select() "generative" behavior, such that calling column(),
      select_from(), correlate(), and with_prefix() does not modify the
      original select object

    .. change::
        :tags: 
        :tickets: 

      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.

    .. change::
        :tags: 
        :tickets: 

      Added session.prune(), trims away instances cached in a session that
      are no longer referenced elsewhere. (A utility for strong-ref
      identity maps).

    .. change::
        :tags: 
        :tickets: 

      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.

    .. change::
        :tags: 
        :tickets: 

      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.

    .. change::
        :tags: 
        :tickets: 735

      Modified SQL operator functions to be module-level operators,
      allowing SQL expressions to be pickleable.

    .. change::
        :tags: 
        :tickets: 

      Small adjustment to mapper class.__init__ to allow for Py2.6
      object.__init__() behavior.

    .. change::
        :tags: 
        :tickets: 

      Fixed 'prefix' argument for select()

    .. change::
        :tags: 
        :tickets: 

      Connection.begin() no longer accepts nested=True, this logic is now
      all in begin_nested().

    .. change::
        :tags: 
        :tickets: 

      Fixes to new "dynamic" relation loader involving cascades

    .. change::
        :tags: tickets, fixed
        :tickets: 735

      

    .. change::
        :tags: tickets, fixed
        :tickets: 752

      

.. changelog::
    :version: 0.4.0beta3
    :released: Thu Aug 16 2007

    .. change::
        :tags: 
        :tickets: 

      SQL types optimization:

    .. change::
        :tags: 
        :tickets: 

      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.

    .. change::
        :tags: 
        :tickets: 

      General performance improvement of result set iteration is around 10-20%.

    .. change::
        :tags: 
        :tickets: 

      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.

    .. change::
        :tags: 
        :tickets: 

      Hooks added throughout base/sql/defaults to optimize the calling of bind
      param/result processors so that method call overhead is minimized.

    .. change::
        :tags: 
        :tickets: 

      Support added for executemany() scenarios such that unneeded "last row id"
      logic doesn't kick in, parameters aren't excessively traversed.

    .. change::
        :tags: 
        :tickets: 

      Added 'inherit_foreign_keys' arg to mapper().

    .. change::
        :tags: 
        :tickets: 

      Added support for string date passthrough in sqlite.

    .. change::
        :tags: tickets, fixed
        :tickets: 738

      

    .. change::
        :tags: tickets, fixed
        :tickets: 739

      

    .. change::
        :tags: tickets, fixed
        :tickets: 743

      

    .. change::
        :tags: tickets, fixed
        :tickets: 744

      

.. changelog::
    :version: 0.4.0beta2
    :released: Tue Aug 14 2007

    .. change::
        :tags: oracle, improvements.
        :tickets: 

      Auto-commit after LOAD DATA INFILE for mysql.

    .. change::
        :tags: oracle, improvements.
        :tickets: 

      A rudimental SessionExtension class has been added, allowing user-defined
      functionality to take place at flush(), commit(), and rollback() boundaries.

    .. change::
        :tags: oracle, improvements.
        :tickets: 

      Added engine_from_config() function for helping to create_engine() from an
      .ini style config.

    .. change::
        :tags: oracle, improvements.
        :tickets: 

      base_mapper() becomes a plain attribute.

    .. change::
        :tags: oracle, improvements.
        :tickets: 

      session.execute() and scalar() can search for a Table with which to bind from
      using the given ClauseElement.

    .. change::
        :tags: oracle, improvements.
        :tickets: 

      Session automatically extrapolates tables from mappers with binds, also uses
      base_mapper so that inheritance hierarchies bind automatically.

    .. change::
        :tags: oracle, improvements.
        :tickets: 

      Moved ClauseVisitor traversal back to inlined non-recursive.

    .. change::
        :tags: tickets, fixed
        :tickets: 730

      

    .. change::
        :tags: tickets, fixed
        :tickets: 732

      

    .. change::
        :tags: tickets, fixed
        :tickets: 733

      

    .. change::
        :tags: tickets, fixed
        :tickets: 734

      

.. changelog::
    :version: 0.4.0beta1
    :released: Sun Aug 12 2007

    .. change::
        :tags: orm
        :tickets: 

      Speed! Along with recent speedups to ResultProxy, total number of function
      calls significantly reduced for large loads.

    .. change::
        :tags: orm
        :tickets: 

      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).

    .. change::
        :tags: orm
        :tickets: 213

      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.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      __setitem__-like assignments now fire remove events for the existing
      value, if any.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      AttributeExtension moved to interfaces, and .delete is now .remove The
      event method signature has also been swapped around.

    .. change::
        :tags: orm
        :tickets: 

      Major overhaul for Query:

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 643

      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.

    .. change::
        :tags: orm
        :tickets: 

      Removed ancient query.select_by_attributename() capability.

    .. change::
        :tags: orm
        :tickets: 

      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; *even for self-referential relationships*.
      
      - 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).
      
      - 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.
      
      - 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

    .. change::
        :tags: orm
        :tickets: 660

      Added query.populate_existing(), marks the query to reload all
      attributes and collections of all instances touched in the query,
      including eagerly-loaded entities.

    .. change::
        :tags: orm
        :tickets: 

      Added eagerload_all(), allows eagerload_all('x.y.z') to specify eager
      loading of all properties in the given path.

    .. change::
        :tags: orm
        :tickets: 

      Major overhaul for Session:

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      SessionTransaction removed from "public" API.  You now can call begin()/
      commit()/rollback() on the Session itself.

    .. change::
        :tags: orm
        :tickets: 

      Session also supports SAVEPOINT transactions; call begin_nested().

    .. change::
        :tags: orm
        :tickets: 

      Session supports two-phase commit behavior when vertically or
      horizontally partitioning (i.e., using more than one engine).  Use
      twophase=True.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      Added new "binds" argument to Session to support configuration of
      multiple binds with sessionmaker() function.

    .. change::
        :tags: orm
        :tickets: 

      A rudimental SessionExtension class has been added, allowing
      user-defined functionality to take place at flush(), commit(), and
      rollback() boundaries.

    .. change::
        :tags: orm
        :tickets: 

      Query-based relation()s available with dynamic_loader().  This is a
      *writable* 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.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 618

      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.

    .. change::
        :tags: orm
        :tickets: 659

      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.

    .. change::
        :tags: orm
        :tickets: 211

      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.

    .. change::
        :tags: orm
        :tickets: 

      Improved support for custom column_property() attributes which feature
      correlated subqueries, works better with eager loading now.

    .. change::
        :tags: orm
        :tickets: 611

      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.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      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.

    .. change::
        :tags: orm
        :tickets: 

      Secondary inheritance loading: polymorphic mappers can be constructed
      *without* 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.

    .. change::
        :tags: orm
        :tickets: 

      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'

    .. change::
        :tags: orm
        :tickets: 696

      It's now possible to map only a subset of available selectable columns
      onto mapper properties, using include_columns/exclude_columns..

    .. change::
        :tags: orm
        :tickets: 

      Added undefer_group() MapperOption, sets a set of "deferred" columns
      joined by a "group" to load as "undeferred".

    .. change::
        :tags: orm
        :tickets: 

      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

    .. change::
        :tags: sql
        :tickets: 

      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.

    .. change::
        :tags: sql
        :tickets: 

      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".

    .. change::
        :tags: sql
        :tickets: 

      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).

    .. change::
        :tags: transactions
        :tickets: 

      Added context manager (with statement) support for transactions.

    .. change::
        :tags: transactions
        :tickets: 

      Added support for two phase commit, works with mysql and postgres so far.

    .. change::
        :tags: transactions
        :tickets: 

      Added a subtransaction implementation that uses savepoints.

    .. change::
        :tags: transactions
        :tickets: 

      Added support for savepoints.

    .. change::
        :tags: metadata
        :tickets: 

      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.

    .. change::
        :tags: metadata
        :tickets: 

      DynamicMetaData has been renamed to ThreadLocalMetaData

    .. change::
        :tags: metadata
        :tickets: 

      The ThreadLocalMetaData constructor now takes no arguments.

    .. change::
        :tags: metadata
        :tickets: 

      BoundMetaData has been removed- regular MetaData is equivalent

    .. change::
        :tags: metadata
        :tickets: 646

      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.

    .. change::
        :tags: metadata
        :tickets: 475

      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.

    .. change::
        :tags: metadata
        :tickets: 

      "Anonymous" alias and label names are now generated at SQL compilation
      time in a completely deterministic fashion... no more random hex IDs

    .. change::
        :tags: metadata
        :tickets: 

      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.

    .. change::
        :tags: metadata
        :tickets: 

      select() and union()'s now have "generative" behavior.  Methods like
      order_by() and group_by() return a *new* instance - the original instance
      is left unchanged.  Non-generative methods remain as well.

    .. change::
        :tags: metadata
        :tickets: 569, 52

      The internals of select/union vastly simplified- all decision making
      regarding "is subquery" and "correlation" pushed to SQL generation phase.
      select() elements are now *never* mutated by their enclosing containers or
      by any dialect's compilation process

    .. change::
        :tags: metadata
        :tickets: 

      select(scalar=True) argument is deprecated; use select(..).as_scalar().
      The resulting object obeys the full "column" interface and plays better
      within expressions.

    .. change::
        :tags: metadata
        :tickets: 504

      Added select().with_prefix('foo') allowing any set of keywords to be
      placed before the columns clause of the SELECT

    .. change::
        :tags: metadata
        :tickets: 686

      Added array slice support to row[<index>]

    .. change::
        :tags: metadata
        :tickets: 

      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.

    .. change::
        :tags: metadata
        :tickets: 

      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".

    .. change::
        :tags: metadata
        :tickets: 559

      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.

    .. change::
        :tags: metadata
        :tickets: 

      Added "explicit" create/drop/execute support for sequences (i.e. you can
      pass a "connectable" to each of those methods on Sequence).

    .. change::
        :tags: metadata
        :tickets: 

      Better quoting of identifiers when manipulating schemas.

    .. change::
        :tags: metadata
        :tickets: 

      Standardized the behavior for table reflection where types can't be
      located; NullType is substituted instead, warning is raised.

    .. change::
        :tags: metadata
        :tickets: 606

      ColumnCollection (i.e. the 'c' attribute on tables) follows dictionary
      semantics for "__contains__"

    .. change::
        :tags: engines
        :tickets: 

      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.

    .. change::
        :tags: engines
        :tickets: 

      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.

    .. change::
        :tags: engines
        :tickets: 

      Connections gain a .properties collection, with contents scoped to the
      lifetime of the underlying DBAPI connection

    .. change::
        :tags: engines
        :tickets: 

      Removed auto_close_cursors and disallow_open_cursors arguments from Pool;
      reduces overhead as cursors are normally closed by ResultProxy and
      Connection.

    .. change::
        :tags: extensions
        :tickets: 

      proxyengine is temporarily removed, pending an actually working
      replacement.

    .. change::
        :tags: extensions
        :tickets: 

      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().

    .. change::
        :tags: mysql
        :tickets: 

      Table and column names loaded via reflection are now Unicode.

    .. change::
        :tags: mysql
        :tickets: 

      All standard column types are now supported, including SET.

    .. change::
        :tags: mysql
        :tickets: 

      Table reflection can now be performed in as little as one round-trip.

    .. change::
        :tags: mysql
        :tickets: 

      ANSI and ANSI_QUOTES sql modes are now supported.

    .. change::
        :tags: mysql
        :tickets: 

      Indexes are now reflected.

    .. change::
        :tags: postgres
        :tickets: 

      Added PGArray datatype for using postgres array datatypes.

    .. change::
        :tags: oracle
        :tickets: 507

      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.