~ubuntu-branches/debian/jessie/sqlalchemy/jessie

« back to all changes in this revision

Viewing changes to doc/changelog/changelog_07.html

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski, Jakub Wilk, Piotr Ożarowski
  • Date: 2013-07-06 20:53:52 UTC
  • mfrom: (1.4.23) (16.1.17 experimental)
  • Revision ID: package-import@ubuntu.com-20130706205352-ryppl1eto3illd79
Tags: 0.8.2-1
[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.

[ Piotr Ożarowski ]
* New upstream release
* Upload to unstable
* Build depend on python3-all instead of -dev, extensions are not built for
  Python 3.X 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
3
 
 
4
<html xmlns="http://www.w3.org/1999/xhtml">
 
5
    <head>
 
6
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
7
        
 
8
        <title>
 
9
            
 
10
    
 
11
                0.7 Changelog
 
12
             &mdash; 
 
13
    SQLAlchemy 0.8 Documentation
 
14
 
 
15
        </title>
 
16
        
 
17
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
 
18
    <link rel="stylesheet" href="../_static/docs.css" type="text/css" />
 
19
 
 
20
    <script type="text/javascript">
 
21
      var DOCUMENTATION_OPTIONS = {
 
22
          URL_ROOT:    '../',
 
23
          VERSION:     '0.8.2',
 
24
          COLLAPSE_MODINDEX: false,
 
25
          FILE_SUFFIX: '.html'
 
26
      };
 
27
    </script>
 
28
        <script type="text/javascript" src="../_static/jquery.js"></script>
 
29
        <script type="text/javascript" src="../_static/underscore.js"></script>
 
30
        <script type="text/javascript" src="../_static/doctools.js"></script>
 
31
    <script type="text/javascript" src="../_static/init.js"></script>
 
32
    <link rel="index" title="Index" href="../genindex.html" />
 
33
    <link rel="search" title="Search" href="../search.html" />
 
34
        <link rel="copyright" title="Copyright" href="../copyright.html" />
 
35
    <link rel="top" title="SQLAlchemy 0.8 Documentation" href="../index.html" />
 
36
        <link rel="up" title="Changes and Migration" href="index.html" />
 
37
        <link rel="next" title="0.6 Changelog" href="changelog_06.html" />
 
38
        <link rel="prev" title="0.8 Changelog" href="changelog_08.html" />
 
39
 
 
40
    </head>
 
41
    <body>
 
42
        
 
43
 
 
44
 
 
45
 
 
46
 
 
47
 
 
48
 
 
49
 
 
50
 
 
51
 
 
52
 
 
53
<div id="docs-container">
 
54
 
 
55
 
 
56
 
 
57
<div id="docs-header">
 
58
    <h1>SQLAlchemy 0.8 Documentation</h1>
 
59
 
 
60
    <div id="docs-search">
 
61
    Search:
 
62
    <form class="search" action="../search.html" method="get">
 
63
      <input type="text" name="q" size="18" /> <input type="submit" value="Search" />
 
64
      <input type="hidden" name="check_keywords" value="yes" />
 
65
      <input type="hidden" name="area" value="default" />
 
66
    </form>
 
67
    </div>
 
68
 
 
69
    <div id="docs-version-header">
 
70
        Release: <span class="version-num">0.8.2</span> | Release Date: July 3, 2013
 
71
 
 
72
 
 
73
    </div>
 
74
 
 
75
</div>
 
76
 
 
77
<div id="docs-top-navigation">
 
78
    <div id="docs-top-page-control" class="docs-navigation-links">
 
79
        <ul>
 
80
            <li>Prev:
 
81
            <a href="changelog_08.html" title="previous chapter">0.8 Changelog</a>
 
82
            </li>
 
83
            <li>Next:
 
84
            <a href="changelog_06.html" title="next chapter">0.6 Changelog</a>
 
85
            </li>
 
86
 
 
87
        <li>
 
88
            <a href="../contents.html">Table of Contents</a> |
 
89
            <a href="../genindex.html">Index</a>
 
90
            | <a href="../_sources/changelog/changelog_07.txt">view source
 
91
        </li>
 
92
        </ul>
 
93
    </div>
 
94
 
 
95
    <div id="docs-navigation-banner">
 
96
        <a href="../index.html">SQLAlchemy 0.8 Documentation</a>
 
97
                » <a href="index.html" title="Changes and Migration">Changes and Migration</a>
 
98
        » 
 
99
                0.7 Changelog
 
100
             
 
101
 
 
102
        <h2>
 
103
            
 
104
                0.7 Changelog
 
105
            
 
106
        </h2>
 
107
    </div>
 
108
 
 
109
</div>
 
110
 
 
111
<div id="docs-body-container">
 
112
 
 
113
    <div id="docs-sidebar">
 
114
    <h3><a href="../index.html">Table of Contents</a></h3>
 
115
    <ul>
 
116
<li><a class="reference internal" href="#">0.7 Changelog</a><ul>
 
117
<li><a class="reference internal" href="#change-0.7.11">0.7.11</a><ul>
 
118
<li><a class="reference internal" href="#change-0.7.11-orm">orm</a></li>
 
119
<li><a class="reference internal" href="#change-0.7.11-postgresql">postgresql</a></li>
 
120
<li><a class="reference internal" href="#change-0.7.11-misc">misc</a></li>
 
121
</ul>
 
122
</li>
 
123
<li><a class="reference internal" href="#change-0.7.10">0.7.10</a><ul>
 
124
<li><a class="reference internal" href="#change-0.7.10-orm">orm</a></li>
 
125
<li><a class="reference internal" href="#change-0.7.10-sql">sql</a></li>
 
126
<li><a class="reference internal" href="#change-0.7.10-mysql">mysql</a></li>
 
127
<li><a class="reference internal" href="#change-0.7.10-sqlite">sqlite</a></li>
 
128
<li><a class="reference internal" href="#change-0.7.10-mssql">mssql</a></li>
 
129
<li><a class="reference internal" href="#change-0.7.10-oracle">oracle</a></li>
 
130
</ul>
 
131
</li>
 
132
<li><a class="reference internal" href="#change-0.7.9">0.7.9</a><ul>
 
133
<li><a class="reference internal" href="#change-0.7.9-orm">orm</a></li>
 
134
<li><a class="reference internal" href="#change-0.7.9-engine">engine</a></li>
 
135
<li><a class="reference internal" href="#change-0.7.9-sql">sql</a></li>
 
136
<li><a class="reference internal" href="#change-0.7.9-postgresql">postgresql</a></li>
 
137
<li><a class="reference internal" href="#change-0.7.9-mysql">mysql</a></li>
 
138
<li><a class="reference internal" href="#change-0.7.9-sqlite">sqlite</a></li>
 
139
<li><a class="reference internal" href="#change-0.7.9-mssql">mssql</a></li>
 
140
</ul>
 
141
</li>
 
142
<li><a class="reference internal" href="#change-0.7.8">0.7.8</a><ul>
 
143
<li><a class="reference internal" href="#change-0.7.8-orm">orm</a></li>
 
144
<li><a class="reference internal" href="#change-0.7.8-engine">engine</a></li>
 
145
<li><a class="reference internal" href="#change-0.7.8-sql">sql</a></li>
 
146
<li><a class="reference internal" href="#change-0.7.8-postgresql">postgresql</a></li>
 
147
<li><a class="reference internal" href="#change-0.7.8-mysql">mysql</a></li>
 
148
<li><a class="reference internal" href="#change-0.7.8-oracle">oracle</a></li>
 
149
</ul>
 
150
</li>
 
151
<li><a class="reference internal" href="#change-0.7.7">0.7.7</a><ul>
 
152
<li><a class="reference internal" href="#change-0.7.7-orm">orm</a></li>
 
153
<li><a class="reference internal" href="#change-0.7.7-sql">sql</a></li>
 
154
<li><a class="reference internal" href="#change-0.7.7-postgresql">postgresql</a></li>
 
155
<li><a class="reference internal" href="#change-0.7.7-mysql">mysql</a></li>
 
156
<li><a class="reference internal" href="#change-0.7.7-sqlite">sqlite</a></li>
 
157
<li><a class="reference internal" href="#change-0.7.7-mssql">mssql</a></li>
 
158
</ul>
 
159
</li>
 
160
<li><a class="reference internal" href="#change-0.7.6">0.7.6</a><ul>
 
161
<li><a class="reference internal" href="#change-0.7.6-orm">orm</a></li>
 
162
<li><a class="reference internal" href="#change-0.7.6-engine">engine</a></li>
 
163
<li><a class="reference internal" href="#change-0.7.6-sql">sql</a></li>
 
164
<li><a class="reference internal" href="#change-0.7.6-mysql">mysql</a></li>
 
165
<li><a class="reference internal" href="#change-0.7.6-sqlite">sqlite</a></li>
 
166
<li><a class="reference internal" href="#change-0.7.6-mssql">mssql</a></li>
 
167
<li><a class="reference internal" href="#change-0.7.6-oracle">oracle</a></li>
 
168
<li><a class="reference internal" href="#change-0.7.6-misc">misc</a></li>
 
169
</ul>
 
170
</li>
 
171
<li><a class="reference internal" href="#change-0.7.5">0.7.5</a><ul>
 
172
<li><a class="reference internal" href="#change-0.7.5-orm">orm</a></li>
 
173
<li><a class="reference internal" href="#change-0.7.5-engine">engine</a></li>
 
174
<li><a class="reference internal" href="#change-0.7.5-sql">sql</a></li>
 
175
<li><a class="reference internal" href="#change-0.7.5-mysql">mysql</a></li>
 
176
<li><a class="reference internal" href="#change-0.7.5-sqlite">sqlite</a></li>
 
177
<li><a class="reference internal" href="#change-0.7.5-mssql">mssql</a></li>
 
178
<li><a class="reference internal" href="#change-0.7.5-oracle">oracle</a></li>
 
179
<li><a class="reference internal" href="#change-0.7.5-misc">misc</a></li>
 
180
</ul>
 
181
</li>
 
182
<li><a class="reference internal" href="#change-0.7.4">0.7.4</a><ul>
 
183
<li><a class="reference internal" href="#change-0.7.4-orm">orm</a></li>
 
184
<li><a class="reference internal" href="#change-0.7.4-engine">engine</a></li>
 
185
<li><a class="reference internal" href="#change-0.7.4-sql">sql</a></li>
 
186
<li><a class="reference internal" href="#change-0.7.4-schema">schema</a></li>
 
187
<li><a class="reference internal" href="#change-0.7.4-postgresql">postgresql</a></li>
 
188
<li><a class="reference internal" href="#change-0.7.4-mysql">mysql</a></li>
 
189
<li><a class="reference internal" href="#change-0.7.4-mssql">mssql</a></li>
 
190
<li><a class="reference internal" href="#change-0.7.4-misc">misc</a></li>
 
191
</ul>
 
192
</li>
 
193
<li><a class="reference internal" href="#change-0.7.3">0.7.3</a><ul>
 
194
<li><a class="reference internal" href="#change-0.7.3-general">general</a></li>
 
195
<li><a class="reference internal" href="#change-0.7.3-orm">orm</a></li>
 
196
<li><a class="reference internal" href="#change-0.7.3-engine">engine</a></li>
 
197
<li><a class="reference internal" href="#change-0.7.3-schema">schema</a></li>
 
198
<li><a class="reference internal" href="#change-0.7.3-postgresql">postgresql</a></li>
 
199
<li><a class="reference internal" href="#change-0.7.3-mysql">mysql</a></li>
 
200
<li><a class="reference internal" href="#change-0.7.3-sqlite">sqlite</a></li>
 
201
<li><a class="reference internal" href="#change-0.7.3-mssql">mssql</a></li>
 
202
<li><a class="reference internal" href="#change-0.7.3-oracle">oracle</a></li>
 
203
<li><a class="reference internal" href="#change-0.7.3-misc">misc</a></li>
 
204
</ul>
 
205
</li>
 
206
<li><a class="reference internal" href="#change-0.7.2">0.7.2</a><ul>
 
207
<li><a class="reference internal" href="#change-0.7.2-orm">orm</a></li>
 
208
<li><a class="reference internal" href="#change-0.7.2-engine">engine</a></li>
 
209
<li><a class="reference internal" href="#change-0.7.2-sql">sql</a></li>
 
210
<li><a class="reference internal" href="#change-0.7.2-schema">schema</a></li>
 
211
<li><a class="reference internal" href="#change-0.7.2-postgresql">postgresql</a></li>
 
212
<li><a class="reference internal" href="#change-0.7.2-mysql">mysql</a></li>
 
213
<li><a class="reference internal" href="#change-0.7.2-sqlite">sqlite</a></li>
 
214
<li><a class="reference internal" href="#change-0.7.2-mssql">mssql</a></li>
 
215
<li><a class="reference internal" href="#change-0.7.2-oracle">oracle</a></li>
 
216
<li><a class="reference internal" href="#change-0.7.2-misc">misc</a></li>
 
217
</ul>
 
218
</li>
 
219
<li><a class="reference internal" href="#change-0.7.1">0.7.1</a><ul>
 
220
<li><a class="reference internal" href="#change-0.7.1-general">general</a></li>
 
221
<li><a class="reference internal" href="#change-0.7.1-orm">orm</a></li>
 
222
<li><a class="reference internal" href="#change-0.7.1-engine">engine</a></li>
 
223
<li><a class="reference internal" href="#change-0.7.1-sql">sql</a></li>
 
224
<li><a class="reference internal" href="#change-0.7.1-postgresql">postgresql</a></li>
 
225
<li><a class="reference internal" href="#change-0.7.1-mysql">mysql</a></li>
 
226
<li><a class="reference internal" href="#change-0.7.1-sqlite">sqlite</a></li>
 
227
</ul>
 
228
</li>
 
229
<li><a class="reference internal" href="#change-0.7.0">0.7.0</a><ul>
 
230
<li><a class="reference internal" href="#change-0.7.0-orm">orm</a></li>
 
231
<li><a class="reference internal" href="#change-0.7.0-sql">sql</a></li>
 
232
<li><a class="reference internal" href="#change-0.7.0-postgresql">postgresql</a></li>
 
233
<li><a class="reference internal" href="#change-0.7.0-mssql">mssql</a></li>
 
234
<li><a class="reference internal" href="#change-0.7.0-misc">misc</a></li>
 
235
</ul>
 
236
</li>
 
237
<li><a class="reference internal" href="#change-0.7.0b4">0.7.0b4</a><ul>
 
238
<li><a class="reference internal" href="#change-0.7.0b4-general">general</a></li>
 
239
<li><a class="reference internal" href="#change-0.7.0b4-orm">orm</a></li>
 
240
<li><a class="reference internal" href="#change-0.7.0b4-engine">engine</a></li>
 
241
<li><a class="reference internal" href="#change-0.7.0b4-sql">sql</a></li>
 
242
<li><a class="reference internal" href="#change-0.7.0b4-schema">schema</a></li>
 
243
<li><a class="reference internal" href="#change-0.7.0b4-postgresql">postgresql</a></li>
 
244
<li><a class="reference internal" href="#change-0.7.0b4-sqlite">sqlite</a></li>
 
245
<li><a class="reference internal" href="#change-0.7.0b4-oracle">oracle</a></li>
 
246
<li><a class="reference internal" href="#change-0.7.0b4-misc">misc</a></li>
 
247
</ul>
 
248
</li>
 
249
<li><a class="reference internal" href="#change-0.7.0b3">0.7.0b3</a><ul>
 
250
<li><a class="reference internal" href="#change-0.7.0b3-general">general</a></li>
 
251
<li><a class="reference internal" href="#change-0.7.0b3-orm">orm</a></li>
 
252
<li><a class="reference internal" href="#change-0.7.0b3-orm-declarative">orm declarative</a></li>
 
253
<li><a class="reference internal" href="#change-0.7.0b3-engine">engine</a></li>
 
254
<li><a class="reference internal" href="#change-0.7.0b3-sql">sql</a></li>
 
255
<li><a class="reference internal" href="#change-0.7.0b3-postgresql">postgresql</a></li>
 
256
<li><a class="reference internal" href="#change-0.7.0b3-mssql">mssql</a></li>
 
257
<li><a class="reference internal" href="#change-0.7.0b3-firebird">firebird</a></li>
 
258
<li><a class="reference internal" href="#change-0.7.0b3-misc">misc</a></li>
 
259
</ul>
 
260
</li>
 
261
<li><a class="reference internal" href="#change-0.7.0b2">0.7.0b2</a><ul>
 
262
<li><a class="reference internal" href="#change-0.7.0b2-orm">orm</a></li>
 
263
<li><a class="reference internal" href="#change-0.7.0b2-orm-declarative">orm declarative</a></li>
 
264
<li><a class="reference internal" href="#change-0.7.0b2-sql">sql</a></li>
 
265
<li><a class="reference internal" href="#change-0.7.0b2-postgresql">postgresql</a></li>
 
266
<li><a class="reference internal" href="#change-0.7.0b2-misc">misc</a></li>
 
267
</ul>
 
268
</li>
 
269
<li><a class="reference internal" href="#change-0.7.0b1">0.7.0b1</a><ul>
 
270
<li><a class="reference internal" href="#change-0.7.0b1-general">general</a></li>
 
271
<li><a class="reference internal" href="#change-0.7.0b1-orm">orm</a></li>
 
272
<li><a class="reference internal" href="#change-0.7.0b1-orm-declarative">orm declarative</a></li>
 
273
<li><a class="reference internal" href="#change-0.7.0b1-sql">sql</a></li>
 
274
<li><a class="reference internal" href="#change-0.7.0b1-postgresql">postgresql</a></li>
 
275
<li><a class="reference internal" href="#change-0.7.0b1-mysql">mysql</a></li>
 
276
<li><a class="reference internal" href="#change-0.7.0b1-mssql">mssql</a></li>
 
277
<li><a class="reference internal" href="#change-0.7.0b1-firebird">firebird</a></li>
 
278
<li><a class="reference internal" href="#change-0.7.0b1-misc">misc</a></li>
 
279
</ul>
 
280
</li>
 
281
</ul>
 
282
</li>
 
283
</ul>
 
284
 
 
285
 
 
286
    <h4>Previous Topic</h4>
 
287
    <p>
 
288
    <a href="changelog_08.html" title="previous chapter">0.8 Changelog</a>
 
289
    </p>
 
290
    <h4>Next Topic</h4>
 
291
    <p>
 
292
    <a href="changelog_06.html" title="next chapter">0.6 Changelog</a>
 
293
    </p>
 
294
 
 
295
 
 
296
    <h4>Quick Search</h4>
 
297
    <p>
 
298
    <form class="search" action="../search.html" method="get">
 
299
      <input type="text" name="q" size="18" /> <input type="submit" value="Search" />
 
300
      <input type="hidden" name="check_keywords" value="yes" />
 
301
      <input type="hidden" name="area" value="default" />
 
302
    </form>
 
303
    </p>
 
304
 
 
305
    </div>
 
306
 
 
307
    <div id="docs-body" class="withsidebar" >
 
308
        
 
309
<div class="section" id="changelog">
 
310
<h1>0.7 Changelog<a class="headerlink" href="#changelog" title="Permalink to this headline">¶</a></h1>
 
311
<div class="section" id="change-0.7.11">
 
312
<h2>0.7.11<a class="headerlink" href="#change-0.7.11" title="Permalink to this headline">¶</a></h2>
 
313
no release date<div class="section" id="change-0.7.11-orm">
 
314
<h3>orm<a class="headerlink" href="#change-0.7.11-orm" title="Permalink to this headline">¶</a></h3>
 
315
<ul class="simple">
 
316
<li><p id="change-0.7.11-0"><span class="target" id="change-67c2029e6f187392003eec283687e00e"><strong>[orm] [bug] </strong></span>Fixed bug when a query of the form:
 
317
<tt class="docutils literal"><span class="pre">query(SubClass).options(subqueryload(Baseclass.attrname))</span></tt>,
 
318
where <tt class="docutils literal"><span class="pre">SubClass</span></tt> is a joined inh of <tt class="docutils literal"><span class="pre">BaseClass</span></tt>,
 
319
would fail to apply the <tt class="docutils literal"><span class="pre">JOIN</span></tt> inside the subquery
 
320
on the attribute load, producing a cartesian product.
 
321
The populated results still tended to be correct as additional
 
322
rows are just ignored, so this issue may be present as a
 
323
performance degradation in applications that are
 
324
otherwise working correctly.<a class="changeset-link reference internal" href="#change-67c2029e6f187392003eec283687e00e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2699">#2699</a></p>
 
325
</p>
 
326
</li>
 
327
<li><p id="change-0.7.11-1"><span class="target" id="change-70b9b9893c9cd22af7e63065e86830bc"><strong>[orm] [bug] </strong></span>Fixed bug in unit of work whereby a joined-inheritance
 
328
subclass could insert the row for the &#8220;sub&#8221; table
 
329
before the parent table, if the two tables had no
 
330
ForeignKey constraints set up between them.<a class="changeset-link reference internal" href="#change-70b9b9893c9cd22af7e63065e86830bc">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2689">#2689</a></p>
 
331
</p>
 
332
</li>
 
333
<li><p id="change-0.7.11-2"><span class="target" id="change-8a5e83498c9c0eded67638e01d96e699"><strong>[orm] [bug] </strong></span>Improved the error message emitted when a &#8220;backref loop&#8221; is detected,
 
334
that is when an attribute event triggers a bidirectional
 
335
assignment between two other attributes with no end.
 
336
This condition can occur not just when an object of the wrong
 
337
type is assigned, but also when an attribute is mis-configured
 
338
to backref into an existing backref pair.<a class="changeset-link reference internal" href="#change-8a5e83498c9c0eded67638e01d96e699">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2674">#2674</a></p>
 
339
</p>
 
340
</li>
 
341
<li><p id="change-0.7.11-3"><span class="target" id="change-efb22c6e4fe4f34fd6705e77ab5f9bfa"><strong>[orm] [bug] </strong></span>A warning is emitted when a MapperProperty is assigned to a mapper
 
342
that replaces an existing property, if the properties in question
 
343
aren&#8217;t plain column-based properties.   Replacement of relationship
 
344
properties is rarely (ever?) what is intended and usually refers to a
 
345
mapper mis-configuration.   This will also warn if a backref configures
 
346
itself on top of an existing one in an inheritance relationship
 
347
(which is an error in 0.8).<a class="changeset-link reference internal" href="#change-efb22c6e4fe4f34fd6705e77ab5f9bfa">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2674">#2674</a></p>
 
348
</p>
 
349
</li>
 
350
</ul>
 
351
</div>
 
352
<div class="section" id="change-0.7.11-postgresql">
 
353
<h3>postgresql<a class="headerlink" href="#change-0.7.11-postgresql" title="Permalink to this headline">¶</a></h3>
 
354
<ul class="simple">
 
355
<li><p id="change-0.7.11-4"><span class="target" id="change-4be83fabc8054be90db8d9ea622ea32c"><strong>[postgresql] [feature] </strong></span>Added support for Postgresql&#8217;s traditional SUBSTRING
 
356
function syntax, renders as &#8220;SUBSTRING(x FROM y FOR z)&#8221;
 
357
when regular <tt class="docutils literal"><span class="pre">func.substring()</span></tt> is used.
 
358
Courtesy Gunnlaugur Þór Briem.<a class="changeset-link reference internal" href="#change-4be83fabc8054be90db8d9ea622ea32c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2676">#2676</a></p>
 
359
</p>
 
360
</li>
 
361
</ul>
 
362
</div>
 
363
<div class="section" id="change-0.7.11-misc">
 
364
<h3>misc<a class="headerlink" href="#change-0.7.11-misc" title="Permalink to this headline">¶</a></h3>
 
365
<ul class="simple">
 
366
<li><p id="change-0.7.11-5"><span class="target" id="change-2f7a576e7a8d284e37a6743b00f108d6"><strong>[bug] [tests] </strong></span>Fixed an import of &#8220;logging&#8221; in test_execute which was not
 
367
working on some linux platforms.<a class="changeset-link reference internal" href="#change-2f7a576e7a8d284e37a6743b00f108d6">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2669">#2669</a>, <a class="reference external" href="https://bitbucket.org/sqlalchemy/sqlalchemy/pull-request/41">pull request 41</a></p>
 
368
</p>
 
369
</li>
 
370
</ul>
 
371
</div>
 
372
</div>
 
373
<div class="section" id="change-0.7.10">
 
374
<h2>0.7.10<a class="headerlink" href="#change-0.7.10" title="Permalink to this headline">¶</a></h2>
 
375
Released: Thu Feb 7 2013<div class="section" id="change-0.7.10-orm">
 
376
<h3>orm<a class="headerlink" href="#change-0.7.10-orm" title="Permalink to this headline">¶</a></h3>
 
377
<ul class="simple">
 
378
<li><p id="change-0.7.10-0"><span class="target" id="change-db2025d4880044d4cbb1b4c52be875bb"><strong>[orm] [bug] </strong></span>Fixed potential memory leak which could occur if an
 
379
arbitrary number of <a class="reference internal" href="../orm/session.html#sqlalchemy.orm.session.sessionmaker" title="sqlalchemy.orm.session.sessionmaker"><tt class="xref py py-class docutils literal"><span class="pre">sessionmaker</span></tt></a> objects
 
380
were created.   The anonymous subclass created by
 
381
the sessionmaker, when dereferenced, would not be garbage
 
382
collected due to remaining class-level references from the
 
383
event package.  This issue also applies to any custom system
 
384
that made use of ad-hoc subclasses in conjunction with
 
385
an event dispatcher.<a class="changeset-link reference internal" href="#change-db2025d4880044d4cbb1b4c52be875bb">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2650">#2650</a></p>
 
386
</p>
 
387
</li>
 
388
<li><p id="change-0.7.10-1"><span class="target" id="change-7067a9d674a48894b96003b25993413c"><strong>[orm] [bug] </strong></span><a class="reference internal" href="../orm/query.html#sqlalchemy.orm.query.Query.merge_result" title="sqlalchemy.orm.query.Query.merge_result"><tt class="xref py py-meth docutils literal"><span class="pre">Query.merge_result()</span></tt></a> can now load rows from an outer join
 
389
where an entity may be <tt class="docutils literal"><span class="pre">None</span></tt> without throwing an error.<a class="changeset-link reference internal" href="#change-7067a9d674a48894b96003b25993413c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2640">#2640</a></p>
 
390
</p>
 
391
</li>
 
392
<li><p id="change-0.7.10-2"><span class="target" id="change-2ddfafd175eec1a2d9f2b88808c52919"><strong>[orm] [bug] </strong></span>The <a class="reference internal" href="../orm/extensions/mutable.html#sqlalchemy.ext.mutable.MutableComposite" title="sqlalchemy.ext.mutable.MutableComposite"><tt class="xref py py-class docutils literal"><span class="pre">MutableComposite</span></tt></a> type did not allow for the
 
393
<a class="reference internal" href="../orm/extensions/mutable.html#sqlalchemy.ext.mutable.MutableBase.coerce" title="sqlalchemy.ext.mutable.MutableBase.coerce"><tt class="xref py py-meth docutils literal"><span class="pre">MutableBase.coerce()</span></tt></a> method to be used, even though
 
394
the code seemed to indicate this intent, so this now works
 
395
and a brief example is added.  As a side-effect,
 
396
the mechanics of this event handler have been changed so that
 
397
new <a class="reference internal" href="../orm/extensions/mutable.html#sqlalchemy.ext.mutable.MutableComposite" title="sqlalchemy.ext.mutable.MutableComposite"><tt class="xref py py-class docutils literal"><span class="pre">MutableComposite</span></tt></a> types no longer add per-type
 
398
global event handlers.  Also in 0.8.0b2.<a class="changeset-link reference internal" href="#change-2ddfafd175eec1a2d9f2b88808c52919">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2624">#2624</a></p>
 
399
</p>
 
400
</li>
 
401
<li><p id="change-0.7.10-3"><span class="target" id="change-9534301c57ebb1ebcccf0b9a29165daa"><strong>[orm] [bug] </strong></span>Fixed Session accounting bug whereby replacing
 
402
a deleted object in the identity map with another
 
403
object of the same primary key would raise a
 
404
&#8220;conflicting state&#8221; error on rollback(),
 
405
if the replaced primary key were established either
 
406
via non-unitofwork-established INSERT statement
 
407
or by primary key switch of another instance.<a class="changeset-link reference internal" href="#change-9534301c57ebb1ebcccf0b9a29165daa">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2583">#2583</a></p>
 
408
</p>
 
409
</li>
 
410
</ul>
 
411
</div>
 
412
<div class="section" id="change-0.7.10-sql">
 
413
<h3>sql<a class="headerlink" href="#change-0.7.10-sql" title="Permalink to this headline">¶</a></h3>
 
414
<ul class="simple">
 
415
<li><p id="change-0.7.10-4"><span class="target" id="change-9c4c1ed9adc28c0f4580ffb99fe90993"><strong>[sql] [bug] </strong></span>Backported adjustment to <tt class="docutils literal"><span class="pre">__repr__</span></tt> for
 
416
<a class="reference internal" href="../core/types.html#sqlalchemy.types.TypeDecorator" title="sqlalchemy.types.TypeDecorator"><tt class="xref py py-class docutils literal"><span class="pre">TypeDecorator</span></tt></a> to 0.7, allows <a class="reference internal" href="../core/types.html#sqlalchemy.types.PickleType" title="sqlalchemy.types.PickleType"><tt class="xref py py-class docutils literal"><span class="pre">PickleType</span></tt></a>
 
417
to produce a clean <tt class="docutils literal"><span class="pre">repr()</span></tt> to help with Alembic.<a class="changeset-link reference internal" href="#change-9c4c1ed9adc28c0f4580ffb99fe90993">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2594">#2594</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2584">#2584</a></p>
 
418
</p>
 
419
</li>
 
420
<li><p id="change-0.7.10-5"><span class="target" id="change-8f574adb5328ea81c58038e0dc84e0f1"><strong>[sql] [bug] </strong></span>Fixed bug where <a class="reference internal" href="../core/schema.html#sqlalchemy.schema.Table.tometadata" title="sqlalchemy.schema.Table.tometadata"><tt class="xref py py-meth docutils literal"><span class="pre">Table.tometadata()</span></tt></a> would fail if a
 
421
<a class="reference internal" href="../core/schema.html#sqlalchemy.schema.Column" title="sqlalchemy.schema.Column"><tt class="xref py py-class docutils literal"><span class="pre">Column</span></tt></a> had both a foreign key as well as an
 
422
alternate &#8221;.key&#8221; name for the column.<a class="changeset-link reference internal" href="#change-8f574adb5328ea81c58038e0dc84e0f1">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2643">#2643</a></p>
 
423
</p>
 
424
</li>
 
425
<li><p id="change-0.7.10-6"><span class="target" id="change-ec0e00d90e249bad5a39a8d564525068"><strong>[sql] [bug] </strong></span>Fixed bug where using server_onupdate=&lt;FetchedValue|DefaultClause&gt;
 
426
without passing the &#8220;for_update=True&#8221; flag would apply the default
 
427
object to the server_default, blowing away whatever was there.
 
428
The explicit for_update=True argument shouldn&#8217;t be needed with this usage
 
429
(especially since the documentation shows an example without it being
 
430
used) so it is now arranged internally using a copy of the given default
 
431
object, if the flag isn&#8217;t set to what corresponds to that argument.<a class="changeset-link reference internal" href="#change-ec0e00d90e249bad5a39a8d564525068">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2631">#2631</a></p>
 
432
</p>
 
433
</li>
 
434
<li><p id="change-0.7.10-7"><span class="target" id="change-681094e6f3e1bffd849392f4ef50efd1"><strong>[sql] [gae] [mysql] </strong></span>Added a conditional import to the <tt class="docutils literal"><span class="pre">gaerdbms</span></tt> dialect which attempts
 
435
to import rdbms_apiproxy vs. rdbms_googleapi to work
 
436
on both dev and production platforms.  Also now honors the
 
437
<tt class="docutils literal"><span class="pre">instance</span></tt> attribute.  Courtesy Sean Lynch.  Also backported
 
438
enhancements to allow username/password as well as
 
439
fixing error code interpretation from 0.8.<a class="changeset-link reference internal" href="#change-681094e6f3e1bffd849392f4ef50efd1">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2649">#2649</a></p>
 
440
</p>
 
441
</li>
 
442
</ul>
 
443
</div>
 
444
<div class="section" id="change-0.7.10-mysql">
 
445
<h3>mysql<a class="headerlink" href="#change-0.7.10-mysql" title="Permalink to this headline">¶</a></h3>
 
446
<ul class="simple">
 
447
<li><p id="change-0.7.10-8"><span class="target" id="change-9bcc7f0ebf5e91716c978537334baec1"><strong>[mysql] [feature] </strong></span>Added &#8220;raise_on_warnings&#8221; flag to OurSQL
 
448
dialect.<a class="changeset-link reference internal" href="#change-9bcc7f0ebf5e91716c978537334baec1">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2523">#2523</a></p>
 
449
</p>
 
450
</li>
 
451
<li><p id="change-0.7.10-9"><span class="target" id="change-da61da414d2d06ce1fe869fffadd047d"><strong>[mysql] [feature] </strong></span>Added &#8220;read_timeout&#8221; flag to MySQLdb
 
452
dialect.<a class="changeset-link reference internal" href="#change-da61da414d2d06ce1fe869fffadd047d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2554">#2554</a></p>
 
453
</p>
 
454
</li>
 
455
</ul>
 
456
</div>
 
457
<div class="section" id="change-0.7.10-sqlite">
 
458
<h3>sqlite<a class="headerlink" href="#change-0.7.10-sqlite" title="Permalink to this headline">¶</a></h3>
 
459
<ul class="simple">
 
460
<li><p id="change-0.7.10-10"><span class="target" id="change-9ff462ffd5c5507b484d835789aa8c2d"><strong>[sqlite] [bug] </strong></span>More adjustment to this SQLite related issue which was released in
 
461
0.7.9, to intercept legacy SQLite quoting characters when reflecting
 
462
foreign keys.  In addition to intercepting double quotes, other
 
463
quoting characters such as brackets, backticks, and single quotes
 
464
are now also intercepted.<a class="changeset-link reference internal" href="#change-9ff462ffd5c5507b484d835789aa8c2d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2568">#2568</a></p>
 
465
</p>
 
466
</li>
 
467
</ul>
 
468
</div>
 
469
<div class="section" id="change-0.7.10-mssql">
 
470
<h3>mssql<a class="headerlink" href="#change-0.7.10-mssql" title="Permalink to this headline">¶</a></h3>
 
471
<ul class="simple">
 
472
<li><p id="change-0.7.10-11"><span class="target" id="change-6a9f365322c513e531df8e04398b73ed"><strong>[mssql] [bug] </strong></span>Added a Py3K conditional around unnecessary .decode()
 
473
call in mssql information schema, fixes reflection
 
474
in Py3k.<a class="changeset-link reference internal" href="#change-6a9f365322c513e531df8e04398b73ed">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2638">#2638</a></p>
 
475
</p>
 
476
</li>
 
477
</ul>
 
478
</div>
 
479
<div class="section" id="change-0.7.10-oracle">
 
480
<h3>oracle<a class="headerlink" href="#change-0.7.10-oracle" title="Permalink to this headline">¶</a></h3>
 
481
<ul class="simple">
 
482
<li><p id="change-0.7.10-12"><span class="target" id="change-edf0bd57d1a082833b533bbae1afe691"><strong>[oracle] [bug] </strong></span>The Oracle LONG type, while an unbounded text type, does not appear
 
483
to use the cx_Oracle.LOB type when result rows are returned,
 
484
so the dialect has been repaired to exclude LONG from
 
485
having cx_Oracle.LOB filtering applied.<a class="changeset-link reference internal" href="#change-edf0bd57d1a082833b533bbae1afe691">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2620">#2620</a></p>
 
486
</p>
 
487
</li>
 
488
<li><p id="change-0.7.10-13"><span class="target" id="change-cbc0a0886495a3f69359e08b1582633f"><strong>[oracle] [bug] </strong></span>Repaired the usage of <tt class="docutils literal"><span class="pre">.prepare()</span></tt> in conjunction with
 
489
cx_Oracle so that a return value of <tt class="docutils literal"><span class="pre">False</span></tt> will result
 
490
in no call to <tt class="docutils literal"><span class="pre">connection.commit()</span></tt>, hence avoiding
 
491
&#8220;no transaction&#8221; errors.   Two-phase transactions have
 
492
now been shown to work in a rudimental fashion with
 
493
SQLAlchemy and cx_oracle, however are subject to caveats
 
494
observed with the driver; check the documentation
 
495
for details.<a class="changeset-link reference internal" href="#change-cbc0a0886495a3f69359e08b1582633f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2611">#2611</a></p>
 
496
</p>
 
497
</li>
 
498
<li><p id="change-0.7.10-14"><span class="target" id="change-56a98378c99586a41c5d39996c01b27e"><strong>[oracle] [bug] </strong></span>changed the list of cx_oracle types that are
 
499
excluded from the setinputsizes() step to only include
 
500
STRING and UNICODE; CLOB and NCLOB are removed.  This
 
501
is to work around cx_oracle behavior which is broken
 
502
for the executemany() call.  In 0.8, this same change
 
503
is applied however it is also configurable via the
 
504
exclude_setinputsizes argument.<a class="changeset-link reference internal" href="#change-56a98378c99586a41c5d39996c01b27e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2561">#2561</a></p>
 
505
</p>
 
506
</li>
 
507
</ul>
 
508
</div>
 
509
</div>
 
510
<div class="section" id="change-0.7.9">
 
511
<h2>0.7.9<a class="headerlink" href="#change-0.7.9" title="Permalink to this headline">¶</a></h2>
 
512
Released: Mon Oct 01 2012<div class="section" id="change-0.7.9-orm">
 
513
<h3>orm<a class="headerlink" href="#change-0.7.9-orm" title="Permalink to this headline">¶</a></h3>
 
514
<ul class="simple">
 
515
<li><p id="change-0.7.9-0"><span class="target" id="change-7ca09fd9ba363a768515fbe6b4bb8064"><strong>[orm] [bug] </strong></span>Fixed bug mostly local to new
 
516
AbstractConcreteBase helper where the &#8220;type&#8221;
 
517
attribute from the superclass would not
 
518
be overridden on the subclass to produce the
 
519
&#8220;reserved for base&#8221; error message, instead placing
 
520
a do-nothing attribute there.  This was inconsistent
 
521
vs. using ConcreteBase as well as all the behavior
 
522
of classical concrete mappings, where the &#8220;type&#8221;
 
523
column from the polymorphic base would be explicitly
 
524
disabled on subclasses, unless overridden
 
525
explicitly.<a class="changeset-link reference internal" href="#change-7ca09fd9ba363a768515fbe6b4bb8064">(link)</a><p></p>
 
526
</p>
 
527
</li>
 
528
<li><p id="change-0.7.9-1"><span class="target" id="change-27c5a25c7b22fafc80e0458e6f02d61f"><strong>[orm] [bug] </strong></span>A warning is emitted when lazy=&#8217;dynamic&#8217;
 
529
is combined with uselist=False.  This is an
 
530
exception raise in 0.8.<a class="changeset-link reference internal" href="#change-27c5a25c7b22fafc80e0458e6f02d61f">(link)</a><p></p>
 
531
</p>
 
532
</li>
 
533
<li><p id="change-0.7.9-2"><span class="target" id="change-2cf1cdfdb883b1ac858fc99c3fd44c54"><strong>[orm] [bug] </strong></span>Fixed bug whereby user error in related-object
 
534
assignment could cause recursion overflow if the
 
535
assignment triggered a backref of the same name
 
536
as a bi-directional attribute on the incorrect
 
537
class to the same target.  An informative
 
538
error is raised now.<a class="changeset-link reference internal" href="#change-2cf1cdfdb883b1ac858fc99c3fd44c54">(link)</a><p></p>
 
539
</p>
 
540
</li>
 
541
<li><p id="change-0.7.9-3"><span class="target" id="change-2e086c449ad8b7f942f441534d3a1099"><strong>[orm] [bug] </strong></span>Fixed bug where incorrect type information
 
542
would be passed when the ORM would bind the
 
543
&#8220;version&#8221; column, when using the &#8220;version&#8221; feature.
 
544
Tests courtesy Daniel Miller.<a class="changeset-link reference internal" href="#change-2e086c449ad8b7f942f441534d3a1099">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2539">#2539</a></p>
 
545
</p>
 
546
</li>
 
547
<li><p id="change-0.7.9-4"><span class="target" id="change-75a53327aac5791fe98ec087706a2821"><strong>[orm] [bug] </strong></span>Extra logic has been added to the &#8220;flush&#8221;
 
548
that occurs within Session.commit(), such that the
 
549
extra state added by an after_flush() or
 
550
after_flush_postexec() hook is also flushed in a
 
551
subsequent flush, before the &#8220;commit&#8221; completes.
 
552
Subsequent calls to flush() will continue until
 
553
the after_flush hooks stop adding new state.
 
554
An &#8220;overflow&#8221; counter of 100 is also in place,
 
555
in the event of a broken after_flush() hook
 
556
adding new content each time.<a class="changeset-link reference internal" href="#change-75a53327aac5791fe98ec087706a2821">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2566">#2566</a></p>
 
557
</p>
 
558
</li>
 
559
</ul>
 
560
</div>
 
561
<div class="section" id="change-0.7.9-engine">
 
562
<h3>engine<a class="headerlink" href="#change-0.7.9-engine" title="Permalink to this headline">¶</a></h3>
 
563
<ul class="simple">
 
564
<li><p id="change-0.7.9-5"><span class="target" id="change-1ea4b7b984950d31f63149e35daeabd8"><strong>[engine] [feature] </strong></span>Dramatic improvement in memory
 
565
usage of the event system; instance-level
 
566
collections are no longer created for a
 
567
particular type of event until
 
568
instance-level listeners are established
 
569
for that event.<a class="changeset-link reference internal" href="#change-1ea4b7b984950d31f63149e35daeabd8">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2516">#2516</a></p>
 
570
</p>
 
571
</li>
 
572
<li><p id="change-0.7.9-6"><span class="target" id="change-fdcd7c2b744d1b0517dcd661225c5861"><strong>[engine] [bug] </strong></span>Fixed bug whereby
 
573
a disconnect detect + dispose that occurs
 
574
when the QueuePool has threads waiting
 
575
for connections would leave those
 
576
threads waiting for the duration of
 
577
the timeout on the old pool (or indefinitely
 
578
if timeout was disabled).  The fix
 
579
now notifies those waiters with a special
 
580
exception case and has them move onto
 
581
the new pool.<a class="changeset-link reference internal" href="#change-fdcd7c2b744d1b0517dcd661225c5861">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2522">#2522</a></p>
 
582
</p>
 
583
</li>
 
584
<li><p id="change-0.7.9-7"><span class="target" id="change-58d069563938eacae32bc49a7fa487a9"><strong>[engine] [bug] </strong></span>Added gaerdbms import to mysql/__init__.py,
 
585
the absense of which was preventing the new
 
586
GAE dialect from being loaded.<a class="changeset-link reference internal" href="#change-58d069563938eacae32bc49a7fa487a9">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2529">#2529</a></p>
 
587
</p>
 
588
</li>
 
589
<li><p id="change-0.7.9-8"><span class="target" id="change-1611076226ee618bce70e17a998bb142"><strong>[engine] [bug] </strong></span>Fixed cextension bug whereby the
 
590
&#8220;ambiguous column error&#8221; would fail to
 
591
function properly if the given index were
 
592
a Column object and not a string.
 
593
Note there are still some column-targeting
 
594
issues here which are fixed in 0.8.<a class="changeset-link reference internal" href="#change-1611076226ee618bce70e17a998bb142">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2553">#2553</a></p>
 
595
</p>
 
596
</li>
 
597
<li><p id="change-0.7.9-9"><span class="target" id="change-7a5dc641918acd3079fdf695b99feac6"><strong>[engine] [bug] </strong></span>Fixed the repr() of Enum to include
 
598
the &#8220;name&#8221; and &#8220;native_enum&#8221; flags.  Helps
 
599
Alembic autogenerate.<a class="changeset-link reference internal" href="#change-7a5dc641918acd3079fdf695b99feac6">(link)</a><p></p>
 
600
</p>
 
601
</li>
 
602
</ul>
 
603
</div>
 
604
<div class="section" id="change-0.7.9-sql">
 
605
<h3>sql<a class="headerlink" href="#change-0.7.9-sql" title="Permalink to this headline">¶</a></h3>
 
606
<ul class="simple">
 
607
<li><p id="change-0.7.9-10"><span class="target" id="change-4fa1e0b9d25273b768a3d9102cfc3964"><strong>[sql] [bug] </strong></span>Fixed the DropIndex construct to support
 
608
an Index associated with a Table in a remote
 
609
schema.<a class="changeset-link reference internal" href="#change-4fa1e0b9d25273b768a3d9102cfc3964">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2571">#2571</a></p>
 
610
</p>
 
611
</li>
 
612
<li><p id="change-0.7.9-11"><span class="target" id="change-de56e0073210255535e501662d7f096a"><strong>[sql] [bug] </strong></span>Fixed bug in over() construct whereby
 
613
passing an empty list for either partition_by
 
614
or order_by, as opposed to None, would fail
 
615
to generate correctly.
 
616
Courtesy Gunnlaugur Þór Briem.<a class="changeset-link reference internal" href="#change-de56e0073210255535e501662d7f096a">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2574">#2574</a></p>
 
617
</p>
 
618
</li>
 
619
<li><p id="change-0.7.9-12"><span class="target" id="change-3f0696f49c0d0cc576c2925339fa8b33"><strong>[sql] [bug] </strong></span>Fixed CTE bug whereby positional
 
620
bound parameters present in the CTEs themselves
 
621
would corrupt the overall ordering of
 
622
bound parameters.  This primarily
 
623
affected SQL Server as the platform with
 
624
positional binds + CTE support.<a class="changeset-link reference internal" href="#change-3f0696f49c0d0cc576c2925339fa8b33">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2521">#2521</a></p>
 
625
</p>
 
626
</li>
 
627
<li><p id="change-0.7.9-13"><span class="target" id="change-99a68f579410131cd9c11d84022701d0"><strong>[sql] [bug] </strong></span>Fixed more un-intuitivenesses in CTEs
 
628
which prevented referring to a CTE in a union
 
629
of itself without it being aliased.
 
630
CTEs now render uniquely
 
631
on name, rendering the outermost CTE of a given
 
632
name only - all other references are rendered
 
633
just as the name.   This even includes other
 
634
CTE/SELECTs that refer to different versions
 
635
of the same CTE object, such as a SELECT
 
636
or a UNION ALL of that SELECT. We are
 
637
somewhat loosening the usual link between object
 
638
identity and lexical identity in this case.
 
639
A true name conflict between two unrelated
 
640
CTEs now raises an error.<a class="changeset-link reference internal" href="#change-99a68f579410131cd9c11d84022701d0">(link)</a><p></p>
 
641
</p>
 
642
</li>
 
643
<li><p id="change-0.7.9-14"><span class="target" id="change-2da6697c7fa6a82e5f84b769b2c8b627"><strong>[sql] [bug] </strong></span>quoting is applied to the column names
 
644
inside the WITH RECURSIVE clause of a
 
645
common table expression according to the
 
646
quoting rules for the originating Column.<a class="changeset-link reference internal" href="#change-2da6697c7fa6a82e5f84b769b2c8b627">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2512">#2512</a></p>
 
647
</p>
 
648
</li>
 
649
<li><p id="change-0.7.9-15"><span class="target" id="change-c1a4594a681dd605fd87e2250bf3279b"><strong>[sql] [bug] </strong></span>Fixed regression introduced in 0.7.6
 
650
whereby the FROM list of a SELECT statement
 
651
could be incorrect in certain &#8220;clone+replace&#8221;
 
652
scenarios.<a class="changeset-link reference internal" href="#change-c1a4594a681dd605fd87e2250bf3279b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2518">#2518</a></p>
 
653
</p>
 
654
</li>
 
655
<li><p id="change-0.7.9-16"><span class="target" id="change-040c1b57e6448664e4b95f7c38bde6b0"><strong>[sql] [bug] </strong></span>Fixed bug whereby usage of a UNION
 
656
or similar inside of an embedded subquery
 
657
would interfere with result-column targeting,
 
658
in the case that a result-column had the same
 
659
ultimate name as a name inside the embedded
 
660
UNION.<a class="changeset-link reference internal" href="#change-040c1b57e6448664e4b95f7c38bde6b0">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2552">#2552</a></p>
 
661
</p>
 
662
</li>
 
663
<li><p id="change-0.7.9-17"><span class="target" id="change-b333e57b4e8138a52b594b9762773ecb"><strong>[sql] [bug] </strong></span>Fixed a regression since 0.6 regarding
 
664
result-row targeting.   It should be possible
 
665
to use a select() statement with string
 
666
based columns in it, that is
 
667
select([&#8216;id&#8217;, &#8216;name&#8217;]).select_from(&#8216;mytable&#8217;),
 
668
and have this statement be targetable by
 
669
Column objects with those names; this is the
 
670
mechanism by which
 
671
query(MyClass).from_statement(some_statement)
 
672
works.  At some point the specific case of
 
673
using select([&#8216;id&#8217;]), which is equivalent to
 
674
select([literal_column(&#8216;id&#8217;)]), stopped working
 
675
here, so this has been re-instated and of
 
676
course tested.<a class="changeset-link reference internal" href="#change-b333e57b4e8138a52b594b9762773ecb">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2558">#2558</a></p>
 
677
</p>
 
678
</li>
 
679
<li><p id="change-0.7.9-18"><span class="target" id="change-c8cd2fe962e7e67b56bece706ecebf99"><strong>[sql] [bug] </strong></span>Added missing operators is_(), isnot()
 
680
to the ColumnOperators base, so that these long-available
 
681
operators are present as methods like all
 
682
the other operators.<a class="changeset-link reference internal" href="#change-c8cd2fe962e7e67b56bece706ecebf99">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2544">#2544</a></p>
 
683
</p>
 
684
</li>
 
685
</ul>
 
686
</div>
 
687
<div class="section" id="change-0.7.9-postgresql">
 
688
<h3>postgresql<a class="headerlink" href="#change-0.7.9-postgresql" title="Permalink to this headline">¶</a></h3>
 
689
<ul class="simple">
 
690
<li><p id="change-0.7.9-19"><span class="target" id="change-fc212ca64d8b904651fb2c76e5fa8961"><strong>[postgresql] [bug] </strong></span>Columns in reflected primary key constraint
 
691
are now returned in the order in which the constraint
 
692
itself defines them, rather than how the table
 
693
orders them.  Courtesy Gunnlaugur Þór Briem..<a class="changeset-link reference internal" href="#change-fc212ca64d8b904651fb2c76e5fa8961">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2531">#2531</a></p>
 
694
</p>
 
695
</li>
 
696
<li><p id="change-0.7.9-20"><span class="target" id="change-bb9b195b7b37981bc5a03b6ee00066fb"><strong>[postgresql] [bug] </strong></span>Added &#8216;terminating connection&#8217; to the list
 
697
of messages we use to detect a disconnect with PG, which
 
698
appears to be present in some versions when the server
 
699
is restarted.<a class="changeset-link reference internal" href="#change-bb9b195b7b37981bc5a03b6ee00066fb">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2570">#2570</a></p>
 
700
</p>
 
701
</li>
 
702
</ul>
 
703
</div>
 
704
<div class="section" id="change-0.7.9-mysql">
 
705
<h3>mysql<a class="headerlink" href="#change-0.7.9-mysql" title="Permalink to this headline">¶</a></h3>
 
706
<ul class="simple">
 
707
<li><p id="change-0.7.9-21"><span class="target" id="change-5e04bb001a3d1f81860ab0a3eb880c8c"><strong>[mysql] [bug] </strong></span>Updated mysqlconnector interface to use
 
708
updated &#8220;client flag&#8221; and &#8220;charset&#8221; APIs,
 
709
courtesy David McNelis.<a class="changeset-link reference internal" href="#change-5e04bb001a3d1f81860ab0a3eb880c8c">(link)</a><p></p>
 
710
</p>
 
711
</li>
 
712
</ul>
 
713
</div>
 
714
<div class="section" id="change-0.7.9-sqlite">
 
715
<h3>sqlite<a class="headerlink" href="#change-0.7.9-sqlite" title="Permalink to this headline">¶</a></h3>
 
716
<ul class="simple">
 
717
<li><p id="change-0.7.9-22"><span class="target" id="change-8b6a9dd463218f41b6c8b796886f842d"><strong>[sqlite] [feature] </strong></span>Added support for the localtimestamp()
 
718
SQL function implemented in SQLite, courtesy
 
719
Richard Mitchell.<a class="changeset-link reference internal" href="#change-8b6a9dd463218f41b6c8b796886f842d">(link)</a><p></p>
 
720
</p>
 
721
</li>
 
722
<li><p id="change-0.7.9-23"><span class="target" id="change-8fdfac6e8169a77056e854ede3116b1d"><strong>[sqlite] [bug] </strong></span>Adjusted a very old bugfix which attempted
 
723
to work around a SQLite issue that itself was
 
724
&#8220;fixed&#8221; as of sqlite 3.6.14, regarding quotes
 
725
surrounding a table name when using
 
726
the &#8220;foreign_key_list&#8221; pragma.  The fix has been
 
727
adjusted to not interfere with quotes that
 
728
are <em>actually in the name</em> of a column or table,
 
729
to as much a degree as possible; sqlite still
 
730
doesn&#8217;t return the correct result for foreign_key_list()
 
731
if the target table actually has quotes surrounding
 
732
its name, as <em>part</em> of its name (i.e. &#8220;&#8221;&#8220;mytable&#8221;&#8220;&#8221;).<a class="changeset-link reference internal" href="#change-8fdfac6e8169a77056e854ede3116b1d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2568">#2568</a></p>
 
733
</p>
 
734
</li>
 
735
<li><p id="change-0.7.9-24"><span class="target" id="change-4f3a6c482d01e64bbcadcc806825c71f"><strong>[sqlite] [bug] </strong></span>Adjusted column default reflection code to
 
736
convert non-string values to string, to accommodate
 
737
old SQLite versions that don&#8217;t deliver
 
738
default info as a string.<a class="changeset-link reference internal" href="#change-4f3a6c482d01e64bbcadcc806825c71f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2265">#2265</a></p>
 
739
</p>
 
740
</li>
 
741
</ul>
 
742
</div>
 
743
<div class="section" id="change-0.7.9-mssql">
 
744
<h3>mssql<a class="headerlink" href="#change-0.7.9-mssql" title="Permalink to this headline">¶</a></h3>
 
745
<ul class="simple">
 
746
<li><p id="change-0.7.9-25"><span class="target" id="change-06d018a274ae08d49296d57e04e26ec7"><strong>[mssql] [bug] </strong></span>Fixed compiler bug whereby using a correlated
 
747
subquery within an ORDER BY would fail to render correctly
 
748
if the stament also used LIMIT/OFFSET, due to mis-rendering
 
749
within the ROW_NUMBER() OVER clause.  Fix courtesy
 
750
sayap<a class="changeset-link reference internal" href="#change-06d018a274ae08d49296d57e04e26ec7">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2538">#2538</a></p>
 
751
</p>
 
752
</li>
 
753
<li><p id="change-0.7.9-26"><span class="target" id="change-bd1df339b27f45dc5cda88f5736a4324"><strong>[mssql] [bug] </strong></span>Fixed compiler bug whereby a given
 
754
select() would be modified if it had an &#8220;offset&#8221;
 
755
attribute, causing the construct to not compile
 
756
correctly a second time.<a class="changeset-link reference internal" href="#change-bd1df339b27f45dc5cda88f5736a4324">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2545">#2545</a></p>
 
757
</p>
 
758
</li>
 
759
<li><p id="change-0.7.9-27"><span class="target" id="change-71245e957fd2b82f1ba3435287ea9f0d"><strong>[mssql] [bug] </strong></span>Fixed bug where reflection of primary key constraint
 
760
would double up columns if the same constraint/table
 
761
existed in multiple schemas.<a class="changeset-link reference internal" href="#change-71245e957fd2b82f1ba3435287ea9f0d">(link)</a><p></p>
 
762
</p>
 
763
</li>
 
764
</ul>
 
765
</div>
 
766
</div>
 
767
<div class="section" id="change-0.7.8">
 
768
<h2>0.7.8<a class="headerlink" href="#change-0.7.8" title="Permalink to this headline">¶</a></h2>
 
769
Released: Sat Jun 16 2012<div class="section" id="change-0.7.8-orm">
 
770
<h3>orm<a class="headerlink" href="#change-0.7.8-orm" title="Permalink to this headline">¶</a></h3>
 
771
<ul class="simple">
 
772
<li><p id="change-0.7.8-0"><span class="target" id="change-90a7ad18c89ef080942d51375dd30972"><strong>[orm] [feature] </strong></span>The &#8216;objects&#8217; argument to
 
773
flush() is no longer deprecated, as some
 
774
valid use cases have been identified.<a class="changeset-link reference internal" href="#change-90a7ad18c89ef080942d51375dd30972">(link)</a><p></p>
 
775
</p>
 
776
</li>
 
777
<li><p id="change-0.7.8-1"><span class="target" id="change-cf3b8502914010cbf22dd36d53d49d41"><strong>[orm] [bug] </strong></span>Fixed bug whereby subqueryload() from
 
778
a polymorphic mapping to a target would incur
 
779
a new invocation of the query for each
 
780
distinct class encountered in the polymorphic
 
781
result.<a class="changeset-link reference internal" href="#change-cf3b8502914010cbf22dd36d53d49d41">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2480">#2480</a></p>
 
782
</p>
 
783
</li>
 
784
<li><p id="change-0.7.8-2"><span class="target" id="change-a32af8388995303eab427cf746d301ee"><strong>[orm] [bug] </strong></span>Fixed bug in declarative
 
785
whereby the precedence of columns
 
786
in a joined-table, composite
 
787
column (typically for id) would fail to
 
788
be correct if the columns contained
 
789
names distinct from their attribute
 
790
names.  This would cause things like
 
791
primaryjoin conditions made against the
 
792
entity attributes to be incorrect.  Related
 
793
to as this was supposed
 
794
to be part of that, this is.<a class="changeset-link reference internal" href="#change-a32af8388995303eab427cf746d301ee">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2491">#2491</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1892">#1892</a></p>
 
795
</p>
 
796
</li>
 
797
<li><p id="change-0.7.8-3"><span class="target" id="change-f98e8f725d059fea2dfc556d72b1b131"><strong>[orm] [bug] </strong></span>Fixed identity_key() function which
 
798
was not accepting a scalar argument
 
799
for the identity. .<a class="changeset-link reference internal" href="#change-f98e8f725d059fea2dfc556d72b1b131">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2508">#2508</a></p>
 
800
</p>
 
801
</li>
 
802
<li><p id="change-0.7.8-4"><span class="target" id="change-4a617743b2bf4279e53c14ee010bc346"><strong>[orm] [bug] </strong></span>Fixed bug whereby populate_existing
 
803
option would not propagate to subquery
 
804
eager loaders. .<a class="changeset-link reference internal" href="#change-4a617743b2bf4279e53c14ee010bc346">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2497">#2497</a></p>
 
805
</p>
 
806
</li>
 
807
</ul>
 
808
</div>
 
809
<div class="section" id="change-0.7.8-engine">
 
810
<h3>engine<a class="headerlink" href="#change-0.7.8-engine" title="Permalink to this headline">¶</a></h3>
 
811
<ul class="simple">
 
812
<li><p id="change-0.7.8-5"><span class="target" id="change-348d36798c980e7c202e6fdcc5850810"><strong>[engine] [bug] </strong></span>Fixed memory leak in C version of
 
813
result proxy whereby DBAPIs which don&#8217;t deliver
 
814
pure Python tuples for result rows would
 
815
fail to decrement refcounts correctly.
 
816
The most prominently affected DBAPI
 
817
is pyodbc.<a class="changeset-link reference internal" href="#change-348d36798c980e7c202e6fdcc5850810">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2489">#2489</a></p>
 
818
</p>
 
819
</li>
 
820
<li><p id="change-0.7.8-6"><span class="target" id="change-fd4bdaeacedad743b6f3bbcd200ef237"><strong>[engine] [bug] </strong></span>Fixed bug affecting Py3K whereby
 
821
string positional parameters passed to
 
822
engine/connection execute() would fail to be
 
823
interpreted correctly, due to __iter__
 
824
being present on Py3K string..<a class="changeset-link reference internal" href="#change-fd4bdaeacedad743b6f3bbcd200ef237">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2503">#2503</a></p>
 
825
</p>
 
826
</li>
 
827
</ul>
 
828
</div>
 
829
<div class="section" id="change-0.7.8-sql">
 
830
<h3>sql<a class="headerlink" href="#change-0.7.8-sql" title="Permalink to this headline">¶</a></h3>
 
831
<ul class="simple">
 
832
<li><p id="change-0.7.8-7"><span class="target" id="change-5c6ba9ce1ee5598442500138f0eea997"><strong>[sql] [bug] </strong></span>added BIGINT to types.__all__,
 
833
BIGINT, BINARY, VARBINARY to sqlalchemy
 
834
module namespace, plus test to ensure
 
835
this breakage doesn&#8217;t occur again.<a class="changeset-link reference internal" href="#change-5c6ba9ce1ee5598442500138f0eea997">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2499">#2499</a></p>
 
836
</p>
 
837
</li>
 
838
<li><p id="change-0.7.8-8"><span class="target" id="change-e2fe913b74611147fd04de969da717aa"><strong>[sql] [bug] </strong></span>Repaired common table expression
 
839
rendering to function correctly when the
 
840
SELECT statement contains UNION or other
 
841
compound expressions, courtesy btbuilder.<a class="changeset-link reference internal" href="#change-e2fe913b74611147fd04de969da717aa">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2490">#2490</a></p>
 
842
</p>
 
843
</li>
 
844
<li><p id="change-0.7.8-9"><span class="target" id="change-82d5e8837ecd40049cc656f51882f9dd"><strong>[sql] [bug] </strong></span>Fixed bug whereby append_column()
 
845
wouldn&#8217;t function correctly on a cloned
 
846
select() construct, courtesy
 
847
Gunnlaugur Þór Briem.<a class="changeset-link reference internal" href="#change-82d5e8837ecd40049cc656f51882f9dd">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2482">#2482</a></p>
 
848
</p>
 
849
</li>
 
850
</ul>
 
851
</div>
 
852
<div class="section" id="change-0.7.8-postgresql">
 
853
<h3>postgresql<a class="headerlink" href="#change-0.7.8-postgresql" title="Permalink to this headline">¶</a></h3>
 
854
<ul class="simple">
 
855
<li><p id="change-0.7.8-10"><span class="target" id="change-2b0b56fe92fecdf3f47b187723fac1d1"><strong>[postgresql] [bug] </strong></span>removed unnecessary table clause when
 
856
reflecting enums,.  Courtesy
 
857
Gunnlaugur Þór Briem.<a class="changeset-link reference internal" href="#change-2b0b56fe92fecdf3f47b187723fac1d1">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2510">#2510</a></p>
 
858
</p>
 
859
</li>
 
860
</ul>
 
861
</div>
 
862
<div class="section" id="change-0.7.8-mysql">
 
863
<h3>mysql<a class="headerlink" href="#change-0.7.8-mysql" title="Permalink to this headline">¶</a></h3>
 
864
<ul class="simple">
 
865
<li><p id="change-0.7.8-11"><span class="target" id="change-b9342db19c8d65b942f8bcb7638f0ad3"><strong>[mysql] [feature] </strong></span>Added a new dialect for Google App
 
866
Engine.  Courtesy Richie Foreman.<a class="changeset-link reference internal" href="#change-b9342db19c8d65b942f8bcb7638f0ad3">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2484">#2484</a></p>
 
867
</p>
 
868
</li>
 
869
</ul>
 
870
</div>
 
871
<div class="section" id="change-0.7.8-oracle">
 
872
<h3>oracle<a class="headerlink" href="#change-0.7.8-oracle" title="Permalink to this headline">¶</a></h3>
 
873
<ul class="simple">
 
874
<li><p id="change-0.7.8-12"><span class="target" id="change-ad8811c99ec2bf8fc5f2e8ff5e1b91a3"><strong>[oracle] [bug] </strong></span>Added ROWID to oracle.*.<a class="changeset-link reference internal" href="#change-ad8811c99ec2bf8fc5f2e8ff5e1b91a3">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2483">#2483</a></p>
 
875
</p>
 
876
</li>
 
877
</ul>
 
878
</div>
 
879
</div>
 
880
<div class="section" id="change-0.7.7">
 
881
<h2>0.7.7<a class="headerlink" href="#change-0.7.7" title="Permalink to this headline">¶</a></h2>
 
882
Released: Sat May 05 2012<div class="section" id="change-0.7.7-orm">
 
883
<h3>orm<a class="headerlink" href="#change-0.7.7-orm" title="Permalink to this headline">¶</a></h3>
 
884
<ul class="simple">
 
885
<li><p id="change-0.7.7-0"><span class="target" id="change-25aac7662d89caf0fb5cbcd3d4145b73"><strong>[orm] [feature] </strong></span>Added prefix_with() method
 
886
to Query, calls upon select().prefix_with()
 
887
to allow placement of MySQL SELECT
 
888
directives in statements.  Courtesy
 
889
Diana Clarke<a class="changeset-link reference internal" href="#change-25aac7662d89caf0fb5cbcd3d4145b73">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2443">#2443</a></p>
 
890
</p>
 
891
</li>
 
892
<li><p id="change-0.7.7-1"><span class="target" id="change-9d753c51f57c3c616f604d0db83097d5"><strong>[orm] [feature] </strong></span>Added new flag to &#64;validates
 
893
include_removes.  When True, collection
 
894
remove and attribute del events
 
895
will also be sent to the validation function,
 
896
which accepts an additional argument
 
897
&#8220;is_remove&#8221; when this flag is used.<a class="changeset-link reference internal" href="#change-9d753c51f57c3c616f604d0db83097d5">(link)</a><p></p>
 
898
</p>
 
899
</li>
 
900
<li><p id="change-0.7.7-2"><span class="target" id="change-b8f58dbdb7f5047dc8fa39d59cb26288"><strong>[orm] [bug] </strong></span>Fixed issue in unit of work
 
901
whereby setting a non-None self-referential
 
902
many-to-one relationship to None
 
903
would fail to persist the change if the
 
904
former value was not already loaded..<a class="changeset-link reference internal" href="#change-b8f58dbdb7f5047dc8fa39d59cb26288">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2477">#2477</a></p>
 
905
</p>
 
906
</li>
 
907
<li><p id="change-0.7.7-3"><span class="target" id="change-f77cf934beb15ca7e09a931e3b100a1a"><strong>[orm] [bug] </strong></span>Fixed bug in 0.7.6 introduced by whereby column_mapped_collection
 
908
used against columns that were mapped as
 
909
joins or other indirect selectables
 
910
would fail to function.<a class="changeset-link reference internal" href="#change-f77cf934beb15ca7e09a931e3b100a1a">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2409">#2409</a></p>
 
911
</p>
 
912
</li>
 
913
<li><p id="change-0.7.7-4"><span class="target" id="change-a152eaa87daaa0d2a342246bcb91e574"><strong>[orm] [bug] </strong></span>Fixed bug whereby polymorphic_on
 
914
column that&#8217;s not otherwise mapped on the
 
915
class would be incorrectly included
 
916
in a merge() operation, raising an error.<a class="changeset-link reference internal" href="#change-a152eaa87daaa0d2a342246bcb91e574">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2449">#2449</a></p>
 
917
</p>
 
918
</li>
 
919
<li><p id="change-0.7.7-5"><span class="target" id="change-abfe23b5d84195d02cbf3aae199c82cd"><strong>[orm] [bug] </strong></span>Fixed bug in expression annotation
 
920
mechanics which could lead to incorrect
 
921
rendering of SELECT statements with aliases
 
922
and joins, particularly when using
 
923
column_property().<a class="changeset-link reference internal" href="#change-abfe23b5d84195d02cbf3aae199c82cd">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2453">#2453</a></p>
 
924
</p>
 
925
</li>
 
926
<li><p id="change-0.7.7-6"><span class="target" id="change-879e7b4c03a5046a0e6cc2aee6ab5036"><strong>[orm] [bug] </strong></span>Fixed bug which would prevent
 
927
OrderingList from being pickleable.  Courtesy Jeff Dairiki<a class="changeset-link reference internal" href="#change-879e7b4c03a5046a0e6cc2aee6ab5036">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2454">#2454</a></p>
 
928
</p>
 
929
</li>
 
930
<li><p id="change-0.7.7-7"><span class="target" id="change-a809abc1a2320cef2ddbf36f9823afac"><strong>[orm] [bug] </strong></span>Fixed bug in relationship comparisons
 
931
whereby calling unimplemented methods like
 
932
SomeClass.somerelationship.like() would
 
933
produce a recursion overflow, instead
 
934
of NotImplementedError.<a class="changeset-link reference internal" href="#change-a809abc1a2320cef2ddbf36f9823afac">(link)</a><p></p>
 
935
</p>
 
936
</li>
 
937
</ul>
 
938
</div>
 
939
<div class="section" id="change-0.7.7-sql">
 
940
<h3>sql<a class="headerlink" href="#change-0.7.7-sql" title="Permalink to this headline">¶</a></h3>
 
941
<ul class="simple">
 
942
<li><p id="change-0.7.7-8"><span class="target" id="change-60e0de8dbae77883685d68262a548cb0"><strong>[sql] [feature] </strong></span>Added new connection event
 
943
dbapi_error(). Is called for all DBAPI-level
 
944
errors passing the original DBAPI exception
 
945
before SQLAlchemy modifies the state
 
946
of the cursor.<a class="changeset-link reference internal" href="#change-60e0de8dbae77883685d68262a548cb0">(link)</a><p></p>
 
947
</p>
 
948
</li>
 
949
<li><p id="change-0.7.7-9"><span class="target" id="change-258642bfde7a22ef72f36f37450b99fa"><strong>[sql] [bug] </strong></span>Removed warning when Index is created
 
950
with no columns; while this might not be what
 
951
the user intended, it is a valid use case
 
952
as an Index could be a placeholder for just an
 
953
index of a certain name.<a class="changeset-link reference internal" href="#change-258642bfde7a22ef72f36f37450b99fa">(link)</a><p></p>
 
954
</p>
 
955
</li>
 
956
<li><p id="change-0.7.7-10"><span class="target" id="change-ab71ae4387dd75bf6a53122b28ae899e"><strong>[sql] [bug] </strong></span>If conn.begin() fails when calling
 
957
&#8220;with engine.begin()&#8221;, the newly acquired
 
958
Connection is closed explicitly before
 
959
propagating the exception onward normally.<a class="changeset-link reference internal" href="#change-ab71ae4387dd75bf6a53122b28ae899e">(link)</a><p></p>
 
960
</p>
 
961
</li>
 
962
<li><p id="change-0.7.7-11"><span class="target" id="change-e3411e9d22bdbb5992f9e88d3dcaee90"><strong>[sql] [bug] </strong></span>Add BINARY, VARBINARY to types.__all__.<a class="changeset-link reference internal" href="#change-e3411e9d22bdbb5992f9e88d3dcaee90">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2474">#2474</a></p>
 
963
</p>
 
964
</li>
 
965
</ul>
 
966
</div>
 
967
<div class="section" id="change-0.7.7-postgresql">
 
968
<h3>postgresql<a class="headerlink" href="#change-0.7.7-postgresql" title="Permalink to this headline">¶</a></h3>
 
969
<ul class="simple">
 
970
<li><p id="change-0.7.7-12"><span class="target" id="change-60c3844adeb64d1db651beaee5017dbe"><strong>[postgresql] [feature] </strong></span>Added new for_update/with_lockmode()
 
971
options for Postgresql: for_update=&#8221;read&#8221;/
 
972
with_lockmode(&#8220;read&#8221;),
 
973
for_update=&#8221;read_nowait&#8221;/
 
974
with_lockmode(&#8220;read_nowait&#8221;).
 
975
These emit &#8220;FOR SHARE&#8221; and &#8220;FOR SHARE NOWAIT&#8221;,
 
976
respectively.  Courtesy Diana Clarke<a class="changeset-link reference internal" href="#change-60c3844adeb64d1db651beaee5017dbe">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2445">#2445</a></p>
 
977
</p>
 
978
</li>
 
979
<li><p id="change-0.7.7-13"><span class="target" id="change-a0e768a991b47e8fdefbd505b05b3e17"><strong>[postgresql] [bug] </strong></span>removed unnecessary table clause
 
980
when reflecting domains.<a class="changeset-link reference internal" href="#change-a0e768a991b47e8fdefbd505b05b3e17">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2473">#2473</a></p>
 
981
</p>
 
982
</li>
 
983
</ul>
 
984
</div>
 
985
<div class="section" id="change-0.7.7-mysql">
 
986
<h3>mysql<a class="headerlink" href="#change-0.7.7-mysql" title="Permalink to this headline">¶</a></h3>
 
987
<ul class="simple">
 
988
<li><p id="change-0.7.7-14"><span class="target" id="change-1be3a59937fd9dfcf596e919548e77b0"><strong>[mysql] [bug] </strong></span>Fixed bug whereby column name inside
 
989
of &#8220;KEY&#8221; clause for autoincrement composite
 
990
column with InnoDB would double quote a
 
991
name that&#8217;s a reserved word.  Courtesy Jeff
 
992
Dairiki.<a class="changeset-link reference internal" href="#change-1be3a59937fd9dfcf596e919548e77b0">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2460">#2460</a></p>
 
993
</p>
 
994
</li>
 
995
<li><p id="change-0.7.7-15"><span class="target" id="change-d53f513885dabbbb9b7b9479dcc6c9fb"><strong>[mysql] [bug] </strong></span>Fixed bug whereby get_view_names() for
 
996
&#8220;information_schema&#8221; schema would fail
 
997
to retrieve views marked as &#8220;SYSTEM VIEW&#8221;.
 
998
courtesy Matthew Turland.<a class="changeset-link reference internal" href="#change-d53f513885dabbbb9b7b9479dcc6c9fb">(link)</a><p></p>
 
999
</p>
 
1000
</li>
 
1001
<li><p id="change-0.7.7-16"><span class="target" id="change-665f633590992519d1a2afe8c40aa0b9"><strong>[mysql] [bug] </strong></span>Fixed bug whereby if cast() is used
 
1002
on a SQL expression whose type is not supported
 
1003
by cast() and therefore CAST isn&#8217;t rendered by
 
1004
the dialect, the order of evaluation could change
 
1005
if the casted expression required that it be
 
1006
grouped; grouping is now applied to those
 
1007
expressions.<a class="changeset-link reference internal" href="#change-665f633590992519d1a2afe8c40aa0b9">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2467">#2467</a></p>
 
1008
</p>
 
1009
</li>
 
1010
</ul>
 
1011
</div>
 
1012
<div class="section" id="change-0.7.7-sqlite">
 
1013
<h3>sqlite<a class="headerlink" href="#change-0.7.7-sqlite" title="Permalink to this headline">¶</a></h3>
 
1014
<ul class="simple">
 
1015
<li><p id="change-0.7.7-17"><span class="target" id="change-4d3073c4d8020a0289ac68eed962eaa3"><strong>[sqlite] [feature] </strong></span>Added SQLite execution option
 
1016
&#8220;sqlite_raw_colnames=True&#8221;, will bypass
 
1017
attempts to remove &#8221;.&#8221; from column names
 
1018
returned by SQLite cursor.description.<a class="changeset-link reference internal" href="#change-4d3073c4d8020a0289ac68eed962eaa3">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2475">#2475</a></p>
 
1019
</p>
 
1020
</li>
 
1021
<li><p id="change-0.7.7-18"><span class="target" id="change-8c57451af0004baeb28caf92d4ee90b8"><strong>[sqlite] [bug] </strong></span>When the primary key column of a Table
 
1022
is replaced, such as via extend_existing,
 
1023
the &#8220;auto increment&#8221; column used by insert()
 
1024
constructs is reset.  Previously it would
 
1025
remain referring to the previous primary
 
1026
key column.<a class="changeset-link reference internal" href="#change-8c57451af0004baeb28caf92d4ee90b8">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2525">#2525</a></p>
 
1027
</p>
 
1028
</li>
 
1029
</ul>
 
1030
</div>
 
1031
<div class="section" id="change-0.7.7-mssql">
 
1032
<h3>mssql<a class="headerlink" href="#change-0.7.7-mssql" title="Permalink to this headline">¶</a></h3>
 
1033
<ul class="simple">
 
1034
<li><p id="change-0.7.7-19"><span class="target" id="change-5948b6fff685d80894bef6e58a19581d"><strong>[mssql] [feature] </strong></span>Added interim create_engine flag
 
1035
supports_unicode_binds to PyODBC dialect,
 
1036
to force whether or not the dialect
 
1037
passes Python unicode literals to PyODBC
 
1038
or not.<a class="changeset-link reference internal" href="#change-5948b6fff685d80894bef6e58a19581d">(link)</a><p></p>
 
1039
</p>
 
1040
</li>
 
1041
<li><p id="change-0.7.7-20"><span class="target" id="change-f013930a1f1b98f461979f93285819df"><strong>[mssql] [bug] </strong></span>Repaired the use_scope_identity
 
1042
create_engine() flag when using the pyodbc
 
1043
dialect.  Previously this flag would be
 
1044
ignored if set to False.  When set to False,
 
1045
you&#8217;ll get &#8220;SELECT &#64;&#64;identity&#8221; after each
 
1046
INSERT to get at the last inserted ID,
 
1047
for those tables which have &#8220;implicit_returning&#8221;
 
1048
set to False.<a class="changeset-link reference internal" href="#change-f013930a1f1b98f461979f93285819df">(link)</a><p></p>
 
1049
</p>
 
1050
</li>
 
1051
<li><p id="change-0.7.7-21"><span class="target" id="change-06067c1d141545a78a5e38fea15d3736"><strong>[mssql] [bug] </strong></span>UPDATE..FROM syntax with SQL Server
 
1052
requires that the updated table be present
 
1053
in the FROM clause when an alias of that
 
1054
table is also present in the FROM clause.
 
1055
The updated table is now always present
 
1056
in the FROM, when FROM is present
 
1057
in the first place.  Courtesy sayap.<a class="changeset-link reference internal" href="#change-06067c1d141545a78a5e38fea15d3736">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2468">#2468</a></p>
 
1058
</p>
 
1059
</li>
 
1060
</ul>
 
1061
</div>
 
1062
</div>
 
1063
<div class="section" id="change-0.7.6">
 
1064
<h2>0.7.6<a class="headerlink" href="#change-0.7.6" title="Permalink to this headline">¶</a></h2>
 
1065
Released: Wed Mar 14 2012<div class="section" id="change-0.7.6-orm">
 
1066
<h3>orm<a class="headerlink" href="#change-0.7.6-orm" title="Permalink to this headline">¶</a></h3>
 
1067
<ul class="simple">
 
1068
<li><p id="change-0.7.6-0"><span class="target" id="change-da251880fd88fa1c37bfa0d587e41173"><strong>[orm] [feature] </strong></span>Added &#8220;no_autoflush&#8221; context
 
1069
manager to Session, used with with:
 
1070
will temporarily disable autoflush.<a class="changeset-link reference internal" href="#change-da251880fd88fa1c37bfa0d587e41173">(link)</a><p></p>
 
1071
</p>
 
1072
</li>
 
1073
<li><p id="change-0.7.6-1"><span class="target" id="change-3dd168b2f746fa1b43aa5a01897c7ef3"><strong>[orm] [feature] </strong></span>Added cte() method to Query,
 
1074
invokes common table expression support
 
1075
from the Core (see below).<a class="changeset-link reference internal" href="#change-3dd168b2f746fa1b43aa5a01897c7ef3">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1859">#1859</a></p>
 
1076
</p>
 
1077
</li>
 
1078
<li><p id="change-0.7.6-2"><span class="target" id="change-06c8bf2ebcd62bebb89b05351bf869c6"><strong>[orm] [feature] </strong></span>Added the ability to query for
 
1079
Table-bound column names when using
 
1080
query(sometable).filter_by(colname=value).<a class="changeset-link reference internal" href="#change-06c8bf2ebcd62bebb89b05351bf869c6">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2400">#2400</a></p>
 
1081
</p>
 
1082
</li>
 
1083
<li><p id="change-0.7.6-3"><span class="target" id="change-886ab67fd7fa03ee2c0d177071b3ded4"><strong>[orm] [bug] </strong></span>Fixed event registration bug
 
1084
which would primarily show up as
 
1085
events not being registered with
 
1086
sessionmaker() instances created
 
1087
after the event was associated
 
1088
with the Session class.<a class="changeset-link reference internal" href="#change-886ab67fd7fa03ee2c0d177071b3ded4">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2424">#2424</a></p>
 
1089
</p>
 
1090
</li>
 
1091
<li><p id="change-0.7.6-4"><span class="target" id="change-d6df1da3c271d4360d60721dcd4d93cd"><strong>[orm] [bug] </strong></span>Fixed bug whereby a primaryjoin
 
1092
condition with a &#8220;literal&#8221; in it would
 
1093
raise an error on compile with certain
 
1094
kinds of deeply nested expressions
 
1095
which also needed to render the same
 
1096
bound parameter name more than once.<a class="changeset-link reference internal" href="#change-d6df1da3c271d4360d60721dcd4d93cd">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2425">#2425</a></p>
 
1097
</p>
 
1098
</li>
 
1099
<li><p id="change-0.7.6-5"><span class="target" id="change-c963d79fbb48b092468b8df14fe08b03"><strong>[orm] [bug] </strong></span>Removed the check for number of
 
1100
rows affected when doing a multi-delete
 
1101
against mapped objects.   If an ON DELETE
 
1102
CASCADE exists between two rows, we can&#8217;t
 
1103
get an accurate rowcount from the DBAPI;
 
1104
this particular count is not supported
 
1105
on most DBAPIs in any case, MySQLdb
 
1106
is the notable case where it is.<a class="changeset-link reference internal" href="#change-c963d79fbb48b092468b8df14fe08b03">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2403">#2403</a></p>
 
1107
</p>
 
1108
</li>
 
1109
<li><p id="change-0.7.6-6"><span class="target" id="change-8ce7b5c1f9764f4be9a06bb9f69e52f2"><strong>[orm] [bug] </strong></span>Fixed bug whereby objects using
 
1110
attribute_mapped_collection or
 
1111
column_mapped_collection could not be
 
1112
pickled.<a class="changeset-link reference internal" href="#change-8ce7b5c1f9764f4be9a06bb9f69e52f2">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2409">#2409</a></p>
 
1113
</p>
 
1114
</li>
 
1115
<li><p id="change-0.7.6-7"><span class="target" id="change-4139f8190200416937260afba0d0f8b1"><strong>[orm] [bug] </strong></span>Fixed bug whereby MappedCollection
 
1116
would not get the appropriate collection
 
1117
instrumentation if it were only used
 
1118
in a custom subclass that used
 
1119
&#64;collection.internally_instrumented.<a class="changeset-link reference internal" href="#change-4139f8190200416937260afba0d0f8b1">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2406">#2406</a></p>
 
1120
</p>
 
1121
</li>
 
1122
<li><p id="change-0.7.6-8"><span class="target" id="change-9e5cd50053bb474dbea526f38ba4e148"><strong>[orm] [bug] </strong></span>Fixed bug whereby SQL adaption mechanics
 
1123
would fail in a very nested scenario involving
 
1124
joined-inheritance, joinedload(), limit(), and a
 
1125
derived function in the columns clause.<a class="changeset-link reference internal" href="#change-9e5cd50053bb474dbea526f38ba4e148">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2419">#2419</a></p>
 
1126
</p>
 
1127
</li>
 
1128
<li><p id="change-0.7.6-9"><span class="target" id="change-f8031eba4bd7fcd731200ea774332cdf"><strong>[orm] [bug] </strong></span>Fixed the repr() for CascadeOptions to
 
1129
include refresh-expire.  Also reworked
 
1130
CascadeOptions to be a &lt;frozenset&gt;.<a class="changeset-link reference internal" href="#change-f8031eba4bd7fcd731200ea774332cdf">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2417">#2417</a></p>
 
1131
</p>
 
1132
</li>
 
1133
<li><p id="change-0.7.6-10"><span class="target" id="change-55aab50690b92c57e72f96dae94d9731"><strong>[orm] [bug] </strong></span>Improved the &#8220;declarative reflection&#8221;
 
1134
example to support single-table inheritance,
 
1135
multiple calls to prepare(), tables that
 
1136
are present in alternate schemas,
 
1137
establishing only a subset of classes
 
1138
as reflected.<a class="changeset-link reference internal" href="#change-55aab50690b92c57e72f96dae94d9731">(link)</a><p></p>
 
1139
</p>
 
1140
</li>
 
1141
<li><p id="change-0.7.6-11"><span class="target" id="change-2bd80098953ad4f526aecbdbdb6c7a38"><strong>[orm] [bug] </strong></span>Scaled back the test applied within
 
1142
flush() to check for UPDATE against partially
 
1143
NULL PK within one table to only actually
 
1144
happen if there&#8217;s really an UPDATE to occur.<a class="changeset-link reference internal" href="#change-2bd80098953ad4f526aecbdbdb6c7a38">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2390">#2390</a></p>
 
1145
</p>
 
1146
</li>
 
1147
<li><p id="change-0.7.6-12"><span class="target" id="change-1c063ae66277f88058d137e25e63b77b"><strong>[orm] [bug] </strong></span>Fixed bug whereby if a method name
 
1148
conflicted with a column name, a
 
1149
TypeError would be raised when the mapper
 
1150
tried to inspect the __get__() method
 
1151
on the method object.<a class="changeset-link reference internal" href="#change-1c063ae66277f88058d137e25e63b77b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2352">#2352</a></p>
 
1152
</p>
 
1153
</li>
 
1154
</ul>
 
1155
</div>
 
1156
<div class="section" id="change-0.7.6-engine">
 
1157
<h3>engine<a class="headerlink" href="#change-0.7.6-engine" title="Permalink to this headline">¶</a></h3>
 
1158
<ul class="simple">
 
1159
<li><p id="change-0.7.6-13"><span class="target" id="change-2d7d75c321c420f13868c04f48c58024"><strong>[engine] [feature] </strong></span>Added &#8220;no_parameters=True&#8221; execution
 
1160
option for connections.   If no parameters
 
1161
are present, will pass the statement
 
1162
as cursor.execute(statement), thereby invoking
 
1163
the DBAPIs behavior when no parameter collection
 
1164
is present; for psycopg2 and mysql-python, this
 
1165
means not interpreting % signs in the string.
 
1166
This only occurs with this option, and not
 
1167
just if the param list is blank, as otherwise
 
1168
this would produce inconsistent behavior
 
1169
of SQL expressions that normally escape percent
 
1170
signs (and while compiling, can&#8217;t know ahead of
 
1171
time if parameters will be present in
 
1172
some cases).<a class="changeset-link reference internal" href="#change-2d7d75c321c420f13868c04f48c58024">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2407">#2407</a></p>
 
1173
</p>
 
1174
</li>
 
1175
<li><p id="change-0.7.6-14"><span class="target" id="change-48cbd41778bd9bf524befc7899045bd6"><strong>[engine] [feature] </strong></span>Added pool_reset_on_return argument
 
1176
to create_engine, allows control over
 
1177
&#8220;connection return&#8221; behavior.  Also added
 
1178
new arguments &#8216;rollback&#8217;, &#8216;commit&#8217;, None
 
1179
to pool.reset_on_return to allow more control
 
1180
over connection return activity.<a class="changeset-link reference internal" href="#change-48cbd41778bd9bf524befc7899045bd6">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2378">#2378</a></p>
 
1181
</p>
 
1182
</li>
 
1183
<li><p id="change-0.7.6-15"><span class="target" id="change-f22f644c754519a55485cda58f78ade4"><strong>[engine] [feature] </strong></span>Added some decent context managers
 
1184
to Engine, Connection:<blockquote>
 
1185
<div><dl class="docutils">
 
1186
<dt>with engine.begin() as conn:</dt>
 
1187
<dd>&lt;work with conn in a transaction&gt;</dd>
 
1188
</dl>
 
1189
</div></blockquote>
 
1190
<p>and:</p>
 
1191
<blockquote>
 
1192
<div><dl class="docutils">
 
1193
<dt>with engine.connect() as conn:</dt>
 
1194
<dd>&lt;work with conn&gt;</dd>
 
1195
</dl>
 
1196
</div></blockquote>
 
1197
<p>Both close out the connection when done,
 
1198
commit or rollback transaction with errors
 
1199
on engine.begin().</p>
 
1200
<a class="changeset-link reference internal" href="#change-f22f644c754519a55485cda58f78ade4">(link)</a><p></p>
 
1201
</p>
 
1202
</li>
 
1203
<li><p id="change-0.7.6-16"><span class="target" id="change-1b194e4331b2ed3e8f8f778123152f56"><strong>[engine] [bug] </strong></span>Added execution_options() call to
 
1204
MockConnection (i.e., that used with
 
1205
strategy=&#8221;mock&#8221;) which acts as a pass through
 
1206
for arguments.<a class="changeset-link reference internal" href="#change-1b194e4331b2ed3e8f8f778123152f56">(link)</a><p></p>
 
1207
</p>
 
1208
</li>
 
1209
</ul>
 
1210
</div>
 
1211
<div class="section" id="change-0.7.6-sql">
 
1212
<h3>sql<a class="headerlink" href="#change-0.7.6-sql" title="Permalink to this headline">¶</a></h3>
 
1213
<ul class="simple">
 
1214
<li><p id="change-0.7.6-17"><span class="target" id="change-1591463b72830324d33006ffd884fc18"><strong>[sql] [feature] </strong></span>Added support for SQL standard
 
1215
common table expressions (CTE), allowing
 
1216
SELECT objects as the CTE source (DML
 
1217
not yet supported).  This is invoked via
 
1218
the cte() method on any select() construct.<a class="changeset-link reference internal" href="#change-1591463b72830324d33006ffd884fc18">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1859">#1859</a></p>
 
1219
</p>
 
1220
</li>
 
1221
<li><p id="change-0.7.6-18"><span class="target" id="change-08dbc44d75c1c124d995d5797c268220"><strong>[sql] [bug] </strong></span>Fixed memory leak in core which would
 
1222
occur when C extensions were used with
 
1223
particular types of result fetches,
 
1224
in particular when orm query.count()
 
1225
were called.<a class="changeset-link reference internal" href="#change-08dbc44d75c1c124d995d5797c268220">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2427">#2427</a></p>
 
1226
</p>
 
1227
</li>
 
1228
<li><p id="change-0.7.6-19"><span class="target" id="change-d8df6d8759ad159ad56f547c506a3983"><strong>[sql] [bug] </strong></span>Fixed issue whereby attribute-based
 
1229
column access on a row would raise
 
1230
AttributeError with non-C version,
 
1231
NoSuchColumnError with C version.  Now
 
1232
raises AttributeError in both cases.<a class="changeset-link reference internal" href="#change-d8df6d8759ad159ad56f547c506a3983">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2398">#2398</a></p>
 
1233
</p>
 
1234
</li>
 
1235
<li><p id="change-0.7.6-20"><span class="target" id="change-49687573edf51e35f6e2e138c9d97ed4"><strong>[sql] [bug] </strong></span>Added support for using the .key
 
1236
of a Column as a string identifier in a
 
1237
result set row.   The .key is currently
 
1238
listed as an &#8220;alternate&#8221; name for a column,
 
1239
and is superseded by the name of a column
 
1240
which has that key value as its regular name.
 
1241
For the next major release
 
1242
of SQLAlchemy we may reverse this precedence
 
1243
so that .key takes precedence, but this
 
1244
is not decided on yet.<a class="changeset-link reference internal" href="#change-49687573edf51e35f6e2e138c9d97ed4">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2392">#2392</a></p>
 
1245
</p>
 
1246
</li>
 
1247
<li><p id="change-0.7.6-21"><span class="target" id="change-343f97bf51f98600f6e8fcd6d441ddbe"><strong>[sql] [bug] </strong></span>A warning is emitted when a not-present
 
1248
column is stated in the values() clause
 
1249
of an insert() or update() construct.
 
1250
Will move to an exception in 0.8.<a class="changeset-link reference internal" href="#change-343f97bf51f98600f6e8fcd6d441ddbe">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2413">#2413</a></p>
 
1251
</p>
 
1252
</li>
 
1253
<li><p id="change-0.7.6-22"><span class="target" id="change-a77bfc79b387192867cd3cb1d2e792df"><strong>[sql] [bug] </strong></span>A significant change to how labeling
 
1254
is applied to columns in SELECT statements
 
1255
allows &#8220;truncated&#8221; labels, that is label names
 
1256
that are generated in Python which exceed
 
1257
the maximum identifier length (note this is
 
1258
configurable via label_length on create_engine()),
 
1259
to be properly referenced when rendered inside
 
1260
of a subquery, as well as to be present
 
1261
in a result set row using their original
 
1262
in-Python names.<a class="changeset-link reference internal" href="#change-a77bfc79b387192867cd3cb1d2e792df">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2396">#2396</a></p>
 
1263
</p>
 
1264
</li>
 
1265
<li><p id="change-0.7.6-23"><span class="target" id="change-c2121d614de6518b5a70afb2a6acc1a8"><strong>[sql] [bug] </strong></span>Fixed bug in new &#8220;autoload_replace&#8221; flag
 
1266
which would fail to preserve the primary
 
1267
key constraint of the reflected table.<a class="changeset-link reference internal" href="#change-c2121d614de6518b5a70afb2a6acc1a8">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2402">#2402</a></p>
 
1268
</p>
 
1269
</li>
 
1270
<li><p id="change-0.7.6-24"><span class="target" id="change-e13352b56336bb2ca6357a005becb329"><strong>[sql] [bug] </strong></span>Index will raise when arguments passed
 
1271
cannot be interpreted as columns or expressions.
 
1272
Will warn when Index is created
 
1273
with no columns at all.<a class="changeset-link reference internal" href="#change-e13352b56336bb2ca6357a005becb329">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2380">#2380</a></p>
 
1274
</p>
 
1275
</li>
 
1276
</ul>
 
1277
</div>
 
1278
<div class="section" id="change-0.7.6-mysql">
 
1279
<h3>mysql<a class="headerlink" href="#change-0.7.6-mysql" title="Permalink to this headline">¶</a></h3>
 
1280
<ul class="simple">
 
1281
<li><p id="change-0.7.6-25"><span class="target" id="change-36eb1e2c4794e72f98f0ed14abf5e65b"><strong>[mysql] [feature] </strong></span>Added support for MySQL index and
 
1282
primary key constraint types
 
1283
(i.e. USING) via new mysql_using parameter
 
1284
to Index and PrimaryKeyConstraint,
 
1285
courtesy Diana Clarke.<a class="changeset-link reference internal" href="#change-36eb1e2c4794e72f98f0ed14abf5e65b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2386">#2386</a></p>
 
1286
</p>
 
1287
</li>
 
1288
<li><p id="change-0.7.6-26"><span class="target" id="change-3df61a1e9f44018504cf0be0185c2a7f"><strong>[mysql] [feature] </strong></span>Added support for the &#8220;isolation_level&#8221;
 
1289
parameter to all MySQL dialects.  Thanks
 
1290
to mu_mind for the patch here.<a class="changeset-link reference internal" href="#change-3df61a1e9f44018504cf0be0185c2a7f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2394">#2394</a></p>
 
1291
</p>
 
1292
</li>
 
1293
</ul>
 
1294
</div>
 
1295
<div class="section" id="change-0.7.6-sqlite">
 
1296
<h3>sqlite<a class="headerlink" href="#change-0.7.6-sqlite" title="Permalink to this headline">¶</a></h3>
 
1297
<ul class="simple">
 
1298
<li><p id="change-0.7.6-27"><span class="target" id="change-75ed46e3397d789de20c3c9699f6328d"><strong>[sqlite] [bug] </strong></span>Fixed bug in C extensions whereby
 
1299
string format would not be applied to a
 
1300
Numeric value returned as integer; this
 
1301
affected primarily SQLite which does
 
1302
not maintain numeric scale settings.<a class="changeset-link reference internal" href="#change-75ed46e3397d789de20c3c9699f6328d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2432">#2432</a></p>
 
1303
</p>
 
1304
</li>
 
1305
</ul>
 
1306
</div>
 
1307
<div class="section" id="change-0.7.6-mssql">
 
1308
<h3>mssql<a class="headerlink" href="#change-0.7.6-mssql" title="Permalink to this headline">¶</a></h3>
 
1309
<ul class="simple">
 
1310
<li><p id="change-0.7.6-28"><span class="target" id="change-24dedd563345980d146ccf072345481c"><strong>[mssql] [feature] </strong></span>Added support for MSSQL INSERT,
 
1311
UPDATE, and DELETE table hints, using
 
1312
new with_hint() method on UpdateBase.<a class="changeset-link reference internal" href="#change-24dedd563345980d146ccf072345481c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2430">#2430</a></p>
 
1313
</p>
 
1314
</li>
 
1315
</ul>
 
1316
</div>
 
1317
<div class="section" id="change-0.7.6-oracle">
 
1318
<h3>oracle<a class="headerlink" href="#change-0.7.6-oracle" title="Permalink to this headline">¶</a></h3>
 
1319
<ul class="simple">
 
1320
<li><p id="change-0.7.6-29"><span class="target" id="change-fb4460bd1ca1980817d3dedb89755c9d"><strong>[oracle] [feature] </strong></span>Added a new create_engine() flag
 
1321
coerce_to_decimal=False, disables the precision
 
1322
numeric handling which can add lots of overhead
 
1323
by converting all numeric values to
 
1324
Decimal.<a class="changeset-link reference internal" href="#change-fb4460bd1ca1980817d3dedb89755c9d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2399">#2399</a></p>
 
1325
</p>
 
1326
</li>
 
1327
<li><p id="change-0.7.6-30"><span class="target" id="change-985364280fa865032dd045d68431f232"><strong>[oracle] [bug] </strong></span>Added missing compilation support for
 
1328
LONG<a class="changeset-link reference internal" href="#change-985364280fa865032dd045d68431f232">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2401">#2401</a></p>
 
1329
</p>
 
1330
</li>
 
1331
<li><p id="change-0.7.6-31"><span class="target" id="change-b1c0ae3b7d2775d911aaeeb8e3d3c872"><strong>[oracle] [bug] </strong></span>Added &#8216;LEVEL&#8217; to the list of reserved
 
1332
words for Oracle.<a class="changeset-link reference internal" href="#change-b1c0ae3b7d2775d911aaeeb8e3d3c872">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2435">#2435</a></p>
 
1333
</p>
 
1334
</li>
 
1335
</ul>
 
1336
</div>
 
1337
<div class="section" id="change-0.7.6-misc">
 
1338
<h3>misc<a class="headerlink" href="#change-0.7.6-misc" title="Permalink to this headline">¶</a></h3>
 
1339
<ul class="simple">
 
1340
<li><p id="change-0.7.6-32"><span class="target" id="change-19dae4d37fac9733caba73475b99064b"><strong>[bug] [examples] </strong></span>Altered _params_from_query() function
 
1341
in Beaker example to pull bindparams from the
 
1342
fully compiled statement, as a quick means
 
1343
to get everything including subqueries in the
 
1344
columns clause, etc.<a class="changeset-link reference internal" href="#change-19dae4d37fac9733caba73475b99064b">(link)</a><p></p>
 
1345
</p>
 
1346
</li>
 
1347
</ul>
 
1348
</div>
 
1349
</div>
 
1350
<div class="section" id="change-0.7.5">
 
1351
<h2>0.7.5<a class="headerlink" href="#change-0.7.5" title="Permalink to this headline">¶</a></h2>
 
1352
Released: Sat Jan 28 2012<div class="section" id="change-0.7.5-orm">
 
1353
<h3>orm<a class="headerlink" href="#change-0.7.5-orm" title="Permalink to this headline">¶</a></h3>
 
1354
<ul class="simple">
 
1355
<li><p id="change-0.7.5-0"><span class="target" id="change-3a102420811437e8993c20361a8d9534"><strong>[orm] [feature] </strong></span>Added &#8220;class_registry&#8221; argument to
 
1356
declarative_base().  Allows two or more declarative
 
1357
bases to share the same registry of class names.<a class="changeset-link reference internal" href="#change-3a102420811437e8993c20361a8d9534">(link)</a><p></p>
 
1358
</p>
 
1359
</li>
 
1360
<li><p id="change-0.7.5-1"><span class="target" id="change-0c9ac7ca68fc1ad2df5e31c3920b7fb3"><strong>[orm] [feature] </strong></span>query.filter() accepts multiple
 
1361
criteria which will join via AND, i.e.
 
1362
query.filter(x==y, z&gt;q, ...)<a class="changeset-link reference internal" href="#change-0c9ac7ca68fc1ad2df5e31c3920b7fb3">(link)</a><p></p>
 
1363
</p>
 
1364
</li>
 
1365
<li><p id="change-0.7.5-2"><span class="target" id="change-57c1f10c52d34b2117be666480e44fdc"><strong>[orm] [feature] </strong></span>Added new capability to relationship
 
1366
loader options to allow &#8220;default&#8221; loader strategies.
 
1367
Pass &#8216;*&#8217; to any of joinedload(), lazyload(),
 
1368
subqueryload(), or noload() and that becomes the
 
1369
loader strategy used for all relationships,
 
1370
except for those explicitly stated in the
 
1371
Query.  Thanks to up-and-coming contributor
 
1372
Kent Bower for an exhaustive and well
 
1373
written test suite !<a class="changeset-link reference internal" href="#change-57c1f10c52d34b2117be666480e44fdc">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2351">#2351</a></p>
 
1374
</p>
 
1375
</li>
 
1376
<li><p id="change-0.7.5-3"><span class="target" id="change-97633f7e42b1537d18cbeea43b26bc27"><strong>[orm] [feature] </strong></span>New declarative reflection example
 
1377
added, illustrates how best to mix table reflection
 
1378
with declarative as well as uses some new features
 
1379
from.<a class="changeset-link reference internal" href="#change-97633f7e42b1537d18cbeea43b26bc27">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2356">#2356</a></p>
 
1380
</p>
 
1381
</li>
 
1382
<li><p id="change-0.7.5-4"><span class="target" id="change-55d8c1fff7aefe4a1f70319dec6adc6b"><strong>[orm] [bug] </strong></span>Fixed issue where modified session state
 
1383
established after a failed flush would be committed
 
1384
as part of the subsequent transaction that
 
1385
begins automatically after manual call
 
1386
to rollback().   The state of the session is
 
1387
checked within rollback(), and if new state
 
1388
is present, a warning is emitted and
 
1389
restore_snapshot() is called a second time,
 
1390
discarding those changes.<a class="changeset-link reference internal" href="#change-55d8c1fff7aefe4a1f70319dec6adc6b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2389">#2389</a></p>
 
1391
</p>
 
1392
</li>
 
1393
<li><p id="change-0.7.5-5"><span class="target" id="change-b1e956782e806998b21c5c59c63196ea"><strong>[orm] [bug] </strong></span>Fixed regression from 0.7.4 whereby
 
1394
using an already instrumented column from a
 
1395
superclass as &#8220;polymorphic_on&#8221; failed to resolve
 
1396
the underlying Column.<a class="changeset-link reference internal" href="#change-b1e956782e806998b21c5c59c63196ea">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2345">#2345</a></p>
 
1397
</p>
 
1398
</li>
 
1399
<li><p id="change-0.7.5-6"><span class="target" id="change-8272906e502e3c17ceaf46c056dd61a7"><strong>[orm] [bug] </strong></span>Raise an exception if xyzload_all() is
 
1400
used inappropriately with two non-connected
 
1401
relationships.<a class="changeset-link reference internal" href="#change-8272906e502e3c17ceaf46c056dd61a7">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2370">#2370</a></p>
 
1402
</p>
 
1403
</li>
 
1404
<li><p id="change-0.7.5-7"><span class="target" id="change-6af3c2131d1f215bc47d9088abe62c4b"><strong>[orm] [bug] </strong></span>Fixed bug whereby event.listen(SomeClass)
 
1405
forced an entirely unnecessary compile of the
 
1406
mapper, making events very hard to set up
 
1407
at module import time (nobody noticed this ??)<a class="changeset-link reference internal" href="#change-6af3c2131d1f215bc47d9088abe62c4b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2367">#2367</a></p>
 
1408
</p>
 
1409
</li>
 
1410
<li><p id="change-0.7.5-8"><span class="target" id="change-d7b48db2025736b2d9643cb7b3a0e3c2"><strong>[orm] [bug] </strong></span>Fixed bug whereby hybrid_property didn&#8217;t
 
1411
work as a kw arg in any(), has().<a class="changeset-link reference internal" href="#change-d7b48db2025736b2d9643cb7b3a0e3c2">(link)</a><p></p>
 
1412
</p>
 
1413
</li>
 
1414
<li><p id="change-0.7.5-9"><span class="target" id="change-b88bd4933dc47c44005e5fdc6794709a"><strong>[orm] [bug] </strong></span>ensure pickleability of all ORM exceptions
 
1415
for multiprocessing compatibility.<a class="changeset-link reference internal" href="#change-b88bd4933dc47c44005e5fdc6794709a">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2371">#2371</a></p>
 
1416
</p>
 
1417
</li>
 
1418
<li><p id="change-0.7.5-10"><span class="target" id="change-a73cc2e518480d53268efadf9b8f7eb8"><strong>[orm] [bug] </strong></span>implemented standard &#8220;can&#8217;t set attribute&#8221; /
 
1419
&#8220;can&#8217;t delete attribute&#8221; AttributeError when
 
1420
setattr/delattr used on a hybrid that doesn&#8217;t
 
1421
define fset or fdel.<a class="changeset-link reference internal" href="#change-a73cc2e518480d53268efadf9b8f7eb8">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2353">#2353</a></p>
 
1422
</p>
 
1423
</li>
 
1424
<li><p id="change-0.7.5-11"><span class="target" id="change-3551999284ff42f7dcdc41a5a7332711"><strong>[orm] [bug] </strong></span>Fixed bug where unpickled object didn&#8217;t
 
1425
have enough of its state set up to work
 
1426
correctly within the unpickle() event established
 
1427
by the mutable object extension, if the object
 
1428
needed ORM attribute access within
 
1429
__eq__() or similar.<a class="changeset-link reference internal" href="#change-3551999284ff42f7dcdc41a5a7332711">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2362">#2362</a></p>
 
1430
</p>
 
1431
</li>
 
1432
<li><p id="change-0.7.5-12"><span class="target" id="change-abf88e7bed26797a4f92f148de9b72cb"><strong>[orm] [bug] </strong></span>Fixed bug where &#8220;merge&#8221; cascade could
 
1433
mis-interpret an unloaded attribute, if the
 
1434
load_on_pending flag were used with
 
1435
relationship().  Thanks to Kent Bower
 
1436
for tests.<a class="changeset-link reference internal" href="#change-abf88e7bed26797a4f92f148de9b72cb">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2374">#2374</a></p>
 
1437
</p>
 
1438
</li>
 
1439
<li><p id="change-0.7.5-13"><span class="target" id="change-08885bc09f14b67a91d5920966baf2bc"><strong>[orm] </strong></span>Fixed regression from 0.6 whereby if
 
1440
&#8220;load_on_pending&#8221; relationship() flag were used
 
1441
where a non-&#8220;get()&#8221; lazy clause needed to be
 
1442
emitted on a pending object, it would fail
 
1443
to load.<a class="changeset-link reference internal" href="#change-08885bc09f14b67a91d5920966baf2bc">(link)</a><p></p>
 
1444
</p>
 
1445
</li>
 
1446
</ul>
 
1447
</div>
 
1448
<div class="section" id="change-0.7.5-engine">
 
1449
<h3>engine<a class="headerlink" href="#change-0.7.5-engine" title="Permalink to this headline">¶</a></h3>
 
1450
<ul class="simple">
 
1451
<li><p id="change-0.7.5-14"><span class="target" id="change-9ebe95491ecfb2edd5dc94384c92d141"><strong>[engine] [bug] </strong></span>Added __reduce__ to StatementError,
 
1452
DBAPIError, column errors so that exceptions
 
1453
are pickleable, as when using multiprocessing.
 
1454
However, not
 
1455
all DBAPIs support this yet, such as
 
1456
psycopg2.<a class="changeset-link reference internal" href="#change-9ebe95491ecfb2edd5dc94384c92d141">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2371">#2371</a></p>
 
1457
</p>
 
1458
</li>
 
1459
<li><p id="change-0.7.5-15"><span class="target" id="change-b6d472837686e1a147a08b7332fff398"><strong>[engine] [bug] </strong></span>Improved error messages when a non-string
 
1460
or invalid string is passed to any of the
 
1461
date/time processors used by SQLite, including
 
1462
C and Python versions.<a class="changeset-link reference internal" href="#change-b6d472837686e1a147a08b7332fff398">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2382">#2382</a></p>
 
1463
</p>
 
1464
</li>
 
1465
<li><p id="change-0.7.5-16"><span class="target" id="change-ead8712a877501eeed679427b22e44f1"><strong>[engine] [bug] </strong></span>Fixed bug whereby a table-bound Column
 
1466
object named &#8220;&lt;a&gt;_&lt;b&gt;&#8221; which matched a column
 
1467
labeled as &#8220;&lt;tablename&gt;_&lt;colname&gt;&#8221; could match
 
1468
inappropriately when targeting in a result
 
1469
set row.<a class="changeset-link reference internal" href="#change-ead8712a877501eeed679427b22e44f1">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2377">#2377</a></p>
 
1470
</p>
 
1471
</li>
 
1472
<li><p id="change-0.7.5-17"><span class="target" id="change-1d2bfe0a34b8c72c15a364316180688c"><strong>[engine] [bug] </strong></span>Fixed bug in &#8220;mock&#8221; strategy whereby
 
1473
correct DDL visit method wasn&#8217;t called, resulting
 
1474
in &#8220;CREATE/DROP SEQUENCE&#8221; statements being
 
1475
duplicated<a class="changeset-link reference internal" href="#change-1d2bfe0a34b8c72c15a364316180688c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2384">#2384</a></p>
 
1476
</p>
 
1477
</li>
 
1478
</ul>
 
1479
</div>
 
1480
<div class="section" id="change-0.7.5-sql">
 
1481
<h3>sql<a class="headerlink" href="#change-0.7.5-sql" title="Permalink to this headline">¶</a></h3>
 
1482
<ul class="simple">
 
1483
<li><p id="change-0.7.5-18"><span class="target" id="change-c7de069c3fc21b68e50f220e6a0dffe4"><strong>[sql] [feature] </strong></span>New reflection feature &#8220;autoload_replace&#8221;;
 
1484
when set to False on Table, the Table can be autoloaded
 
1485
without existing columns being replaced.  Allows
 
1486
more flexible chains of Table construction/reflection
 
1487
to be constructed, including that it helps with
 
1488
combining Declarative with table reflection.
 
1489
See the new example on the wiki.<a class="changeset-link reference internal" href="#change-c7de069c3fc21b68e50f220e6a0dffe4">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2356">#2356</a></p>
 
1490
</p>
 
1491
</li>
 
1492
<li><p id="change-0.7.5-19"><span class="target" id="change-177b33e20d11306f6f5b91727ba15982"><strong>[sql] [feature] </strong></span>Added &#8220;false()&#8221; and &#8220;true()&#8221; expression
 
1493
constructs to sqlalchemy.sql namespace, though
 
1494
not part of __all__ as of yet.<a class="changeset-link reference internal" href="#change-177b33e20d11306f6f5b91727ba15982">(link)</a><p></p>
 
1495
</p>
 
1496
</li>
 
1497
<li><p id="change-0.7.5-20"><span class="target" id="change-9950833e232ffe337fde2eea3cc80c55"><strong>[sql] [feature] </strong></span>Dialect-specific compilers now raise
 
1498
CompileException for all type/statement compilation
 
1499
issues, instead of InvalidRequestError or ArgumentError.
 
1500
The DDL for CREATE TABLE will re-raise
 
1501
CompileExceptions to include table/column information
 
1502
for the problematic column.<a class="changeset-link reference internal" href="#change-9950833e232ffe337fde2eea3cc80c55">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2361">#2361</a></p>
 
1503
</p>
 
1504
</li>
 
1505
<li><p id="change-0.7.5-21"><span class="target" id="change-39d3b5ddb9f3dcbd42a74dc6df0c998a"><strong>[sql] [bug] </strong></span>Improved the API for add_column() such that
 
1506
if the same column is added to its own table,
 
1507
an error is not raised and the constraints
 
1508
don&#8217;t get doubled up.  Also helps with some
 
1509
reflection/declarative patterns.<a class="changeset-link reference internal" href="#change-39d3b5ddb9f3dcbd42a74dc6df0c998a">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2356">#2356</a></p>
 
1510
</p>
 
1511
</li>
 
1512
<li><p id="change-0.7.5-22"><span class="target" id="change-37eea1099c4c938a74f03792a2635704"><strong>[sql] [bug] </strong></span>Fixed issue where the &#8220;required&#8221; exception
 
1513
would not be raised for bindparam() with required=True,
 
1514
if the statement were given no parameters at all.<a class="changeset-link reference internal" href="#change-37eea1099c4c938a74f03792a2635704">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2381">#2381</a></p>
 
1515
</p>
 
1516
</li>
 
1517
</ul>
 
1518
</div>
 
1519
<div class="section" id="change-0.7.5-mysql">
 
1520
<h3>mysql<a class="headerlink" href="#change-0.7.5-mysql" title="Permalink to this headline">¶</a></h3>
 
1521
<ul class="simple">
 
1522
<li><p id="change-0.7.5-23"><span class="target" id="change-f8751618b3a1220a24952e880d8d1ec0"><strong>[mysql] [bug] </strong></span>fixed regexp that filters out warnings
 
1523
for non-reflected &#8220;PARTITION&#8221; directives,
 
1524
thanks to George Reilly<a class="changeset-link reference internal" href="#change-f8751618b3a1220a24952e880d8d1ec0">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2376">#2376</a></p>
 
1525
</p>
 
1526
</li>
 
1527
</ul>
 
1528
</div>
 
1529
<div class="section" id="change-0.7.5-sqlite">
 
1530
<h3>sqlite<a class="headerlink" href="#change-0.7.5-sqlite" title="Permalink to this headline">¶</a></h3>
 
1531
<ul class="simple">
 
1532
<li><p id="change-0.7.5-24"><span class="target" id="change-117c33e7b1627c5cc26eee90b4ffa6fd"><strong>[sqlite] [bug] </strong></span>the &#8220;name&#8221; of an FK constraint in SQLite
 
1533
is reflected as &#8220;None&#8221;, not &#8220;0&#8221; or other
 
1534
integer value.
 
1535
SQLite does not appear to support constraint
 
1536
naming in any case.<a class="changeset-link reference internal" href="#change-117c33e7b1627c5cc26eee90b4ffa6fd">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2364">#2364</a></p>
 
1537
</p>
 
1538
</li>
 
1539
<li><p id="change-0.7.5-25"><span class="target" id="change-54d9c20f63f1e057ffafe7cd4bff6569"><strong>[sqlite] [bug] </strong></span>sql.false() and sql.true() compile to
 
1540
0 and 1, respectively in sqlite<a class="changeset-link reference internal" href="#change-54d9c20f63f1e057ffafe7cd4bff6569">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2368">#2368</a></p>
 
1541
</p>
 
1542
</li>
 
1543
<li><p id="change-0.7.5-26"><span class="target" id="change-2bdd22a024225bc7479dc1df515c5a4c"><strong>[sqlite] [bug] </strong></span>removed an erroneous &#8220;raise&#8221; in the
 
1544
SQLite dialect when getting table names
 
1545
and view names, where logic is in place
 
1546
to fall back to an older version of
 
1547
SQLite that doesn&#8217;t have the
 
1548
&#8220;sqlite_temp_master&#8221; table.<a class="changeset-link reference internal" href="#change-2bdd22a024225bc7479dc1df515c5a4c">(link)</a><p></p>
 
1549
</p>
 
1550
</li>
 
1551
</ul>
 
1552
</div>
 
1553
<div class="section" id="change-0.7.5-mssql">
 
1554
<h3>mssql<a class="headerlink" href="#change-0.7.5-mssql" title="Permalink to this headline">¶</a></h3>
 
1555
<ul class="simple">
 
1556
<li><p id="change-0.7.5-27"><span class="target" id="change-cfa986a99df4132f7d3327a8948212a3"><strong>[mssql] [bug] </strong></span>Adjusted the regexp used in the
 
1557
mssql.TIME type to ensure only six digits
 
1558
are received for the &#8220;microseconds&#8221; portion
 
1559
of the value, which is expected by
 
1560
Python&#8217;s datetime.time().  Note that
 
1561
support for sending microseconds doesn&#8217;t
 
1562
seem to be possible yet with pyodbc
 
1563
at least.<a class="changeset-link reference internal" href="#change-cfa986a99df4132f7d3327a8948212a3">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2340">#2340</a></p>
 
1564
</p>
 
1565
</li>
 
1566
<li><p id="change-0.7.5-28"><span class="target" id="change-65bbfc0cbf4ea706329108c2d0689758"><strong>[mssql] [bug] </strong></span>Dropped the &#8220;30 char&#8221; limit on pymssql,
 
1567
based on reports that it&#8217;s doing things
 
1568
better these days.  pymssql hasn&#8217;t been
 
1569
well tested and as the DBAPI is in flux
 
1570
it&#8217;s still not clear what the status
 
1571
is on this driver and how SQLAlchemy&#8217;s
 
1572
implementation should adapt.<a class="changeset-link reference internal" href="#change-65bbfc0cbf4ea706329108c2d0689758">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2347">#2347</a></p>
 
1573
</p>
 
1574
</li>
 
1575
</ul>
 
1576
</div>
 
1577
<div class="section" id="change-0.7.5-oracle">
 
1578
<h3>oracle<a class="headerlink" href="#change-0.7.5-oracle" title="Permalink to this headline">¶</a></h3>
 
1579
<ul class="simple">
 
1580
<li><p id="change-0.7.5-29"><span class="target" id="change-b601d2076969dff424f84e83f7e23a3f"><strong>[oracle] [bug] </strong></span>Added ORA-03135 to the never ending
 
1581
list of oracle &#8220;connection lost&#8221; errors<a class="changeset-link reference internal" href="#change-b601d2076969dff424f84e83f7e23a3f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2388">#2388</a></p>
 
1582
</p>
 
1583
</li>
 
1584
</ul>
 
1585
</div>
 
1586
<div class="section" id="change-0.7.5-misc">
 
1587
<h3>misc<a class="headerlink" href="#change-0.7.5-misc" title="Permalink to this headline">¶</a></h3>
 
1588
<ul class="simple">
 
1589
<li><p id="change-0.7.5-30"><span class="target" id="change-7ea101b9e5ac780313f4ec94a8e11e50"><strong>[feature] [examples] </strong></span>Simplified the versioning example
 
1590
a bit to use a declarative mixin as well
 
1591
as an event listener, instead of a metaclass +
 
1592
SessionExtension.<a class="changeset-link reference internal" href="#change-7ea101b9e5ac780313f4ec94a8e11e50">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2313">#2313</a></p>
 
1593
</p>
 
1594
</li>
 
1595
<li><p id="change-0.7.5-31"><span class="target" id="change-8d78c8ac914fdc73f0352b8d86340cc3"><strong>[bug] [core] </strong></span>Changed LRUCache, used by the mapper
 
1596
to cache INSERT/UPDATE/DELETE statements,
 
1597
to use an incrementing counter instead
 
1598
of a timestamp to track entries, for greater
 
1599
reliability versus using time.time(), which
 
1600
can cause test failures on some platforms.<a class="changeset-link reference internal" href="#change-8d78c8ac914fdc73f0352b8d86340cc3">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2379">#2379</a></p>
 
1601
</p>
 
1602
</li>
 
1603
<li><p id="change-0.7.5-32"><span class="target" id="change-f11c1ccaa941a5a91a34b9ed4664bc49"><strong>[bug] [core] </strong></span>Added a boolean check for the &#8220;finalize&#8221;
 
1604
function within the pool connection proxy&#8217;s
 
1605
weakref callback before calling it, so that a
 
1606
warning isn&#8217;t emitted that this function is None
 
1607
when the application is exiting and gc has
 
1608
removed the function from the module before the
 
1609
weakref callback was invoked.<a class="changeset-link reference internal" href="#change-f11c1ccaa941a5a91a34b9ed4664bc49">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2383">#2383</a></p>
 
1610
</p>
 
1611
</li>
 
1612
<li><p id="change-0.7.5-33"><span class="target" id="change-1556c377ef9bf08b1aa03c0a86a85045"><strong>[bug] [py3k] </strong></span>Fixed inappropriate usage of util.py3k
 
1613
flag and renamed it to util.py3k_warning, since
 
1614
this flag is intended to detect the -3 flag
 
1615
series of import restrictions only.<a class="changeset-link reference internal" href="#change-1556c377ef9bf08b1aa03c0a86a85045">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2348">#2348</a></p>
 
1616
</p>
 
1617
</li>
 
1618
<li><p id="change-0.7.5-34"><span class="target" id="change-6152f928a75eb13ceaee66f9f222b9f0"><strong>[bug] [examples] </strong></span>Fixed large_collection.py to close the
 
1619
session before dropping tables.<a class="changeset-link reference internal" href="#change-6152f928a75eb13ceaee66f9f222b9f0">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2346">#2346</a></p>
 
1620
</p>
 
1621
</li>
 
1622
</ul>
 
1623
</div>
 
1624
</div>
 
1625
<div class="section" id="change-0.7.4">
 
1626
<h2>0.7.4<a class="headerlink" href="#change-0.7.4" title="Permalink to this headline">¶</a></h2>
 
1627
Released: Fri Dec 09 2011<div class="section" id="change-0.7.4-orm">
 
1628
<h3>orm<a class="headerlink" href="#change-0.7.4-orm" title="Permalink to this headline">¶</a></h3>
 
1629
<ul class="simple">
 
1630
<li><p id="change-0.7.4-0"><span class="target" id="change-dc3aefb201de941ad86706e78e661813"><strong>[orm] [feature] </strong></span>polymorphic_on now accepts many
 
1631
new kinds of values:<blockquote>
 
1632
<div><ul>
 
1633
<li>standalone expressions that aren&#8217;t
 
1634
otherwise mapped</li>
 
1635
<li>column_property() objects</li>
 
1636
<li>string names of any column_property()
 
1637
or attribute name of a mapped Column</li>
 
1638
</ul>
 
1639
</div></blockquote>
 
1640
<p>The docs include an example using
 
1641
the case() construct, which is likely to be
 
1642
a common constructed used here. and part of</p>
 
1643
<p>Standalone expressions in polymorphic_on
 
1644
propagate to single-table inheritance
 
1645
subclasses so that they are used in the
 
1646
WHERE /JOIN clause to limit rows to that
 
1647
subclass as is the usual behavior.</p>
 
1648
<a class="changeset-link reference internal" href="#change-dc3aefb201de941ad86706e78e661813">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2345">#2345</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2238">#2238</a></p>
 
1649
</p>
 
1650
</li>
 
1651
<li><p id="change-0.7.4-1"><span class="target" id="change-596c83c399ac6bb626dfd9b5aa932b9c"><strong>[orm] [feature] </strong></span>IdentitySet supports the - operator
 
1652
as the same as difference(), handy when dealing
 
1653
with Session.dirty etc.<a class="changeset-link reference internal" href="#change-596c83c399ac6bb626dfd9b5aa932b9c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2301">#2301</a></p>
 
1654
</p>
 
1655
</li>
 
1656
<li><p id="change-0.7.4-2"><span class="target" id="change-5c8167d0e62819144052e2a38f39b9ce"><strong>[orm] [feature] </strong></span>Added new value for Column autoincrement
 
1657
called &#8220;ignore_fk&#8221;, can be used to force autoincrement
 
1658
on a column that&#8217;s still part of a ForeignKeyConstraint.
 
1659
New example in the relationship docs illustrates
 
1660
its use.<a class="changeset-link reference internal" href="#change-5c8167d0e62819144052e2a38f39b9ce">(link)</a><p></p>
 
1661
</p>
 
1662
</li>
 
1663
<li><p id="change-0.7.4-3"><span class="target" id="change-31707f56997df996d8e87251b442de49"><strong>[orm] [bug] </strong></span>Fixed backref behavior when &#8220;popping&#8221; the
 
1664
value off of a many-to-one in response to
 
1665
a removal from a stale one-to-many - the operation
 
1666
is skipped, since the many-to-one has since
 
1667
been updated.<a class="changeset-link reference internal" href="#change-31707f56997df996d8e87251b442de49">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2315">#2315</a></p>
 
1668
</p>
 
1669
</li>
 
1670
<li><p id="change-0.7.4-4"><span class="target" id="change-0597b131afb6950c6095cc7b9d41a22b"><strong>[orm] [bug] </strong></span>After some years of not doing this, added
 
1671
more granularity to the &#8220;is X a parent of Y&#8221;
 
1672
functionality, which is used when determining
 
1673
if the FK on &#8220;Y&#8221; needs to be &#8220;nulled out&#8221; as well
 
1674
as if &#8220;Y&#8221; should be deleted with delete-orphan
 
1675
cascade.   The test now takes into account the
 
1676
Python identity of the parent as well its identity
 
1677
key, to see if the last known parent of Y is
 
1678
definitely X.   If a decision
 
1679
can&#8217;t be made, a StaleDataError is raised.  The
 
1680
conditions where this error is raised are fairly
 
1681
rare, requiring that the previous parent was
 
1682
garbage collected, and previously
 
1683
could very well inappropriately update/delete
 
1684
a record that&#8217;s since moved onto a new parent,
 
1685
though there may be some cases where
 
1686
&#8220;silent success&#8221; occurred previously that will now
 
1687
raise in the face of ambiguity.
 
1688
Expiring &#8220;Y&#8221; resets the &#8220;parent&#8221; tracker, meaning
 
1689
X.remove(Y) could then end up deleting Y even
 
1690
if X is stale, but this is the same behavior
 
1691
as before; it&#8217;s advised to expire X also in that
 
1692
case.<a class="changeset-link reference internal" href="#change-0597b131afb6950c6095cc7b9d41a22b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2264">#2264</a></p>
 
1693
</p>
 
1694
</li>
 
1695
<li><p id="change-0.7.4-5"><span class="target" id="change-1c8ec65ea5e475b56844652263a2ae2a"><strong>[orm] [bug] </strong></span>fixed inappropriate evaluation of user-mapped
 
1696
object in a boolean context within query.get().  Also in 0.6.9.<a class="changeset-link reference internal" href="#change-1c8ec65ea5e475b56844652263a2ae2a">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2310">#2310</a></p>
 
1697
</p>
 
1698
</li>
 
1699
<li><p id="change-0.7.4-6"><span class="target" id="change-bd50a6ee2954d91d3f6baec72cde98d0"><strong>[orm] [bug] </strong></span>Added missing comma to PASSIVE_RETURN_NEVER_SET
 
1700
symbol<a class="changeset-link reference internal" href="#change-bd50a6ee2954d91d3f6baec72cde98d0">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2304">#2304</a></p>
 
1701
</p>
 
1702
</li>
 
1703
<li><p id="change-0.7.4-7"><span class="target" id="change-4cdfabe6f7b63319f49ffe1859ae22ef"><strong>[orm] [bug] </strong></span>Cls.column.collate(&#8220;some collation&#8221;) now
 
1704
works.   Also in 0.6.9<a class="changeset-link reference internal" href="#change-4cdfabe6f7b63319f49ffe1859ae22ef">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1776">#1776</a></p>
 
1705
</p>
 
1706
</li>
 
1707
<li><p id="change-0.7.4-8"><span class="target" id="change-7ef516d5f722bd65a4071a3c93af8dcf"><strong>[orm] [bug] </strong></span>the value of a composite attribute is now
 
1708
expired after an insert or update operation, instead
 
1709
of regenerated in place.  This ensures that a
 
1710
column value which is expired within a flush
 
1711
will be loaded first, before the composite
 
1712
is regenerated using that value.<a class="changeset-link reference internal" href="#change-7ef516d5f722bd65a4071a3c93af8dcf">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2309">#2309</a></p>
 
1713
</p>
 
1714
</li>
 
1715
<li><p id="change-0.7.4-9"><span class="target" id="change-05249cc8e387c5a8a616aaae385531e3"><strong>[orm] [bug] </strong></span>The fix in also emits the
 
1716
&#8220;refresh&#8221; event when the composite value is
 
1717
loaded on access, even if all column
 
1718
values were already present, as is appropriate.
 
1719
This fixes the &#8220;mutable&#8221; extension which relies
 
1720
upon the &#8220;load&#8221; event to ensure the _parents
 
1721
dictionary is up to date, fixes.
 
1722
Thanks to Scott Torborg for the test case here.<a class="changeset-link reference internal" href="#change-05249cc8e387c5a8a616aaae385531e3">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2309">#2309</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2308">#2308</a></p>
 
1723
</p>
 
1724
</li>
 
1725
<li><p id="change-0.7.4-10"><span class="target" id="change-609fe72c8353d6327b7563d3f1a83b71"><strong>[orm] [bug] </strong></span>Fixed bug whereby a subclass of a subclass
 
1726
using concrete inheritance in conjunction with
 
1727
the new ConcreteBase or AbstractConcreteBase
 
1728
would fail to apply the subclasses deeper than
 
1729
one level to the &#8220;polymorphic loader&#8221; of each
 
1730
base<a class="changeset-link reference internal" href="#change-609fe72c8353d6327b7563d3f1a83b71">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2312">#2312</a></p>
 
1731
</p>
 
1732
</li>
 
1733
<li><p id="change-0.7.4-11"><span class="target" id="change-8198da84adbc73e64b436c59dc6a16f3"><strong>[orm] [bug] </strong></span>Fixed bug whereby a subclass of a subclass
 
1734
using the new AbstractConcreteBase would fail
 
1735
to acquire the correct &#8220;base_mapper&#8221; attribute
 
1736
when the &#8220;base&#8221; mapper was generated, thereby
 
1737
causing failures later on.<a class="changeset-link reference internal" href="#change-8198da84adbc73e64b436c59dc6a16f3">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2312">#2312</a></p>
 
1738
</p>
 
1739
</li>
 
1740
<li><p id="change-0.7.4-12"><span class="target" id="change-3928c6de9c155292edc1adf1edecb9d3"><strong>[orm] [bug] </strong></span>Fixed bug whereby column_property() created
 
1741
against ORM-level column could be treated as
 
1742
a distinct entity when producing certain
 
1743
kinds of joined-inh joins.<a class="changeset-link reference internal" href="#change-3928c6de9c155292edc1adf1edecb9d3">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2316">#2316</a></p>
 
1744
</p>
 
1745
</li>
 
1746
<li><p id="change-0.7.4-13"><span class="target" id="change-4a30fc1572fd8ad440dc0246b95e4424"><strong>[orm] [bug] </strong></span>Fixed the error formatting raised when
 
1747
a tuple is inadvertently passed to session.query().  Also in 0.6.9.<a class="changeset-link reference internal" href="#change-4a30fc1572fd8ad440dc0246b95e4424">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2297">#2297</a></p>
 
1748
</p>
 
1749
</li>
 
1750
<li><p id="change-0.7.4-14"><span class="target" id="change-a33290eb16ea6f93b88fc619c1643bec"><strong>[orm] [bug] </strong></span>Calls to query.join() to a single-table
 
1751
inheritance subclass are now tracked, and
 
1752
are used to eliminate the additional WHERE..
 
1753
IN criterion normally tacked on with single
 
1754
table inheritance, since the join should
 
1755
accommodate it.  This allows OUTER JOIN
 
1756
to a single table subclass to produce
 
1757
the correct results, and overall will produce
 
1758
fewer WHERE criterion when dealing with
 
1759
single table inheritance joins.<a class="changeset-link reference internal" href="#change-a33290eb16ea6f93b88fc619c1643bec">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2328">#2328</a></p>
 
1760
</p>
 
1761
</li>
 
1762
<li><p id="change-0.7.4-15"><span class="target" id="change-598ef96bfad7670cdec19b24aba4df59"><strong>[orm] [bug] </strong></span>__table_args__ can now be passed as
 
1763
an empty tuple as well as an empty dict..  Thanks to Fayaz Yusuf Khan
 
1764
for the patch.<a class="changeset-link reference internal" href="#change-598ef96bfad7670cdec19b24aba4df59">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2339">#2339</a></p>
 
1765
</p>
 
1766
</li>
 
1767
<li><p id="change-0.7.4-16"><span class="target" id="change-66ff5c39136a31854eb15d8bb803cb68"><strong>[orm] [bug] </strong></span>Updated warning message when setting
 
1768
delete-orphan without delete to no longer
 
1769
refer to 0.6, as we never got around to
 
1770
upgrading this to an exception.  Ideally
 
1771
this might be better as an exception but
 
1772
it&#8217;s not critical either way.<a class="changeset-link reference internal" href="#change-66ff5c39136a31854eb15d8bb803cb68">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2325">#2325</a></p>
 
1773
</p>
 
1774
</li>
 
1775
<li><p id="change-0.7.4-17"><span class="target" id="change-e28cb51839fda175259aa581e046b920"><strong>[orm] [bug] </strong></span>Fixed bug in get_history() when referring
 
1776
to a composite attribute that has no value;
 
1777
added coverage for get_history() regarding
 
1778
composites which is otherwise just a userland
 
1779
function.<a class="changeset-link reference internal" href="#change-e28cb51839fda175259aa581e046b920">(link)</a><p></p>
 
1780
</p>
 
1781
</li>
 
1782
</ul>
 
1783
</div>
 
1784
<div class="section" id="change-0.7.4-engine">
 
1785
<h3>engine<a class="headerlink" href="#change-0.7.4-engine" title="Permalink to this headline">¶</a></h3>
 
1786
<ul class="simple">
 
1787
<li><p id="change-0.7.4-18"><span class="target" id="change-b0f112949f1f605e403ae19464fd0f72"><strong>[engine] [bug] </strong></span>Fixed bug whereby transaction.rollback()
 
1788
would throw an error on an invalidated
 
1789
connection if the transaction were a
 
1790
two-phase or savepoint transaction.
 
1791
For plain transactions, rollback() is a no-op
 
1792
if the connection is invalidated, so while
 
1793
it wasn&#8217;t 100% clear if it should be a no-op,
 
1794
at least now the interface is consistent.<a class="changeset-link reference internal" href="#change-b0f112949f1f605e403ae19464fd0f72">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2317">#2317</a></p>
 
1795
</p>
 
1796
</li>
 
1797
</ul>
 
1798
</div>
 
1799
<div class="section" id="change-0.7.4-sql">
 
1800
<h3>sql<a class="headerlink" href="#change-0.7.4-sql" title="Permalink to this headline">¶</a></h3>
 
1801
<ul class="simple">
 
1802
<li><p id="change-0.7.4-19"><span class="target" id="change-16a2053641572c412b6754e5dbf15b08"><strong>[sql] [feature] </strong></span>The update() construct can now accommodate
 
1803
multiple tables in the WHERE clause, which will
 
1804
render an &#8220;UPDATE..FROM&#8221; construct, recognized by
 
1805
Postgresql and MSSQL.  When compiled on MySQL,
 
1806
will instead generate &#8220;UPDATE t1, t2, ..&#8221;.  MySQL
 
1807
additionally can render against multiple tables in the
 
1808
SET clause, if Column objects are used as keys
 
1809
in the &#8220;values&#8221; parameter or generative method.<a class="changeset-link reference internal" href="#change-16a2053641572c412b6754e5dbf15b08">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2166">#2166</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1944">#1944</a></p>
 
1810
</p>
 
1811
</li>
 
1812
<li><p id="change-0.7.4-20"><span class="target" id="change-7b1b8704940a6df76cfdeaf3ebdaf8bf"><strong>[sql] [feature] </strong></span>Added accessor to types called &#8220;python_type&#8221;,
 
1813
returns the rudimentary Python type object
 
1814
for a particular TypeEngine instance, if known,
 
1815
else raises NotImplementedError.<a class="changeset-link reference internal" href="#change-7b1b8704940a6df76cfdeaf3ebdaf8bf">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/77">#77</a></p>
 
1816
</p>
 
1817
</li>
 
1818
<li><p id="change-0.7.4-21"><span class="target" id="change-93f0d91f5bbe4c6452dfb872bf427219"><strong>[sql] [bug] </strong></span>related to, made some
 
1819
adjustments to the change from
 
1820
regarding the &#8220;from&#8221; list on a select(). The
 
1821
_froms collection is no longer memoized, as this
 
1822
simplifies various use cases and removes the
 
1823
need for a &#8220;warning&#8221; if a column is attached
 
1824
to a table after it was already used in an
 
1825
expression - the select() construct will now
 
1826
always produce the correct expression.
 
1827
There&#8217;s probably no real-world
 
1828
performance hit here; select() objects are
 
1829
almost always made ad-hoc, and systems that
 
1830
wish to optimize the re-use of a select()
 
1831
would be using the &#8220;compiled_cache&#8221; feature.
 
1832
A hit which would occur when calling select.bind
 
1833
has been reduced, but the vast majority
 
1834
of users shouldn&#8217;t be using &#8220;bound metadata&#8221;
 
1835
anyway :).<a class="changeset-link reference internal" href="#change-93f0d91f5bbe4c6452dfb872bf427219">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2316">#2316</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2261">#2261</a></p>
 
1836
</p>
 
1837
</li>
 
1838
<li><p id="change-0.7.4-22"><span class="target" id="change-980730aa57637cb4737a12677e711fb6"><strong>[sql] [bug] </strong></span>further tweak to the fix from,
 
1839
so that generative methods work a bit better
 
1840
off of cloned (this is almost a non-use case though).
 
1841
In particular this allows with_only_columns()
 
1842
to behave more consistently.   Added additional
 
1843
documentation to with_only_columns() to clarify
 
1844
expected behavior, which changed as a result
 
1845
of.<a class="changeset-link reference internal" href="#change-980730aa57637cb4737a12677e711fb6">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2261">#2261</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2319">#2319</a></p>
 
1846
</p>
 
1847
</li>
 
1848
</ul>
 
1849
</div>
 
1850
<div class="section" id="change-0.7.4-schema">
 
1851
<h3>schema<a class="headerlink" href="#change-0.7.4-schema" title="Permalink to this headline">¶</a></h3>
 
1852
<ul class="simple">
 
1853
<li><p id="change-0.7.4-23"><span class="target" id="change-30eeb63f3664807fb7da0abb1b45863d"><strong>[schema] [feature] </strong></span>Added new support for remote &#8220;schemas&#8221;:<a class="changeset-link reference internal" href="#change-30eeb63f3664807fb7da0abb1b45863d">(link)</a><p></p>
 
1854
</p>
 
1855
</li>
 
1856
<li><p id="change-0.7.4-24"><span class="target" id="change-f8b27554125d172552f8afbb264be5ce"><strong>[schema] [feature] </strong></span>The &#8220;extend_existing&#8221; flag on Table
 
1857
now allows for the reflection process to take
 
1858
effect for a Table object that&#8217;s already been
 
1859
defined; when autoload=True and extend_existing=True
 
1860
are both set, the full set of columns will be
 
1861
reflected from the Table which will then
 
1862
<em>overwrite</em> those columns already present,
 
1863
rather than no activity occurring.  Columns that
 
1864
are present directly in the autoload run
 
1865
will be used as always, however.<a class="changeset-link reference internal" href="#change-f8b27554125d172552f8afbb264be5ce">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1410">#1410</a></p>
 
1866
</p>
 
1867
</li>
 
1868
<li><p id="change-0.7.4-25"><span class="target" id="change-740f1ca9e5f6d1013a43d2f2a3b62e46"><strong>[schema] [bug] </strong></span>Fixed bug whereby TypeDecorator would
 
1869
return a stale value for _type_affinity, when
 
1870
using a TypeDecorator that &#8220;switches&#8221; types,
 
1871
like the CHAR/UUID type.<a class="changeset-link reference internal" href="#change-740f1ca9e5f6d1013a43d2f2a3b62e46">(link)</a><p></p>
 
1872
</p>
 
1873
</li>
 
1874
<li><p id="change-0.7.4-26"><span class="target" id="change-e6f81ac547b821c6e3284e266230443c"><strong>[schema] [bug] </strong></span>Fixed bug whereby &#8220;order_by=&#8217;foreign_key&#8217;&#8221;
 
1875
option to Inspector.get_table_names
 
1876
wasn&#8217;t implementing the sort properly, replaced
 
1877
with the existing sort algorithm<a class="changeset-link reference internal" href="#change-e6f81ac547b821c6e3284e266230443c">(link)</a><p></p>
 
1878
</p>
 
1879
</li>
 
1880
<li><p id="change-0.7.4-27"><span class="target" id="change-d16f46aeda4253c3b9b85c8bbacdeeef"><strong>[schema] [bug] </strong></span>the &#8220;name&#8221; of a column-level CHECK constraint,
 
1881
if present, is now rendered in the CREATE TABLE
 
1882
statement using &#8220;CONSTRAINT &lt;name&gt; CHECK &lt;expression&gt;&#8221;.<a class="changeset-link reference internal" href="#change-d16f46aeda4253c3b9b85c8bbacdeeef">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2305">#2305</a></p>
 
1883
</p>
 
1884
</li>
 
1885
<li><p id="change-0.7.4-28"><span class="target" id="change-82862f893ba8ec9c5f0ee21833ef35a4"><strong>[schema] </strong></span>MetaData() accepts &#8220;schema&#8221; and &#8220;quote_schema&#8221;
 
1886
arguments, which will be applied to the same-named
 
1887
arguments of a Table
 
1888
or Sequence which leaves these at their default
 
1889
of <tt class="docutils literal"><span class="pre">None</span></tt>.<a class="changeset-link reference internal" href="#change-82862f893ba8ec9c5f0ee21833ef35a4">(link)</a><p></p>
 
1890
</p>
 
1891
</li>
 
1892
<li><p id="change-0.7.4-29"><span class="target" id="change-0ee589a6906f82d2282e3743c9ac4052"><strong>[schema] </strong></span>Sequence accepts &#8220;quote_schema&#8221; argument<a class="changeset-link reference internal" href="#change-0ee589a6906f82d2282e3743c9ac4052">(link)</a><p></p>
 
1893
</p>
 
1894
</li>
 
1895
<li><p id="change-0.7.4-30"><span class="target" id="change-b47c1358552d546535afa1ac13ce8cc1"><strong>[schema] </strong></span>tometadata() for Table will use the &#8220;schema&#8221;
 
1896
of the incoming MetaData for the new Table
 
1897
if the schema argument is explicitly &#8220;None&#8221;<a class="changeset-link reference internal" href="#change-b47c1358552d546535afa1ac13ce8cc1">(link)</a><p></p>
 
1898
</p>
 
1899
</li>
 
1900
<li><p id="change-0.7.4-31"><span class="target" id="change-7fbdac893513ac9abb39e64255d2f8b4"><strong>[schema] </strong></span>Added CreateSchema and DropSchema DDL
 
1901
constructs - these accept just the string
 
1902
name of a schema and a &#8220;quote&#8221; flag.<a class="changeset-link reference internal" href="#change-7fbdac893513ac9abb39e64255d2f8b4">(link)</a><p></p>
 
1903
</p>
 
1904
</li>
 
1905
<li><p id="change-0.7.4-32"><span class="target" id="change-efb9e7247339600fac23ba8079daedaa"><strong>[schema] </strong></span>When using default &#8220;schema&#8221; with MetaData,
 
1906
ForeignKey will also assume the &#8220;default&#8221; schema
 
1907
when locating remote table.  This allows the &#8220;schema&#8221;
 
1908
argument on MetaData to be applied to any
 
1909
set of Table objects that otherwise don&#8217;t have
 
1910
a &#8220;schema&#8221;.<a class="changeset-link reference internal" href="#change-efb9e7247339600fac23ba8079daedaa">(link)</a><p></p>
 
1911
</p>
 
1912
</li>
 
1913
<li><p id="change-0.7.4-33"><span class="target" id="change-39c704a27e81d7f8e28e36b554c33fd0"><strong>[schema] </strong></span><dl class="docutils">
 
1914
<dt>a &#8220;has_schema&#8221; method has been implemented</dt>
 
1915
<dd>on dialect, but only works on Postgresql so far.</dd>
 
1916
</dl>
 
1917
<p>Courtesy Manlio Perillo.</p>
 
1918
<a class="changeset-link reference internal" href="#change-39c704a27e81d7f8e28e36b554c33fd0">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1679">#1679</a></p>
 
1919
</p>
 
1920
</li>
 
1921
</ul>
 
1922
</div>
 
1923
<div class="section" id="change-0.7.4-postgresql">
 
1924
<h3>postgresql<a class="headerlink" href="#change-0.7.4-postgresql" title="Permalink to this headline">¶</a></h3>
 
1925
<ul class="simple">
 
1926
<li><p id="change-0.7.4-34"><span class="target" id="change-240e42b2a45d8da58ef70d6352879aa0"><strong>[postgresql] [feature] </strong></span>Added create_type constructor argument
 
1927
to pg.ENUM.  When False, no CREATE/DROP or
 
1928
checking for the type will be performed as part
 
1929
of a table create/drop event; only the
 
1930
create()/drop)() methods called directly
 
1931
will do this.  Helps with Alembic &#8220;offline&#8221;
 
1932
scripts.<a class="changeset-link reference internal" href="#change-240e42b2a45d8da58ef70d6352879aa0">(link)</a><p></p>
 
1933
</p>
 
1934
</li>
 
1935
<li><p id="change-0.7.4-35"><span class="target" id="change-fcdadfef6dc24e48c5801555aed80ea6"><strong>[postgresql] [bug] </strong></span>Postgresql dialect memoizes that an ENUM of a
 
1936
particular name was processed
 
1937
during a create/drop sequence.  This allows
 
1938
a create/drop sequence to work without any
 
1939
calls to &#8220;checkfirst&#8221;, and also means with
 
1940
&#8220;checkfirst&#8221; turned on it only needs to
 
1941
check for the ENUM once.<a class="changeset-link reference internal" href="#change-fcdadfef6dc24e48c5801555aed80ea6">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2311">#2311</a></p>
 
1942
</p>
 
1943
</li>
 
1944
</ul>
 
1945
</div>
 
1946
<div class="section" id="change-0.7.4-mysql">
 
1947
<h3>mysql<a class="headerlink" href="#change-0.7.4-mysql" title="Permalink to this headline">¶</a></h3>
 
1948
<ul class="simple">
 
1949
<li><p id="change-0.7.4-36"><span class="target" id="change-87f7d5afd8c8a0001858444e6cd3690a"><strong>[mysql] [bug] </strong></span>Unicode adjustments allow latest pymysql
 
1950
(post 0.4) to pass 100% on Python 2.<a class="changeset-link reference internal" href="#change-87f7d5afd8c8a0001858444e6cd3690a">(link)</a><p></p>
 
1951
</p>
 
1952
</li>
 
1953
</ul>
 
1954
</div>
 
1955
<div class="section" id="change-0.7.4-mssql">
 
1956
<h3>mssql<a class="headerlink" href="#change-0.7.4-mssql" title="Permalink to this headline">¶</a></h3>
 
1957
<ul class="simple">
 
1958
<li><p id="change-0.7.4-37"><span class="target" id="change-a87623bce57b04db403132f2fa33acb1"><strong>[mssql] [feature] </strong></span>lifted the restriction on SAVEPOINT
 
1959
for SQL Server.  All tests pass using it,
 
1960
it&#8217;s not known if there are deeper issues
 
1961
however.<a class="changeset-link reference internal" href="#change-a87623bce57b04db403132f2fa33acb1">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/822">#822</a></p>
 
1962
</p>
 
1963
</li>
 
1964
<li><p id="change-0.7.4-38"><span class="target" id="change-8ce7ab418720d92012440e27a7609754"><strong>[mssql] [bug] </strong></span>repaired the with_hint() feature which
 
1965
wasn&#8217;t implemented correctly on MSSQL -
 
1966
usually used for the &#8220;WITH (NOLOCK)&#8221; hint
 
1967
(which you shouldn&#8217;t be using anyway !
 
1968
use snapshot isolation instead :) )<a class="changeset-link reference internal" href="#change-8ce7ab418720d92012440e27a7609754">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2336">#2336</a></p>
 
1969
</p>
 
1970
</li>
 
1971
<li><p id="change-0.7.4-39"><span class="target" id="change-24887a76b4459a4583801f84bf9c9130"><strong>[mssql] [bug] </strong></span>use new pyodbc version detection for
 
1972
_need_decimal_fix option.<a class="changeset-link reference internal" href="#change-24887a76b4459a4583801f84bf9c9130">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2318">#2318</a></p>
 
1973
</p>
 
1974
</li>
 
1975
<li><p id="change-0.7.4-40"><span class="target" id="change-f7f5ed67d9b7d73a8f4cf6aaa054c0c6"><strong>[mssql] [bug] </strong></span>don&#8217;t cast &#8220;table name&#8221; as NVARCHAR
 
1976
on SQL Server 2000.  Still mostly in the dark
 
1977
what incantations are needed to make PyODBC
 
1978
work fully with FreeTDS 0.91 here, however.<a class="changeset-link reference internal" href="#change-f7f5ed67d9b7d73a8f4cf6aaa054c0c6">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2343">#2343</a></p>
 
1979
</p>
 
1980
</li>
 
1981
<li><p id="change-0.7.4-41"><span class="target" id="change-426d539458da725fa9abfb7f28580ca7"><strong>[mssql] [bug] </strong></span>Decode incoming values when retrieving
 
1982
list of index names and the names of columns
 
1983
within those indexes.<a class="changeset-link reference internal" href="#change-426d539458da725fa9abfb7f28580ca7">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2269">#2269</a></p>
 
1984
</p>
 
1985
</li>
 
1986
</ul>
 
1987
</div>
 
1988
<div class="section" id="change-0.7.4-misc">
 
1989
<h3>misc<a class="headerlink" href="#change-0.7.4-misc" title="Permalink to this headline">¶</a></h3>
 
1990
<ul class="simple">
 
1991
<li><p id="change-0.7.4-42"><span class="target" id="change-079906bcdf912b0240d809ea2295ab7d"><strong>[feature] [ext] </strong></span>Added an example to the hybrid docs
 
1992
of a &#8220;transformer&#8221; - a hybrid that returns a
 
1993
query-transforming callable in combination
 
1994
with a custom comparator.   Uses a new method
 
1995
on Query called with_transformation().  The use
 
1996
case here is fairly experimental, but only
 
1997
adds one line of code to Query.<a class="changeset-link reference internal" href="#change-079906bcdf912b0240d809ea2295ab7d">(link)</a><p></p>
 
1998
</p>
 
1999
</li>
 
2000
<li><p id="change-0.7.4-43"><span class="target" id="change-8903fbf1a6a4cb048375458cf67d2ee1"><strong>[bug] [pyodbc] </strong></span>pyodbc-based dialects now parse the
 
2001
pyodbc accurately as far as observed
 
2002
pyodbc strings, including such gems
 
2003
as &#8220;py3-3.0.1-beta4&#8221;<a class="changeset-link reference internal" href="#change-8903fbf1a6a4cb048375458cf67d2ee1">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2318">#2318</a></p>
 
2004
</p>
 
2005
</li>
 
2006
<li><p id="change-0.7.4-44"><span class="target" id="change-1ed8ebcf5df5083fc07f342f18c03ac7"><strong>[bug] [ext] </strong></span>the &#64;compiles decorator raises an
 
2007
informative error message when no &#8220;default&#8221;
 
2008
compilation handler is present, rather
 
2009
than KeyError.<a class="changeset-link reference internal" href="#change-1ed8ebcf5df5083fc07f342f18c03ac7">(link)</a><p></p>
 
2010
</p>
 
2011
</li>
 
2012
<li><p id="change-0.7.4-45"><span class="target" id="change-cfcfa2af9f30380f7d1dd29b4b8942c6"><strong>[bug] [examples] </strong></span>Fixed bug in history_meta.py example where
 
2013
the &#8220;unique&#8221; flag was not removed from a
 
2014
single-table-inheritance subclass which
 
2015
generates columns to put up onto the base.<a class="changeset-link reference internal" href="#change-cfcfa2af9f30380f7d1dd29b4b8942c6">(link)</a><p></p>
 
2016
</p>
 
2017
</li>
 
2018
</ul>
 
2019
</div>
 
2020
</div>
 
2021
<div class="section" id="change-0.7.3">
 
2022
<h2>0.7.3<a class="headerlink" href="#change-0.7.3" title="Permalink to this headline">¶</a></h2>
 
2023
Released: Sun Oct 16 2011<div class="section" id="change-0.7.3-general">
 
2024
<h3>general<a class="headerlink" href="#change-0.7.3-general" title="Permalink to this headline">¶</a></h3>
 
2025
<ul class="simple">
 
2026
<li><p id="change-0.7.3-0"><span class="target" id="change-29ab8f946c75b6324ab4623bb4dbe039"><strong>[general] </strong></span>Adjusted the &#8220;importlater&#8221; mechanism, which is
 
2027
used internally to resolve import cycles,
 
2028
such that the usage of __import__ is completed
 
2029
when the import of sqlalchemy or sqlalchemy.orm
 
2030
is done, thereby avoiding any usage of __import__
 
2031
after the application starts new threads,
 
2032
fixes.  Also in 0.6.9.<a class="changeset-link reference internal" href="#change-29ab8f946c75b6324ab4623bb4dbe039">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2279">#2279</a></p>
 
2033
</p>
 
2034
</li>
 
2035
</ul>
 
2036
</div>
 
2037
<div class="section" id="change-0.7.3-orm">
 
2038
<h3>orm<a class="headerlink" href="#change-0.7.3-orm" title="Permalink to this headline">¶</a></h3>
 
2039
<ul class="simple">
 
2040
<li><p id="change-0.7.3-1"><span class="target" id="change-ae5b4bf7f08f7c5c83775c1368dad41a"><strong>[orm] </strong></span>Improved query.join() such that the &#8220;left&#8221; side
 
2041
can more flexibly be a non-ORM selectable,
 
2042
such as a subquery.   A selectable placed
 
2043
in select_from() will now be used as the left
 
2044
side, favored over implicit usage
 
2045
of a mapped entity.
 
2046
If the join still fails based on lack of
 
2047
foreign keys, the error message includes
 
2048
this detail.  Thanks to brianrhude
 
2049
on IRC for the test case.<a class="changeset-link reference internal" href="#change-ae5b4bf7f08f7c5c83775c1368dad41a">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2298">#2298</a></p>
 
2050
</p>
 
2051
</li>
 
2052
<li><p id="change-0.7.3-2"><span class="target" id="change-6c9416f183df27b183148e9bd94420a1"><strong>[orm] </strong></span>Added after_soft_rollback() Session event.  This
 
2053
event fires unconditionally whenever rollback()
 
2054
is called, regardless of if an actual DBAPI
 
2055
level rollback occurred.  This event
 
2056
is specifically designed to allow operations
 
2057
with the Session to proceed after a rollback
 
2058
when the Session.is_active is True.<a class="changeset-link reference internal" href="#change-6c9416f183df27b183148e9bd94420a1">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2241">#2241</a></p>
 
2059
</p>
 
2060
</li>
 
2061
<li><p id="change-0.7.3-3"><span class="target" id="change-8cc754ccc2adc294ad252d4bdeb370d0"><strong>[orm] </strong></span>added &#8220;adapt_on_names&#8221; boolean flag to orm.aliased()
 
2062
construct.  Allows an aliased() construct
 
2063
to link the ORM entity to a selectable that contains
 
2064
aggregates or other derived forms of a particular
 
2065
attribute, provided the name is the same as that
 
2066
of the entity mapped column.<a class="changeset-link reference internal" href="#change-8cc754ccc2adc294ad252d4bdeb370d0">(link)</a><p></p>
 
2067
</p>
 
2068
</li>
 
2069
<li><p id="change-0.7.3-4"><span class="target" id="change-f10203ba4e7e846b2ba30301f2a94379"><strong>[orm] </strong></span>Added new flag expire_on_flush=False to column_property(),
 
2070
marks those properties that would otherwise be considered
 
2071
to be &#8220;readonly&#8221;, i.e. derived from SQL expressions,
 
2072
to retain their value after a flush has occurred, including
 
2073
if the parent object itself was involved in an update.<a class="changeset-link reference internal" href="#change-f10203ba4e7e846b2ba30301f2a94379">(link)</a><p></p>
 
2074
</p>
 
2075
</li>
 
2076
<li><p id="change-0.7.3-5"><span class="target" id="change-dabcd52c3c2100f50821b002f1e3a6a5"><strong>[orm] </strong></span>Enhanced the instrumentation in the ORM to support
 
2077
Py3K&#8217;s new argument style of &#8220;required kw arguments&#8221;,
 
2078
i.e. fn(a, b, <a href="#id1"><span class="problematic" id="id2">*</span></a>, c, d), fn(a, b, <a href="#id3"><span class="problematic" id="id4">*</span></a>args, c, d).
 
2079
Argument signatures of mapped object&#8217;s __init__
 
2080
method will be preserved, including required kw rules.<a class="changeset-link reference internal" href="#change-dabcd52c3c2100f50821b002f1e3a6a5">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2237">#2237</a></p>
 
2081
</p>
 
2082
</li>
 
2083
<li><p id="change-0.7.3-6"><span class="target" id="change-c4cedeedbd7be98f6ce67dac3e197919"><strong>[orm] </strong></span>Fixed bug in unit of work whereby detection of
 
2084
&#8220;cycles&#8221; among classes in highly interlinked patterns
 
2085
would not produce a deterministic
 
2086
result; thereby sometimes missing some nodes that
 
2087
should be considered cycles and causing further
 
2088
issues down the road.  Note this bug is in 0.6
 
2089
also; not backported at the moment.<a class="changeset-link reference internal" href="#change-c4cedeedbd7be98f6ce67dac3e197919">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2282">#2282</a></p>
 
2090
</p>
 
2091
</li>
 
2092
<li><p id="change-0.7.3-7"><span class="target" id="change-01e3a7d2882ae99168675b1632b15b86"><strong>[orm] </strong></span>Fixed a variety of synonym()-related regressions
 
2093
from 0.6:<blockquote>
 
2094
<div><ul>
 
2095
<li>making a synonym against a synonym now works.</li>
 
2096
<li>synonyms made against a relationship() can
 
2097
be passed to query.join(), options sent
 
2098
to query.options(), passed by name
 
2099
to query.with_parent().</li>
 
2100
</ul>
 
2101
</div></blockquote>
 
2102
<a class="changeset-link reference internal" href="#change-01e3a7d2882ae99168675b1632b15b86">(link)</a><p></p>
 
2103
</p>
 
2104
</li>
 
2105
<li><p id="change-0.7.3-8"><span class="target" id="change-3376d1f0f8fd5692e18be45ec4f9df6d"><strong>[orm] </strong></span>Fixed bug whereby mapper.order_by attribute would
 
2106
be ignored in the &#8220;inner&#8221; query within a
 
2107
subquery eager load. .
 
2108
Also in 0.6.9.<a class="changeset-link reference internal" href="#change-3376d1f0f8fd5692e18be45ec4f9df6d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2287">#2287</a></p>
 
2109
</p>
 
2110
</li>
 
2111
<li><p id="change-0.7.3-9"><span class="target" id="change-1eeda31b58b0498795c90858495711b1"><strong>[orm] </strong></span>Identity map .discard() uses dict.pop(,None)
 
2112
internally instead of &#8220;del&#8221; to avoid KeyError/warning
 
2113
during a non-determinate gc teardown<a class="changeset-link reference internal" href="#change-1eeda31b58b0498795c90858495711b1">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2267">#2267</a></p>
 
2114
</p>
 
2115
</li>
 
2116
<li><p id="change-0.7.3-10"><span class="target" id="change-b2a626fabeac396bf73fa7b10eaf0786"><strong>[orm] </strong></span>Fixed regression in new composite rewrite where
 
2117
deferred=True option failed due to missing
 
2118
import<a class="changeset-link reference internal" href="#change-b2a626fabeac396bf73fa7b10eaf0786">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2253">#2253</a></p>
 
2119
</p>
 
2120
</li>
 
2121
<li><p id="change-0.7.3-11"><span class="target" id="change-1cfd554de6fd12bc9bbed36f51379b32"><strong>[orm] </strong></span>Reinstated &#8220;comparator_factory&#8221; argument to
 
2122
composite(), removed when 0.7 was released.<a class="changeset-link reference internal" href="#change-1cfd554de6fd12bc9bbed36f51379b32">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2248">#2248</a></p>
 
2123
</p>
 
2124
</li>
 
2125
<li><p id="change-0.7.3-12"><span class="target" id="change-ecfede670d6323fc4e0c9f2b4c2d4ffa"><strong>[orm] </strong></span>Fixed bug in query.join() which would occur
 
2126
in a complex multiple-overlapping path scenario,
 
2127
where the same table could be joined to
 
2128
twice.  Thanks <em>much</em> to Dave Vitek
 
2129
for the excellent fix here.<a class="changeset-link reference internal" href="#change-ecfede670d6323fc4e0c9f2b4c2d4ffa">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2247">#2247</a></p>
 
2130
</p>
 
2131
</li>
 
2132
<li><p id="change-0.7.3-13"><span class="target" id="change-ca7dab171c5b45294a127e6ae80ee565"><strong>[orm] </strong></span>Query will convert an OFFSET of zero when
 
2133
slicing into None, so that needless OFFSET
 
2134
clauses are not invoked.<a class="changeset-link reference internal" href="#change-ca7dab171c5b45294a127e6ae80ee565">(link)</a><p></p>
 
2135
</p>
 
2136
</li>
 
2137
<li><p id="change-0.7.3-14"><span class="target" id="change-bfefa86c53e4b97eb19697ef006bac6a"><strong>[orm] </strong></span>Repaired edge case where mapper would fail
 
2138
to fully update internal state when a relationship
 
2139
on a new mapper would establish a backref on the
 
2140
first mapper.<a class="changeset-link reference internal" href="#change-bfefa86c53e4b97eb19697ef006bac6a">(link)</a><p></p>
 
2141
</p>
 
2142
</li>
 
2143
<li><p id="change-0.7.3-15"><span class="target" id="change-35a916ff4e0cd3752176e3645b8e726c"><strong>[orm] </strong></span>Fixed bug whereby if __eq__() was
 
2144
redefined, a relationship many-to-one lazyload
 
2145
would hit the __eq__() and fail.
 
2146
Does not apply to 0.6.9.<a class="changeset-link reference internal" href="#change-35a916ff4e0cd3752176e3645b8e726c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2260">#2260</a></p>
 
2147
</p>
 
2148
</li>
 
2149
<li><p id="change-0.7.3-16"><span class="target" id="change-f3c15c1285778343f7424d1dd8d2dc23"><strong>[orm] </strong></span>Calling class_mapper() and passing in an object
 
2150
that is not a &#8220;type&#8221; (i.e. a class that could
 
2151
potentially be mapped) now raises an informative
 
2152
ArgumentError, rather than UnmappedClassError.<a class="changeset-link reference internal" href="#change-f3c15c1285778343f7424d1dd8d2dc23">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2196">#2196</a></p>
 
2153
</p>
 
2154
</li>
 
2155
<li><p id="change-0.7.3-17"><span class="target" id="change-f11c11a3ef0b67817b440a0b327c60a3"><strong>[orm] </strong></span>New event hook, MapperEvents.after_configured().
 
2156
Called after a configure() step has completed and
 
2157
mappers were in fact affected.   Theoretically this
 
2158
event is called once per application, unless new mappings
 
2159
are constructed after existing ones have been used
 
2160
already.<a class="changeset-link reference internal" href="#change-f11c11a3ef0b67817b440a0b327c60a3">(link)</a><p></p>
 
2161
</p>
 
2162
</li>
 
2163
<li><p id="change-0.7.3-18"><span class="target" id="change-5c6dee5ef6c553b074703bc9546027b3"><strong>[orm] </strong></span>When an open Session is garbage collected, the objects
 
2164
within it which remain are considered detached again
 
2165
when they are add()-ed to a new Session.
 
2166
This is accomplished by an extra check that the previous
 
2167
&#8220;session_key&#8221; doesn&#8217;t actually exist among the pool
 
2168
of Sessions.<a class="changeset-link reference internal" href="#change-5c6dee5ef6c553b074703bc9546027b3">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2281">#2281</a></p>
 
2169
</p>
 
2170
</li>
 
2171
<li><p id="change-0.7.3-19"><span class="target" id="change-77db0e4014e12385c5bf5b7f63498293"><strong>[orm] </strong></span><dl class="docutils">
 
2172
<dt>New declarative features:</dt>
 
2173
<dd><ul class="first">
 
2174
<li>__declare_last__() method, establishes an event</li>
 
2175
</ul>
 
2176
<p class="last">listener for the class method that will be called
 
2177
when mappers are completed with the final &#8220;configure&#8221;
 
2178
step.
 
2179
- __abstract__ flag.   The class will not be mapped
 
2180
at all when this flag is present on the class.
 
2181
- New helper classes ConcreteBase, AbstractConcreteBase.
 
2182
Allow concrete mappings using declarative which automatically
 
2183
set up the &#8220;polymorphic_union&#8221; when the &#8220;configure&#8221;
 
2184
mapper step is invoked.
 
2185
- The mapper itself has semi-private methods that allow
 
2186
the &#8220;with_polymorphic&#8221; selectable to be assigned
 
2187
to the mapper after it has already been configured.</p>
 
2188
</dd>
 
2189
</dl>
 
2190
<a class="changeset-link reference internal" href="#change-77db0e4014e12385c5bf5b7f63498293">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2239">#2239</a></p>
 
2191
</p>
 
2192
</li>
 
2193
<li><p id="change-0.7.3-20"><span class="target" id="change-939714d3448edca7f9d13cce0b4ba5cb"><strong>[orm] </strong></span>Declarative will warn when a subclass&#8217; base uses
 
2194
&#64;declared_attr for a regular column - this attribute
 
2195
does not propagate to subclasses.<a class="changeset-link reference internal" href="#change-939714d3448edca7f9d13cce0b4ba5cb">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2283">#2283</a></p>
 
2196
</p>
 
2197
</li>
 
2198
<li><p id="change-0.7.3-21"><span class="target" id="change-a38f4b857777203b02c6fb8320f6ab56"><strong>[orm] </strong></span>The integer &#8220;id&#8221; used to link a mapped instance with
 
2199
its owning Session is now generated by a sequence
 
2200
generation function rather than id(Session), to
 
2201
eliminate the possibility of recycled id() values
 
2202
causing an incorrect result, no need to check that
 
2203
object actually in the session.<a class="changeset-link reference internal" href="#change-a38f4b857777203b02c6fb8320f6ab56">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2280">#2280</a></p>
 
2204
</p>
 
2205
</li>
 
2206
<li><p id="change-0.7.3-22"><span class="target" id="change-4e682b3609b1baadc8abcfc7bd1a9cfe"><strong>[orm] </strong></span>Behavioral improvement: empty
 
2207
conjunctions such as and_() and or_() will be
 
2208
flattened in the context of an enclosing conjunction,
 
2209
i.e. and_(x, or_()) will produce &#8216;X&#8217; and not &#8216;X AND
 
2210
()&#8217;..<a class="changeset-link reference internal" href="#change-4e682b3609b1baadc8abcfc7bd1a9cfe">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2257">#2257</a></p>
 
2211
</p>
 
2212
</li>
 
2213
<li><p id="change-0.7.3-23"><span class="target" id="change-9f535715e9461a8906aa9ad3b5766826"><strong>[orm] </strong></span>Fixed bug regarding calculation of &#8220;from&#8221; list
 
2214
for a select() element.  The &#8220;from&#8221; calc is now
 
2215
delayed, so that if the construct uses a Column
 
2216
object that is not yet attached to a Table,
 
2217
but is later associated with a Table, it generates
 
2218
SQL using the table as a FROM.   This change
 
2219
impacted fairly deeply the mechanics of how
 
2220
the FROM list as well as the &#8220;correlates&#8221; collection
 
2221
is calculated, as some &#8220;clause adaption&#8221; schemes
 
2222
(these are used very heavily in the ORM)
 
2223
were relying upon the fact that the &#8220;froms&#8221;
 
2224
collection would typically be cached before the
 
2225
adaption completed.   The rework allows it
 
2226
such that the &#8220;froms&#8221; collection can be cleared
 
2227
and re-generated at any time.<a class="changeset-link reference internal" href="#change-9f535715e9461a8906aa9ad3b5766826">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2261">#2261</a></p>
 
2228
</p>
 
2229
</li>
 
2230
<li><p id="change-0.7.3-24"><span class="target" id="change-99995021df97bdd6d7230fd3bf0b14f7"><strong>[orm] </strong></span>Fixed bug whereby with_only_columns() method of
 
2231
Select would fail if a selectable were passed..  Also in 0.6.9.<a class="changeset-link reference internal" href="#change-99995021df97bdd6d7230fd3bf0b14f7">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2270">#2270</a></p>
 
2232
</p>
 
2233
</li>
 
2234
</ul>
 
2235
</div>
 
2236
<div class="section" id="change-0.7.3-engine">
 
2237
<h3>engine<a class="headerlink" href="#change-0.7.3-engine" title="Permalink to this headline">¶</a></h3>
 
2238
<ul class="simple">
 
2239
<li><p id="change-0.7.3-25"><span class="target" id="change-fe03967391583f1af44b0523e58c6f32"><strong>[engine] </strong></span>The recreate() method in all pool classes uses
 
2240
self.__class__ to get at the type of pool
 
2241
to produce, in the case of subclassing.  Note
 
2242
there&#8217;s no usual need to subclass pools.<a class="changeset-link reference internal" href="#change-fe03967391583f1af44b0523e58c6f32">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2254">#2254</a></p>
 
2243
</p>
 
2244
</li>
 
2245
<li><p id="change-0.7.3-26"><span class="target" id="change-c8b58c6c69a06f1d1edd761f2c33f734"><strong>[engine] </strong></span>Improvement to multi-param statement logging,
 
2246
long lists of bound parameter sets will be
 
2247
compressed with an informative indicator
 
2248
of the compression taking place.  Exception
 
2249
messages use the same improved formatting.<a class="changeset-link reference internal" href="#change-c8b58c6c69a06f1d1edd761f2c33f734">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2243">#2243</a></p>
 
2250
</p>
 
2251
</li>
 
2252
<li><p id="change-0.7.3-27"><span class="target" id="change-cb1dfd536798db442dde52ee6331cdd4"><strong>[engine] </strong></span>Added optional &#8220;sa_pool_key&#8221; argument to
 
2253
pool.manage(dbapi).connect() so that serialization
 
2254
of args is not necessary.<a class="changeset-link reference internal" href="#change-cb1dfd536798db442dde52ee6331cdd4">(link)</a><p></p>
 
2255
</p>
 
2256
</li>
 
2257
<li><p id="change-0.7.3-28"><span class="target" id="change-81ebdbd8717e73506ce6b46e7f145f52"><strong>[engine] </strong></span>The entry point resolution supported by
 
2258
create_engine() now supports resolution of
 
2259
individual DBAPI drivers on top of a built-in
 
2260
or entry point-resolved dialect, using the
 
2261
standard &#8216;+&#8217; notation - it&#8217;s converted to
 
2262
a &#8216;.&#8217; before being resolved as an entry
 
2263
point.<a class="changeset-link reference internal" href="#change-81ebdbd8717e73506ce6b46e7f145f52">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2286">#2286</a></p>
 
2264
</p>
 
2265
</li>
 
2266
<li><p id="change-0.7.3-29"><span class="target" id="change-d8e856413f2efc008bfbfc1c10a5421e"><strong>[engine] </strong></span>Added an exception catch + warning for the
 
2267
&#8220;return unicode detection&#8221; step within connect,
 
2268
allows databases that crash on NVARCHAR to
 
2269
continue initializing, assuming no NVARCHAR
 
2270
type implemented.<a class="changeset-link reference internal" href="#change-d8e856413f2efc008bfbfc1c10a5421e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2299">#2299</a></p>
 
2271
</p>
 
2272
</li>
 
2273
</ul>
 
2274
</div>
 
2275
<div class="section" id="change-0.7.3-schema">
 
2276
<h3>schema<a class="headerlink" href="#change-0.7.3-schema" title="Permalink to this headline">¶</a></h3>
 
2277
<ul class="simple">
 
2278
<li><p id="change-0.7.3-30"><span class="target" id="change-de8c32a6729c83da17177f6a13979717"><strong>[schema] </strong></span>Modified Column.copy() to use _constructor(),
 
2279
which defaults to self.__class__, in order to
 
2280
create the new object.  This allows easier support
 
2281
of subclassing Column.<a class="changeset-link reference internal" href="#change-de8c32a6729c83da17177f6a13979717">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2284">#2284</a></p>
 
2282
</p>
 
2283
</li>
 
2284
<li><p id="change-0.7.3-31"><span class="target" id="change-32308255f47669cee375f30b9c00fd93"><strong>[schema] </strong></span>Added a slightly nicer __repr__() to SchemaItem
 
2285
classes.  Note the repr here can&#8217;t fully support
 
2286
the &#8220;repr is the constructor&#8221; idea since schema
 
2287
items can be very deeply nested/cyclical, have
 
2288
late initialization of some things, etc.<a class="changeset-link reference internal" href="#change-32308255f47669cee375f30b9c00fd93">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2223">#2223</a></p>
 
2289
</p>
 
2290
</li>
 
2291
</ul>
 
2292
</div>
 
2293
<div class="section" id="change-0.7.3-postgresql">
 
2294
<h3>postgresql<a class="headerlink" href="#change-0.7.3-postgresql" title="Permalink to this headline">¶</a></h3>
 
2295
<ul class="simple">
 
2296
<li><p id="change-0.7.3-32"><span class="target" id="change-dfbbf7fcd27cee6a40162ad7712796a8"><strong>[postgresql] </strong></span>Added &#8220;postgresql_using&#8221; argument to Index(), produces
 
2297
USING clause to specify index implementation for
 
2298
PG. .  Thanks to Ryan P. Kelly for
 
2299
the patch.<a class="changeset-link reference internal" href="#change-dfbbf7fcd27cee6a40162ad7712796a8">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2290">#2290</a></p>
 
2300
</p>
 
2301
</li>
 
2302
<li><p id="change-0.7.3-33"><span class="target" id="change-ce7825ce219e385bc6db449ec1a37fa4"><strong>[postgresql] </strong></span>Added client_encoding parameter to create_engine()
 
2303
when the postgresql+psycopg2 dialect is used;
 
2304
calls the psycopg2 set_client_encoding() method
 
2305
with the value upon connect.<a class="changeset-link reference internal" href="#change-ce7825ce219e385bc6db449ec1a37fa4">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1839">#1839</a></p>
 
2306
</p>
 
2307
</li>
 
2308
<li><p id="change-0.7.3-34"><span class="target" id="change-1a2de32673fea06a4118fba7422b3b5e"><strong>[postgresql] </strong></span>Fixed bug related to whereby the
 
2309
same modified index behavior in PG 9 affected
 
2310
primary key reflection on a renamed column..  Also in 0.6.9.<a class="changeset-link reference internal" href="#change-1a2de32673fea06a4118fba7422b3b5e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2291">#2291</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2141">#2141</a></p>
 
2311
</p>
 
2312
</li>
 
2313
<li><p id="change-0.7.3-35"><span class="target" id="change-a5584939f5bbdeea7e400a4f8440ee72"><strong>[postgresql] </strong></span>Reflection functions for Table, Sequence no longer
 
2314
case insensitive.  Names can be differ only in case
 
2315
and will be correctly distinguished.<a class="changeset-link reference internal" href="#change-a5584939f5bbdeea7e400a4f8440ee72">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2256">#2256</a></p>
 
2316
</p>
 
2317
</li>
 
2318
<li><p id="change-0.7.3-36"><span class="target" id="change-39b479d7d5d6b7bfce6b386c07e71086"><strong>[postgresql] </strong></span>Use an atomic counter as the &#8220;random number&#8221;
 
2319
source for server side cursor names;
 
2320
conflicts have been reported in rare cases.<a class="changeset-link reference internal" href="#change-39b479d7d5d6b7bfce6b386c07e71086">(link)</a><p></p>
 
2321
</p>
 
2322
</li>
 
2323
<li><p id="change-0.7.3-37"><span class="target" id="change-26fee7eb2a113690d6c965d0964e4638"><strong>[postgresql] </strong></span>Narrowed the assumption made when reflecting
 
2324
a foreign-key referenced table with schema in
 
2325
the current search path; an explicit schema will
 
2326
be applied to the referenced table only if
 
2327
it actually matches that of the referencing table,
 
2328
which also has an explicit schema.   Previously
 
2329
it was assumed that &#8220;current&#8221; schema was synonymous
 
2330
with the full search_path.<a class="changeset-link reference internal" href="#change-26fee7eb2a113690d6c965d0964e4638">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2249">#2249</a></p>
 
2331
</p>
 
2332
</li>
 
2333
</ul>
 
2334
</div>
 
2335
<div class="section" id="change-0.7.3-mysql">
 
2336
<h3>mysql<a class="headerlink" href="#change-0.7.3-mysql" title="Permalink to this headline">¶</a></h3>
 
2337
<ul class="simple">
 
2338
<li><p id="change-0.7.3-38"><span class="target" id="change-dd71574d14be141186b7bdcca5c9a7f8"><strong>[mysql] </strong></span>a CREATE TABLE will put the COLLATE option
 
2339
after CHARSET, which appears to be part of
 
2340
MySQL&#8217;s arbitrary rules regarding if it will actually
 
2341
work or not.   Also in 0.6.9.<a class="changeset-link reference internal" href="#change-dd71574d14be141186b7bdcca5c9a7f8">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2225">#2225</a></p>
 
2342
</p>
 
2343
</li>
 
2344
<li><p id="change-0.7.3-39"><span class="target" id="change-34aeb67581ad7ffc3ae0f6881dd7c33a"><strong>[mysql] </strong></span>Added mysql_length parameter to Index construct,
 
2345
specifies &#8220;length&#8221; for indexes.<a class="changeset-link reference internal" href="#change-34aeb67581ad7ffc3ae0f6881dd7c33a">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2293">#2293</a></p>
 
2346
</p>
 
2347
</li>
 
2348
</ul>
 
2349
</div>
 
2350
<div class="section" id="change-0.7.3-sqlite">
 
2351
<h3>sqlite<a class="headerlink" href="#change-0.7.3-sqlite" title="Permalink to this headline">¶</a></h3>
 
2352
<ul class="simple">
 
2353
<li><p id="change-0.7.3-40"><span class="target" id="change-8baaec5ace78d532c085c871572559c6"><strong>[sqlite] </strong></span>Ensured that the same ValueError is raised for
 
2354
illegal date/time/datetime string parsed from
 
2355
the database regardless of whether C
 
2356
extensions are in use or not.<a class="changeset-link reference internal" href="#change-8baaec5ace78d532c085c871572559c6">(link)</a><p></p>
 
2357
</p>
 
2358
</li>
 
2359
</ul>
 
2360
</div>
 
2361
<div class="section" id="change-0.7.3-mssql">
 
2362
<h3>mssql<a class="headerlink" href="#change-0.7.3-mssql" title="Permalink to this headline">¶</a></h3>
 
2363
<ul class="simple">
 
2364
<li><p id="change-0.7.3-41"><span class="target" id="change-36fa8324de82b137e203587ba0e82d17"><strong>[mssql] </strong></span>Changes to attempt support of FreeTDS 0.91 with
 
2365
Pyodbc.  This includes that string binds are sent as
 
2366
Python unicode objects when FreeTDS 0.91 is detected,
 
2367
and a CAST(? AS NVARCHAR) is used when we detect
 
2368
for a table.   However, I&#8217;d continue
 
2369
to characterize Pyodbc + FreeTDS 0.91 behavior as
 
2370
pretty crappy, there are still many queries such
 
2371
as used in reflection which cause a core dump on
 
2372
Linux, and it is not really usable at all
 
2373
on OSX, MemoryErrors abound and just plain broken
 
2374
unicode support.<a class="changeset-link reference internal" href="#change-36fa8324de82b137e203587ba0e82d17">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2273">#2273</a></p>
 
2375
</p>
 
2376
</li>
 
2377
<li><p id="change-0.7.3-42"><span class="target" id="change-62130dcfba80f0c29915ea8aabfbe802"><strong>[mssql] </strong></span>The behavior of =/!= when comparing a scalar select
 
2378
to a value will no longer produce IN/NOT IN as of 0.8;
 
2379
this behavior is a little too heavy handed (use in_() if
 
2380
you want to emit IN) and now emits a deprecation warning.
 
2381
To get the 0.8 behavior immediately and remove the warning,
 
2382
a compiler recipe is given at
 
2383
<a class="reference external" href="http://www.sqlalchemy.org/docs/07/dialects/mssql.html#scalar-select-comparisons">http://www.sqlalchemy.org/docs/07/dialects/mssql.html#scalar-select-comparisons</a>
 
2384
to override the behavior of visit_binary().<a class="changeset-link reference internal" href="#change-62130dcfba80f0c29915ea8aabfbe802">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2277">#2277</a></p>
 
2385
</p>
 
2386
</li>
 
2387
<li><p id="change-0.7.3-43"><span class="target" id="change-b05f07d0da547e8ca3fdddde13481629"><strong>[mssql] </strong></span>&#8220;0&#8221; is accepted as an argument for limit() which
 
2388
will produce &#8220;TOP 0&#8221;.<a class="changeset-link reference internal" href="#change-b05f07d0da547e8ca3fdddde13481629">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2222">#2222</a></p>
 
2389
</p>
 
2390
</li>
 
2391
</ul>
 
2392
</div>
 
2393
<div class="section" id="change-0.7.3-oracle">
 
2394
<h3>oracle<a class="headerlink" href="#change-0.7.3-oracle" title="Permalink to this headline">¶</a></h3>
 
2395
<ul class="simple">
 
2396
<li><p id="change-0.7.3-44"><span class="target" id="change-a7c4980a1f5230b6dddb072ad74b1bcc"><strong>[oracle] </strong></span>Fixed ReturningResultProxy for zxjdbc dialect..  Regression from 0.6.<a class="changeset-link reference internal" href="#change-a7c4980a1f5230b6dddb072ad74b1bcc">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2272">#2272</a></p>
 
2397
</p>
 
2398
</li>
 
2399
<li><p id="change-0.7.3-45"><span class="target" id="change-100c2e0f9af568f915d40868c86cd363"><strong>[oracle] </strong></span>The String type now generates VARCHAR2 on Oracle
 
2400
which is recommended as the default VARCHAR.
 
2401
Added an explicit VARCHAR2 and NVARCHAR2 to the Oracle
 
2402
dialect as well.   Using NVARCHAR still generates
 
2403
&#8220;NVARCHAR2&#8221; - there is no &#8220;NVARCHAR&#8221; on Oracle -
 
2404
this remains a slight breakage of the &#8220;uppercase types
 
2405
always give exactly that&#8221; policy.  VARCHAR still
 
2406
generates &#8220;VARCHAR&#8221;, keeping with the policy.   If
 
2407
Oracle were to ever define &#8220;VARCHAR&#8221; as something
 
2408
different as they claim (IMHO this will never happen),
 
2409
the type would be available.<a class="changeset-link reference internal" href="#change-100c2e0f9af568f915d40868c86cd363">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2252">#2252</a></p>
 
2410
</p>
 
2411
</li>
 
2412
</ul>
 
2413
</div>
 
2414
<div class="section" id="change-0.7.3-misc">
 
2415
<h3>misc<a class="headerlink" href="#change-0.7.3-misc" title="Permalink to this headline">¶</a></h3>
 
2416
<ul class="simple">
 
2417
<li><p id="change-0.7.3-46"><span class="target" id="change-b651e9bd5d27c58a581a88d5ae871614"><strong>[types] </strong></span>Extra keyword arguments to the base Float
 
2418
type beyond &#8220;precision&#8221; and &#8220;asdecimal&#8221; are ignored;
 
2419
added a deprecation warning here and additional
 
2420
docs, related to<a class="changeset-link reference internal" href="#change-b651e9bd5d27c58a581a88d5ae871614">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2258">#2258</a></p>
 
2421
</p>
 
2422
</li>
 
2423
<li><p id="change-0.7.3-47"><span class="target" id="change-94592809a49fc2de7c8eb955f55e91c9"><strong>[ext] </strong></span>SQLSoup will not be included in version 0.8
 
2424
of SQLAlchemy; while useful, we would like to
 
2425
keep SQLAlchemy itself focused on one ORM
 
2426
usage paradigm.  SQLSoup will hopefully
 
2427
soon be superseded by a third party
 
2428
project.<a class="changeset-link reference internal" href="#change-94592809a49fc2de7c8eb955f55e91c9">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2262">#2262</a></p>
 
2429
</p>
 
2430
</li>
 
2431
<li><p id="change-0.7.3-48"><span class="target" id="change-0ea049fd6f98a49f4675f411731db74b"><strong>[ext] </strong></span>Added local_attr, remote_attr, attr accessors
 
2432
to AssociationProxy, providing quick access
 
2433
to the proxied attributes at the class
 
2434
level.<a class="changeset-link reference internal" href="#change-0ea049fd6f98a49f4675f411731db74b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2236">#2236</a></p>
 
2435
</p>
 
2436
</li>
 
2437
<li><p id="change-0.7.3-49"><span class="target" id="change-5c74d8048c22d34b8f6e3fea82e57ea5"><strong>[ext] </strong></span>Changed the update() method on association proxy
 
2438
dictionary to use a duck typing approach, i.e.
 
2439
checks for &#8220;keys&#8221;, to discern between update({})
 
2440
and update((a, b)).   Previously, passing a
 
2441
dictionary that had tuples as keys would be misinterpreted
 
2442
as a sequence.<a class="changeset-link reference internal" href="#change-5c74d8048c22d34b8f6e3fea82e57ea5">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2275">#2275</a></p>
 
2443
</p>
 
2444
</li>
 
2445
<li><p id="change-0.7.3-50"><span class="target" id="change-6c08f21fbfe0067678dc79a3a4fe76ff"><strong>[examples] </strong></span>Adjusted dictlike-polymorphic.py example
 
2446
to apply the CAST such that it works on
 
2447
PG, other databases.
 
2448
Also in 0.6.9.<a class="changeset-link reference internal" href="#change-6c08f21fbfe0067678dc79a3a4fe76ff">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2266">#2266</a></p>
 
2449
</p>
 
2450
</li>
 
2451
</ul>
 
2452
</div>
 
2453
</div>
 
2454
<div class="section" id="change-0.7.2">
 
2455
<h2>0.7.2<a class="headerlink" href="#change-0.7.2" title="Permalink to this headline">¶</a></h2>
 
2456
Released: Sun Jul 31 2011<div class="section" id="change-0.7.2-orm">
 
2457
<h3>orm<a class="headerlink" href="#change-0.7.2-orm" title="Permalink to this headline">¶</a></h3>
 
2458
<ul class="simple">
 
2459
<li><p id="change-0.7.2-0"><span class="target" id="change-1739a61f4e8cd25f6b8ab125e4dc5127"><strong>[orm] </strong></span>Feature enhancement: joined and subquery
 
2460
loading will now traverse already-present related
 
2461
objects and collections in search of unpopulated
 
2462
attributes throughout the scope of the eager load
 
2463
being defined, so that the eager loading that is
 
2464
specified via mappings or query options
 
2465
unconditionally takes place for the full depth,
 
2466
populating whatever is not already populated.
 
2467
Previously, this traversal would stop if a related
 
2468
object or collection were already present leading
 
2469
to inconsistent behavior (though would save on
 
2470
loads/cycles for an already-loaded graph). For a
 
2471
subqueryload, this means that the additional
 
2472
SELECT statements emitted by subqueryload will
 
2473
invoke unconditionally, no matter how much of the
 
2474
existing graph is already present (hence the
 
2475
controversy). The previous behavior of &#8220;stopping&#8221;
 
2476
is still in effect when a query is the result of
 
2477
an attribute-initiated lazyload, as otherwise an
 
2478
&#8220;N+1&#8221; style of collection iteration can become
 
2479
needlessly expensive when the same related object
 
2480
is encountered repeatedly. There&#8217;s also an
 
2481
as-yet-not-public generative Query method
 
2482
_with_invoke_all_eagers()
 
2483
which selects old/new behavior<a class="changeset-link reference internal" href="#change-1739a61f4e8cd25f6b8ab125e4dc5127">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2213">#2213</a></p>
 
2484
</p>
 
2485
</li>
 
2486
<li><p id="change-0.7.2-1"><span class="target" id="change-a051536230c394b7aa1762379e347b73"><strong>[orm] </strong></span>A rework of &#8220;replacement traversal&#8221; within
 
2487
the ORM as it alters selectables to be against
 
2488
aliases of things (i.e. clause adaption) includes
 
2489
a fix for multiply-nested any()/has() constructs
 
2490
against a joined table structure.<a class="changeset-link reference internal" href="#change-a051536230c394b7aa1762379e347b73">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2195">#2195</a></p>
 
2491
</p>
 
2492
</li>
 
2493
<li><p id="change-0.7.2-2"><span class="target" id="change-7cfc8ca67b366824479efed798d288b6"><strong>[orm] </strong></span>Fixed bug where query.join() + aliased=True
 
2494
from a joined-inh structure to itself on
 
2495
relationship() with join condition on the child
 
2496
table would convert the lead entity into the
 
2497
joined one inappropriately.
 
2498
Also in 0.6.9.<a class="changeset-link reference internal" href="#change-7cfc8ca67b366824479efed798d288b6">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2234">#2234</a></p>
 
2499
</p>
 
2500
</li>
 
2501
<li><p id="change-0.7.2-3"><span class="target" id="change-1a864fa03e54fc13755917c5f8b9e4b5"><strong>[orm] </strong></span>Fixed regression from 0.6 where Session.add()
 
2502
against an object which contained None in a
 
2503
collection would raise an internal exception.
 
2504
Reverted this to 0.6&#8217;s behavior which is to
 
2505
accept the None but obviously nothing is
 
2506
persisted.  Ideally, collections with None
 
2507
present or on append() should at least emit a
 
2508
warning, which is being considered for 0.8.<a class="changeset-link reference internal" href="#change-1a864fa03e54fc13755917c5f8b9e4b5">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2205">#2205</a></p>
 
2509
</p>
 
2510
</li>
 
2511
<li><p id="change-0.7.2-4"><span class="target" id="change-1bc8115fca741ab8a339a7f655aa525d"><strong>[orm] </strong></span>Load of a deferred() attribute on an object
 
2512
where row can&#8217;t be located raises
 
2513
ObjectDeletedError instead of failing later
 
2514
on; improved the message in ObjectDeletedError
 
2515
to include other conditions besides a simple
 
2516
&#8220;delete&#8221;.<a class="changeset-link reference internal" href="#change-1bc8115fca741ab8a339a7f655aa525d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2191">#2191</a></p>
 
2517
</p>
 
2518
</li>
 
2519
<li><p id="change-0.7.2-5"><span class="target" id="change-f36e6273d56268c70ed5e545bf51c45f"><strong>[orm] </strong></span>Fixed regression from 0.6 where a get history
 
2520
operation on some relationship() based attributes
 
2521
would fail when a lazyload would emit; this could
 
2522
trigger within a flush() under certain conditions.  Thanks to the user who submitted
 
2523
the great test for this.<a class="changeset-link reference internal" href="#change-f36e6273d56268c70ed5e545bf51c45f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2224">#2224</a></p>
 
2524
</p>
 
2525
</li>
 
2526
<li><p id="change-0.7.2-6"><span class="target" id="change-792cce3e71360b029edf5d3c50c4df50"><strong>[orm] </strong></span>Fixed bug apparent only in Python 3 whereby
 
2527
sorting of persistent + pending objects during
 
2528
flush would produce an illegal comparison,
 
2529
if the persistent object primary key
 
2530
is not a single integer.
 
2531
Also in 0.6.9<a class="changeset-link reference internal" href="#change-792cce3e71360b029edf5d3c50c4df50">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2228">#2228</a></p>
 
2532
</p>
 
2533
</li>
 
2534
<li><p id="change-0.7.2-7"><span class="target" id="change-2e9b266bc9d8a064d8e2df64b691f537"><strong>[orm] </strong></span>Fixed bug whereby the source clause
 
2535
used by query.join() would be inconsistent
 
2536
if against a column expression that combined
 
2537
multiple entities together.
 
2538
Also in 0.6.9<a class="changeset-link reference internal" href="#change-2e9b266bc9d8a064d8e2df64b691f537">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2197">#2197</a></p>
 
2539
</p>
 
2540
</li>
 
2541
<li><p id="change-0.7.2-8"><span class="target" id="change-3d44518370e682ece5ea85b6520a24c4"><strong>[orm] </strong></span>Fixed bug whereby if a mapped class
 
2542
redefined __hash__() or __eq__() to something
 
2543
non-standard, which is a supported use case
 
2544
as SQLA should never consult these,
 
2545
the methods would be consulted if the class
 
2546
was part of a &#8220;composite&#8221; (i.e. non-single-entity)
 
2547
result set.
 
2548
Also in 0.6.9.<a class="changeset-link reference internal" href="#change-3d44518370e682ece5ea85b6520a24c4">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2215">#2215</a></p>
 
2549
</p>
 
2550
</li>
 
2551
<li><p id="change-0.7.2-9"><span class="target" id="change-a3fdfb9e75c58eafef3f473a85141949"><strong>[orm] </strong></span>Added public attribute &#8221;.validators&#8221; to
 
2552
Mapper, an immutable dictionary view of
 
2553
all attributes that have been decorated
 
2554
with the &#64;validates decorator. courtesy Stefano Fontanelli<a class="changeset-link reference internal" href="#change-a3fdfb9e75c58eafef3f473a85141949">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2240">#2240</a></p>
 
2555
</p>
 
2556
</li>
 
2557
<li><p id="change-0.7.2-10"><span class="target" id="change-c7799003ae3c4017f6c50d5b4174048e"><strong>[orm] </strong></span>Fixed subtle bug that caused SQL to blow
 
2558
up if: column_property() against subquery +
 
2559
joinedload + LIMIT + order by the column
 
2560
property() occurred. .
 
2561
Also in 0.6.9<a class="changeset-link reference internal" href="#change-c7799003ae3c4017f6c50d5b4174048e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2188">#2188</a></p>
 
2562
</p>
 
2563
</li>
 
2564
<li><p id="change-0.7.2-11"><span class="target" id="change-a26c4de8b069bb0f1d742ca954b24a5a"><strong>[orm] </strong></span>The join condition produced by with_parent
 
2565
as well as when using a &#8220;dynamic&#8221; relationship
 
2566
against a parent will generate unique
 
2567
bindparams, rather than incorrectly repeating
 
2568
the same bindparam. .
 
2569
Also in 0.6.9.<a class="changeset-link reference internal" href="#change-a26c4de8b069bb0f1d742ca954b24a5a">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2207">#2207</a></p>
 
2570
</p>
 
2571
</li>
 
2572
<li><p id="change-0.7.2-12"><span class="target" id="change-6676824fef13b5c985a65ce599197318"><strong>[orm] </strong></span>Added the same &#8220;columns-only&#8221; check to
 
2573
mapper.polymorphic_on as used when
 
2574
receiving user arguments to
 
2575
relationship.order_by, foreign_keys,
 
2576
remote_side, etc.<a class="changeset-link reference internal" href="#change-6676824fef13b5c985a65ce599197318">(link)</a><p></p>
 
2577
</p>
 
2578
</li>
 
2579
<li><p id="change-0.7.2-13"><span class="target" id="change-13c7fbc21f418ab14248949e4feca96c"><strong>[orm] </strong></span>Fixed bug whereby comparison of column
 
2580
expression to a Query() would not call
 
2581
as_scalar() on the underlying SELECT
 
2582
statement to produce a scalar subquery,
 
2583
in the way that occurs if you called
 
2584
it on Query().subquery().<a class="changeset-link reference internal" href="#change-13c7fbc21f418ab14248949e4feca96c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2190">#2190</a></p>
 
2585
</p>
 
2586
</li>
 
2587
<li><p id="change-0.7.2-14"><span class="target" id="change-86ea39be50d19682a75bf6d8b6a9d38d"><strong>[orm] </strong></span>Fixed declarative bug where a class inheriting
 
2588
from a superclass of the same name would fail
 
2589
due to an unnecessary lookup of the name
 
2590
in the _decl_class_registry.<a class="changeset-link reference internal" href="#change-86ea39be50d19682a75bf6d8b6a9d38d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2194">#2194</a></p>
 
2591
</p>
 
2592
</li>
 
2593
<li><p id="change-0.7.2-15"><span class="target" id="change-59cf1b12fed65cf8fec6dc9e7c376536"><strong>[orm] </strong></span>Repaired the &#8220;no statement condition&#8221;
 
2594
assertion in Query which would attempt
 
2595
to raise if a generative method were called
 
2596
after from_statement() were called..  Also in 0.6.9.<a class="changeset-link reference internal" href="#change-59cf1b12fed65cf8fec6dc9e7c376536">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2199">#2199</a></p>
 
2597
</p>
 
2598
</li>
 
2599
</ul>
 
2600
</div>
 
2601
<div class="section" id="change-0.7.2-engine">
 
2602
<h3>engine<a class="headerlink" href="#change-0.7.2-engine" title="Permalink to this headline">¶</a></h3>
 
2603
<ul class="simple">
 
2604
<li><p id="change-0.7.2-16"><span class="target" id="change-0385e1ab6c61e95bc73e698999b3a9d3"><strong>[engine] </strong></span>Context manager provided by Connection.begin()
 
2605
will issue rollback() if the commit() fails,
 
2606
not just if an exception occurs.<a class="changeset-link reference internal" href="#change-0385e1ab6c61e95bc73e698999b3a9d3">(link)</a><p></p>
 
2607
</p>
 
2608
</li>
 
2609
<li><p id="change-0.7.2-17"><span class="target" id="change-f04f77f2075dff4e599f01387a3ac100"><strong>[engine] </strong></span>Use urllib.parse_qsl() in Python 2.6 and above,
 
2610
no deprecation warning about cgi.parse_qsl()<a class="changeset-link reference internal" href="#change-f04f77f2075dff4e599f01387a3ac100">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1682">#1682</a></p>
 
2611
</p>
 
2612
</li>
 
2613
<li><p id="change-0.7.2-18"><span class="target" id="change-12f69061ac63135f31122ccd030e4137"><strong>[engine] </strong></span>Added mixin class sqlalchemy.ext.DontWrapMixin.
 
2614
User-defined exceptions of this type are never
 
2615
wrapped in StatementException when they
 
2616
occur in the context of a statement
 
2617
execution.<a class="changeset-link reference internal" href="#change-12f69061ac63135f31122ccd030e4137">(link)</a><p></p>
 
2618
</p>
 
2619
</li>
 
2620
<li><p id="change-0.7.2-19"><span class="target" id="change-810ad51bfbb5ba21fc145768df376ec8"><strong>[engine] </strong></span>StatementException wrapping will display the
 
2621
original exception class in the message.<a class="changeset-link reference internal" href="#change-810ad51bfbb5ba21fc145768df376ec8">(link)</a><p></p>
 
2622
</p>
 
2623
</li>
 
2624
<li><p id="change-0.7.2-20"><span class="target" id="change-93add98c10eed840d3b7c907476d4f1c"><strong>[engine] </strong></span>Failures on connect which raise dbapi.Error
 
2625
will forward the error to dialect.is_disconnect()
 
2626
and set the &#8220;connection_invalidated&#8221; flag if
 
2627
the dialect knows this to be a potentially
 
2628
&#8220;retryable&#8221; condition.  Only Oracle ORA-01033
 
2629
implemented for now.<a class="changeset-link reference internal" href="#change-93add98c10eed840d3b7c907476d4f1c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2201">#2201</a></p>
 
2630
</p>
 
2631
</li>
 
2632
</ul>
 
2633
</div>
 
2634
<div class="section" id="change-0.7.2-sql">
 
2635
<h3>sql<a class="headerlink" href="#change-0.7.2-sql" title="Permalink to this headline">¶</a></h3>
 
2636
<ul class="simple">
 
2637
<li><p id="change-0.7.2-21"><span class="target" id="change-b8a57863c962b6e42184a303176122b6"><strong>[sql] </strong></span>Fixed two subtle bugs involving column
 
2638
correspondence in a selectable,
 
2639
one with the same labeled subquery repeated, the other
 
2640
when the label has been &#8220;grouped&#8221; and
 
2641
loses itself.  Affects.<a class="changeset-link reference internal" href="#change-b8a57863c962b6e42184a303176122b6">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2188">#2188</a></p>
 
2642
</p>
 
2643
</li>
 
2644
</ul>
 
2645
</div>
 
2646
<div class="section" id="change-0.7.2-schema">
 
2647
<h3>schema<a class="headerlink" href="#change-0.7.2-schema" title="Permalink to this headline">¶</a></h3>
 
2648
<ul class="simple">
 
2649
<li><p id="change-0.7.2-22"><span class="target" id="change-401b949c0225e6348b817f4bb541d046"><strong>[schema] </strong></span>New feature: with_variant() method on
 
2650
all types.  Produces an instance of Variant(),
 
2651
a special TypeDecorator which will select
 
2652
the usage of a different type based on the
 
2653
dialect in use.<a class="changeset-link reference internal" href="#change-401b949c0225e6348b817f4bb541d046">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2187">#2187</a></p>
 
2654
</p>
 
2655
</li>
 
2656
<li><p id="change-0.7.2-23"><span class="target" id="change-9bddb9db3d02fbbbb602dbc2e0a8bcad"><strong>[schema] </strong></span>Added an informative error message when
 
2657
ForeignKeyConstraint refers to a column name in
 
2658
the parent that is not found.  Also in 0.6.9.<a class="changeset-link reference internal" href="#change-9bddb9db3d02fbbbb602dbc2e0a8bcad">(link)</a><p></p>
 
2659
</p>
 
2660
</li>
 
2661
<li><p id="change-0.7.2-24"><span class="target" id="change-06dbefd27437e2191f179bd78b3510e2"><strong>[schema] </strong></span>Fixed bug whereby adaptation of old append_ddl_listener()
 
2662
function was passing unexpected <a href="#id5"><span class="problematic" id="id6">**</span></a>kw through
 
2663
to the Table event.   Table gets no kws, the MetaData
 
2664
event in 0.6 would get &#8220;tables=somecollection&#8221;,
 
2665
this behavior is preserved.<a class="changeset-link reference internal" href="#change-06dbefd27437e2191f179bd78b3510e2">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2206">#2206</a></p>
 
2666
</p>
 
2667
</li>
 
2668
<li><p id="change-0.7.2-25"><span class="target" id="change-25b1468fb18fd0faf9c058f6fb1f0f70"><strong>[schema] </strong></span>Fixed bug where &#8220;autoincrement&#8221; detection on
 
2669
Table would fail if the type had no &#8220;affinity&#8221;
 
2670
value, in particular this would occur when using
 
2671
the UUID example on the site that uses TypeEngine
 
2672
as the &#8220;impl&#8221;.<a class="changeset-link reference internal" href="#change-25b1468fb18fd0faf9c058f6fb1f0f70">(link)</a><p></p>
 
2673
</p>
 
2674
</li>
 
2675
<li><p id="change-0.7.2-26"><span class="target" id="change-1380c32b42b8ac54c0c0cf0fb67c3e94"><strong>[schema] </strong></span>Added an improved repr() to TypeEngine objects
 
2676
that will only display constructor args which
 
2677
are positional or kwargs that deviate
 
2678
from the default.<a class="changeset-link reference internal" href="#change-1380c32b42b8ac54c0c0cf0fb67c3e94">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2209">#2209</a></p>
 
2679
</p>
 
2680
</li>
 
2681
</ul>
 
2682
</div>
 
2683
<div class="section" id="change-0.7.2-postgresql">
 
2684
<h3>postgresql<a class="headerlink" href="#change-0.7.2-postgresql" title="Permalink to this headline">¶</a></h3>
 
2685
<ul class="simple">
 
2686
<li><p id="change-0.7.2-27"><span class="target" id="change-5e7fbb67c30f10c299ecf5f079610643"><strong>[postgresql] </strong></span>Added new &#8220;postgresql_ops&#8221; argument to
 
2687
Index, allows specification of PostgreSQL
 
2688
operator classes for indexed columns.  Courtesy Filip Zyzniewski.<a class="changeset-link reference internal" href="#change-5e7fbb67c30f10c299ecf5f079610643">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2198">#2198</a></p>
 
2689
</p>
 
2690
</li>
 
2691
</ul>
 
2692
</div>
 
2693
<div class="section" id="change-0.7.2-mysql">
 
2694
<h3>mysql<a class="headerlink" href="#change-0.7.2-mysql" title="Permalink to this headline">¶</a></h3>
 
2695
<ul class="simple">
 
2696
<li><p id="change-0.7.2-28"><span class="target" id="change-89bd952e65c8b1c1dd5f09e71b858a1a"><strong>[mysql] </strong></span>Fixed OurSQL dialect to use ansi-neutral
 
2697
quote symbol &#8220;&#8217;&#8221; for XA commands instead
 
2698
of &#8216;&#8221;&#8217;. .  Also in 0.6.9.<a class="changeset-link reference internal" href="#change-89bd952e65c8b1c1dd5f09e71b858a1a">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2186">#2186</a></p>
 
2699
</p>
 
2700
</li>
 
2701
</ul>
 
2702
</div>
 
2703
<div class="section" id="change-0.7.2-sqlite">
 
2704
<h3>sqlite<a class="headerlink" href="#change-0.7.2-sqlite" title="Permalink to this headline">¶</a></h3>
 
2705
<ul class="simple">
 
2706
<li><p id="change-0.7.2-29"><span class="target" id="change-a76d1c5d7fb5742f5907e331f3e060b5"><strong>[sqlite] </strong></span>SQLite dialect no longer strips quotes
 
2707
off of reflected default value, allowing
 
2708
a round trip CREATE TABLE to work.
 
2709
This is consistent with other dialects
 
2710
that also maintain the exact form of
 
2711
the default.<a class="changeset-link reference internal" href="#change-a76d1c5d7fb5742f5907e331f3e060b5">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2189">#2189</a></p>
 
2712
</p>
 
2713
</li>
 
2714
</ul>
 
2715
</div>
 
2716
<div class="section" id="change-0.7.2-mssql">
 
2717
<h3>mssql<a class="headerlink" href="#change-0.7.2-mssql" title="Permalink to this headline">¶</a></h3>
 
2718
<ul class="simple">
 
2719
<li><p id="change-0.7.2-30"><span class="target" id="change-600cd2aaea617df4bcb0c1cc8219406a"><strong>[mssql] </strong></span>Adjusted the pyodbc dialect such that bound
 
2720
values are passed as bytes and not unicode
 
2721
if the &#8220;Easysoft&#8221; unix drivers are detected.
 
2722
This is the same behavior as occurs with
 
2723
FreeTDS.  Easysoft appears to segfault
 
2724
if Python unicodes are passed under
 
2725
certain circumstances.<a class="changeset-link reference internal" href="#change-600cd2aaea617df4bcb0c1cc8219406a">(link)</a><p></p>
 
2726
</p>
 
2727
</li>
 
2728
</ul>
 
2729
</div>
 
2730
<div class="section" id="change-0.7.2-oracle">
 
2731
<h3>oracle<a class="headerlink" href="#change-0.7.2-oracle" title="Permalink to this headline">¶</a></h3>
 
2732
<ul class="simple">
 
2733
<li><p id="change-0.7.2-31"><span class="target" id="change-160a70a653da208a38ffb9040ea5726d"><strong>[oracle] </strong></span>Added ORA-00028 to disconnect codes, use
 
2734
cx_oracle _Error.code to get at the code,.  Also in 0.6.9.<a class="changeset-link reference internal" href="#change-160a70a653da208a38ffb9040ea5726d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2200">#2200</a></p>
 
2735
</p>
 
2736
</li>
 
2737
<li><p id="change-0.7.2-32"><span class="target" id="change-6c87e4c4b4093629e3ba1f02bdf3ab64"><strong>[oracle] </strong></span>Added ORA-01033 to disconnect codes, which
 
2738
can be caught during a connection
 
2739
event.<a class="changeset-link reference internal" href="#change-6c87e4c4b4093629e3ba1f02bdf3ab64">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2201">#2201</a></p>
 
2740
</p>
 
2741
</li>
 
2742
<li><p id="change-0.7.2-33"><span class="target" id="change-03bd66691ff42c3c20f33e7bab730cd1"><strong>[oracle] </strong></span>repaired the oracle.RAW type which did not
 
2743
generate the correct DDL.
 
2744
Also in 0.6.9.<a class="changeset-link reference internal" href="#change-03bd66691ff42c3c20f33e7bab730cd1">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2220">#2220</a></p>
 
2745
</p>
 
2746
</li>
 
2747
<li><p id="change-0.7.2-34"><span class="target" id="change-a7992f3b1ebcc0afe915f2e5b81059dc"><strong>[oracle] </strong></span>added CURRENT to reserved word list. Also in 0.6.9.<a class="changeset-link reference internal" href="#change-a7992f3b1ebcc0afe915f2e5b81059dc">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2212">#2212</a></p>
 
2748
</p>
 
2749
</li>
 
2750
<li><p id="change-0.7.2-35"><span class="target" id="change-c1007ad607ff9e6ef6af1e934d877593"><strong>[oracle] </strong></span>Fixed bug in the mutable extension whereby
 
2751
if the same type were used twice in one
 
2752
mapping, the attributes beyond the first
 
2753
would not get instrumented.<a class="changeset-link reference internal" href="#change-c1007ad607ff9e6ef6af1e934d877593">(link)</a><p></p>
 
2754
</p>
 
2755
</li>
 
2756
<li><p id="change-0.7.2-36"><span class="target" id="change-dc447cba87916cdbf0e26b9026b3a710"><strong>[oracle] </strong></span>Fixed bug in the mutable extension whereby
 
2757
if None or a non-corresponding type were set,
 
2758
an error would be raised.  None is now accepted
 
2759
which assigns None to all attributes,
 
2760
illegal values raise ValueError.<a class="changeset-link reference internal" href="#change-dc447cba87916cdbf0e26b9026b3a710">(link)</a><p></p>
 
2761
</p>
 
2762
</li>
 
2763
</ul>
 
2764
</div>
 
2765
<div class="section" id="change-0.7.2-misc">
 
2766
<h3>misc<a class="headerlink" href="#change-0.7.2-misc" title="Permalink to this headline">¶</a></h3>
 
2767
<ul class="simple">
 
2768
<li><p id="change-0.7.2-37"><span class="target" id="change-4d1214f86691d7af90b6aec2a6000b50"><strong>[examples] </strong></span>Repaired the examples/versioning test runner
 
2769
to not rely upon SQLAlchemy test libs,
 
2770
nosetests must be run from within
 
2771
examples/versioning to get around setup.cfg
 
2772
breaking it.<a class="changeset-link reference internal" href="#change-4d1214f86691d7af90b6aec2a6000b50">(link)</a><p></p>
 
2773
</p>
 
2774
</li>
 
2775
<li><p id="change-0.7.2-38"><span class="target" id="change-167aac7d99e8dbb5b0ddd7ea0e5ab0d4"><strong>[examples] </strong></span>Tweak to examples/versioning to pick the
 
2776
correct foreign key in a multi-level
 
2777
inheritance situation.<a class="changeset-link reference internal" href="#change-167aac7d99e8dbb5b0ddd7ea0e5ab0d4">(link)</a><p></p>
 
2778
</p>
 
2779
</li>
 
2780
<li><p id="change-0.7.2-39"><span class="target" id="change-e68d0bc608be6e8845d4b5a7d44194b6"><strong>[examples] </strong></span>Fixed the attribute shard example to check
 
2781
for bind param callable correctly in 0.7
 
2782
style.<a class="changeset-link reference internal" href="#change-e68d0bc608be6e8845d4b5a7d44194b6">(link)</a><p></p>
 
2783
</p>
 
2784
</li>
 
2785
</ul>
 
2786
</div>
 
2787
</div>
 
2788
<div class="section" id="change-0.7.1">
 
2789
<h2>0.7.1<a class="headerlink" href="#change-0.7.1" title="Permalink to this headline">¶</a></h2>
 
2790
Released: Sun Jun 05 2011<div class="section" id="change-0.7.1-general">
 
2791
<h3>general<a class="headerlink" href="#change-0.7.1-general" title="Permalink to this headline">¶</a></h3>
 
2792
<ul class="simple">
 
2793
<li><p id="change-0.7.1-0"><span class="target" id="change-d964cd2a33f222066a35562de86fea5c"><strong>[general] </strong></span>Added a workaround for Python bug 7511 where
 
2794
failure of C extension build does not
 
2795
raise an appropriate exception on Windows 64
 
2796
bit + VC express<a class="changeset-link reference internal" href="#change-d964cd2a33f222066a35562de86fea5c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2184">#2184</a></p>
 
2797
</p>
 
2798
</li>
 
2799
</ul>
 
2800
</div>
 
2801
<div class="section" id="change-0.7.1-orm">
 
2802
<h3>orm<a class="headerlink" href="#change-0.7.1-orm" title="Permalink to this headline">¶</a></h3>
 
2803
<ul class="simple">
 
2804
<li><p id="change-0.7.1-1"><span class="target" id="change-17de5b36d8997caf117a46a3670a3f8a"><strong>[orm] </strong></span>&#8220;delete-orphan&#8221; cascade is now allowed on
 
2805
self-referential relationships - this since
 
2806
SQLA 0.7 no longer enforces &#8220;parent with no
 
2807
child&#8221; at the ORM level; this check is left
 
2808
up to foreign key nullability.
 
2809
Related to<a class="changeset-link reference internal" href="#change-17de5b36d8997caf117a46a3670a3f8a">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1912">#1912</a></p>
 
2810
</p>
 
2811
</li>
 
2812
<li><p id="change-0.7.1-2"><span class="target" id="change-92b2af9262983ea532c0f658bfb17f2c"><strong>[orm] </strong></span>Repaired new &#8220;mutable&#8221; extension to propagate
 
2813
events to subclasses correctly; don&#8217;t
 
2814
create multiple event listeners for
 
2815
subclasses either.<a class="changeset-link reference internal" href="#change-92b2af9262983ea532c0f658bfb17f2c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2180">#2180</a></p>
 
2816
</p>
 
2817
</li>
 
2818
<li><p id="change-0.7.1-3"><span class="target" id="change-c8d8913620eed4ee345ac9d7820ae1a4"><strong>[orm] </strong></span>Modify the text of the message which occurs
 
2819
when the &#8220;identity&#8221; key isn&#8217;t detected on
 
2820
flush, to include the common cause that
 
2821
the Column isn&#8217;t set up to detect
 
2822
auto-increment correctly;.
 
2823
Also in 0.6.8.<a class="changeset-link reference internal" href="#change-c8d8913620eed4ee345ac9d7820ae1a4">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2170">#2170</a></p>
 
2824
</p>
 
2825
</li>
 
2826
<li><p id="change-0.7.1-4"><span class="target" id="change-83414e0c5ba2231873ec5e6f1f09e4a2"><strong>[orm] </strong></span>Fixed bug where transaction-level &#8220;deleted&#8221;
 
2827
collection wouldn&#8217;t be cleared of expunged
 
2828
states, raising an error if they later
 
2829
became transient.
 
2830
Also in 0.6.8.<a class="changeset-link reference internal" href="#change-83414e0c5ba2231873ec5e6f1f09e4a2">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2182">#2182</a></p>
 
2831
</p>
 
2832
</li>
 
2833
</ul>
 
2834
</div>
 
2835
<div class="section" id="change-0.7.1-engine">
 
2836
<h3>engine<a class="headerlink" href="#change-0.7.1-engine" title="Permalink to this headline">¶</a></h3>
 
2837
<ul class="simple">
 
2838
<li><p id="change-0.7.1-5"><span class="target" id="change-efd707a33500efe6db9ee55b32d39216"><strong>[engine] </strong></span>Deprecate schema/SQL-oriented methods on
 
2839
Connection/Engine that were never well known
 
2840
and are redundant:  reflecttable(), create(),
 
2841
drop(), text(), engine.func<a class="changeset-link reference internal" href="#change-efd707a33500efe6db9ee55b32d39216">(link)</a><p></p>
 
2842
</p>
 
2843
</li>
 
2844
<li><p id="change-0.7.1-6"><span class="target" id="change-78e7d60238ce4141107a00fcad3d7fec"><strong>[engine] </strong></span>Adjusted the __contains__() method of
 
2845
a RowProxy result row such that no exception
 
2846
throw is generated internally;
 
2847
NoSuchColumnError() also will generate its
 
2848
message regardless of whether or not the column
 
2849
construct can be coerced to a string..  Also in 0.6.8.<a class="changeset-link reference internal" href="#change-78e7d60238ce4141107a00fcad3d7fec">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2178">#2178</a></p>
 
2850
</p>
 
2851
</li>
 
2852
</ul>
 
2853
</div>
 
2854
<div class="section" id="change-0.7.1-sql">
 
2855
<h3>sql<a class="headerlink" href="#change-0.7.1-sql" title="Permalink to this headline">¶</a></h3>
 
2856
<ul class="simple">
 
2857
<li><p id="change-0.7.1-7"><span class="target" id="change-a536533da35533b9d8846e5ccde035ba"><strong>[sql] </strong></span>Fixed bug whereby metadata.reflect(bind)
 
2858
would close a Connection passed as a
 
2859
bind argument.  Regression from 0.6.<a class="changeset-link reference internal" href="#change-a536533da35533b9d8846e5ccde035ba">(link)</a><p></p>
 
2860
</p>
 
2861
</li>
 
2862
<li><p id="change-0.7.1-8"><span class="target" id="change-0472409901f89659a6eca1d563c9e26b"><strong>[sql] </strong></span>Streamlined the process by which a Select
 
2863
determines what&#8217;s in it&#8217;s &#8216;.c&#8217; collection.
 
2864
Behaves identically, except that a
 
2865
raw ClauseList() passed to select([])
 
2866
(which is not a documented case anyway) will
 
2867
now be expanded into its individual column
 
2868
elements instead of being ignored.<a class="changeset-link reference internal" href="#change-0472409901f89659a6eca1d563c9e26b">(link)</a><p></p>
 
2869
</p>
 
2870
</li>
 
2871
</ul>
 
2872
</div>
 
2873
<div class="section" id="change-0.7.1-postgresql">
 
2874
<h3>postgresql<a class="headerlink" href="#change-0.7.1-postgresql" title="Permalink to this headline">¶</a></h3>
 
2875
<ul class="simple">
 
2876
<li><p id="change-0.7.1-9"><span class="target" id="change-036a468c7e481fd6d26a23d398c7209b"><strong>[postgresql] </strong></span>Some unit test fixes regarding numeric arrays,
 
2877
MATCH operator.   A potential floating-point
 
2878
inaccuracy issue was fixed, and certain tests
 
2879
of the MATCH operator only execute within an
 
2880
EN-oriented locale for now. .
 
2881
Also in 0.6.8.<a class="changeset-link reference internal" href="#change-036a468c7e481fd6d26a23d398c7209b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2175">#2175</a></p>
 
2882
</p>
 
2883
</li>
 
2884
</ul>
 
2885
</div>
 
2886
<div class="section" id="change-0.7.1-mysql">
 
2887
<h3>mysql<a class="headerlink" href="#change-0.7.1-mysql" title="Permalink to this headline">¶</a></h3>
 
2888
<ul class="simple">
 
2889
<li><p id="change-0.7.1-10"><span class="target" id="change-0cf81608466b1ee490d9df9f2e4eb80c"><strong>[mysql] </strong></span>Unit tests pass 100% on MySQL installed
 
2890
on windows.<a class="changeset-link reference internal" href="#change-0cf81608466b1ee490d9df9f2e4eb80c">(link)</a><p></p>
 
2891
</p>
 
2892
</li>
 
2893
<li><p id="change-0.7.1-11"><span class="target" id="change-766d1ca6ed7112502e017193c6a681e6"><strong>[mysql] </strong></span>Removed the &#8220;adjust casing&#8221; step that would
 
2894
fail when reflecting a table on MySQL
 
2895
on windows with a mixed case name.  After some
 
2896
experimenting with a windows MySQL server, it&#8217;s
 
2897
been determined that this step wasn&#8217;t really
 
2898
helping the situation much; MySQL does not return
 
2899
FK names with proper casing on non-windows
 
2900
platforms either, and removing the step at
 
2901
least allows the reflection to act more like
 
2902
it does on other OSes.   A warning here
 
2903
has been considered but its difficult to
 
2904
determine under what conditions such a warning
 
2905
can be raised, so punted on that for now -
 
2906
added some docs instead.<a class="changeset-link reference internal" href="#change-766d1ca6ed7112502e017193c6a681e6">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2181">#2181</a></p>
 
2907
</p>
 
2908
</li>
 
2909
<li><p id="change-0.7.1-12"><span class="target" id="change-b9b78f2fe96924ca3f08b9d15350b202"><strong>[mysql] </strong></span>supports_sane_rowcount will be set to False
 
2910
if using MySQLdb and the DBAPI doesn&#8217;t provide
 
2911
the constants.CLIENT module.<a class="changeset-link reference internal" href="#change-b9b78f2fe96924ca3f08b9d15350b202">(link)</a><p></p>
 
2912
</p>
 
2913
</li>
 
2914
</ul>
 
2915
</div>
 
2916
<div class="section" id="change-0.7.1-sqlite">
 
2917
<h3>sqlite<a class="headerlink" href="#change-0.7.1-sqlite" title="Permalink to this headline">¶</a></h3>
 
2918
<ul class="simple">
 
2919
<li><p id="change-0.7.1-13"><span class="target" id="change-8eee0e021de144283ef4bee007693646"><strong>[sqlite] </strong></span>Accept None from cursor.fetchone() when
 
2920
&#8220;PRAGMA read_uncommitted&#8221; is called to determine
 
2921
current isolation mode at connect time and
 
2922
default to SERIALIZABLE; this to support SQLite
 
2923
versions pre-3.3.0 that did not have this
 
2924
feature.<a class="changeset-link reference internal" href="#change-8eee0e021de144283ef4bee007693646">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2173">#2173</a></p>
 
2925
</p>
 
2926
</li>
 
2927
</ul>
 
2928
</div>
 
2929
</div>
 
2930
<div class="section" id="change-0.7.0">
 
2931
<h2>0.7.0<a class="headerlink" href="#change-0.7.0" title="Permalink to this headline">¶</a></h2>
 
2932
Released: Fri May 20 2011<div class="section" id="change-0.7.0-orm">
 
2933
<h3>orm<a class="headerlink" href="#change-0.7.0-orm" title="Permalink to this headline">¶</a></h3>
 
2934
<ul class="simple">
 
2935
<li><p id="change-0.7.0-0"><span class="target" id="change-dd788f403779ce46f1b284caf86744f1"><strong>[orm] </strong></span>Fixed regression introduced in 0.7b4 (!) whereby
 
2936
query.options(someoption(&#8220;nonexistent name&#8221;)) would
 
2937
fail to raise an error.  Also added additional
 
2938
error catching for cases where the option would
 
2939
try to build off a column-based element, further
 
2940
fixed up some of the error messages tailored
 
2941
in<a class="changeset-link reference internal" href="#change-dd788f403779ce46f1b284caf86744f1">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2069">#2069</a></p>
 
2942
</p>
 
2943
</li>
 
2944
<li><p id="change-0.7.0-1"><span class="target" id="change-d4667c0cd130250d8c628298a590a146"><strong>[orm] </strong></span>query.count() emits &#8220;count(*)&#8221; instead of
 
2945
&#8220;count(1)&#8221;.<a class="changeset-link reference internal" href="#change-d4667c0cd130250d8c628298a590a146">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2162">#2162</a></p>
 
2946
</p>
 
2947
</li>
 
2948
<li><p id="change-0.7.0-2"><span class="target" id="change-eb378c4f08449233f13c8d8f9b93740c"><strong>[orm] </strong></span>Fine tuning of Query clause adaptation when
 
2949
from_self(), union(), or other &#8220;select from
 
2950
myself&#8221; operation, such that plain SQL expression
 
2951
elements added to filter(), order_by() etc.
 
2952
which are present in the nested &#8220;from myself&#8221;
 
2953
query <em>will</em> be adapted in the same way an ORM
 
2954
expression element will, since these
 
2955
elements are otherwise not easily accessible.<a class="changeset-link reference internal" href="#change-eb378c4f08449233f13c8d8f9b93740c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2155">#2155</a></p>
 
2956
</p>
 
2957
</li>
 
2958
<li><p id="change-0.7.0-3"><span class="target" id="change-137910b827fa5951d6eaaddedb4ee0fb"><strong>[orm] </strong></span>Fixed bug where determination of &#8220;self referential&#8221;
 
2959
relationship would fail with no workaround
 
2960
for joined-inh subclass related to itself,
 
2961
or joined-inh subclass related to a subclass
 
2962
of that with no cols in the sub-sub class
 
2963
in the join condition.
 
2964
Also in 0.6.8.<a class="changeset-link reference internal" href="#change-137910b827fa5951d6eaaddedb4ee0fb">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2149">#2149</a></p>
 
2965
</p>
 
2966
</li>
 
2967
<li><p id="change-0.7.0-4"><span class="target" id="change-c391bd5e3f88944f1c0807d34fb45f2b"><strong>[orm] </strong></span>mapper() will ignore non-configured foreign keys
 
2968
to unrelated tables when determining inherit
 
2969
condition between parent and child class,
 
2970
but will raise as usual for unresolved
 
2971
columns and table names regarding the inherited
 
2972
table.  This is an enhanced generalization of
 
2973
behavior that was already applied to declarative
 
2974
previously.    0.6.8 has a more
 
2975
conservative version of this which doesn&#8217;t
 
2976
fundamentally alter how join conditions
 
2977
are determined.<a class="changeset-link reference internal" href="#change-c391bd5e3f88944f1c0807d34fb45f2b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2153">#2153</a></p>
 
2978
</p>
 
2979
</li>
 
2980
<li><p id="change-0.7.0-5"><span class="target" id="change-1fd991ce05becf2f02fe6b7626ed5533"><strong>[orm] </strong></span>It is an error to call query.get() when the
 
2981
given entity is not a single, full class
 
2982
entity or mapper (i.e. a column).  This is
 
2983
a deprecation warning in 0.6.8.<a class="changeset-link reference internal" href="#change-1fd991ce05becf2f02fe6b7626ed5533">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2144">#2144</a></p>
 
2984
</p>
 
2985
</li>
 
2986
<li><p id="change-0.7.0-6"><span class="target" id="change-71cf0b71941a427e86274e502d705578"><strong>[orm] </strong></span>Fixed a potential KeyError which under some
 
2987
circumstances could occur with the identity
 
2988
map, part of<a class="changeset-link reference internal" href="#change-71cf0b71941a427e86274e502d705578">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2148">#2148</a></p>
 
2989
</p>
 
2990
</li>
 
2991
<li><p id="change-0.7.0-7"><span class="target" id="change-5dbf57f6a88bfe6de8fb836ee68bc8b5"><strong>[orm] </strong></span>added Query.with_session() method, switches
 
2992
Query to use a different session.<a class="changeset-link reference internal" href="#change-5dbf57f6a88bfe6de8fb836ee68bc8b5">(link)</a><p></p>
 
2993
</p>
 
2994
</li>
 
2995
<li><p id="change-0.7.0-8"><span class="target" id="change-faa9884008b31420f7bb380d6ff9fc64"><strong>[orm] </strong></span>horizontal shard query should use execution
 
2996
options per connection as per<a class="changeset-link reference internal" href="#change-faa9884008b31420f7bb380d6ff9fc64">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2131">#2131</a></p>
 
2997
</p>
 
2998
</li>
 
2999
<li><p id="change-0.7.0-9"><span class="target" id="change-b653622696e0f575c1fd2451854ac4cd"><strong>[orm] </strong></span>a non_primary mapper will inherit the _identity_class
 
3000
of the primary mapper.  This so that a non_primary
 
3001
established against a class that&#8217;s normally in an
 
3002
inheritance mapping will produce results that are
 
3003
identity-map compatible with that of the primary
 
3004
mapper (also in 0.6.8)<a class="changeset-link reference internal" href="#change-b653622696e0f575c1fd2451854ac4cd">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2151">#2151</a></p>
 
3005
</p>
 
3006
</li>
 
3007
<li><p id="change-0.7.0-10"><span class="target" id="change-4030bddfa4958646441435b3e8495e02"><strong>[orm] </strong></span>Fixed the error message emitted for &#8220;can&#8217;t
 
3008
execute syncrule for destination column &#8216;q&#8217;;
 
3009
mapper &#8216;X&#8217; does not map this column&#8221; to
 
3010
reference the correct mapper. .
 
3011
Also in 0.6.8.<a class="changeset-link reference internal" href="#change-4030bddfa4958646441435b3e8495e02">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2163">#2163</a></p>
 
3012
</p>
 
3013
</li>
 
3014
<li><p id="change-0.7.0-11"><span class="target" id="change-74b159ca3a99bc5fe6f663d021fbc89e"><strong>[orm] </strong></span>polymorphic_union() gets a &#8220;cast_nulls&#8221; option,
 
3015
disables the usage of CAST when it renders
 
3016
the labeled NULL columns.<a class="changeset-link reference internal" href="#change-74b159ca3a99bc5fe6f663d021fbc89e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1502">#1502</a></p>
 
3017
</p>
 
3018
</li>
 
3019
<li><p id="change-0.7.0-12"><span class="target" id="change-3eb3b816c40c15eed9d6821d323c425a"><strong>[orm] </strong></span>polymorphic_union() renders the columns in their
 
3020
original table order, as according to the first
 
3021
table/selectable in the list of polymorphic
 
3022
unions in which they appear.  (which is itself
 
3023
an unordered mapping unless you pass an OrderedDict).<a class="changeset-link reference internal" href="#change-3eb3b816c40c15eed9d6821d323c425a">(link)</a><p></p>
 
3024
</p>
 
3025
</li>
 
3026
<li><p id="change-0.7.0-13"><span class="target" id="change-9e05f5299c14ba88437debe75cd6021d"><strong>[orm] </strong></span>Fixed bug whereby mapper mapped to an anonymous
 
3027
alias would fail if logging were used, due to
 
3028
unescaped % sign in the alias name.
 
3029
Also in 0.6.8.<a class="changeset-link reference internal" href="#change-9e05f5299c14ba88437debe75cd6021d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2171">#2171</a></p>
 
3030
</p>
 
3031
</li>
 
3032
</ul>
 
3033
</div>
 
3034
<div class="section" id="change-0.7.0-sql">
 
3035
<h3>sql<a class="headerlink" href="#change-0.7.0-sql" title="Permalink to this headline">¶</a></h3>
 
3036
<ul class="simple">
 
3037
<li><p id="change-0.7.0-14"><span class="target" id="change-6969c79eaa9adb98a299ca808a96ba99"><strong>[sql] </strong></span>Fixed bug whereby nesting a label of a select()
 
3038
with another label in it would produce incorrect
 
3039
exported columns.   Among other things this would
 
3040
break an ORM column_property() mapping against
 
3041
another column_property(). .
 
3042
Also in 0.6.8<a class="changeset-link reference internal" href="#change-6969c79eaa9adb98a299ca808a96ba99">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2167">#2167</a></p>
 
3043
</p>
 
3044
</li>
 
3045
<li><p id="change-0.7.0-15"><span class="target" id="change-7b39659e3a5787183e7b9f5455b1bf98"><strong>[sql] </strong></span>Changed the handling in determination of join
 
3046
conditions such that foreign key errors are
 
3047
only considered between the two given tables.
 
3048
That is, t1.join(t2) will report FK errors
 
3049
that involve &#8216;t1&#8217; or &#8216;t2&#8217;, but anything
 
3050
involving &#8216;t3&#8217; will be skipped.   This affects
 
3051
join(), as well as ORM relationship and
 
3052
inherit condition logic.<a class="changeset-link reference internal" href="#change-7b39659e3a5787183e7b9f5455b1bf98">(link)</a><p></p>
 
3053
</p>
 
3054
</li>
 
3055
<li><p id="change-0.7.0-16"><span class="target" id="change-1abc44fe4928d1fb7b67de993024c975"><strong>[sql] </strong></span>Some improvements to error handling inside
 
3056
of the execute procedure to ensure auto-close
 
3057
connections are really closed when very
 
3058
unusual DBAPI errors occur.<a class="changeset-link reference internal" href="#change-1abc44fe4928d1fb7b67de993024c975">(link)</a><p></p>
 
3059
</p>
 
3060
</li>
 
3061
<li><p id="change-0.7.0-17"><span class="target" id="change-402e6ed8f3da378e37a1813c62700551"><strong>[sql] </strong></span>metadata.reflect() and reflection.Inspector()
 
3062
had some reliance on GC to close connections
 
3063
which were internally procured, fixed this.<a class="changeset-link reference internal" href="#change-402e6ed8f3da378e37a1813c62700551">(link)</a><p></p>
 
3064
</p>
 
3065
</li>
 
3066
<li><p id="change-0.7.0-18"><span class="target" id="change-a4aa1f5d35bf43355add704f191f639a"><strong>[sql] </strong></span>Added explicit check for when Column .name
 
3067
is assigned as blank string<a class="changeset-link reference internal" href="#change-a4aa1f5d35bf43355add704f191f639a">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2140">#2140</a></p>
 
3068
</p>
 
3069
</li>
 
3070
<li><p id="change-0.7.0-19"><span class="target" id="change-adefc09b01691db8adf07315e9824db6"><strong>[sql] </strong></span>Fixed bug whereby if FetchedValue was passed
 
3071
to column server_onupdate, it would not
 
3072
have its parent &#8220;column&#8221; assigned, added
 
3073
test coverage for all column default assignment
 
3074
patterns.   also in 0.6.8<a class="changeset-link reference internal" href="#change-adefc09b01691db8adf07315e9824db6">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2147">#2147</a></p>
 
3075
</p>
 
3076
</li>
 
3077
</ul>
 
3078
</div>
 
3079
<div class="section" id="change-0.7.0-postgresql">
 
3080
<h3>postgresql<a class="headerlink" href="#change-0.7.0-postgresql" title="Permalink to this headline">¶</a></h3>
 
3081
<ul class="simple">
 
3082
<li><p id="change-0.7.0-20"><span class="target" id="change-14212188e4f0bd379551e87f9b85174b"><strong>[postgresql] </strong></span>Fixed the psycopg2_version parsing in the
 
3083
psycopg2 dialect.<a class="changeset-link reference internal" href="#change-14212188e4f0bd379551e87f9b85174b">(link)</a><p></p>
 
3084
</p>
 
3085
</li>
 
3086
<li><p id="change-0.7.0-21"><span class="target" id="change-5388cff58c8560a78aca381e346a28c8"><strong>[postgresql] </strong></span>Fixed bug affecting PG 9 whereby index reflection
 
3087
would fail if against a column whose name
 
3088
had changed. .  Also in 0.6.8.<a class="changeset-link reference internal" href="#change-5388cff58c8560a78aca381e346a28c8">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2141">#2141</a></p>
 
3089
</p>
 
3090
</li>
 
3091
</ul>
 
3092
</div>
 
3093
<div class="section" id="change-0.7.0-mssql">
 
3094
<h3>mssql<a class="headerlink" href="#change-0.7.0-mssql" title="Permalink to this headline">¶</a></h3>
 
3095
<ul class="simple">
 
3096
<li><p id="change-0.7.0-22"><span class="target" id="change-54f2c1f5f537415c50f6115da435a07d"><strong>[mssql] </strong></span>Fixed bug in MSSQL dialect whereby the aliasing
 
3097
applied to a schema-qualified table would leak
 
3098
into enclosing select statements.
 
3099
Also in 0.6.8.<a class="changeset-link reference internal" href="#change-54f2c1f5f537415c50f6115da435a07d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2169">#2169</a></p>
 
3100
</p>
 
3101
</li>
 
3102
</ul>
 
3103
</div>
 
3104
<div class="section" id="change-0.7.0-misc">
 
3105
<h3>misc<a class="headerlink" href="#change-0.7.0-misc" title="Permalink to this headline">¶</a></h3>
 
3106
<ul class="simple">
 
3107
<li><p id="change-0.7.0-23"><span class="target" id="change-1d93ec65d8ccdfeddf18f3d0748d91cd"></span>This section documents those changes from 0.7b4
 
3108
to 0.7.0.  For an overview of what&#8217;s new in
 
3109
SQLAlchemy 0.7, see
 
3110
<a class="reference external" href="http://www.sqlalchemy.org/trac/wiki/07Migration">http://www.sqlalchemy.org/trac/wiki/07Migration</a><a class="changeset-link reference internal" href="#change-1d93ec65d8ccdfeddf18f3d0748d91cd">(link)</a><p></p>
 
3111
</p>
 
3112
</li>
 
3113
<li><p id="change-0.7.0-24"><span class="target" id="change-1b8c150a713fcfe2bfa9be75de0808d9"><strong>[documentation] </strong></span>Removed the usage of the &#8220;collections.MutableMapping&#8221;
 
3114
abc from the ext.mutable docs as it was being used
 
3115
incorrectly and makes the example more difficult
 
3116
to understand in any case.<a class="changeset-link reference internal" href="#change-1b8c150a713fcfe2bfa9be75de0808d9">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2152">#2152</a></p>
 
3117
</p>
 
3118
</li>
 
3119
<li><p id="change-0.7.0-25"><span class="target" id="change-5caeaaa0861dc6502cd2388eece068e4"><strong>[examples] </strong></span>removed the ancient &#8220;polymorphic association&#8221;
 
3120
examples and replaced with an updated set of
 
3121
examples that use declarative mixins,
 
3122
&#8220;generic_associations&#8221;.   Each presents an alternative
 
3123
table layout.<a class="changeset-link reference internal" href="#change-5caeaaa0861dc6502cd2388eece068e4">(link)</a><p></p>
 
3124
</p>
 
3125
</li>
 
3126
<li><p id="change-0.7.0-26"><span class="target" id="change-8cd79396a14e3d4871c28ac127541834"><strong>[ext] </strong></span>Fixed bugs in sqlalchemy.ext.mutable extension where
 
3127
<cite>None</cite> was not appropriately handled, replacement
 
3128
events were not appropriately handled.<a class="changeset-link reference internal" href="#change-8cd79396a14e3d4871c28ac127541834">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2143">#2143</a></p>
 
3129
</p>
 
3130
</li>
 
3131
</ul>
 
3132
</div>
 
3133
</div>
 
3134
<div class="section" id="change-0.7.0b4">
 
3135
<h2>0.7.0b4<a class="headerlink" href="#change-0.7.0b4" title="Permalink to this headline">¶</a></h2>
 
3136
Released: Sun Apr 17 2011<div class="section" id="change-0.7.0b4-general">
 
3137
<h3>general<a class="headerlink" href="#change-0.7.0b4-general" title="Permalink to this headline">¶</a></h3>
 
3138
<ul class="simple">
 
3139
<li><p id="change-0.7.0b4-0"><span class="target" id="change-c10e330a6fb6868b79d2f8ea4ca8f2f4"><strong>[general] </strong></span>Changes to the format of CHANGES, this file.
 
3140
The format changes have been applied to
 
3141
the 0.7 releases.<a class="changeset-link reference internal" href="#change-c10e330a6fb6868b79d2f8ea4ca8f2f4">(link)</a><p></p>
 
3142
</p>
 
3143
</li>
 
3144
<li><p id="change-0.7.0b4-1"><span class="target" id="change-568f4ce9f54eaab769ed2bd7d8e4521e"><strong>[general] </strong></span>The &#8220;-declarative&#8221; changes will now be listed
 
3145
directly under the &#8220;-orm&#8221; section, as these
 
3146
are closely related.<a class="changeset-link reference internal" href="#change-568f4ce9f54eaab769ed2bd7d8e4521e">(link)</a><p></p>
 
3147
</p>
 
3148
</li>
 
3149
<li><p id="change-0.7.0b4-2"><span class="target" id="change-33020374149ff987953b51cc27c1d41b"><strong>[general] </strong></span>The 0.5 series changes have been moved to
 
3150
the file CHANGES_PRE_06 which replaces
 
3151
CHANGES_PRE_05.<a class="changeset-link reference internal" href="#change-33020374149ff987953b51cc27c1d41b">(link)</a><p></p>
 
3152
</p>
 
3153
</li>
 
3154
<li><p id="change-0.7.0b4-3"><span class="target" id="change-4b59da9baea961eaaf0893565f87e4a7"><strong>[general] </strong></span>The changelog for 0.6.7 and subsequent within
 
3155
the 0.6 series is now listed only in the
 
3156
CHANGES file within the 0.6 branch.
 
3157
In the 0.7 CHANGES file (i.e. this file), all the
 
3158
0.6 changes are listed inline within the 0.7
 
3159
section in which they were also applied
 
3160
(since all 0.6 changes are in 0.7 as well).
 
3161
Changes that apply to an 0.6 version here
 
3162
are noted as are if any differences in
 
3163
implementation/behavior are present.<a class="changeset-link reference internal" href="#change-4b59da9baea961eaaf0893565f87e4a7">(link)</a><p></p>
 
3164
</p>
 
3165
</li>
 
3166
</ul>
 
3167
</div>
 
3168
<div class="section" id="change-0.7.0b4-orm">
 
3169
<h3>orm<a class="headerlink" href="#change-0.7.0b4-orm" title="Permalink to this headline">¶</a></h3>
 
3170
<ul class="simple">
 
3171
<li><p id="change-0.7.0b4-4"><span class="target" id="change-84e0db491f22f74ff25a2aca83ba496d"><strong>[orm] </strong></span>Some fixes to &#8220;evaulate&#8221; and &#8220;fetch&#8221; evaluation
 
3172
when query.update(), query.delete() are called.
 
3173
The retrieval of records is done after autoflush
 
3174
in all cases, and before update/delete is
 
3175
emitted, guarding against unflushed data present
 
3176
as well as expired objects failing during
 
3177
the evaluation.<a class="changeset-link reference internal" href="#change-84e0db491f22f74ff25a2aca83ba496d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2122">#2122</a></p>
 
3178
</p>
 
3179
</li>
 
3180
<li><p id="change-0.7.0b4-5"><span class="target" id="change-af8e701eaf7ec13322ab104bb650aecb"><strong>[orm] </strong></span>Reworded the exception raised when a flush
 
3181
is attempted of a subclass that is not polymorphic
 
3182
against the supertype.<a class="changeset-link reference internal" href="#change-af8e701eaf7ec13322ab104bb650aecb">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2063">#2063</a></p>
 
3183
</p>
 
3184
</li>
 
3185
<li><p id="change-0.7.0b4-6"><span class="target" id="change-1fc825ca38aa549debb3965be29f975a"><strong>[orm] </strong></span>Still more wording adjustments when a query option
 
3186
can&#8217;t find the target entity.  Explain that the
 
3187
path must be from one of the root entities.<a class="changeset-link reference internal" href="#change-1fc825ca38aa549debb3965be29f975a">(link)</a><p></p>
 
3188
</p>
 
3189
</li>
 
3190
<li><p id="change-0.7.0b4-7"><span class="target" id="change-1a848298d843da4ca6e3bbb41d8ae1c6"><strong>[orm] </strong></span>Some fixes to the state handling regarding
 
3191
backrefs, typically when autoflush=False, where
 
3192
the back-referenced collection wouldn&#8217;t
 
3193
properly handle add/removes with no net
 
3194
change.  Thanks to Richard Murri for the
 
3195
test case + patch.
 
3196
(also in 0.6.7).<a class="changeset-link reference internal" href="#change-1a848298d843da4ca6e3bbb41d8ae1c6">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2123">#2123</a></p>
 
3197
</p>
 
3198
</li>
 
3199
<li><p id="change-0.7.0b4-8"><span class="target" id="change-bde26159f4aa960b057cc47bd3c0e866"><strong>[orm] </strong></span>Added checks inside the UOW to detect the unusual
 
3200
condition of being asked to UPDATE or DELETE
 
3201
on a primary key value that contains NULL
 
3202
in it.<a class="changeset-link reference internal" href="#change-bde26159f4aa960b057cc47bd3c0e866">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2127">#2127</a></p>
 
3203
</p>
 
3204
</li>
 
3205
<li><p id="change-0.7.0b4-9"><span class="target" id="change-c257d9a6b362baee9ac13f47aada6784"><strong>[orm] </strong></span>Some refinements to attribute history.  More
 
3206
changes are pending possibly in 0.8, but
 
3207
for now history has been modified such that
 
3208
scalar history doesn&#8217;t have a &#8220;side effect&#8221;
 
3209
of populating None for a non-present value.
 
3210
This allows a slightly better ability to
 
3211
distinguish between a None set and no actual
 
3212
change, affects as well.<a class="changeset-link reference internal" href="#change-c257d9a6b362baee9ac13f47aada6784">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2127">#2127</a></p>
 
3213
</p>
 
3214
</li>
 
3215
<li><p id="change-0.7.0b4-10"><span class="target" id="change-99eb10573ae36fd1d9fff5e087a4cfd2"><strong>[orm] </strong></span>a &#8220;having&#8221; clause would be copied from the
 
3216
inside to the outside query if from_self()
 
3217
were used; in particular this would break
 
3218
an 0.7 style count() query.
 
3219
(also in 0.6.7)<a class="changeset-link reference internal" href="#change-99eb10573ae36fd1d9fff5e087a4cfd2">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2130">#2130</a></p>
 
3220
</p>
 
3221
</li>
 
3222
<li><p id="change-0.7.0b4-11"><span class="target" id="change-beca9e44abdcdfcfd9daa8cf2d849cf8"><strong>[orm] </strong></span>the Query.execution_options() method now passes
 
3223
those options to the Connection rather than
 
3224
the SELECT statement, so that all available
 
3225
options including isolation level and
 
3226
compiled cache may be used.<a class="changeset-link reference internal" href="#change-beca9e44abdcdfcfd9daa8cf2d849cf8">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2131">#2131</a></p>
 
3227
</p>
 
3228
</li>
 
3229
</ul>
 
3230
</div>
 
3231
<div class="section" id="change-0.7.0b4-engine">
 
3232
<h3>engine<a class="headerlink" href="#change-0.7.0b4-engine" title="Permalink to this headline">¶</a></h3>
 
3233
<ul class="simple">
 
3234
<li><p id="change-0.7.0b4-12"><span class="target" id="change-ab06f7b93d81343ab8080f5e4b808885"><strong>[engine] </strong></span>The C extension is now enabled by default on CPython
 
3235
2.x with a fallback to pure python if it fails to
 
3236
compile.<a class="changeset-link reference internal" href="#change-ab06f7b93d81343ab8080f5e4b808885">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2129">#2129</a></p>
 
3237
</p>
 
3238
</li>
 
3239
</ul>
 
3240
</div>
 
3241
<div class="section" id="change-0.7.0b4-sql">
 
3242
<h3>sql<a class="headerlink" href="#change-0.7.0b4-sql" title="Permalink to this headline">¶</a></h3>
 
3243
<ul class="simple">
 
3244
<li><p id="change-0.7.0b4-13"><span class="target" id="change-e8fcd9c241670c115a04b0c0a16536b2"><strong>[sql] </strong></span>The &#8220;compiled_cache&#8221; execution option now raises
 
3245
an error when passed to a SELECT statement
 
3246
rather than a Connection.  Previously it was
 
3247
being ignored entirely.   We may look into
 
3248
having this option work on a per-statement
 
3249
level at some point.<a class="changeset-link reference internal" href="#change-e8fcd9c241670c115a04b0c0a16536b2">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2131">#2131</a></p>
 
3250
</p>
 
3251
</li>
 
3252
<li><p id="change-0.7.0b4-14"><span class="target" id="change-489c8fdbf96ab63bb53f2a1a861bba4e"><strong>[sql] </strong></span>Restored the &#8220;catchall&#8221; constructor on the base
 
3253
TypeEngine class, with a deprecation warning.
 
3254
This so that code which does something like
 
3255
Integer(11) still succeeds.<a class="changeset-link reference internal" href="#change-489c8fdbf96ab63bb53f2a1a861bba4e">(link)</a><p></p>
 
3256
</p>
 
3257
</li>
 
3258
<li><p id="change-0.7.0b4-15"><span class="target" id="change-f00374d634cfacde67965712e5aff348"><strong>[sql] </strong></span>Fixed regression whereby MetaData() coming
 
3259
back from unpickling did not keep track of
 
3260
new things it keeps track of now, i.e.
 
3261
collection of Sequence objects, list
 
3262
of schema names.<a class="changeset-link reference internal" href="#change-f00374d634cfacde67965712e5aff348">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2104">#2104</a></p>
 
3263
</p>
 
3264
</li>
 
3265
<li><p id="change-0.7.0b4-16"><span class="target" id="change-82ab067a38871b8fab4a70169e0ed7ef"><strong>[sql] </strong></span>The limit/offset keywords to select() as well
 
3266
as the value passed to select.limit()/offset()
 
3267
will be coerced to integer.
 
3268
(also in 0.6.7)<a class="changeset-link reference internal" href="#change-82ab067a38871b8fab4a70169e0ed7ef">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2116">#2116</a></p>
 
3269
</p>
 
3270
</li>
 
3271
<li><p id="change-0.7.0b4-17"><span class="target" id="change-6cf3eb37879e278dcebe3d7eca622bd3"><strong>[sql] </strong></span>fixed bug where &#8220;from&#8221; clause gathering from an
 
3272
over() clause would be an itertools.chain() and
 
3273
not a list, causing &#8220;can only concatenate list&#8221;
 
3274
TypeError when combined with other clauses.<a class="changeset-link reference internal" href="#change-6cf3eb37879e278dcebe3d7eca622bd3">(link)</a><p></p>
 
3275
</p>
 
3276
</li>
 
3277
<li><p id="change-0.7.0b4-18"><span class="target" id="change-94181c686d44776e147c618e176fecbb"><strong>[sql] </strong></span>Fixed incorrect usage of &#8221;,&#8221; in over() clause
 
3278
being placed between the &#8220;partition&#8221; and &#8220;order by&#8221;
 
3279
clauses.<a class="changeset-link reference internal" href="#change-94181c686d44776e147c618e176fecbb">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2134">#2134</a></p>
 
3280
</p>
 
3281
</li>
 
3282
<li><p id="change-0.7.0b4-19"><span class="target" id="change-d51ca5e1b2cfb62e5942a810d58354f7"><strong>[sql] </strong></span>Before/after attach events for PrimaryKeyConstraint
 
3283
now function, tests added for before/after events
 
3284
on all constraint types.<a class="changeset-link reference internal" href="#change-d51ca5e1b2cfb62e5942a810d58354f7">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2105">#2105</a></p>
 
3285
</p>
 
3286
</li>
 
3287
<li><p id="change-0.7.0b4-20"><span class="target" id="change-42aaa6dc1625418edc7375d7ad85c837"><strong>[sql] </strong></span>Added explicit true()/false() constructs to expression
 
3288
lib - coercion rules will intercept &#8220;False&#8221;/&#8221;True&#8221;
 
3289
into these constructs.  In 0.6, the constructs were
 
3290
typically converted straight to string, which was
 
3291
no longer accepted in 0.7.<a class="changeset-link reference internal" href="#change-42aaa6dc1625418edc7375d7ad85c837">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2117">#2117</a></p>
 
3292
</p>
 
3293
</li>
 
3294
</ul>
 
3295
</div>
 
3296
<div class="section" id="change-0.7.0b4-schema">
 
3297
<h3>schema<a class="headerlink" href="#change-0.7.0b4-schema" title="Permalink to this headline">¶</a></h3>
 
3298
<ul class="simple">
 
3299
<li><p id="change-0.7.0b4-21"><span class="target" id="change-c21ca29b46c77aac3bf501eb8a9b8a14"><strong>[schema] </strong></span>The &#8216;useexisting&#8217; flag on Table has been superceded
 
3300
by a new pair of flags &#8216;keep_existing&#8217; and
 
3301
&#8216;extend_existing&#8217;.   &#8216;extend_existing&#8217; is equivalent
 
3302
to &#8216;useexisting&#8217; - the existing Table is returned,
 
3303
and additional constructor elements are added.
 
3304
With &#8216;keep_existing&#8217;, the existing Table is returned,
 
3305
but additional constructor elements are not added -
 
3306
these elements are only applied when the Table
 
3307
is newly created.<a class="changeset-link reference internal" href="#change-c21ca29b46c77aac3bf501eb8a9b8a14">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2109">#2109</a></p>
 
3308
</p>
 
3309
</li>
 
3310
</ul>
 
3311
</div>
 
3312
<div class="section" id="change-0.7.0b4-postgresql">
 
3313
<h3>postgresql<a class="headerlink" href="#change-0.7.0b4-postgresql" title="Permalink to this headline">¶</a></h3>
 
3314
<ul class="simple">
 
3315
<li><p id="change-0.7.0b4-22"><span class="target" id="change-0441092a868aeb0b91d8d24e59c41d75"><strong>[postgresql] </strong></span>Psycopg2 for Python 3 is now supported.<a class="changeset-link reference internal" href="#change-0441092a868aeb0b91d8d24e59c41d75">(link)</a><p></p>
 
3316
</p>
 
3317
</li>
 
3318
<li><p id="change-0.7.0b4-23"><span class="target" id="change-a8605dec5f8e63d728bc927ef61cf975"><strong>[postgresql] </strong></span>Fixed support for precision numerics when using
 
3319
pg8000.<a class="changeset-link reference internal" href="#change-a8605dec5f8e63d728bc927ef61cf975">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2132">#2132</a></p>
 
3320
</p>
 
3321
</li>
 
3322
</ul>
 
3323
</div>
 
3324
<div class="section" id="change-0.7.0b4-sqlite">
 
3325
<h3>sqlite<a class="headerlink" href="#change-0.7.0b4-sqlite" title="Permalink to this headline">¶</a></h3>
 
3326
<ul class="simple">
 
3327
<li><p id="change-0.7.0b4-24"><span class="target" id="change-3d3d5c73e15d038b45b311224716fa7b"><strong>[sqlite] </strong></span>Fixed bug where reflection of foreign key
 
3328
created as &#8220;REFERENCES &lt;tablename&gt;&#8221; without
 
3329
col name would fail.
 
3330
(also in 0.6.7)<a class="changeset-link reference internal" href="#change-3d3d5c73e15d038b45b311224716fa7b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2115">#2115</a></p>
 
3331
</p>
 
3332
</li>
 
3333
</ul>
 
3334
</div>
 
3335
<div class="section" id="change-0.7.0b4-oracle">
 
3336
<h3>oracle<a class="headerlink" href="#change-0.7.0b4-oracle" title="Permalink to this headline">¶</a></h3>
 
3337
<ul class="simple">
 
3338
<li><p id="change-0.7.0b4-25"><span class="target" id="change-a04f9e54c60f2a5d5a0591e7e0b563e2"><strong>[oracle] </strong></span>Using column names that would require quotes
 
3339
for the column itself or for a name-generated
 
3340
bind parameter, such as names with special
 
3341
characters, underscores, non-ascii characters,
 
3342
now properly translate bind parameter keys when
 
3343
talking to cx_oracle.   (Also
 
3344
in 0.6.7)<a class="changeset-link reference internal" href="#change-a04f9e54c60f2a5d5a0591e7e0b563e2">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2100">#2100</a></p>
 
3345
</p>
 
3346
</li>
 
3347
<li><p id="change-0.7.0b4-26"><span class="target" id="change-b3b1ce9d18a4f1b765507ed4c82f7f4d"><strong>[oracle] </strong></span>Oracle dialect adds use_binds_for_limits=False
 
3348
create_engine() flag, will render the LIMIT/OFFSET
 
3349
values inline instead of as binds, reported to
 
3350
modify the execution plan used by Oracle. (Also in 0.6.7)<a class="changeset-link reference internal" href="#change-b3b1ce9d18a4f1b765507ed4c82f7f4d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2116">#2116</a></p>
 
3351
</p>
 
3352
</li>
 
3353
</ul>
 
3354
</div>
 
3355
<div class="section" id="change-0.7.0b4-misc">
 
3356
<h3>misc<a class="headerlink" href="#change-0.7.0b4-misc" title="Permalink to this headline">¶</a></h3>
 
3357
<ul class="simple">
 
3358
<li><p id="change-0.7.0b4-27"><span class="target" id="change-57e3cb1dc539a3540bd8469dd0663039"><strong>[types] </strong></span>REAL has been added to the core types.  Supported
 
3359
by Postgresql, SQL Server, MySQL, SQLite.  Note
 
3360
that the SQL Server and MySQL versions, which
 
3361
add extra arguments, are also still available
 
3362
from those dialects.<a class="changeset-link reference internal" href="#change-57e3cb1dc539a3540bd8469dd0663039">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2081">#2081</a></p>
 
3363
</p>
 
3364
</li>
 
3365
<li><p id="change-0.7.0b4-28"><span class="target" id="change-d497389785db3672fe86a6119a68b1ab"><strong>[types] </strong></span>Added &#64;event.listens_for() decorator, given
 
3366
target + event name, applies the decorated
 
3367
function as a listener.<a class="changeset-link reference internal" href="#change-d497389785db3672fe86a6119a68b1ab">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2106">#2106</a></p>
 
3368
</p>
 
3369
</li>
 
3370
<li><p id="change-0.7.0b4-29"><span class="target" id="change-af3a34c122e1b93c7637b389b5c8dca8"><strong>[pool] </strong></span>AssertionPool now stores the traceback indicating
 
3371
where the currently checked out connection was
 
3372
acquired; this traceback is reported within
 
3373
the assertion raised upon a second concurrent
 
3374
checkout; courtesy Gunnlaugur Briem<a class="changeset-link reference internal" href="#change-af3a34c122e1b93c7637b389b5c8dca8">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2103">#2103</a></p>
 
3375
</p>
 
3376
</li>
 
3377
<li><p id="change-0.7.0b4-30"><span class="target" id="change-0babcdca864d1007baf6c858bdf0377f"><strong>[pool] </strong></span>The &#8220;pool.manage&#8221; feature doesn&#8217;t use pickle
 
3378
anymore to hash the arguments for each pool.<a class="changeset-link reference internal" href="#change-0babcdca864d1007baf6c858bdf0377f">(link)</a><p></p>
 
3379
</p>
 
3380
</li>
 
3381
<li><p id="change-0.7.0b4-31"><span class="target" id="change-846e0f46d0f5a9d667fe57b1d7c73355"><strong>[documentation] </strong></span>Documented SQLite DATE/TIME/DATETIME types. (also in 0.6.7)<a class="changeset-link reference internal" href="#change-846e0f46d0f5a9d667fe57b1d7c73355">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2029">#2029</a></p>
 
3382
</p>
 
3383
</li>
 
3384
<li><p id="change-0.7.0b4-32"><span class="target" id="change-f0da43d53108c83663cf5c8421677f79"><strong>[documentation] </strong></span>Fixed mutable extension docs to show the
 
3385
correct type-association methods.<a class="changeset-link reference internal" href="#change-f0da43d53108c83663cf5c8421677f79">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2118">#2118</a></p>
 
3386
</p>
 
3387
</li>
 
3388
</ul>
 
3389
</div>
 
3390
</div>
 
3391
<div class="section" id="change-0.7.0b3">
 
3392
<h2>0.7.0b3<a class="headerlink" href="#change-0.7.0b3" title="Permalink to this headline">¶</a></h2>
 
3393
Released: Sun Mar 20 2011<div class="section" id="change-0.7.0b3-general">
 
3394
<h3>general<a class="headerlink" href="#change-0.7.0b3-general" title="Permalink to this headline">¶</a></h3>
 
3395
<ul class="simple">
 
3396
<li><p id="change-0.7.0b3-0"><span class="target" id="change-5612722a30cc5802a707b0c00967f91f"><strong>[general] </strong></span>Lots of fixes to unit tests when run under Pypy
 
3397
(courtesy Alex Gaynor).<a class="changeset-link reference internal" href="#change-5612722a30cc5802a707b0c00967f91f">(link)</a><p></p>
 
3398
</p>
 
3399
</li>
 
3400
</ul>
 
3401
</div>
 
3402
<div class="section" id="change-0.7.0b3-orm">
 
3403
<h3>orm<a class="headerlink" href="#change-0.7.0b3-orm" title="Permalink to this headline">¶</a></h3>
 
3404
<ul class="simple">
 
3405
<li><p id="change-0.7.0b3-1"><span class="target" id="change-b00ce7472b8519195eaddc530dcd0f9e"><strong>[orm] </strong></span>Changed the underlying approach to query.count().
 
3406
query.count() is now in all cases exactly:<blockquote>
 
3407
<div><dl class="docutils">
 
3408
<dt>query.</dt>
 
3409
<dd>from_self(func.count(literal_column(&#8216;1&#8217;))).
 
3410
scalar()</dd>
 
3411
</dl>
 
3412
</div></blockquote>
 
3413
<p>That is, &#8220;select count(1) from (&lt;full query&gt;)&#8221;.
 
3414
This produces a subquery in all cases, but
 
3415
vastly simplifies all the guessing count()
 
3416
tried to do previously, which would still
 
3417
fail in many scenarios particularly when
 
3418
joined table inheritance and other joins
 
3419
were involved.  If the subquery produced
 
3420
for an otherwise very simple count is really
 
3421
an issue, use query(func.count()) as an
 
3422
optimization.</p>
 
3423
<a class="changeset-link reference internal" href="#change-b00ce7472b8519195eaddc530dcd0f9e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2093">#2093</a></p>
 
3424
</p>
 
3425
</li>
 
3426
<li><p id="change-0.7.0b3-2"><span class="target" id="change-7d31abf822a2e7e64b102f9796997f9b"><strong>[orm] </strong></span>some changes to the identity map regarding
 
3427
rare weakref callbacks during iterations.
 
3428
The mutex has been removed as it apparently
 
3429
can cause a reentrant (i.e. in one thread) deadlock,
 
3430
perhaps when gc collects objects at the point of
 
3431
iteration in order to gain more memory.  It is hoped
 
3432
that &#8220;dictionary changed during iteration&#8221; will
 
3433
be exceedingly rare as iteration methods internally
 
3434
acquire the full list of objects in a single values()
 
3435
call. Note 0.6.7 has a more conservative fix here
 
3436
which still keeps the mutex in place.<a class="changeset-link reference internal" href="#change-7d31abf822a2e7e64b102f9796997f9b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2087">#2087</a></p>
 
3437
</p>
 
3438
</li>
 
3439
<li><p id="change-0.7.0b3-3"><span class="target" id="change-bfed6815f260e8ac2239597807031e35"><strong>[orm] </strong></span>A tweak to the unit of work causes it to order
 
3440
the flush along relationship() dependencies even if
 
3441
the given objects don&#8217;t have any inter-attribute
 
3442
references in memory, which was the behavior in
 
3443
0.5 and earlier, so a flush of Parent/Child with
 
3444
only foreign key/primary key set will succeed.
 
3445
This while still maintaining 0.6 and above&#8217;s not
 
3446
generating a ton of useless internal dependency
 
3447
structures within the flush that don&#8217;t correspond
 
3448
to state actually within the current flush.<a class="changeset-link reference internal" href="#change-bfed6815f260e8ac2239597807031e35">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2082">#2082</a></p>
 
3449
</p>
 
3450
</li>
 
3451
<li><p id="change-0.7.0b3-4"><span class="target" id="change-f888621663e752a17e10e531c6e70078"><strong>[orm] </strong></span>Improvements to the error messages emitted when
 
3452
querying against column-only entities in conjunction
 
3453
with (typically incorrectly) using loader options,
 
3454
where the parent entity is not fully present.<a class="changeset-link reference internal" href="#change-f888621663e752a17e10e531c6e70078">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2069">#2069</a></p>
 
3455
</p>
 
3456
</li>
 
3457
<li><p id="change-0.7.0b3-5"><span class="target" id="change-691e4dcace5092b3faa9e88301875a19"><strong>[orm] </strong></span>Fixed bug in query.options() whereby a path
 
3458
applied to a lazyload using string keys could
 
3459
overlap a same named attribute on the wrong
 
3460
entity.  Note 0.6.7 has a more conservative fix
 
3461
to this.<a class="changeset-link reference internal" href="#change-691e4dcace5092b3faa9e88301875a19">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2098">#2098</a></p>
 
3462
</p>
 
3463
</li>
 
3464
</ul>
 
3465
</div>
 
3466
<div class="section" id="change-0.7.0b3-orm-declarative">
 
3467
<h3>orm declarative<a class="headerlink" href="#change-0.7.0b3-orm-declarative" title="Permalink to this headline">¶</a></h3>
 
3468
<ul class="simple">
 
3469
<li><p id="change-0.7.0b3-6"><span class="target" id="change-f2aa1ca45ecfe557dbce711ee18b7414"><strong>[declarative] [orm] </strong></span>Arguments in __mapper_args__ that aren&#8217;t &#8220;hashable&#8221;
 
3470
aren&#8217;t mistaken for always-hashable, possibly-column
 
3471
arguments.  (also in 0.6.7)<a class="changeset-link reference internal" href="#change-f2aa1ca45ecfe557dbce711ee18b7414">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2091">#2091</a></p>
 
3472
</p>
 
3473
</li>
 
3474
</ul>
 
3475
</div>
 
3476
<div class="section" id="change-0.7.0b3-engine">
 
3477
<h3>engine<a class="headerlink" href="#change-0.7.0b3-engine" title="Permalink to this headline">¶</a></h3>
 
3478
<ul class="simple">
 
3479
<li><p id="change-0.7.0b3-7"><span class="target" id="change-4687c720a53db425d7516c3325af024b"><strong>[engine] </strong></span>Fixed AssertionPool regression bug.<a class="changeset-link reference internal" href="#change-4687c720a53db425d7516c3325af024b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2097">#2097</a></p>
 
3480
</p>
 
3481
</li>
 
3482
<li><p id="change-0.7.0b3-8"><span class="target" id="change-dabd057d91cbbc1025be172472b16366"><strong>[engine] </strong></span>Changed exception raised to ArgumentError when an
 
3483
invalid dialect is specified.<a class="changeset-link reference internal" href="#change-dabd057d91cbbc1025be172472b16366">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2060">#2060</a></p>
 
3484
</p>
 
3485
</li>
 
3486
</ul>
 
3487
</div>
 
3488
<div class="section" id="change-0.7.0b3-sql">
 
3489
<h3>sql<a class="headerlink" href="#change-0.7.0b3-sql" title="Permalink to this headline">¶</a></h3>
 
3490
<ul class="simple">
 
3491
<li><p id="change-0.7.0b3-9"><span class="target" id="change-887e7334d6776bfb4ec1c01f6fb67d4d"><strong>[sql] </strong></span>Added a fully descriptive error message for the
 
3492
case where Column is subclassed and _make_proxy()
 
3493
fails to make a copy due to TypeError on the
 
3494
constructor.   The method _constructor should
 
3495
be implemented in this case.<a class="changeset-link reference internal" href="#change-887e7334d6776bfb4ec1c01f6fb67d4d">(link)</a><p></p>
 
3496
</p>
 
3497
</li>
 
3498
<li><p id="change-0.7.0b3-10"><span class="target" id="change-8a8960a5ec68a2f3af6208fc1b25f4ec"><strong>[sql] </strong></span>Added new event &#8220;column_reflect&#8221; for Table objects.
 
3499
Receives the info dictionary about a Column before
 
3500
the object is generated within reflection, and allows
 
3501
modification to the dictionary for control over
 
3502
most aspects of the resulting Column including
 
3503
key, name, type, info dictionary.<a class="changeset-link reference internal" href="#change-8a8960a5ec68a2f3af6208fc1b25f4ec">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2095">#2095</a></p>
 
3504
</p>
 
3505
</li>
 
3506
<li><p id="change-0.7.0b3-11"><span class="target" id="change-506927bdc1d6192b785d5111a36c591a"><strong>[sql] </strong></span>To help with the &#8220;column_reflect&#8221; event being used
 
3507
with specific Table objects instead of all instances
 
3508
of Table, listeners can be added to a Table object
 
3509
inline with its construction using a new argument
 
3510
&#8220;listeners&#8221;, a list of tuples of the form
 
3511
(&lt;eventname&gt;, &lt;fn&gt;), which are applied to the Table
 
3512
before the reflection process begins.<a class="changeset-link reference internal" href="#change-506927bdc1d6192b785d5111a36c591a">(link)</a><p></p>
 
3513
</p>
 
3514
</li>
 
3515
<li><p id="change-0.7.0b3-12"><span class="target" id="change-fc859aa865a01a4d305dee5ee7edc1ce"><strong>[sql] </strong></span>Added new generic function &#8220;next_value()&#8221;, accepts
 
3516
a Sequence object as its argument and renders the
 
3517
appropriate &#8220;next value&#8221; generation string on the
 
3518
target platform, if supported.  Also provides
 
3519
&#8221;.next_value()&#8221; method on Sequence itself.<a class="changeset-link reference internal" href="#change-fc859aa865a01a4d305dee5ee7edc1ce">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2085">#2085</a></p>
 
3520
</p>
 
3521
</li>
 
3522
<li><p id="change-0.7.0b3-13"><span class="target" id="change-c53fe13321aabe9b1255beeab83db25c"><strong>[sql] </strong></span>func.next_value() or other SQL expression can
 
3523
be embedded directly into an insert() construct,
 
3524
and if implicit or explicit &#8220;returning&#8221; is used
 
3525
in conjunction with a primary key column,
 
3526
the newly generated value will be present in
 
3527
result.inserted_primary_key.<a class="changeset-link reference internal" href="#change-c53fe13321aabe9b1255beeab83db25c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2084">#2084</a></p>
 
3528
</p>
 
3529
</li>
 
3530
<li><p id="change-0.7.0b3-14"><span class="target" id="change-5dcae35a30548ea7a895134981194320"><strong>[sql] </strong></span>Added accessors to ResultProxy &#8220;returns_rows&#8221;,
 
3531
&#8220;is_insert&#8221; (also in 0.6.7)<a class="changeset-link reference internal" href="#change-5dcae35a30548ea7a895134981194320">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2089">#2089</a></p>
 
3532
</p>
 
3533
</li>
 
3534
</ul>
 
3535
</div>
 
3536
<div class="section" id="change-0.7.0b3-postgresql">
 
3537
<h3>postgresql<a class="headerlink" href="#change-0.7.0b3-postgresql" title="Permalink to this headline">¶</a></h3>
 
3538
<ul class="simple">
 
3539
<li><p id="change-0.7.0b3-15"><span class="target" id="change-68e0e1286435ce3f342c12f928e020cb"><strong>[postgresql] </strong></span>Added RESERVED_WORDS for postgresql dialect.
 
3540
(also in 0.6.7)<a class="changeset-link reference internal" href="#change-68e0e1286435ce3f342c12f928e020cb">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2092">#2092</a></p>
 
3541
</p>
 
3542
</li>
 
3543
<li><p id="change-0.7.0b3-16"><span class="target" id="change-d2a17779006167796e2a05814a64b40d"><strong>[postgresql] </strong></span>Fixed the BIT type to allow a &#8220;length&#8221; parameter, &#8220;varying&#8221;
 
3544
parameter.  Reflection also fixed.
 
3545
(also in 0.6.7)<a class="changeset-link reference internal" href="#change-d2a17779006167796e2a05814a64b40d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2073">#2073</a></p>
 
3546
</p>
 
3547
</li>
 
3548
</ul>
 
3549
</div>
 
3550
<div class="section" id="change-0.7.0b3-mssql">
 
3551
<h3>mssql<a class="headerlink" href="#change-0.7.0b3-mssql" title="Permalink to this headline">¶</a></h3>
 
3552
<ul class="simple">
 
3553
<li><p id="change-0.7.0b3-17"><span class="target" id="change-1310d3a0d8b578fd7875434f5ccac9b5"><strong>[mssql] </strong></span>Rewrote the query used to get the definition of a view,
 
3554
typically when using the Inspector interface, to
 
3555
use sys.sql_modules instead of the information schema,
 
3556
thereby allowing views definitions longer than 4000
 
3557
characters to be fully returned.
 
3558
(also in 0.6.7)<a class="changeset-link reference internal" href="#change-1310d3a0d8b578fd7875434f5ccac9b5">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2071">#2071</a></p>
 
3559
</p>
 
3560
</li>
 
3561
</ul>
 
3562
</div>
 
3563
<div class="section" id="change-0.7.0b3-firebird">
 
3564
<h3>firebird<a class="headerlink" href="#change-0.7.0b3-firebird" title="Permalink to this headline">¶</a></h3>
 
3565
<ul class="simple">
 
3566
<li><p id="change-0.7.0b3-18"><span class="target" id="change-71fef9ae2d4a3fee911550e2dd3956b5"><strong>[firebird] </strong></span>The &#8220;implicit_returning&#8221; flag on create_engine() is
 
3567
honored if set to False.  (also in 0.6.7)<a class="changeset-link reference internal" href="#change-71fef9ae2d4a3fee911550e2dd3956b5">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2083">#2083</a></p>
 
3568
</p>
 
3569
</li>
 
3570
</ul>
 
3571
</div>
 
3572
<div class="section" id="change-0.7.0b3-misc">
 
3573
<h3>misc<a class="headerlink" href="#change-0.7.0b3-misc" title="Permalink to this headline">¶</a></h3>
 
3574
<ul class="simple">
 
3575
<li><p id="change-0.7.0b3-19"><span class="target" id="change-048e59b99152e03dc94aece7d4a58bc5"><strong>[informix] </strong></span>Added RESERVED_WORDS informix dialect.
 
3576
(also in 0.6.7)<a class="changeset-link reference internal" href="#change-048e59b99152e03dc94aece7d4a58bc5">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2092">#2092</a></p>
 
3577
</p>
 
3578
</li>
 
3579
<li><p id="change-0.7.0b3-20"><span class="target" id="change-0c37ff1205a5698e49e1cd702b6f6aab"><strong>[ext] </strong></span>The horizontal_shard ShardedSession class accepts the common
 
3580
Session argument &#8220;query_cls&#8221; as a constructor argument,
 
3581
to enable further subclassing of ShardedQuery. (also in 0.6.7)<a class="changeset-link reference internal" href="#change-0c37ff1205a5698e49e1cd702b6f6aab">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2090">#2090</a></p>
 
3582
</p>
 
3583
</li>
 
3584
<li><p id="change-0.7.0b3-21"><span class="target" id="change-c9056c5a1b48170ebc2ddf8226ec46b9"><strong>[examples] </strong></span>Updated the association, association proxy examples
 
3585
to use declarative, added a new example
 
3586
dict_of_sets_with_default.py, a &#8220;pushing the envelope&#8221;
 
3587
example of association proxy.<a class="changeset-link reference internal" href="#change-c9056c5a1b48170ebc2ddf8226ec46b9">(link)</a><p></p>
 
3588
</p>
 
3589
</li>
 
3590
<li><p id="change-0.7.0b3-22"><span class="target" id="change-50d97717471ad817c432c80cce080947"><strong>[examples] </strong></span>The Beaker caching example allows a &#8220;query_cls&#8221; argument
 
3591
to the query_callable() function.
 
3592
(also in 0.6.7)<a class="changeset-link reference internal" href="#change-50d97717471ad817c432c80cce080947">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2090">#2090</a></p>
 
3593
</p>
 
3594
</li>
 
3595
</ul>
 
3596
</div>
 
3597
</div>
 
3598
<div class="section" id="change-0.7.0b2">
 
3599
<h2>0.7.0b2<a class="headerlink" href="#change-0.7.0b2" title="Permalink to this headline">¶</a></h2>
 
3600
Released: Sat Feb 19 2011<div class="section" id="change-0.7.0b2-orm">
 
3601
<h3>orm<a class="headerlink" href="#change-0.7.0b2-orm" title="Permalink to this headline">¶</a></h3>
 
3602
<ul class="simple">
 
3603
<li><p id="change-0.7.0b2-0"><span class="target" id="change-b274fba360c2b009eb105c6c3e69931c"><strong>[orm] </strong></span>Fixed bug whereby Session.merge() would call the
 
3604
load() event with one too few arguments.<a class="changeset-link reference internal" href="#change-b274fba360c2b009eb105c6c3e69931c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2053">#2053</a></p>
 
3605
</p>
 
3606
</li>
 
3607
<li><p id="change-0.7.0b2-1"><span class="target" id="change-5f74d0b93a75d1a035e5774a2f3efe4a"><strong>[orm] </strong></span>Added logic which prevents the generation of
 
3608
events from a MapperExtension or SessionExtension
 
3609
from generating do-nothing events for all the methods
 
3610
not overridden.<a class="changeset-link reference internal" href="#change-5f74d0b93a75d1a035e5774a2f3efe4a">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2052">#2052</a></p>
 
3611
</p>
 
3612
</li>
 
3613
</ul>
 
3614
</div>
 
3615
<div class="section" id="change-0.7.0b2-orm-declarative">
 
3616
<h3>orm declarative<a class="headerlink" href="#change-0.7.0b2-orm-declarative" title="Permalink to this headline">¶</a></h3>
 
3617
<ul class="simple">
 
3618
<li><p id="change-0.7.0b2-2"><span class="target" id="change-c38fe2e3d383ffe42f0caca46aa19754"><strong>[declarative] [orm] </strong></span>Fixed regression whereby composite() with
 
3619
Column objects placed inline would fail
 
3620
to initialize.  The Column objects can now
 
3621
be inline with the composite() or external
 
3622
and pulled in via name or object ref.<a class="changeset-link reference internal" href="#change-c38fe2e3d383ffe42f0caca46aa19754">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2058">#2058</a></p>
 
3623
</p>
 
3624
</li>
 
3625
<li><p id="change-0.7.0b2-3"><span class="target" id="change-868f6a352dcb3c48154087013ea5446d"><strong>[declarative] [orm] </strong></span>Fix error message referencing old &#64;classproperty
 
3626
name to reference &#64;declared_attr
 
3627
(also in 0.6.7)<a class="changeset-link reference internal" href="#change-868f6a352dcb3c48154087013ea5446d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2061">#2061</a></p>
 
3628
</p>
 
3629
</li>
 
3630
<li><p id="change-0.7.0b2-4"><span class="target" id="change-74177071c6a10f9bfc0211cbd13fd13b"><strong>[declarative] [orm] </strong></span>the dictionary at the end of the __table_args__
 
3631
tuple is now optional.<a class="changeset-link reference internal" href="#change-74177071c6a10f9bfc0211cbd13fd13b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1468">#1468</a></p>
 
3632
</p>
 
3633
</li>
 
3634
</ul>
 
3635
</div>
 
3636
<div class="section" id="change-0.7.0b2-sql">
 
3637
<h3>sql<a class="headerlink" href="#change-0.7.0b2-sql" title="Permalink to this headline">¶</a></h3>
 
3638
<ul class="simple">
 
3639
<li><p id="change-0.7.0b2-5"><span class="target" id="change-dc2cf4dea9f417e9de9e08875f99a6e2"><strong>[sql] </strong></span>Renamed the EngineEvents event class to
 
3640
ConnectionEvents.  As these classes are never
 
3641
accessed directly by end-user code, this strictly
 
3642
is a documentation change for end users.  Also
 
3643
simplified how events get linked to engines
 
3644
and connections internally.<a class="changeset-link reference internal" href="#change-dc2cf4dea9f417e9de9e08875f99a6e2">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2059">#2059</a></p>
 
3645
</p>
 
3646
</li>
 
3647
<li><p id="change-0.7.0b2-6"><span class="target" id="change-7299f4b7dbf53dbcd7da7f65a3155088"><strong>[sql] </strong></span>The Sequence() construct, when passed a MetaData()
 
3648
object via its &#8216;metadata&#8217; argument, will be
 
3649
included in CREATE/DROP statements within
 
3650
metadata.create_all() and metadata.drop_all(),
 
3651
including &#8220;checkfirst&#8221; logic.<a class="changeset-link reference internal" href="#change-7299f4b7dbf53dbcd7da7f65a3155088">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2055">#2055</a></p>
 
3652
</p>
 
3653
</li>
 
3654
<li><p id="change-0.7.0b2-7"><span class="target" id="change-226a1b45c1480947ae9cd710a9ea6b17"><strong>[sql] </strong></span>The Column.references() method now returns True
 
3655
if it has a foreign key referencing the
 
3656
given column exactly, not just it&#8217;s parent
 
3657
table.<a class="changeset-link reference internal" href="#change-226a1b45c1480947ae9cd710a9ea6b17">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2064">#2064</a></p>
 
3658
</p>
 
3659
</li>
 
3660
</ul>
 
3661
</div>
 
3662
<div class="section" id="change-0.7.0b2-postgresql">
 
3663
<h3>postgresql<a class="headerlink" href="#change-0.7.0b2-postgresql" title="Permalink to this headline">¶</a></h3>
 
3664
<ul class="simple">
 
3665
<li><p id="change-0.7.0b2-8"><span class="target" id="change-4b228a39709839285af0e98dcc00a2e5"><strong>[postgresql] </strong></span>Fixed regression from 0.6 where SMALLINT and
 
3666
BIGINT types would both generate SERIAL
 
3667
on an integer PK column, instead of
 
3668
SMALLINT and BIGSERIAL<a class="changeset-link reference internal" href="#change-4b228a39709839285af0e98dcc00a2e5">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2065">#2065</a></p>
 
3669
</p>
 
3670
</li>
 
3671
</ul>
 
3672
</div>
 
3673
<div class="section" id="change-0.7.0b2-misc">
 
3674
<h3>misc<a class="headerlink" href="#change-0.7.0b2-misc" title="Permalink to this headline">¶</a></h3>
 
3675
<ul class="simple">
 
3676
<li><p id="change-0.7.0b2-9"><span class="target" id="change-fbab34328d4fe6cc71b895aa96f6e969"><strong>[ext] </strong></span>Association proxy now has correct behavior for
 
3677
any(), has(), and contains() when proxying
 
3678
a many-to-one scalar attribute to a one-to-many
 
3679
collection (i.e. the reverse of the &#8216;typical&#8217;
 
3680
association proxy use case)<a class="changeset-link reference internal" href="#change-fbab34328d4fe6cc71b895aa96f6e969">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2054">#2054</a></p>
 
3681
</p>
 
3682
</li>
 
3683
<li><p id="change-0.7.0b2-10"><span class="target" id="change-5f4e8c1c67082ea05fef1c10cf1f5591"><strong>[examples] </strong></span>Beaker example now takes into account &#8216;limit&#8217;
 
3684
and &#8216;offset&#8217;, bind params within embedded
 
3685
FROM clauses (like when you use union() or
 
3686
from_self()) when generating a cache key.<a class="changeset-link reference internal" href="#change-5f4e8c1c67082ea05fef1c10cf1f5591">(link)</a><p></p>
 
3687
</p>
 
3688
</li>
 
3689
</ul>
 
3690
</div>
 
3691
</div>
 
3692
<div class="section" id="change-0.7.0b1">
 
3693
<h2>0.7.0b1<a class="headerlink" href="#change-0.7.0b1" title="Permalink to this headline">¶</a></h2>
 
3694
Released: Sat Feb 12 2011<div class="section" id="change-0.7.0b1-general">
 
3695
<h3>general<a class="headerlink" href="#change-0.7.0b1-general" title="Permalink to this headline">¶</a></h3>
 
3696
<ul class="simple">
 
3697
<li><p id="change-0.7.0b1-0"><span class="target" id="change-ab2b52a570ddf34b07ed43a60bbd3b4e"><strong>[general] </strong></span>New event system, supercedes all extensions, listeners,
 
3698
etc.<a class="changeset-link reference internal" href="#change-ab2b52a570ddf34b07ed43a60bbd3b4e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1902">#1902</a></p>
 
3699
</p>
 
3700
</li>
 
3701
<li><p id="change-0.7.0b1-1"><span class="target" id="change-945982ae61324c2ad8e97d0b27c94438"><strong>[general] </strong></span>Logging enhancements<a class="changeset-link reference internal" href="#change-945982ae61324c2ad8e97d0b27c94438">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1926">#1926</a></p>
 
3702
</p>
 
3703
</li>
 
3704
<li><p id="change-0.7.0b1-2"><span class="target" id="change-f6989c0ecdc122204dd55da78db6a998"><strong>[general] </strong></span>Setup no longer installs a Nose plugin<a class="changeset-link reference internal" href="#change-f6989c0ecdc122204dd55da78db6a998">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1949">#1949</a></p>
 
3705
</p>
 
3706
</li>
 
3707
<li><p id="change-0.7.0b1-3"><span class="target" id="change-8789fcdc9fc591ffd61cdf382b03f1bf"><strong>[general] </strong></span>The &#8220;sqlalchemy.exceptions&#8221; alias in sys.modules
 
3708
has been removed.   Base SQLA exceptions are
 
3709
available via &#8220;from sqlalchemy import exc&#8221;.
 
3710
The &#8220;exceptions&#8221; alias for &#8220;exc&#8221; remains in
 
3711
&#8220;sqlalchemy&#8221; for now, it&#8217;s just not patched into
 
3712
sys.modules.<a class="changeset-link reference internal" href="#change-8789fcdc9fc591ffd61cdf382b03f1bf">(link)</a><p></p>
 
3713
</p>
 
3714
</li>
 
3715
</ul>
 
3716
</div>
 
3717
<div class="section" id="change-0.7.0b1-orm">
 
3718
<h3>orm<a class="headerlink" href="#change-0.7.0b1-orm" title="Permalink to this headline">¶</a></h3>
 
3719
<ul class="simple">
 
3720
<li><p id="change-0.7.0b1-4"><span class="target" id="change-e2528c2304f18c2ce5f5394b38fd2415"><strong>[orm] </strong></span>More succinct form of query.join(target, onclause)<a class="changeset-link reference internal" href="#change-e2528c2304f18c2ce5f5394b38fd2415">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1923">#1923</a></p>
 
3721
</p>
 
3722
</li>
 
3723
<li><p id="change-0.7.0b1-5"><span class="target" id="change-be4b2e0874f24a29212a2dc7e0670d11"><strong>[orm] </strong></span>Hybrid Attributes, implements/supercedes synonym()<a class="changeset-link reference internal" href="#change-be4b2e0874f24a29212a2dc7e0670d11">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1903">#1903</a></p>
 
3724
</p>
 
3725
</li>
 
3726
<li><p id="change-0.7.0b1-6"><span class="target" id="change-5ff099f70239c548b3bc388c7870d61d"><strong>[orm] </strong></span>Rewrite of composites<a class="changeset-link reference internal" href="#change-5ff099f70239c548b3bc388c7870d61d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2008">#2008</a></p>
 
3727
</p>
 
3728
</li>
 
3729
<li><p id="change-0.7.0b1-7"><span class="target" id="change-3d190295967ea8183ef9f1e6664f8c47"><strong>[orm] </strong></span>Mutation Event Extension, supercedes &#8220;mutable=True&#8221;<a class="changeset-link reference internal" href="#change-3d190295967ea8183ef9f1e6664f8c47">(link)</a><p></p>
 
3730
</p>
 
3731
</li>
 
3732
<li><p id="change-0.7.0b1-8"><span class="target" id="change-452cd1cadc41336c00209963c1a0efec"><strong>[orm] </strong></span>PickleType and ARRAY mutability turned off by default<a class="changeset-link reference internal" href="#change-452cd1cadc41336c00209963c1a0efec">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1980">#1980</a></p>
 
3733
</p>
 
3734
</li>
 
3735
<li><p id="change-0.7.0b1-9"><span class="target" id="change-fa249f9f1f872acaf7380e30c7058dfb"><strong>[orm] </strong></span>Simplified polymorphic_on assignment<a class="changeset-link reference internal" href="#change-fa249f9f1f872acaf7380e30c7058dfb">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1895">#1895</a></p>
 
3736
</p>
 
3737
</li>
 
3738
<li><p id="change-0.7.0b1-10"><span class="target" id="change-65fcae8bce879fde267e5bc2176105d2"><strong>[orm] </strong></span>Flushing of Orphans that have no parent is allowed<a class="changeset-link reference internal" href="#change-65fcae8bce879fde267e5bc2176105d2">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1912">#1912</a></p>
 
3739
</p>
 
3740
</li>
 
3741
<li><p id="change-0.7.0b1-11"><span class="target" id="change-dd6608b232dab23abed7950caa675c94"><strong>[orm] </strong></span>Adjusted flush accounting step to occur before
 
3742
the commit in the case of autocommit=True.  This allows
 
3743
autocommit=True to work appropriately with
 
3744
expire_on_commit=True, and also allows post-flush session
 
3745
hooks to operate in the same transactional context
 
3746
as when autocommit=False.<a class="changeset-link reference internal" href="#change-dd6608b232dab23abed7950caa675c94">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2041">#2041</a></p>
 
3747
</p>
 
3748
</li>
 
3749
<li><p id="change-0.7.0b1-12"><span class="target" id="change-586a512ca20f542fb0b3dc90624687c0"><strong>[orm] </strong></span>Warnings generated when collection members, scalar referents
 
3750
not part of the flush<a class="changeset-link reference internal" href="#change-586a512ca20f542fb0b3dc90624687c0">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1973">#1973</a></p>
 
3751
</p>
 
3752
</li>
 
3753
<li><p id="change-0.7.0b1-13"><span class="target" id="change-de6d90bab81e4535b80a9aaec843aae3"><strong>[orm] </strong></span>Non-<cite>Table</cite>-derived constructs can be mapped<a class="changeset-link reference internal" href="#change-de6d90bab81e4535b80a9aaec843aae3">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1876">#1876</a></p>
 
3754
</p>
 
3755
</li>
 
3756
<li><p id="change-0.7.0b1-14"><span class="target" id="change-9f98e54eee44096194e20016e063a63f"><strong>[orm] </strong></span>Tuple label names in Query Improved<a class="changeset-link reference internal" href="#change-9f98e54eee44096194e20016e063a63f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1942">#1942</a></p>
 
3757
</p>
 
3758
</li>
 
3759
<li><p id="change-0.7.0b1-15"><span class="target" id="change-d7e002896ff0028a50064856662321b7"><strong>[orm] </strong></span>Mapped column attributes reference the most specific
 
3760
column first<a class="changeset-link reference internal" href="#change-d7e002896ff0028a50064856662321b7">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1892">#1892</a></p>
 
3761
</p>
 
3762
</li>
 
3763
<li><p id="change-0.7.0b1-16"><span class="target" id="change-f59d4965cb5e9d7d9ba76a7bae137d5d"><strong>[orm] </strong></span>Mapping to joins with two or more same-named columns
 
3764
requires explicit declaration<a class="changeset-link reference internal" href="#change-f59d4965cb5e9d7d9ba76a7bae137d5d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1896">#1896</a></p>
 
3765
</p>
 
3766
</li>
 
3767
<li><p id="change-0.7.0b1-17"><span class="target" id="change-13e4c4103063e6adbaaedc9649f9c1fe"><strong>[orm] </strong></span>Mapper requires that polymorphic_on column be present
 
3768
in the mapped selectable<a class="changeset-link reference internal" href="#change-13e4c4103063e6adbaaedc9649f9c1fe">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1875">#1875</a></p>
 
3769
</p>
 
3770
</li>
 
3771
<li><p id="change-0.7.0b1-18"><span class="target" id="change-2dabcc2d64dee7e464a3d9ff742f95b4"><strong>[orm] </strong></span>compile_mappers() renamed configure_mappers(), simplified
 
3772
configuration internals<a class="changeset-link reference internal" href="#change-2dabcc2d64dee7e464a3d9ff742f95b4">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1966">#1966</a></p>
 
3773
</p>
 
3774
</li>
 
3775
<li><p id="change-0.7.0b1-19"><span class="target" id="change-60d1bd5cee4037cb48cb3ee6c86a3435"><strong>[orm] </strong></span>the aliased() function, if passed a SQL FromClause element
 
3776
(i.e. not a mapped class), will return element.alias()
 
3777
instead of raising an error on AliasedClass.<a class="changeset-link reference internal" href="#change-60d1bd5cee4037cb48cb3ee6c86a3435">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2018">#2018</a></p>
 
3778
</p>
 
3779
</li>
 
3780
<li><p id="change-0.7.0b1-20"><span class="target" id="change-dc30e7fb7d7d28808f8ca91367130826"><strong>[orm] </strong></span>Session.merge() will check the version id of the incoming
 
3781
state against that of the database, assuming the mapping
 
3782
uses version ids and incoming state has a version_id
 
3783
assigned, and raise StaleDataError if they don&#8217;t
 
3784
match.<a class="changeset-link reference internal" href="#change-dc30e7fb7d7d28808f8ca91367130826">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2027">#2027</a></p>
 
3785
</p>
 
3786
</li>
 
3787
<li><p id="change-0.7.0b1-21"><span class="target" id="change-191d0bb9d2c5b9df0b3ca39410d088ea"><strong>[orm] </strong></span>Session.connection(), Session.execute() accept &#8216;bind&#8217;,
 
3788
to allow execute/connection operations to participate
 
3789
in the open transaction of an engine explicitly.<a class="changeset-link reference internal" href="#change-191d0bb9d2c5b9df0b3ca39410d088ea">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1996">#1996</a></p>
 
3790
</p>
 
3791
</li>
 
3792
<li><p id="change-0.7.0b1-22"><span class="target" id="change-ed301a804b81ba5c8f397eed63b643a8"><strong>[orm] </strong></span>Query.join(), Query.outerjoin(), eagerload(),
 
3793
eagerload_all(), others no longer allow lists
 
3794
of attributes as arguments (i.e. option([x, y, z])
 
3795
form, deprecated since 0.5)<a class="changeset-link reference internal" href="#change-ed301a804b81ba5c8f397eed63b643a8">(link)</a><p></p>
 
3796
</p>
 
3797
</li>
 
3798
<li><p id="change-0.7.0b1-23"><span class="target" id="change-74d839b75f6ed3070bb2089114ec518d"><strong>[orm] </strong></span>ScopedSession.mapper is removed (deprecated since 0.5).<a class="changeset-link reference internal" href="#change-74d839b75f6ed3070bb2089114ec518d">(link)</a><p></p>
 
3799
</p>
 
3800
</li>
 
3801
<li><p id="change-0.7.0b1-24"><span class="target" id="change-220a91af357bdbb12a4ddac587ad3bc6"><strong>[orm] </strong></span>Horizontal shard query places &#8216;shard_id&#8217; in
 
3802
context.attributes where it&#8217;s accessible by the
 
3803
&#8220;load()&#8221; event.<a class="changeset-link reference internal" href="#change-220a91af357bdbb12a4ddac587ad3bc6">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2031">#2031</a></p>
 
3804
</p>
 
3805
</li>
 
3806
<li><p id="change-0.7.0b1-25"><span class="target" id="change-1d6862171baa025c434e161124856982"><strong>[orm] </strong></span>A single contains_eager() call across
 
3807
multiple entities will indicate all collections
 
3808
along that path should load, instead of requiring
 
3809
distinct contains_eager() calls for each endpoint
 
3810
(which was never correctly documented).<a class="changeset-link reference internal" href="#change-1d6862171baa025c434e161124856982">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2032">#2032</a></p>
 
3811
</p>
 
3812
</li>
 
3813
<li><p id="change-0.7.0b1-26"><span class="target" id="change-eb3d1a3aeabd2864f9d545834fcd8608"><strong>[orm] </strong></span>The &#8220;name&#8221; field used in orm.aliased() now renders
 
3814
in the resulting SQL statement.<a class="changeset-link reference internal" href="#change-eb3d1a3aeabd2864f9d545834fcd8608">(link)</a><p></p>
 
3815
</p>
 
3816
</li>
 
3817
<li><p id="change-0.7.0b1-27"><span class="target" id="change-0cf6ed342d196434add59c6825ec0e14"><strong>[orm] </strong></span>Session weak_instance_dict=False is deprecated.<a class="changeset-link reference internal" href="#change-0cf6ed342d196434add59c6825ec0e14">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1473">#1473</a></p>
 
3818
</p>
 
3819
</li>
 
3820
<li><p id="change-0.7.0b1-28"><span class="target" id="change-1ee59f0d4bd130bb4f4e3b46008c4f81"><strong>[orm] </strong></span>An exception is raised in the unusual case that an
 
3821
append or similar event on a collection occurs after
 
3822
the parent object has been dereferenced, which
 
3823
prevents the parent from being marked as &#8220;dirty&#8221;
 
3824
in the session.  Was a warning in 0.6.6.<a class="changeset-link reference internal" href="#change-1ee59f0d4bd130bb4f4e3b46008c4f81">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2046">#2046</a></p>
 
3825
</p>
 
3826
</li>
 
3827
<li><p id="change-0.7.0b1-29"><span class="target" id="change-0441351e3f35ced69e9bca95245b59b8"><strong>[orm] </strong></span>Query.distinct() now accepts column expressions
 
3828
as <a href="#id7"><span class="problematic" id="id8">*</span></a>args, interpreted by the Postgresql dialect
 
3829
as DISTINCT ON (&lt;expr&gt;).<a class="changeset-link reference internal" href="#change-0441351e3f35ced69e9bca95245b59b8">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1069">#1069</a></p>
 
3830
</p>
 
3831
</li>
 
3832
<li><p id="change-0.7.0b1-30"><span class="target" id="change-38da3ba0231e5a2247b5a85e512c64af"><strong>[orm] </strong></span>Additional tuning to &#8220;many-to-one&#8221; relationship
 
3833
loads during a flush().   A change in version 0.6.6
 
3834
([ticket:2002]) required that more &#8220;unnecessary&#8221; m2o
 
3835
loads during a flush could occur.   Extra loading modes have
 
3836
been added so that the SQL emitted in this
 
3837
specific use case is trimmed back, while still
 
3838
retrieving the information the flush needs in order
 
3839
to not miss anything.<a class="changeset-link reference internal" href="#change-38da3ba0231e5a2247b5a85e512c64af">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2049">#2049</a></p>
 
3840
</p>
 
3841
</li>
 
3842
<li><p id="change-0.7.0b1-31"><span class="target" id="change-cd5eacd2ab6529a6aced3f60d15768f1"><strong>[orm] </strong></span>the value of &#8220;passive&#8221; as passed to
 
3843
attributes.get_history() should be one of the
 
3844
constants defined in the attributes package.  Sending
 
3845
True or False is deprecated.<a class="changeset-link reference internal" href="#change-cd5eacd2ab6529a6aced3f60d15768f1">(link)</a><p></p>
 
3846
</p>
 
3847
</li>
 
3848
<li><p id="change-0.7.0b1-32"><span class="target" id="change-06edae870b218a7c13eae46fc5fef29d"><strong>[orm] </strong></span>Added a <cite>name</cite> argument to <cite>Query.subquery()</cite>, to allow
 
3849
a fixed name to be assigned to the alias object. (also in 0.6.7)<a class="changeset-link reference internal" href="#change-06edae870b218a7c13eae46fc5fef29d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2030">#2030</a></p>
 
3850
</p>
 
3851
</li>
 
3852
<li><p id="change-0.7.0b1-33"><span class="target" id="change-95089bbf3908e1e43535422631fcd73c"><strong>[orm] </strong></span>A warning is emitted when a joined-table inheriting mapper
 
3853
has no primary keys on the locally mapped table
 
3854
(but has pks on the superclass table).
 
3855
(also in 0.6.7)<a class="changeset-link reference internal" href="#change-95089bbf3908e1e43535422631fcd73c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2019">#2019</a></p>
 
3856
</p>
 
3857
</li>
 
3858
<li><p id="change-0.7.0b1-34"><span class="target" id="change-92bbd3ad95fb22126cc39a64783f97a8"><strong>[orm] </strong></span>Fixed bug where &#8220;middle&#8221; class in a polymorphic hierarchy
 
3859
would have no &#8216;polymorphic_on&#8217; column if it didn&#8217;t also
 
3860
specify a &#8216;polymorphic_identity&#8217;, leading to strange
 
3861
errors upon refresh, wrong class loaded when querying
 
3862
from that target. Also emits the correct WHERE criterion
 
3863
when using single table inheritance.
 
3864
(also in 0.6.7)<a class="changeset-link reference internal" href="#change-92bbd3ad95fb22126cc39a64783f97a8">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2038">#2038</a></p>
 
3865
</p>
 
3866
</li>
 
3867
<li><p id="change-0.7.0b1-35"><span class="target" id="change-0734871e34b4de0cfa57a987165f3e25"><strong>[orm] </strong></span>Fixed bug where a column with a SQL or server side default
 
3868
that was excluded from a mapping with include_properties
 
3869
or exclude_properties would result in UnmappedColumnError. (also in 0.6.7)<a class="changeset-link reference internal" href="#change-0734871e34b4de0cfa57a987165f3e25">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1995">#1995</a></p>
 
3870
</p>
 
3871
</li>
 
3872
<li><p id="change-0.7.0b1-36"><span class="target" id="change-c0ff4c4fbb4211eee4b16aa8804e09e1"><strong>[orm] </strong></span>A warning is emitted in the unusual case that an
 
3873
append or similar event on a collection occurs after
 
3874
the parent object has been dereferenced, which
 
3875
prevents the parent from being marked as &#8220;dirty&#8221;
 
3876
in the session.  This will be an exception in 0.7. (also in 0.6.7)<a class="changeset-link reference internal" href="#change-c0ff4c4fbb4211eee4b16aa8804e09e1">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2046">#2046</a></p>
 
3877
</p>
 
3878
</li>
 
3879
</ul>
 
3880
</div>
 
3881
<div class="section" id="change-0.7.0b1-orm-declarative">
 
3882
<h3>orm declarative<a class="headerlink" href="#change-0.7.0b1-orm-declarative" title="Permalink to this headline">¶</a></h3>
 
3883
<ul class="simple">
 
3884
<li><p id="change-0.7.0b1-37"><span class="target" id="change-f4bd4cade780402e38c5ce23e28051cb"><strong>[declarative] [orm] </strong></span>Added an explicit check for the case that the name
 
3885
&#8216;metadata&#8217; is used for a column attribute on a
 
3886
declarative class. (also in 0.6.7)<a class="changeset-link reference internal" href="#change-f4bd4cade780402e38c5ce23e28051cb">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2050">#2050</a></p>
 
3887
</p>
 
3888
</li>
 
3889
</ul>
 
3890
</div>
 
3891
<div class="section" id="change-0.7.0b1-sql">
 
3892
<h3>sql<a class="headerlink" href="#change-0.7.0b1-sql" title="Permalink to this headline">¶</a></h3>
 
3893
<ul class="simple">
 
3894
<li><p id="change-0.7.0b1-38"><span class="target" id="change-4eb7f2aa59933bfc4c2322c448c1238f"><strong>[sql] </strong></span>Added over() function, method to FunctionElement
 
3895
classes, produces the _Over() construct which
 
3896
in turn generates &#8220;window functions&#8221;, i.e.
 
3897
&#8220;&lt;window function&gt; OVER (PARTITION BY &lt;partition by&gt;,
 
3898
ORDER BY &lt;order by&gt;)&#8221;.<a class="changeset-link reference internal" href="#change-4eb7f2aa59933bfc4c2322c448c1238f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1844">#1844</a></p>
 
3899
</p>
 
3900
</li>
 
3901
<li><p id="change-0.7.0b1-39"><span class="target" id="change-008af6797c834ccbbd51f2ae2c7fba1b"><strong>[sql] </strong></span>LIMIT/OFFSET clauses now use bind parameters<a class="changeset-link reference internal" href="#change-008af6797c834ccbbd51f2ae2c7fba1b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/805">#805</a></p>
 
3902
</p>
 
3903
</li>
 
3904
<li><p id="change-0.7.0b1-40"><span class="target" id="change-e59a066a470d2a315f1a10b3fecc1024"><strong>[sql] </strong></span>select.distinct() now accepts column expressions
 
3905
as <a href="#id9"><span class="problematic" id="id10">*</span></a>args, interpreted by the Postgresql dialect
 
3906
as DISTINCT ON (&lt;expr&gt;).  Note this was already
 
3907
available via passing a list to the <cite>distinct</cite>
 
3908
keyword argument to select().<a class="changeset-link reference internal" href="#change-e59a066a470d2a315f1a10b3fecc1024">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1069">#1069</a></p>
 
3909
</p>
 
3910
</li>
 
3911
<li><p id="change-0.7.0b1-41"><span class="target" id="change-74b84516f82a8a30a03f704d6ec1d920"><strong>[sql] </strong></span>select.prefix_with() accepts multiple expressions
 
3912
(i.e. <a href="#id11"><span class="problematic" id="id12">*</span></a>expr), &#8216;prefix&#8217; keyword argument to select()
 
3913
accepts a list or tuple.<a class="changeset-link reference internal" href="#change-74b84516f82a8a30a03f704d6ec1d920">(link)</a><p></p>
 
3914
</p>
 
3915
</li>
 
3916
<li><p id="change-0.7.0b1-42"><span class="target" id="change-df9bfaf8018c8b1539a0b4c8a07550c8"><strong>[sql] </strong></span>Passing a string to the <cite>distinct</cite> keyword argument
 
3917
of <cite>select()</cite> for the purpose of emitting special
 
3918
MySQL keywords (DISTINCTROW etc.) is deprecated -
 
3919
use <cite>prefix_with()</cite> for this.<a class="changeset-link reference internal" href="#change-df9bfaf8018c8b1539a0b4c8a07550c8">(link)</a><p></p>
 
3920
</p>
 
3921
</li>
 
3922
<li><p id="change-0.7.0b1-43"><span class="target" id="change-9112c97367c753c162923d518d541ed0"><strong>[sql] </strong></span>TypeDecorator works with primary key columns<a class="changeset-link reference internal" href="#change-9112c97367c753c162923d518d541ed0">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2006">#2006</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2005">#2005</a></p>
 
3923
</p>
 
3924
</li>
 
3925
<li><p id="change-0.7.0b1-44"><span class="target" id="change-fc71ca433aef5e4ec0d6b0d752fd6b2e"><strong>[sql] </strong></span>DDL() constructs now escape percent signs<a class="changeset-link reference internal" href="#change-fc71ca433aef5e4ec0d6b0d752fd6b2e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1897">#1897</a></p>
 
3926
</p>
 
3927
</li>
 
3928
<li><p id="change-0.7.0b1-45"><span class="target" id="change-f3cb599e9c46745a4bf2b2b7201214bf"><strong>[sql] </strong></span>Table.c / MetaData.tables refined a bit, don&#8217;t allow direct
 
3929
mutation<a class="changeset-link reference internal" href="#change-f3cb599e9c46745a4bf2b2b7201214bf">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1917">#1917</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1893">#1893</a></p>
 
3930
</p>
 
3931
</li>
 
3932
<li><p id="change-0.7.0b1-46"><span class="target" id="change-9b51a25af44112e886144cd60fa90f62"><strong>[sql] </strong></span>Callables passed to <cite>bindparam()</cite> don&#8217;t get evaluated<a class="changeset-link reference internal" href="#change-9b51a25af44112e886144cd60fa90f62">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1950">#1950</a></p>
 
3933
</p>
 
3934
</li>
 
3935
<li><p id="change-0.7.0b1-47"><span class="target" id="change-d22c8592021bf7d745621ed05d7429f1"><strong>[sql] </strong></span>types.type_map is now private, types._type_map<a class="changeset-link reference internal" href="#change-d22c8592021bf7d745621ed05d7429f1">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1870">#1870</a></p>
 
3936
</p>
 
3937
</li>
 
3938
<li><p id="change-0.7.0b1-48"><span class="target" id="change-1c2d3bb55bfa7910f19563447af291d6"><strong>[sql] </strong></span>Non-public Pool methods underscored<a class="changeset-link reference internal" href="#change-1c2d3bb55bfa7910f19563447af291d6">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1982">#1982</a></p>
 
3939
</p>
 
3940
</li>
 
3941
<li><p id="change-0.7.0b1-49"><span class="target" id="change-192c99cfcb4e50b3886277fbd4c9a212"><strong>[sql] </strong></span>Added NULLS FIRST and NULLS LAST support. It&#8217;s implemented
 
3942
as an extension to the asc() and desc() operators, called
 
3943
nullsfirst() and nullslast().<a class="changeset-link reference internal" href="#change-192c99cfcb4e50b3886277fbd4c9a212">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/723">#723</a></p>
 
3944
</p>
 
3945
</li>
 
3946
<li><p id="change-0.7.0b1-50"><span class="target" id="change-8a34b5293403955387df1c3e2d0a0a41"><strong>[sql] </strong></span>The Index() construct can be created inline with a Table
 
3947
definition, using strings as column names, as an alternative
 
3948
to the creation of the index outside of the Table.<a class="changeset-link reference internal" href="#change-8a34b5293403955387df1c3e2d0a0a41">(link)</a><p></p>
 
3949
</p>
 
3950
</li>
 
3951
<li><p id="change-0.7.0b1-51"><span class="target" id="change-62c7aacfaee859d90d792e30c31ac9bc"><strong>[sql] </strong></span>execution_options() on Connection accepts
 
3952
&#8220;isolation_level&#8221; argument, sets transaction isolation
 
3953
level for that connection only until returned to the
 
3954
connection pool, for thsoe backends which support it
 
3955
(SQLite, Postgresql)<a class="changeset-link reference internal" href="#change-62c7aacfaee859d90d792e30c31ac9bc">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2001">#2001</a></p>
 
3956
</p>
 
3957
</li>
 
3958
<li><p id="change-0.7.0b1-52"><span class="target" id="change-f93d9cab78c0153cf9fb0a71c0ea0259"><strong>[sql] </strong></span>A TypeDecorator of Integer can be used with a primary key
 
3959
column, and the &#8220;autoincrement&#8221; feature of various dialects
 
3960
as well as the &#8220;sqlite_autoincrement&#8221; flag will honor
 
3961
the underlying database type as being Integer-based.<a class="changeset-link reference internal" href="#change-f93d9cab78c0153cf9fb0a71c0ea0259">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2005">#2005</a></p>
 
3962
</p>
 
3963
</li>
 
3964
<li><p id="change-0.7.0b1-53"><span class="target" id="change-4913415ba5d037bab37eccc00e534daa"><strong>[sql] </strong></span>Established consistency when server_default is present
 
3965
on an Integer PK column.  SQLA doesn&#8217;t pre-fetch these,
 
3966
nor do they come back in cursor.lastrowid (DBAPI).
 
3967
Ensured all backends consistently return None
 
3968
in result.inserted_primary_key for these. Regarding
 
3969
reflection for this case, reflection of an int PK col
 
3970
with a server_default sets the &#8220;autoincrement&#8221; flag to False,
 
3971
except in the case of a PG SERIAL col where we detected a
 
3972
sequence default.<a class="changeset-link reference internal" href="#change-4913415ba5d037bab37eccc00e534daa">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2020">#2020</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2021">#2021</a></p>
 
3973
</p>
 
3974
</li>
 
3975
<li><p id="change-0.7.0b1-54"><span class="target" id="change-523eaa86a6fb8bbbe523f6ff4320e065"><strong>[sql] </strong></span>Result-row processors are applied to pre-executed SQL
 
3976
defaults, as well as cursor.lastrowid, when determining
 
3977
the contents of result.inserted_primary_key.<a class="changeset-link reference internal" href="#change-523eaa86a6fb8bbbe523f6ff4320e065">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2006">#2006</a></p>
 
3978
</p>
 
3979
</li>
 
3980
<li><p id="change-0.7.0b1-55"><span class="target" id="change-64b01c67299868c1e98b5a3c2f0c472a"><strong>[sql] </strong></span>Bind parameters present in the &#8220;columns clause&#8221; of a select
 
3981
are now auto-labeled like other &#8220;anonymous&#8221; clauses,
 
3982
which among other things allows their &#8220;type&#8221; to be meaningful
 
3983
when the row is fetched, as in result row processors.<a class="changeset-link reference internal" href="#change-64b01c67299868c1e98b5a3c2f0c472a">(link)</a><p></p>
 
3984
</p>
 
3985
</li>
 
3986
<li><p id="change-0.7.0b1-56"><span class="target" id="change-ecc90be10a16dfffd1ad51bf80e0de25"><strong>[sql] </strong></span>TypeDecorator is present in the &#8220;sqlalchemy&#8221; import space.<a class="changeset-link reference internal" href="#change-ecc90be10a16dfffd1ad51bf80e0de25">(link)</a><p></p>
 
3987
</p>
 
3988
</li>
 
3989
<li><p id="change-0.7.0b1-57"><span class="target" id="change-fb26558eb829e86d5464e9c8f060232b"><strong>[sql] </strong></span>Non-DBAPI errors which occur in the scope of an <cite>execute()</cite>
 
3990
call are now wrapped in sqlalchemy.exc.StatementError,
 
3991
and the text of the SQL statement and repr() of params
 
3992
is included.  This makes it easier to identify statement
 
3993
executions which fail before the DBAPI becomes
 
3994
involved.<a class="changeset-link reference internal" href="#change-fb26558eb829e86d5464e9c8f060232b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2015">#2015</a></p>
 
3995
</p>
 
3996
</li>
 
3997
<li><p id="change-0.7.0b1-58"><span class="target" id="change-a66b20fca49c0f8524e0f9b13450df30"><strong>[sql] </strong></span>The concept of associating a &#8221;.bind&#8221; directly with a
 
3998
ClauseElement has been explicitly moved to Executable,
 
3999
i.e. the mixin that describes ClauseElements which represent
 
4000
engine-executable constructs.  This change is an improvement
 
4001
to internal organization and is unlikely to affect any
 
4002
real-world usage.<a class="changeset-link reference internal" href="#change-a66b20fca49c0f8524e0f9b13450df30">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2048">#2048</a></p>
 
4003
</p>
 
4004
</li>
 
4005
<li><p id="change-0.7.0b1-59"><span class="target" id="change-a466de1bb8545241b6aa4e22314db722"><strong>[sql] </strong></span>Column.copy(), as used in table.tometadata(), copies the
 
4006
&#8216;doc&#8217; attribute.  (also in 0.6.7)<a class="changeset-link reference internal" href="#change-a466de1bb8545241b6aa4e22314db722">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2028">#2028</a></p>
 
4007
</p>
 
4008
</li>
 
4009
<li><p id="change-0.7.0b1-60"><span class="target" id="change-e01bc44c0b8683e725b54e07f17b3db8"><strong>[sql] </strong></span>Added some defs to the resultproxy.c extension so that
 
4010
the extension compiles and runs on Python 2.4. (also in 0.6.7)<a class="changeset-link reference internal" href="#change-e01bc44c0b8683e725b54e07f17b3db8">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2023">#2023</a></p>
 
4011
</p>
 
4012
</li>
 
4013
<li><p id="change-0.7.0b1-61"><span class="target" id="change-eb2cc6cfb9f8870e2eec8d687b2b5f2c"><strong>[sql] </strong></span>The compiler extension now supports overriding the default
 
4014
compilation of expression._BindParamClause including that
 
4015
the auto-generated binds within the VALUES/SET clause
 
4016
of an insert()/update() statement will also use the new
 
4017
compilation rules. (also in 0.6.7)<a class="changeset-link reference internal" href="#change-eb2cc6cfb9f8870e2eec8d687b2b5f2c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2042">#2042</a></p>
 
4018
</p>
 
4019
</li>
 
4020
<li><p id="change-0.7.0b1-62"><span class="target" id="change-4664bca0e88c4aa7baf8649d823fa11e"><strong>[sql] </strong></span>SQLite dialect now uses <cite>NullPool</cite> for file-based databases<a class="changeset-link reference internal" href="#change-4664bca0e88c4aa7baf8649d823fa11e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1921">#1921</a></p>
 
4021
</p>
 
4022
</li>
 
4023
<li><p id="change-0.7.0b1-63"><span class="target" id="change-4afa9ef114e44f1d7f2ee4ab49ea60b0"><strong>[sql] </strong></span>The path given as the location of a sqlite database is now
 
4024
normalized via os.path.abspath(), so that directory changes
 
4025
within the process don&#8217;t affect the ultimate location
 
4026
of a relative file path.<a class="changeset-link reference internal" href="#change-4afa9ef114e44f1d7f2ee4ab49ea60b0">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2036">#2036</a></p>
 
4027
</p>
 
4028
</li>
 
4029
</ul>
 
4030
</div>
 
4031
<div class="section" id="change-0.7.0b1-postgresql">
 
4032
<h3>postgresql<a class="headerlink" href="#change-0.7.0b1-postgresql" title="Permalink to this headline">¶</a></h3>
 
4033
<ul class="simple">
 
4034
<li><p id="change-0.7.0b1-64"><span class="target" id="change-b5ada6099a9b9ba39ca6d8b0c0827b92"><strong>[postgresql] </strong></span>When explicit sequence execution derives the name
 
4035
of the auto-generated sequence of a SERIAL column,
 
4036
which currently only occurs if implicit_returning=False,
 
4037
now accommodates if the table + column name is greater
 
4038
than 63 characters using the same logic Postgresql uses. (also in 0.6.7)<a class="changeset-link reference internal" href="#change-b5ada6099a9b9ba39ca6d8b0c0827b92">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1083">#1083</a></p>
 
4039
</p>
 
4040
</li>
 
4041
<li><p id="change-0.7.0b1-65"><span class="target" id="change-05134b7490c95da9c06e6ec525e05543"><strong>[postgresql] </strong></span>Added an additional libpq message to the list of &#8220;disconnect&#8221;
 
4042
exceptions, &#8220;could not receive data from server&#8221; (also in 0.6.7)<a class="changeset-link reference internal" href="#change-05134b7490c95da9c06e6ec525e05543">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2044">#2044</a></p>
 
4043
</p>
 
4044
</li>
 
4045
</ul>
 
4046
</div>
 
4047
<div class="section" id="change-0.7.0b1-mysql">
 
4048
<h3>mysql<a class="headerlink" href="#change-0.7.0b1-mysql" title="Permalink to this headline">¶</a></h3>
 
4049
<ul class="simple">
 
4050
<li><p id="change-0.7.0b1-66"><span class="target" id="change-7d80eda9ae55c5d7135bf452c7420586"><strong>[mysql] </strong></span>New DBAPI support for pymysql, a pure Python port
 
4051
of MySQL-python.<a class="changeset-link reference internal" href="#change-7d80eda9ae55c5d7135bf452c7420586">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1991">#1991</a></p>
 
4052
</p>
 
4053
</li>
 
4054
<li><p id="change-0.7.0b1-67"><span class="target" id="change-b7f58cb72e13cc5af0d1da04d82b64d3"><strong>[mysql] </strong></span>oursql dialect accepts the same &#8220;ssl&#8221; arguments in
 
4055
create_engine() as that of MySQLdb.
 
4056
(also in 0.6.7)<a class="changeset-link reference internal" href="#change-b7f58cb72e13cc5af0d1da04d82b64d3">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2047">#2047</a></p>
 
4057
</p>
 
4058
</li>
 
4059
</ul>
 
4060
</div>
 
4061
<div class="section" id="change-0.7.0b1-mssql">
 
4062
<h3>mssql<a class="headerlink" href="#change-0.7.0b1-mssql" title="Permalink to this headline">¶</a></h3>
 
4063
<ul class="simple">
 
4064
<li><p id="change-0.7.0b1-68"><span class="target" id="change-63bd4273775d5a53a36af9dd8ee5b79b"><strong>[mssql] </strong></span>the String/Unicode types, and their counterparts VARCHAR/
 
4065
NVARCHAR, emit &#8220;max&#8221; as the length when no length is
 
4066
specified, so that the default length, normally &#8216;1&#8217;
 
4067
as per SQL server documentation, is instead
 
4068
&#8216;unbounded&#8217;.  This also occurs for the VARBINARY type..<p>This behavior makes these types more closely compatible
 
4069
with Postgresql&#8217;s VARCHAR type which is similarly unbounded
 
4070
when no length is specified.</p>
 
4071
<a class="changeset-link reference internal" href="#change-63bd4273775d5a53a36af9dd8ee5b79b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1833">#1833</a></p>
 
4072
</p>
 
4073
</li>
 
4074
</ul>
 
4075
</div>
 
4076
<div class="section" id="change-0.7.0b1-firebird">
 
4077
<h3>firebird<a class="headerlink" href="#change-0.7.0b1-firebird" title="Permalink to this headline">¶</a></h3>
 
4078
<ul class="simple">
 
4079
<li><p id="change-0.7.0b1-69"><span class="target" id="change-432e2525c02e26b7c7853622f71b1123"><strong>[firebird] </strong></span>Some adjustments so that Interbase is supported as well.
 
4080
FB/Interbase version idents are parsed into a structure
 
4081
such as (8, 1, 1, &#8216;interbase&#8217;) or (2, 1, 588, &#8216;firebird&#8217;)
 
4082
so they can be distinguished.<a class="changeset-link reference internal" href="#change-432e2525c02e26b7c7853622f71b1123">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1885">#1885</a></p>
 
4083
</p>
 
4084
</li>
 
4085
</ul>
 
4086
</div>
 
4087
<div class="section" id="change-0.7.0b1-misc">
 
4088
<h3>misc<a class="headerlink" href="#change-0.7.0b1-misc" title="Permalink to this headline">¶</a></h3>
 
4089
<ul class="simple">
 
4090
<li><p id="change-0.7.0b1-70"><span class="target" id="change-d347d88fe254c05459e964fb7a9d3005"></span>Detailed descriptions of each change below are
 
4091
described at:
 
4092
<a class="reference external" href="http://www.sqlalchemy.org/trac/wiki/07Migration">http://www.sqlalchemy.org/trac/wiki/07Migration</a><a class="changeset-link reference internal" href="#change-d347d88fe254c05459e964fb7a9d3005">(link)</a><p></p>
 
4093
</p>
 
4094
</li>
 
4095
</ul>
 
4096
</div>
 
4097
</div>
 
4098
</div>
 
4099
 
 
4100
    </div>
 
4101
 
 
4102
</div>
 
4103
 
 
4104
<div id="docs-bottom-navigation" class="docs-navigation-links">
 
4105
        Previous:
 
4106
        <a href="changelog_08.html" title="previous chapter">0.8 Changelog</a>
 
4107
        Next:
 
4108
        <a href="changelog_06.html" title="next chapter">0.6 Changelog</a>
 
4109
 
 
4110
    <div id="docs-copyright">
 
4111
        &copy; <a href="../copyright.html">Copyright</a> 2007-2013, the SQLAlchemy authors and contributors.
 
4112
        Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
 
4113
    </div>
 
4114
</div>
 
4115
 
 
4116
</div>
 
4117
 
 
4118
        
 
4119
    </body>
 
4120
</html>
 
4121
 
 
4122