HEX
Server: Apache
System: Linux vpshost0650.publiccloud.com.br 4.4.79-grsec-1.lc.x86_64 #1 SMP Wed Aug 2 14:18:21 -03 2017 x86_64
User: bandeirantesbomb3 (10068)
PHP: 8.0.7
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //usr/share/doc/python-sqlalchemy-0.9.8/doc/changelog/changelog_04.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        
        <title>
            
    
                0.4 Changelog
             &mdash;
    SQLAlchemy 0.9 Documentation

        </title>

        
            <!-- begin iterate through SQLA + sphinx environment css_files -->
                <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
                <link rel="stylesheet" href="../_static/docs.css" type="text/css" />
                <link rel="stylesheet" href="../_static/sphinx_paramlinks.css" type="text/css" />
                <link rel="stylesheet" href="../_static/changelog.css" type="text/css" />
            <!-- end iterate through SQLA + sphinx environment css_files -->
        

        

    

    <!-- begin layout.mako headers -->

    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
          URL_ROOT:    '../',
          VERSION:     '0.9.8',
          COLLAPSE_MODINDEX: false,
          FILE_SUFFIX: '.html'
      };
    </script>

    <!-- begin iterate through sphinx environment script_files -->
        <script type="text/javascript" src="../_static/jquery.js"></script>
        <script type="text/javascript" src="../_static/underscore.js"></script>
        <script type="text/javascript" src="../_static/doctools.js"></script>
    <!-- end iterate through sphinx environment script_files -->

    <script type="text/javascript" src="../_static/detectmobile.js"></script>
    <script type="text/javascript" src="../_static/init.js"></script>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
        <link rel="copyright" title="Copyright" href="../copyright.html" />
    <link rel="top" title="SQLAlchemy 0.9 Documentation" href="../index.html" />
        <link rel="up" title="Changes and Migration" href="index.html" />
        <link rel="next" title="0.3 Changelog" href="changelog_03.html" />
        <link rel="prev" title="0.5 Changelog" href="changelog_05.html" />
    <!-- end layout.mako headers -->


    </head>
    <body>
        















<div id="docs-container">





<div id="docs-top-navigation-container" class="body-background">
<div id="docs-header">
    <div id="docs-version-header">
        Release: <span class="version-num">0.9.8</span> | Release Date: October 13, 2014
    </div>

    <h1>SQLAlchemy 0.9 Documentation</h1>

</div>
</div>

<div id="docs-body-container">

    <div id="fixed-sidebar" class="withsidebar">


        <div id="docs-sidebar-popout">
            <h3><a href="../index.html">SQLAlchemy 0.9 Documentation</a></h3>

            <p id="sidebar-paginate">
                    <a href="index.html" title="Changes and Migration">Up</a> |

                    <a href="changelog_05.html" title="0.5 Changelog">Prev</a> |
                    <a href="changelog_03.html" title="0.3 Changelog">Next</a>
            </p>

            <p id="sidebar-topnav">
                <a href="../index.html">Contents</a> |
                <a href="../genindex.html">Index</a>
            </p>

            <div id="sidebar-search">
                <form class="search" action="../search.html" method="get">
                  <input type="text" name="q" size="12" /> <input type="submit" value="Search" />
                  <input type="hidden" name="check_keywords" value="yes" />
                  <input type="hidden" name="area" value="default" />
                </form>
            </div>

        </div>

        <div id="docs-sidebar">

        <h3><a href="#">            
                0.4 Changelog
            
        </a></h3>
        <ul>
<li><a class="reference internal" href="#">0.4 Changelog</a><ul>
<li><a class="reference internal" href="#change-0.4.8">0.4.8</a><ul>
<li><a class="reference internal" href="#change-0.4.8-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.4.8-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.4.8-mysql">mysql</a></li>
<li><a class="reference internal" href="#change-0.4.8-sqlite">sqlite</a></li>
<li><a class="reference internal" href="#change-0.4.8-oracle">oracle</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.4.7p1">0.4.7p1</a><ul>
<li><a class="reference internal" href="#change-0.4.7p1-orm">orm</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.4.7">0.4.7</a><ul>
<li><a class="reference internal" href="#change-0.4.7-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.4.7-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.4.7-schema">schema</a></li>
<li><a class="reference internal" href="#change-0.4.7-mysql">mysql</a></li>
<li><a class="reference internal" href="#change-0.4.7-oracle">oracle</a></li>
<li><a class="reference internal" href="#change-0.4.7-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.4.6">0.4.6</a><ul>
<li><a class="reference internal" href="#change-0.4.6-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.4.6-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.4.6-mssql">mssql</a></li>
<li><a class="reference internal" href="#change-0.4.6-firebird">firebird</a></li>
<li><a class="reference internal" href="#change-0.4.6-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.4.5">0.4.5</a><ul>
<li><a class="reference internal" href="#change-0.4.5-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.4.5-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.4.5-mysql">mysql</a></li>
<li><a class="reference internal" href="#change-0.4.5-mssql">mssql</a></li>
<li><a class="reference internal" href="#change-0.4.5-oracle">oracle</a></li>
<li><a class="reference internal" href="#change-0.4.5-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.4.4">0.4.4</a><ul>
<li><a class="reference internal" href="#change-0.4.4-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.4.4-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.4.4-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.4.3">0.4.3</a><ul>
<li><a class="reference internal" href="#change-0.4.3-general">general</a></li>
<li><a class="reference internal" href="#change-0.4.3-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.4.3-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.4.3-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.4.2p3">0.4.2p3</a><ul>
<li><a class="reference internal" href="#change-0.4.2p3-general">general</a></li>
<li><a class="reference internal" href="#change-0.4.2p3-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.4.2p3-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.4.2p3-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.4.2">0.4.2</a><ul>
<li><a class="reference internal" href="#change-0.4.2-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.4.2-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.4.2-firebird">firebird</a></li>
<li><a class="reference internal" href="#change-0.4.2-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.4.1">0.4.1</a><ul>
<li><a class="reference internal" href="#change-0.4.1-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.4.1-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.4.1-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.4.0">0.4.0</a></li>
<li><a class="reference internal" href="#change-0.4.0beta6">0.4.0beta6</a></li>
<li><a class="reference internal" href="#change-0.4.0beta5">0.4.0beta5</a></li>
<li><a class="reference internal" href="#change-0.4.0beta4">0.4.0beta4</a></li>
<li><a class="reference internal" href="#change-0.4.0beta3">0.4.0beta3</a></li>
<li><a class="reference internal" href="#change-0.4.0beta2">0.4.0beta2</a><ul>
<li><a class="reference internal" href="#change-0.4.0beta2-oracle">oracle</a></li>
<li><a class="reference internal" href="#change-0.4.0beta2-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.4.0beta1">0.4.0beta1</a><ul>
<li><a class="reference internal" href="#change-0.4.0beta1-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.4.0beta1-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.4.0beta1-mysql">mysql</a></li>
<li><a class="reference internal" href="#change-0.4.0beta1-oracle">oracle</a></li>
<li><a class="reference internal" href="#change-0.4.0beta1-misc">misc</a></li>
</ul>
</li>
</ul>
</li>
</ul>




        </div>

    </div>

    

    <div id="docs-body" class="withsidebar" >
        
<div class="section" id="changelog">
<h1>0.4 Changelog<a class="headerlink" href="#changelog" title="Permalink to this headline">¶</a></h1>
<div class="section" id="change-0.4.8">
<h2>0.4.8<a class="headerlink" href="#change-0.4.8" title="Permalink to this headline">¶</a></h2>
Released: Sun Oct 12 2008<div class="section" id="change-0.4.8-orm">
<h3>orm<a class="headerlink" href="#change-0.4.8-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.8-0"><span class="target" id="change-4000d9f2d4389a85854ede3e007aaba5"><strong>[orm] </strong></span>Fixed bug regarding inherit_condition passed
with &#8220;A=B&#8221; versus &#8220;B=A&#8221; leading to errors<a class="changeset-link headerlink reference internal" href="#change-4000d9f2d4389a85854ede3e007aaba5">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1039">#1039</a></p>
</p>
</li>
<li><p id="change-0.4.8-1"><span class="target" id="change-2690aa1e520f493331cb61a6326c56c4"><strong>[orm] </strong></span>Changes made to new, dirty and deleted
collections in
SessionExtension.before_flush() will take
effect for that flush.<a class="changeset-link headerlink reference internal" href="#change-2690aa1e520f493331cb61a6326c56c4">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.8-2"><span class="target" id="change-13623d94e18e8b3b92030ae525a030ec"><strong>[orm] </strong></span>Added label() method to InstrumentedAttribute
to establish forwards compatibility with 0.5.<a class="changeset-link headerlink reference internal" href="#change-13623d94e18e8b3b92030ae525a030ec">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.8-sql">
<h3>sql<a class="headerlink" href="#change-0.4.8-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.8-3"><span class="target" id="change-7fee195a017ac2215e80b38b868365e9"><strong>[sql] </strong></span>column.in_(someselect) can now be used as
a columns-clause expression without the subquery
bleeding into the FROM clause<a class="changeset-link headerlink reference internal" href="#change-7fee195a017ac2215e80b38b868365e9">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1074">#1074</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.8-mysql">
<h3>mysql<a class="headerlink" href="#change-0.4.8-mysql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.8-4"><span class="target" id="change-341091ae1d33ebc9cf02df1ca798516a"><strong>[mysql] </strong></span>Added MSMediumInteger type.<a class="changeset-link headerlink reference internal" href="#change-341091ae1d33ebc9cf02df1ca798516a">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1146">#1146</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.8-sqlite">
<h3>sqlite<a class="headerlink" href="#change-0.4.8-sqlite" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.8-5"><span class="target" id="change-67cbed9a85982025c41cb138787f8f47"><strong>[sqlite] </strong></span>Supplied a custom strftime() function which
handles dates before 1900.<a class="changeset-link headerlink reference internal" href="#change-67cbed9a85982025c41cb138787f8f47">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/968">#968</a></p>
</p>
</li>
<li><p id="change-0.4.8-6"><span class="target" id="change-7cabaeb41bcd3c0b9074d2704bca61c6"><strong>[sqlite] </strong></span>String&#8217;s (and Unicode&#8217;s, UnicodeText&#8217;s, etc.)
convert_unicode logic disabled in the sqlite dialect,
to adjust for pysqlite 2.5.0&#8217;s new requirement that
only Python unicode objects are accepted;
<a class="reference external" href="http://itsystementwicklung.de/pipermail/list-pysqlite/2008-March/000018.html">http://itsystementwicklung.de/pipermail/list-pysqlite/2008-March/000018.html</a><a class="changeset-link headerlink reference internal" href="#change-7cabaeb41bcd3c0b9074d2704bca61c6">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.8-oracle">
<h3>oracle<a class="headerlink" href="#change-0.4.8-oracle" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.8-7"><span class="target" id="change-c1ece36939d26084e64ecd6b3519de17"><strong>[oracle] </strong></span>has_sequence() now takes schema name into account<a class="changeset-link headerlink reference internal" href="#change-c1ece36939d26084e64ecd6b3519de17">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1155">#1155</a></p>
</p>
</li>
<li><p id="change-0.4.8-8"><span class="target" id="change-e15a9ca2c0e8d6a5e56b4fc468592e10"><strong>[oracle] </strong></span>added BFILE to the list of reflected types<a class="changeset-link headerlink reference internal" href="#change-e15a9ca2c0e8d6a5e56b4fc468592e10">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1121">#1121</a></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.4.7p1">
<h2>0.4.7p1<a class="headerlink" href="#change-0.4.7p1" title="Permalink to this headline">¶</a></h2>
Released: Thu Jul 31 2008<div class="section" id="change-0.4.7p1-orm">
<h3>orm<a class="headerlink" href="#change-0.4.7p1-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.7p1-0"><span class="target" id="change-8845ae575ef66cb76fb504e32b6b0e26"><strong>[orm] </strong></span>Added &#8220;add()&#8221; and &#8220;add_all()&#8221; to scoped_session
methods.  Workaround for 0.4.7:<div class="highlight-python"><div class="highlight"><pre><span class="kn">from</span> <span class="nn">sqlalchemy.orm.scoping</span> <span class="kn">import</span> <span class="n">ScopedSession</span><span class="p">,</span> <span class="n">instrument</span>
<span class="nb">setattr</span><span class="p">(</span><span class="n">ScopedSession</span><span class="p">,</span> <span class="s">&quot;add&quot;</span><span class="p">,</span> <span class="n">instrument</span><span class="p">(</span><span class="s">&quot;add&quot;</span><span class="p">))</span>
<span class="nb">setattr</span><span class="p">(</span><span class="n">ScopedSession</span><span class="p">,</span> <span class="s">&quot;add_all&quot;</span><span class="p">,</span> <span class="n">instrument</span><span class="p">(</span><span class="s">&quot;add_all&quot;</span><span class="p">))</span></pre></div>
</div>
<a class="changeset-link headerlink reference internal" href="#change-8845ae575ef66cb76fb504e32b6b0e26">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.7p1-1"><span class="target" id="change-8150f6bc3321b0e5940f462af85fea59"><strong>[orm] </strong></span>Fixed non-2.3 compatible usage of set() and generator
expression within relation().<a class="changeset-link headerlink reference internal" href="#change-8150f6bc3321b0e5940f462af85fea59">¶</a><p></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.4.7">
<h2>0.4.7<a class="headerlink" href="#change-0.4.7" title="Permalink to this headline">¶</a></h2>
Released: Sat Jul 26 2008<div class="section" id="change-0.4.7-orm">
<h3>orm<a class="headerlink" href="#change-0.4.7-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.7-0"><span class="target" id="change-96d6f0048a53ef8280afa881d15981e4"><strong>[orm] </strong></span>The contains() operator when used with many-to-many
will alias() the secondary (association) table so
that multiple contains() calls will not conflict
with each other<a class="changeset-link headerlink reference internal" href="#change-96d6f0048a53ef8280afa881d15981e4">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1058">#1058</a></p>
</p>
</li>
<li><p id="change-0.4.7-1"><span class="target" id="change-043f1fb5d04c32f0e61d5443a46b23e6"><strong>[orm] </strong></span>fixed bug preventing merge() from functioning in
conjunction with a comparable_property()<a class="changeset-link headerlink reference internal" href="#change-043f1fb5d04c32f0e61d5443a46b23e6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.7-2"><span class="target" id="change-2c1a9b40953961921023dfe557a4326c"><strong>[orm] </strong></span>the enable_typechecks=False setting on relation()
now only allows subtypes with inheriting mappers.
Totally unrelated types, or subtypes not set up with
mapper inheritance against the target mapper are
still not allowed.<a class="changeset-link headerlink reference internal" href="#change-2c1a9b40953961921023dfe557a4326c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.7-3"><span class="target" id="change-25f41185c603cbb10bde56a17f623433"><strong>[orm] </strong></span>Added is_active flag to Sessions to detect when
a transaction is in progress.  This
flag is always True with a &#8220;transactional&#8221;
(in 0.5 a non-&#8220;autocommit&#8221;) Session.<a class="changeset-link headerlink reference internal" href="#change-25f41185c603cbb10bde56a17f623433">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/976">#976</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.7-sql">
<h3>sql<a class="headerlink" href="#change-0.4.7-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.7-4"><span class="target" id="change-01ca8336bd39c6bb69577aad5d1d730e"><strong>[sql] </strong></span>Fixed bug when calling select([literal(&#8216;foo&#8217;)])
or select([bindparam(&#8216;foo&#8217;)]).<a class="changeset-link headerlink reference internal" href="#change-01ca8336bd39c6bb69577aad5d1d730e">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.7-schema">
<h3>schema<a class="headerlink" href="#change-0.4.7-schema" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.7-5"><span class="target" id="change-738cf5e3972ba6f7723c2c7acf6decc9"><strong>[schema] </strong></span>create_all(), drop_all(), create(), drop() all raise
an error if the table name or schema name contains
more characters than that dialect&#8217;s configured
character limit.  Some DB&#8217;s can handle too-long
table names during usage, and SQLA can handle this
as well. But various reflection/
checkfirst-during-create scenarios fail since we are
looking for the name within the DB&#8217;s catalog tables.<a class="changeset-link headerlink reference internal" href="#change-738cf5e3972ba6f7723c2c7acf6decc9">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/571">#571</a></p>
</p>
</li>
<li><p id="change-0.4.7-6"><span class="target" id="change-d85ff361d06db88fdb94e3932a143ad0"><strong>[schema] </strong></span>The index name generated when you say &#8220;index=True&#8221;
on a Column is truncated to the length appropriate
for the dialect. Additionally, an Index with a too-
long name cannot be explicitly dropped with
Index.drop(), similar to.<a class="changeset-link headerlink reference internal" href="#change-d85ff361d06db88fdb94e3932a143ad0">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/571">#571</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/820">#820</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.7-mysql">
<h3>mysql<a class="headerlink" href="#change-0.4.7-mysql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.7-7"><span class="target" id="change-0514aaebdc79f7f9ff25dca47dc4b225"><strong>[mysql] </strong></span>Added &#8216;CALL&#8217; to the list of SQL keywords which return
result rows.<a class="changeset-link headerlink reference internal" href="#change-0514aaebdc79f7f9ff25dca47dc4b225">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.7-oracle">
<h3>oracle<a class="headerlink" href="#change-0.4.7-oracle" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.7-8"><span class="target" id="change-aca4b41d0da66d4a3bd0e82c3a84cf5a"><strong>[oracle] </strong></span>Oracle get_default_schema_name() &#8220;normalizes&#8221; the name
before returning, meaning it returns a lower-case name
when the identifier is detected as case insensitive.<a class="changeset-link headerlink reference internal" href="#change-aca4b41d0da66d4a3bd0e82c3a84cf5a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.7-9"><span class="target" id="change-b47186d61937faba11d31de8eb03a326"><strong>[oracle] </strong></span>creating/dropping tables takes schema name into account
when searching for the existing table, so that tables
in other owner namespaces with the same name do not
conflict<a class="changeset-link headerlink reference internal" href="#change-b47186d61937faba11d31de8eb03a326">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/709">#709</a></p>
</p>
</li>
<li><p id="change-0.4.7-10"><span class="target" id="change-7568973ef20ea5f8c81322c145b9057f"><strong>[oracle] </strong></span>Cursors now have &#8220;arraysize&#8221; set to 50 by default on
them, the value of which is configurable using the
&#8220;arraysize&#8221; argument to create_engine() with the
Oracle dialect.  This to account for cx_oracle&#8217;s default
setting of &#8220;1&#8221;, which has the effect of many round trips
being sent to Oracle.  This actually works well in
conjunction with BLOB/CLOB-bound cursors, of which
there are any number available but only for the life of
that row request (so BufferedColumnRow is still needed,
but less so).<a class="changeset-link headerlink reference internal" href="#change-7568973ef20ea5f8c81322c145b9057f">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1062">#1062</a></p>
</p>
</li>
<li><p id="change-0.4.7-11"><span class="target" id="change-f9736a0cc3c4e162b300a782b7eca3f9"><strong>[oracle] </strong></span><dl class="docutils">
<dt>sqlite</dt>
<dd><ul class="first last">
<li>add SLFloat type, which matches the SQLite REAL
type affinity.  Previously, only SLNumeric was provided
which fulfills NUMERIC affinity, but that&#8217;s not the
same as REAL.</li>
</ul>
</dd>
</dl>
<a class="changeset-link headerlink reference internal" href="#change-f9736a0cc3c4e162b300a782b7eca3f9">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.7-misc">
<h3>misc<a class="headerlink" href="#change-0.4.7-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.7-12"><span class="target" id="change-62dc8bb9ccdb89ab5046417cb1d71934"><strong>[postgres] </strong></span>Repaired server_side_cursors to properly detect
text() clauses.<a class="changeset-link headerlink reference internal" href="#change-62dc8bb9ccdb89ab5046417cb1d71934">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.7-13"><span class="target" id="change-1d3294865f665d0cd4ea5f969d56a278"><strong>[postgres] </strong></span>Added PGCidr type.<a class="changeset-link headerlink reference internal" href="#change-1d3294865f665d0cd4ea5f969d56a278">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1092">#1092</a></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.4.6">
<h2>0.4.6<a class="headerlink" href="#change-0.4.6" title="Permalink to this headline">¶</a></h2>
Released: Sat May 10 2008<div class="section" id="change-0.4.6-orm">
<h3>orm<a class="headerlink" href="#change-0.4.6-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.6-0"><span class="target" id="change-e31fe2fb2fc3ae1652c5eec0dfa0d711"><strong>[orm] </strong></span>Fix to the recent relation() refactoring which fixes
exotic viewonly relations which join between local and
remote table multiple times, with a common column shared
between the joins.<a class="changeset-link headerlink reference internal" href="#change-e31fe2fb2fc3ae1652c5eec0dfa0d711">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-1"><span class="target" id="change-f75f03e2d2f84749c5a66468e9f1a35f"><strong>[orm] </strong></span>Also re-established viewonly relation() configurations
that join across multiple tables.<a class="changeset-link headerlink reference internal" href="#change-f75f03e2d2f84749c5a66468e9f1a35f">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-2"><span class="target" id="change-8eaf754f74a237ae2563356bab985463"><strong>[orm] </strong></span>Added experimental relation() flag to help with
primaryjoins across functions, etc.,
_local_remote_pairs=[tuples].  This complements a complex
primaryjoin condition allowing you to provide the
individual column pairs which comprise the relation&#8217;s
local and remote sides.  Also improved lazy load SQL
generation to handle placing bind params inside of
functions and other expressions.  (partial progress
towards)<a class="changeset-link headerlink reference internal" href="#change-8eaf754f74a237ae2563356bab985463">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/610">#610</a></p>
</p>
</li>
<li><p id="change-0.4.6-3"><span class="target" id="change-cc35ebaf57ac910c9fbb17727e48eac6"><strong>[orm] </strong></span>repaired single table inheritance such that you
can single-table inherit from a joined-table inherting
mapper without issue.<a class="changeset-link headerlink reference internal" href="#change-cc35ebaf57ac910c9fbb17727e48eac6">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1036">#1036</a></p>
</p>
</li>
<li><p id="change-0.4.6-4"><span class="target" id="change-0ff3c2bd9a30aeb035bd70efcc0b5bb4"><strong>[orm] </strong></span>Fixed &#8220;concatenate tuple&#8221; bug which could occur with
Query.order_by() if clause adaption had taken place.<a class="changeset-link headerlink reference internal" href="#change-0ff3c2bd9a30aeb035bd70efcc0b5bb4">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1027">#1027</a></p>
</p>
</li>
<li><p id="change-0.4.6-5"><span class="target" id="change-9e5d19c9631cbe865600f279d1869f33"><strong>[orm] </strong></span>Removed ancient assertion that mapped selectables require
&#8220;alias names&#8221; - the mapper creates its own alias now if
none is present.  Though in this case you need to use the
class, not the mapped selectable, as the source of column
attributes - so a warning is still issued.<a class="changeset-link headerlink reference internal" href="#change-9e5d19c9631cbe865600f279d1869f33">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-6"><span class="target" id="change-dde11f9e942ea94174168e9c076316e5"><strong>[orm] </strong></span>fixes to the &#8220;exists&#8221; function involving inheritance (any(),
has(), ~contains()); the full target join will be rendered
into the EXISTS clause for relations that link to subclasses.<a class="changeset-link headerlink reference internal" href="#change-dde11f9e942ea94174168e9c076316e5">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-7"><span class="target" id="change-104376c27707b3a37374971243e2423c"><strong>[orm] </strong></span>restored usage of append_result() extension method for primary
query rows, when the extension is present and only a single-
entity result is being returned.<a class="changeset-link headerlink reference internal" href="#change-104376c27707b3a37374971243e2423c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-8"><span class="target" id="change-302298aee07ec1d1aac10fe144468a7a"><strong>[orm] </strong></span>Also re-established viewonly relation() configurations that
join across multiple tables.<a class="changeset-link headerlink reference internal" href="#change-302298aee07ec1d1aac10fe144468a7a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-9"><span class="target" id="change-6f570f7ef26a5a9b11b822a63353d962"><strong>[orm] </strong></span>removed ancient assertion that mapped selectables require
&#8220;alias names&#8221; - the mapper creates its own alias now if
none is present.  Though in this case you need to use
the class, not the mapped selectable, as the source of
column attributes - so a warning is still issued.<a class="changeset-link headerlink reference internal" href="#change-6f570f7ef26a5a9b11b822a63353d962">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-10"><span class="target" id="change-c3ba9d4b644bae5e507a69b17fad45b3"><strong>[orm] </strong></span>refined mapper._save_obj() which was unnecessarily calling
__ne__() on scalar values during flush<a class="changeset-link headerlink reference internal" href="#change-c3ba9d4b644bae5e507a69b17fad45b3">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1015">#1015</a></p>
</p>
</li>
<li><p id="change-0.4.6-11"><span class="target" id="change-71081f223b7ec2f83fe88a95bb74c96b"><strong>[orm] </strong></span>added a feature to eager loading whereby subqueries set
as column_property() with explicit label names (which is not
necessary, btw) will have the label anonymized when
the instance is part of the eager join, to prevent
conflicts with a subquery or column of the same name
on the parent object.<a class="changeset-link headerlink reference internal" href="#change-71081f223b7ec2f83fe88a95bb74c96b">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1019">#1019</a></p>
</p>
</li>
<li><p id="change-0.4.6-12"><span class="target" id="change-1e0e2c1b7d8337b2961576a28f6152dd"><strong>[orm] </strong></span>set-based collections |=, -=, ^= and &amp;= are stricter about
their operands and only operate on sets, frozensets or
subclasses of the collection type. Previously, they would
accept any duck-typed set.<a class="changeset-link headerlink reference internal" href="#change-1e0e2c1b7d8337b2961576a28f6152dd">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-13"><span class="target" id="change-b1518ae6a45f510afd237e22960d4dbc"><strong>[orm] </strong></span>added an example dynamic_dict/dynamic_dict.py, illustrating
a simple way to place dictionary behavior on top of
a dynamic_loader.<a class="changeset-link headerlink reference internal" href="#change-b1518ae6a45f510afd237e22960d4dbc">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.6-sql">
<h3>sql<a class="headerlink" href="#change-0.4.6-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.6-14"><span class="target" id="change-c0a253c2a3ac8a52b71f9074c836045e"><strong>[sql] </strong></span>Added COLLATE support via the .collate(&lt;collation&gt;)
expression operator and collate(&lt;expr&gt;, &lt;collation&gt;) sql
function.<a class="changeset-link headerlink reference internal" href="#change-c0a253c2a3ac8a52b71f9074c836045e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-15"><span class="target" id="change-3425affd500ef60da0ceda4319ff76ac"><strong>[sql] </strong></span>Fixed bug with union() when applied to non-Table connected
select statements<a class="changeset-link headerlink reference internal" href="#change-3425affd500ef60da0ceda4319ff76ac">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-16"><span class="target" id="change-c946f492d8c12da19c9976c66867241a"><strong>[sql] </strong></span>improved behavior of text() expressions when used as
FROM clauses, such as select().select_from(text(&#8220;sometext&#8221;))<a class="changeset-link headerlink reference internal" href="#change-c946f492d8c12da19c9976c66867241a">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1014">#1014</a></p>
</p>
</li>
<li><p id="change-0.4.6-17"><span class="target" id="change-79b0f66b8b318392d68b1e09fb21dbad"><strong>[sql] </strong></span>Column.copy() respects the value of &#8220;autoincrement&#8221;,
fixes usage with Migrate<a class="changeset-link headerlink reference internal" href="#change-79b0f66b8b318392d68b1e09fb21dbad">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1021">#1021</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.6-mssql">
<h3>mssql<a class="headerlink" href="#change-0.4.6-mssql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.6-18"><span class="target" id="change-4bf92261ee5df21cc151f29b57009c2d"><strong>[mssql] </strong></span>Added &#8220;odbc_autotranslate&#8221; parameter to engine / dburi
parameters. Any given string will be passed through to the
ODBC connection string as:<blockquote>
<div>&#8220;AutoTranslate=%s&#8221; % odbc_autotranslate</div></blockquote>
<a class="changeset-link headerlink reference internal" href="#change-4bf92261ee5df21cc151f29b57009c2d">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1005">#1005</a></p>
</p>
</li>
<li><p id="change-0.4.6-19"><span class="target" id="change-c27df151a64a19d159ffaed249f8c5ec"><strong>[mssql] </strong></span>Added &#8220;odbc_options&#8221; parameter to engine / dburi
parameters. The given string is simply appended to the
SQLAlchemy-generated odbc connection string.<p>This should obviate the need of adding a myriad of ODBC
options in the future.</p>
<a class="changeset-link headerlink reference internal" href="#change-c27df151a64a19d159ffaed249f8c5ec">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.6-firebird">
<h3>firebird<a class="headerlink" href="#change-0.4.6-firebird" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.6-20"><span class="target" id="change-3135f866ba259ae39feef5c8fd6e9dc8"><strong>[firebird] </strong></span>Handle the &#8220;SUBSTRING(:string FROM :start FOR :length)&#8221;
builtin.<a class="changeset-link headerlink reference internal" href="#change-3135f866ba259ae39feef5c8fd6e9dc8">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.6-misc">
<h3>misc<a class="headerlink" href="#change-0.4.6-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.6-21"><span class="target" id="change-6e72bcfc5ea35d0926f998977a8d8f6b"><strong>[declarative] [extension] </strong></span>Joined table inheritance mappers use a slightly relaxed
function to create the &#8220;inherit condition&#8221; to the parent
table, so that other foreign keys to not-yet-declared
Table objects don&#8217;t trigger an error.<a class="changeset-link headerlink reference internal" href="#change-6e72bcfc5ea35d0926f998977a8d8f6b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-22"><span class="target" id="change-7cf86b76b69093e8eaf193d8766bd8ce"><strong>[declarative] [extension] </strong></span>fixed reentrant mapper compile hang when
a declared attribute is used within ForeignKey,
ie. ForeignKey(MyOtherClass.someattribute)<a class="changeset-link headerlink reference internal" href="#change-7cf86b76b69093e8eaf193d8766bd8ce">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-23"><span class="target" id="change-bd1c9b334fbda8764b59adae68a98d7d"><strong>[engines] </strong></span>Pool listeners can now be provided as a dictionary of
callables or a (possibly partial) duck-type of
PoolListener, your choice.<a class="changeset-link headerlink reference internal" href="#change-bd1c9b334fbda8764b59adae68a98d7d">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-24"><span class="target" id="change-1026db7afd8b57d4eb7e9698f6304feb"><strong>[engines] </strong></span>added &#8220;rollback_returned&#8221; option to Pool which will
disable the rollback() issued when connections are
returned.  This flag is only safe to use with a database
which does not support transactions (i.e. MySQL/MyISAM).<a class="changeset-link headerlink reference internal" href="#change-1026db7afd8b57d4eb7e9698f6304feb">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.6-25"><span class="target" id="change-68c00352100f06ff96b4b08752086944"><strong>[ext] </strong></span>set-based association proxies |=, -=, ^= and &amp;= are
stricter about their operands and only operate on sets,
frozensets or other association proxies. Previously, they
would accept any duck-typed set.<a class="changeset-link headerlink reference internal" href="#change-68c00352100f06ff96b4b08752086944">¶</a><p></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.4.5">
<h2>0.4.5<a class="headerlink" href="#change-0.4.5" title="Permalink to this headline">¶</a></h2>
Released: Fri Apr 04 2008<div class="section" id="change-0.4.5-orm">
<h3>orm<a class="headerlink" href="#change-0.4.5-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.5-0"><span class="target" id="change-2c9bdeacf621a1e5c68e65432e78acc9"><strong>[orm] </strong></span>A small change in behavior to session.merge() - existing
objects are checked for based on primary key attributes, not
necessarily _instance_key.  So the widely requested
capability, that:<blockquote>
<div>x = MyObject(id=1)
x = sess.merge(x)</div></blockquote>
<p>will in fact load MyObject with id #1 from the database if
present, is now available.  merge() still copies the state
of the given object to the persistent one, so an example
like the above would typically have copied &#8220;None&#8221; from all
attributes of &#8220;x&#8221; onto the persistent copy.  These can be
reverted using session.expire(x).</p>
<a class="changeset-link headerlink reference internal" href="#change-2c9bdeacf621a1e5c68e65432e78acc9">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-1"><span class="target" id="change-ecb686988dd36c2668f8c1f13ab0b426"><strong>[orm] </strong></span>Also fixed behavior in merge() whereby collection elements
present on the destination but not the merged collection
were not being removed from the destination.<a class="changeset-link headerlink reference internal" href="#change-ecb686988dd36c2668f8c1f13ab0b426">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-2"><span class="target" id="change-8c3e6ca94ae7018ad418fb8989b56c18"><strong>[orm] </strong></span>Added a more aggressive check for &#8220;uncompiled mappers&#8221;,
helps particularly with declarative layer<a class="changeset-link headerlink reference internal" href="#change-8c3e6ca94ae7018ad418fb8989b56c18">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/995">#995</a></p>
</p>
</li>
<li><p id="change-0.4.5-3"><span class="target" id="change-92147b4d8f5dc129bb6af919988b1578"><strong>[orm] </strong></span>The methodology behind &#8220;primaryjoin&#8221;/&#8221;secondaryjoin&#8221; has
been refactored.  Behavior should be slightly more
intelligent, primarily in terms of error messages which
have been pared down to be more readable.  In a slight
number of scenarios it can better resolve the correct
foreign key than before.<a class="changeset-link headerlink reference internal" href="#change-92147b4d8f5dc129bb6af919988b1578">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-4"><span class="target" id="change-e9af0076f84f16dc139143d25c2481c4"><strong>[orm] </strong></span>Added comparable_property(), adds query Comparator
behavior to regular, unmanaged Python properties<a class="changeset-link headerlink reference internal" href="#change-e9af0076f84f16dc139143d25c2481c4">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-5"><span class="target" id="change-9a3c3752fa2fda67a4fbb703fcd690ab"><strong>[orm] [&#8216;machines&#8217;] [Company.employees.of_type(Engineer)] </strong></span>the functionality of query.with_polymorphic() has
been added to mapper() as a configuration option.<dl class="docutils">
<dt>It&#8217;s set via several forms:</dt>
<dd>with_polymorphic=&#8217;*&#8217;
with_polymorphic=[mappers]
with_polymorphic=(&#8216;*&#8217;, selectable)
with_polymorphic=([mappers], selectable)</dd>
</dl>
<p>This controls the default polymorphic loading strategy
for inherited mappers. When a selectable is not given,
outer joins are created for all joined-table inheriting
mappers requested. Note that the auto-create of joins
is not compatible with concrete table inheritance.</p>
<p>The existing select_table flag on mapper() is now
deprecated and is synonymous with
with_polymorphic(&#8216;*&#8217;, select_table).  Note that the
underlying &#8220;guts&#8221; of select_table have been
completely removed and replaced with the newer,
more flexible approach.</p>
<p>The new approach also automatically allows eager loads
to work for subclasses, if they are present, for
example:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">sess</span><span class="o">.</span><span class="n">query</span><span class="p">(</span><span class="n">Company</span><span class="p">)</span><span class="o">.</span><span class="n">options</span><span class="p">(</span>
 <span class="n">eagerload_all</span><span class="p">(</span>
<span class="p">))</span></pre></div>
</div>
<p>to load Company objects, their employees, and the
&#8216;machines&#8217; collection of employees who happen to be
Engineers. A &#8220;with_polymorphic&#8221; Query option should be
introduced soon as well which would allow per-Query
control of with_polymorphic() on relations.</p>
<a class="changeset-link headerlink reference internal" href="#change-9a3c3752fa2fda67a4fbb703fcd690ab">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-6"><span class="target" id="change-8b57d2ed0d6bbe58c75f64223341c1c8"><strong>[orm] </strong></span>added two &#8220;experimental&#8221; features to Query,
&#8220;experimental&#8221; in that their specific name/behavior
is not carved in stone just yet:  _values() and
_from_self().  We&#8217;d like feedback on these.<ul>
<li>_values(*columns) is given a list of column
expressions, and returns a new Query that only
returns those columns. When evaluated, the return
value is a list of tuples just like when using
add_column() or add_entity(), the only difference is
that &#8220;entity zero&#8221;, i.e. the mapped class, is not
included in the results. This means it finally makes
sense to use group_by() and having() on Query, which
have been sitting around uselessly until now.<p>A future change to this method may include that its
ability to join, filter and allow other options not
related to a &#8220;resultset&#8221; are removed, so the feedback
we&#8217;re looking for is how people want to use
_values()...i.e. at the very end, or do people prefer
to continue generating after it&#8217;s called.</p>
</li>
<li>_from_self() compiles the SELECT statement for the
Query (minus any eager loaders), and returns a new
Query that selects from that SELECT. So basically you
can query from a Query without needing to extract the
SELECT statement manually. This gives meaning to
operations like query[3:5]._from_self().filter(some
criterion). There&#8217;s not much controversial here
except that you can quickly create highly nested
queries that are less efficient, and we want feedback
on the naming choice.</li>
</ul>
<a class="changeset-link headerlink reference internal" href="#change-8b57d2ed0d6bbe58c75f64223341c1c8">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-7"><span class="target" id="change-2deb85fd835bde751f8cfd2461527a8e"><strong>[orm] </strong></span>query.order_by() and query.group_by() will accept
multiple arguments using *args (like select()
already does).<a class="changeset-link headerlink reference internal" href="#change-2deb85fd835bde751f8cfd2461527a8e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-8"><span class="target" id="change-86eb8853972534a7dafcbff8b9986332"><strong>[orm] </strong></span>Added some convenience descriptors to Query:
query.statement returns the full SELECT construct,
query.whereclause returns just the WHERE part of the
SELECT construct.<a class="changeset-link headerlink reference internal" href="#change-86eb8853972534a7dafcbff8b9986332">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-9"><span class="target" id="change-aa4cb730a2e43a1ad4e1443ec05973fe"><strong>[orm] </strong></span>Fixed/covered case when using a False/0 value as a
polymorphic discriminator.<a class="changeset-link headerlink reference internal" href="#change-aa4cb730a2e43a1ad4e1443ec05973fe">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-10"><span class="target" id="change-02cba4fb2cbfa1275190cc9ed35f1d16"><strong>[orm] </strong></span>Fixed bug which was preventing synonym() attributes from
being used with inheritance<a class="changeset-link headerlink reference internal" href="#change-02cba4fb2cbfa1275190cc9ed35f1d16">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-11"><span class="target" id="change-c58703687f6e5690fb29d5c65bec8f2e"><strong>[orm] </strong></span>Fixed SQL function truncation of trailing underscores<a class="changeset-link headerlink reference internal" href="#change-c58703687f6e5690fb29d5c65bec8f2e">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/996">#996</a></p>
</p>
</li>
<li><p id="change-0.4.5-12"><span class="target" id="change-4d790ba27407b3f2c5e5442e941ee625"><strong>[orm] </strong></span>When attributes are expired on a pending instance, an
error will not be raised when the &#8220;refresh&#8221; action is
triggered and no result is found.<a class="changeset-link headerlink reference internal" href="#change-4d790ba27407b3f2c5e5442e941ee625">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-13"><span class="target" id="change-ee82467594e923772bba0a03199886e6"><strong>[orm] </strong></span>Session.execute can now find binds from metadata<a class="changeset-link headerlink reference internal" href="#change-ee82467594e923772bba0a03199886e6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-14"><span class="target" id="change-79438d10e98c888cce0932f09a42a26f"><strong>[orm] </strong></span>Adjusted the definition of &#8220;self-referential&#8221; to be any
two mappers with a common parent (this affects whether or
not aliased=True is required when joining with Query).<a class="changeset-link headerlink reference internal" href="#change-79438d10e98c888cce0932f09a42a26f">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-15"><span class="target" id="change-f896c87995fe90330fd02cbf21c852bf"><strong>[orm] </strong></span>Made some fixes to the &#8220;from_joinpoint&#8221; argument to
query.join() so that if the previous join was aliased and
this one isn&#8217;t, the join still happens successfully.<a class="changeset-link headerlink reference internal" href="#change-f896c87995fe90330fd02cbf21c852bf">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-16"><span class="target" id="change-721ade134b0684d73d040e1d5c61feb9"><strong>[orm] </strong></span><dl class="docutils">
<dt>Assorted &#8220;cascade deletes&#8221; fixes:</dt>
<dd><ul class="first last">
<li>Fixed &#8220;cascade delete&#8221; operation of dynamic relations,
which had only been implemented for foreign-key
nulling behavior in 0.4.2 and not actual cascading
deletes</li>
<li>Delete cascade without delete-orphan cascade on a
many-to-one will not delete orphans which were
disconnected from the parent before session.delete()
is called on the parent (one-to-many already had
this).</li>
<li>Delete cascade with delete-orphan will delete orphans
whether or not it remains attached to its also-deleted
parent.</li>
<li>delete-orphan casacde is properly detected on relations
that are present on superclasses when using inheritance.</li>
</ul>
</dd>
</dl>
<a class="changeset-link headerlink reference internal" href="#change-721ade134b0684d73d040e1d5c61feb9">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/895">#895</a></p>
</p>
</li>
<li><p id="change-0.4.5-17"><span class="target" id="change-510cb165c89c094b6cc2b5db3787b360"><strong>[orm] </strong></span>Fixed order_by calculation in Query to properly alias
mapper-config&#8217;ed order_by when using select_from()<a class="changeset-link headerlink reference internal" href="#change-510cb165c89c094b6cc2b5db3787b360">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-18"><span class="target" id="change-94f2275e47afba73d8f37f7572917466"><strong>[orm] </strong></span>Refactored the diffing logic that kicks in when replacing
one collection with another into collections.bulk_replace,
useful to anyone building multi-level collections.<a class="changeset-link headerlink reference internal" href="#change-94f2275e47afba73d8f37f7572917466">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-19"><span class="target" id="change-67d9d0b8806c805bf6baa1e8ed8dd735"><strong>[orm] </strong></span>Cascade traversal algorithm converted from recursive to
iterative to support deep object graphs.<a class="changeset-link headerlink reference internal" href="#change-67d9d0b8806c805bf6baa1e8ed8dd735">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.5-sql">
<h3>sql<a class="headerlink" href="#change-0.4.5-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.5-20"><span class="target" id="change-86518949b9a04cceb5d9eef390e32768"><strong>[sql] </strong></span>schema-qualified tables now will place the schemaname
ahead of the tablename in all column expressions as well
as when generating column labels.  This prevents cross-
schema name collisions in all cases<a class="changeset-link headerlink reference internal" href="#change-86518949b9a04cceb5d9eef390e32768">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/999">#999</a></p>
</p>
</li>
<li><p id="change-0.4.5-21"><span class="target" id="change-3bb024dda072d0b61145352051204bfc"><strong>[sql] </strong></span>can now allow selects which correlate all FROM clauses
and have no FROM themselves.  These are typically
used in a scalar context, i.e. SELECT x, (SELECT x WHERE y)
FROM table.  Requires explicit correlate() call.<a class="changeset-link headerlink reference internal" href="#change-3bb024dda072d0b61145352051204bfc">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-22"><span class="target" id="change-b98de44bd2b73a6b57d74988b3c71e30"><strong>[sql] </strong></span>&#8216;name&#8217; is no longer a required constructor argument for
Column().  It (and .key) may now be deferred until the
column is added to a Table.<a class="changeset-link headerlink reference internal" href="#change-b98de44bd2b73a6b57d74988b3c71e30">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-23"><span class="target" id="change-d248403840e6a2e0c66b497f9dfd1f44"><strong>[sql] </strong></span>like(), ilike(), contains(), startswith(), endswith() take
an optional keyword argument &#8220;escape=&lt;somestring&gt;&#8221;, which
is set as the escape character using the syntax &#8220;x LIKE y
ESCAPE &#8216;&lt;somestring&gt;&#8217;&#8221;.<a class="changeset-link headerlink reference internal" href="#change-d248403840e6a2e0c66b497f9dfd1f44">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/791">#791</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/993">#993</a></p>
</p>
</li>
<li><p id="change-0.4.5-24"><span class="target" id="change-7f02bb91d56e815b7b631be7c7323f79"><strong>[sql] </strong></span>random() is now a generic sql function and will compile to
the database&#8217;s random implementation, if any.<a class="changeset-link headerlink reference internal" href="#change-7f02bb91d56e815b7b631be7c7323f79">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-25"><span class="target" id="change-a08969f0ce6ab98d21abf6e35cebaa1d"><strong>[sql] </strong></span>update().values() and insert().values() take keyword
arguments.<a class="changeset-link headerlink reference internal" href="#change-a08969f0ce6ab98d21abf6e35cebaa1d">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-26"><span class="target" id="change-085c87879e1a4fb0d6206454a950a1ce"><strong>[sql] </strong></span>Fixed an issue in select() regarding its generation of
FROM clauses, in rare circumstances two clauses could be
produced when one was intended to cancel out the other.
Some ORM queries with lots of eager loads might have seen
this symptom.<a class="changeset-link headerlink reference internal" href="#change-085c87879e1a4fb0d6206454a950a1ce">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-27"><span class="target" id="change-fb0089247521d91d7d7bb262cb411a64"><strong>[sql] </strong></span>The case() function now also takes a dictionary as its
whens parameter.  It also interprets the &#8220;THEN&#8221;
expressions as values by default, meaning case([(x==y,
&#8220;foo&#8221;)]) will interpret &#8220;foo&#8221; as a bound value, not a SQL
expression.  use text(expr) for literal SQL expressions in
this case.  For the criterion itself, these may be literal
strings only if the &#8220;value&#8221; keyword is present, otherwise
SA will force explicit usage of either text() or
literal().<a class="changeset-link headerlink reference internal" href="#change-fb0089247521d91d7d7bb262cb411a64">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.5-mysql">
<h3>mysql<a class="headerlink" href="#change-0.4.5-mysql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.5-28"><span class="target" id="change-c22f3fdf2cdf167542da47643dfc68ab"><strong>[mysql] </strong></span>The connection.info keys the dialect uses to cache server
settings have changed and are now namespaced.<a class="changeset-link headerlink reference internal" href="#change-c22f3fdf2cdf167542da47643dfc68ab">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.5-mssql">
<h3>mssql<a class="headerlink" href="#change-0.4.5-mssql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.5-29"><span class="target" id="change-c08d60f2100e58e57023f2ea19c2c241"><strong>[mssql] </strong></span>Reflected tables will now automatically load other tables
which are referenced by Foreign keys in the auto-loaded
table,.<a class="changeset-link headerlink reference internal" href="#change-c08d60f2100e58e57023f2ea19c2c241">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/979">#979</a></p>
</p>
</li>
<li><p id="change-0.4.5-30"><span class="target" id="change-bd1313c4dc35f7c1f3a1380578f9c1e5"><strong>[mssql] </strong></span>Added executemany check to skip identity fetch,.<a class="changeset-link headerlink reference internal" href="#change-bd1313c4dc35f7c1f3a1380578f9c1e5">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/916">#916</a></p>
</p>
</li>
<li><p id="change-0.4.5-31"><span class="target" id="change-80eac4c5f370dd297d4e3cafbad27a96"><strong>[mssql] </strong></span>Added stubs for small date type.<a class="changeset-link headerlink reference internal" href="#change-80eac4c5f370dd297d4e3cafbad27a96">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/884">#884</a></p>
</p>
</li>
<li><p id="change-0.4.5-32"><span class="target" id="change-171f3ad2f4dba5fde36680baa1dc3875"><strong>[mssql] </strong></span>Added a new &#8216;driver&#8217; keyword parameter for the pyodbc dialect.
Will substitute into the ODBC connection string if given,
defaults to &#8216;SQL Server&#8217;.<a class="changeset-link headerlink reference internal" href="#change-171f3ad2f4dba5fde36680baa1dc3875">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-33"><span class="target" id="change-81777f583ac945b32caaf0ee3aee5e0f"><strong>[mssql] </strong></span>Added a new &#8216;max_identifier_length&#8217; keyword parameter for
the pyodbc dialect.<a class="changeset-link headerlink reference internal" href="#change-81777f583ac945b32caaf0ee3aee5e0f">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-34"><span class="target" id="change-4a7ee1c669796dd4516a38bfb42b52ff"><strong>[mssql] </strong></span>Improvements to pyodbc + Unix. If you couldn&#8217;t get that
combination to work before, please try again.<a class="changeset-link headerlink reference internal" href="#change-4a7ee1c669796dd4516a38bfb42b52ff">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.5-oracle">
<h3>oracle<a class="headerlink" href="#change-0.4.5-oracle" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.5-35"><span class="target" id="change-34b821a274800e05021e8fb2396ee13c"><strong>[oracle] </strong></span>The &#8220;owner&#8221; keyword on Table is now deprecated, and is
exactly synonymous with the &#8220;schema&#8221; keyword.  Tables can
now be reflected with alternate &#8220;owner&#8221; attributes,
explicitly stated on the Table object or not using
&#8220;schema&#8221;.<a class="changeset-link headerlink reference internal" href="#change-34b821a274800e05021e8fb2396ee13c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-36"><span class="target" id="change-fa31cab3a0232df3b107e07f3910f759"><strong>[oracle] </strong></span>All of the &#8220;magic&#8221; searching for synonyms, DBLINKs etc.
during table reflection are disabled by default unless you
specify &#8220;oracle_resolve_synonyms=True&#8221; on the Table
object.  Resolving synonyms necessarily leads to some
messy guessing which we&#8217;d rather leave off by default.
When the flag is set, tables and related tables will be
resolved against synonyms in all cases, meaning if a
synonym exists for a particular table, reflection will use
it when reflecting related tables.  This is stickier
behavior than before which is why it&#8217;s off by default.<a class="changeset-link headerlink reference internal" href="#change-fa31cab3a0232df3b107e07f3910f759">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-37"><span class="target" id="change-34b821a274800e05021e8fb2396ee13c"><strong>[oracle] </strong></span>The &#8220;owner&#8221; keyword on Table is now deprecated, and is
exactly synonymous with the &#8220;schema&#8221; keyword.  Tables can
now be reflected with alternate &#8220;owner&#8221; attributes,
explicitly stated on the Table object or not using
&#8220;schema&#8221;.<a class="changeset-link headerlink reference internal" href="#change-34b821a274800e05021e8fb2396ee13c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-38"><span class="target" id="change-fa31cab3a0232df3b107e07f3910f759"><strong>[oracle] </strong></span>All of the &#8220;magic&#8221; searching for synonyms, DBLINKs etc.
during table reflection are disabled by default unless you
specify &#8220;oracle_resolve_synonyms=True&#8221; on the Table
object.  Resolving synonyms necessarily leads to some
messy guessing which we&#8217;d rather leave off by default.
When the flag is set, tables and related tables will be
resolved against synonyms in all cases, meaning if a
synonym exists for a particular table, reflection will use
it when reflecting related tables.  This is stickier
behavior than before which is why it&#8217;s off by default.<a class="changeset-link headerlink reference internal" href="#change-fa31cab3a0232df3b107e07f3910f759">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.5-misc">
<h3>misc<a class="headerlink" href="#change-0.4.5-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.5-39"><span class="target" id="change-f5fc92b64655f9897a0758861123e3dc"><strong>[declarative] [extension] </strong></span>The &#8220;synonym&#8221; function is now directly usable with
&#8220;declarative&#8221;.  Pass in the decorated property using the
&#8220;descriptor&#8221; keyword argument, e.g.: somekey =
synonym(&#8216;_somekey&#8217;, descriptor=property(g, s))<a class="changeset-link headerlink reference internal" href="#change-f5fc92b64655f9897a0758861123e3dc">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-40"><span class="target" id="change-1c8b78acb5469017fa9165603b123205"><strong>[declarative] [extension] </strong></span>The &#8220;deferred&#8221; function is usable with &#8220;declarative&#8221;.
Simplest usage is to declare deferred and Column together,
e.g.: data = deferred(Column(Text))<a class="changeset-link headerlink reference internal" href="#change-1c8b78acb5469017fa9165603b123205">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-41"><span class="target" id="change-92af8493880c77b027ad568e9fea4a4e"><strong>[declarative] [extension] </strong></span>Declarative also gained &#64;synonym_for(...) and
&#64;comparable_using(...), front-ends for synonym and
comparable_property.<a class="changeset-link headerlink reference internal" href="#change-92af8493880c77b027ad568e9fea4a4e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-42"><span class="target" id="change-2e0484c6c3c3b159d5dce42185fd83af"><strong>[declarative] [extension] </strong></span>Improvements to mapper compilation when using declarative;
already-compiled mappers will still trigger compiles of
other uncompiled mappers when used<a class="changeset-link headerlink reference internal" href="#change-2e0484c6c3c3b159d5dce42185fd83af">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/995">#995</a></p>
</p>
</li>
<li><p id="change-0.4.5-43"><span class="target" id="change-ab9ef5d41c92c8b3e3cf08569f4910fe"><strong>[declarative] [extension] </strong></span>Declarative will complete setup for Columns lacking names,
allows a more DRY syntax.<blockquote>
<div><dl class="docutils">
<dt>class Foo(Base):</dt>
<dd>__tablename__ = &#8216;foos&#8217;
id = Column(Integer, primary_key=True)</dd>
</dl>
</div></blockquote>
<a class="changeset-link headerlink reference internal" href="#change-ab9ef5d41c92c8b3e3cf08569f4910fe">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-44"><span class="target" id="change-47dc505eeee78f8e4a2036cd9ec269e8"><strong>[declarative] [extension] </strong></span>inheritance in declarative can be disabled when sending
&#8220;inherits=None&#8221; to __mapper_args__.<a class="changeset-link headerlink reference internal" href="#change-47dc505eeee78f8e4a2036cd9ec269e8">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-45"><span class="target" id="change-d23aa381b803d1871f4a8e5090558669"><strong>[declarative] [extension] </strong></span>declarative_base() takes optional kwarg &#8220;mapper&#8221;, which
is any callable/class/method that produces a mapper,
such as declarative_base(mapper=scopedsession.mapper).
This property can also be set on individual declarative
classes using the &#8220;__mapper_cls__&#8221; property.<a class="changeset-link headerlink reference internal" href="#change-d23aa381b803d1871f4a8e5090558669">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.5-46"><span class="target" id="change-b6f64ab87a83752e5c837be7a29259da"><strong>[postgres] </strong></span>Got PG server side cursors back into shape, added fixed
unit tests as part of the default test suite.  Added
better uniqueness to the cursor ID<a class="changeset-link headerlink reference internal" href="#change-b6f64ab87a83752e5c837be7a29259da">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1001">#1001</a></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.4.4">
<h2>0.4.4<a class="headerlink" href="#change-0.4.4" title="Permalink to this headline">¶</a></h2>
Released: Wed Mar 12 2008<div class="section" id="change-0.4.4-orm">
<h3>orm<a class="headerlink" href="#change-0.4.4-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.4-0"><span class="target" id="change-26d54c6302b65f9de74b3cf2e3a5d512"><strong>[orm] </strong></span>any(), has(), contains(), ~contains(), attribute level ==
and != now work properly with self-referential relations -
the clause inside the EXISTS is aliased on the &#8220;remote&#8221;
side to distinguish it from the parent table.  This
applies to single table self-referential as well as
inheritance-based self-referential.<a class="changeset-link headerlink reference internal" href="#change-26d54c6302b65f9de74b3cf2e3a5d512">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-1"><span class="target" id="change-57e9f7b0e107e07a75467467df6a2d2d"><strong>[orm] </strong></span>Repaired behavior of == and != operators at the relation()
level when compared against NULL for one-to-one relations<a class="changeset-link headerlink reference internal" href="#change-57e9f7b0e107e07a75467467df6a2d2d">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/985">#985</a></p>
</p>
</li>
<li><p id="change-0.4.4-2"><span class="target" id="change-6b0aad45ce1f29ad9158b8009df12108"><strong>[orm] </strong></span>Fixed bug whereby session.expire() attributes were not
loading on an polymorphically-mapped instance mapped by a
select_table mapper.<a class="changeset-link headerlink reference internal" href="#change-6b0aad45ce1f29ad9158b8009df12108">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-3"><span class="target" id="change-4a735ee740f2ee53043439ca2374e2bd"><strong>[orm] </strong></span>Added query.with_polymorphic() - specifies a list of
classes which descend from the base class, which will be
added to the FROM clause of the query.  Allows subclasses
to be used within filter() criterion as well as eagerly
loads the attributes of those subclasses.<a class="changeset-link headerlink reference internal" href="#change-4a735ee740f2ee53043439ca2374e2bd">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-4"><span class="target" id="change-260b0a787300d2b7ce427e108dcbf68d"><strong>[orm] </strong></span>Your cries have been heard: removing a pending item from
an attribute or collection with delete-orphan expunges the
item from the session; no FlushError is raised.  Note that
if you session.save()&#8217;ed the pending item explicitly, the
attribute/collection removal still knocks it out.<a class="changeset-link headerlink reference internal" href="#change-260b0a787300d2b7ce427e108dcbf68d">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-5"><span class="target" id="change-6af8ad8ff1bc8b70b4267a621b75aa56"><strong>[orm] </strong></span>session.refresh() and session.expire() raise an error when
called on instances which are not persistent within the
session<a class="changeset-link headerlink reference internal" href="#change-6af8ad8ff1bc8b70b4267a621b75aa56">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-6"><span class="target" id="change-39aac3cdd599e8bac76663700e034c9e"><strong>[orm] </strong></span>Fixed potential generative bug when the same Query was
used to generate multiple Query objects using join().<a class="changeset-link headerlink reference internal" href="#change-39aac3cdd599e8bac76663700e034c9e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-7"><span class="target" id="change-b9f84fa3c8eb53ab3417b2ff57afae13"><strong>[orm] </strong></span>Fixed bug which was introduced in 0.4.3, whereby loading
an already-persistent instance mapped with joined table
inheritance would trigger a useless &#8220;secondary&#8221; load from
its joined table, when using the default &#8220;select&#8221;
polymorphic_fetch.  This was due to attributes being
marked as expired during its first load and not getting
unmarked from the previous &#8220;secondary&#8221; load.  Attributes
are now unexpired based on presence in __dict__ after any
load or commit operation succeeds.<a class="changeset-link headerlink reference internal" href="#change-b9f84fa3c8eb53ab3417b2ff57afae13">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-8"><span class="target" id="change-5c46e27af0aab071053f1150c32ad167"><strong>[orm] </strong></span>Deprecated Query methods apply_sum(), apply_max(),
apply_min(), apply_avg().  Better methodologies are
coming....<a class="changeset-link headerlink reference internal" href="#change-5c46e27af0aab071053f1150c32ad167">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-9"><span class="target" id="change-1a2a5f137d66ae4e45a504a7fcb25a9b"><strong>[orm] </strong></span>relation() can accept a callable for its first argument,
which returns the class to be related.  This is in place
to assist declarative packages to define relations without
classes yet being in place.<a class="changeset-link headerlink reference internal" href="#change-1a2a5f137d66ae4e45a504a7fcb25a9b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-10"><span class="target" id="change-a4ea39df253b6f91a5d8204bf227ada0"><strong>[orm] </strong></span>Added a new &#8220;higher level&#8221; operator called &#8220;of_type()&#8221;:
used in join() as well as with any() and has(), qualifies
the subclass which will be used in filter criterion, e.g.:<blockquote>
<div><dl class="docutils">
<dt>query.filter(Company.employees.of_type(Engineer).</dt>
<dd>any(Engineer.name==&#8217;foo&#8217;))</dd>
</dl>
<p>or</p>
<dl class="docutils">
<dt>query.join(Company.employees.of_type(Engineer)).</dt>
<dd>filter(Engineer.name==&#8217;foo&#8217;)</dd>
</dl>
</div></blockquote>
<a class="changeset-link headerlink reference internal" href="#change-a4ea39df253b6f91a5d8204bf227ada0">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-11"><span class="target" id="change-1272340a6e01cf700e61e3d2f39cdacf"><strong>[orm] </strong></span>Preventive code against a potential lost-reference bug in
flush().<a class="changeset-link headerlink reference internal" href="#change-1272340a6e01cf700e61e3d2f39cdacf">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-12"><span class="target" id="change-664f4f2b4efd0e58806d46ba15d2618a"><strong>[orm] </strong></span>Expressions used in filter(), filter_by() and others, when
they make usage of a clause generated from a relation
using the identity of a child object (e.g.,
filter(Parent.child==&lt;somechild&gt;)), evaluate the actual
primary key value of &lt;somechild&gt; at execution time so that
the autoflush step of the Query can complete, thereby
populating the PK value of &lt;somechild&gt; in the case that
&lt;somechild&gt; was pending.<a class="changeset-link headerlink reference internal" href="#change-664f4f2b4efd0e58806d46ba15d2618a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-13"><span class="target" id="change-92a43783a44458853e3f87836801b5f0"><strong>[orm] </strong></span>setting the relation()-level order by to a column in the
many-to-many &#8220;secondary&#8221; table will now work with eager
loading, previously the &#8220;order by&#8221; wasn&#8217;t aliased against
the secondary table&#8217;s alias.<a class="changeset-link headerlink reference internal" href="#change-92a43783a44458853e3f87836801b5f0">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-14"><span class="target" id="change-8c8e596e12f51cbaab0d60f9eb39e22a"><strong>[orm] </strong></span>Synonyms riding on top of existing descriptors are now
full proxies to those descriptors.<a class="changeset-link headerlink reference internal" href="#change-8c8e596e12f51cbaab0d60f9eb39e22a">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.4-sql">
<h3>sql<a class="headerlink" href="#change-0.4.4-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.4-15"><span class="target" id="change-361cea88f023decd2edcc9f4bcfb85d9"><strong>[sql] </strong></span>Can again create aliases of selects against textual FROM
clauses.<a class="changeset-link headerlink reference internal" href="#change-361cea88f023decd2edcc9f4bcfb85d9">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/975">#975</a></p>
</p>
</li>
<li><p id="change-0.4.4-16"><span class="target" id="change-f29b12fe4c2de26e389d59d438cf1ea8"><strong>[sql] </strong></span>The value of a bindparam() can be a callable, in which
case it&#8217;s evaluated at statement execution time to get the
value.<a class="changeset-link headerlink reference internal" href="#change-f29b12fe4c2de26e389d59d438cf1ea8">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-17"><span class="target" id="change-fa73dc1b6400960fc86f04e571789eac"><strong>[sql] </strong></span>Added exception wrapping/reconnect support to result set
fetching.  Reconnect works for those databases that raise
a catchable data error during results (i.e. doesn&#8217;t work
on MySQL)<a class="changeset-link headerlink reference internal" href="#change-fa73dc1b6400960fc86f04e571789eac">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/978">#978</a></p>
</p>
</li>
<li><p id="change-0.4.4-18"><span class="target" id="change-82a8a6a9be6beb556e3c11919db1d762"><strong>[sql] </strong></span>Implemented two-phase API for &#8220;threadlocal&#8221; engine, via
engine.begin_twophase(), engine.prepare()<a class="changeset-link headerlink reference internal" href="#change-82a8a6a9be6beb556e3c11919db1d762">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/936">#936</a></p>
</p>
</li>
<li><p id="change-0.4.4-19"><span class="target" id="change-3ca250e58167aa467bdd74e86f81f8e2"><strong>[sql] </strong></span>Fixed bug which was preventing UNIONS from being
cloneable.<a class="changeset-link headerlink reference internal" href="#change-3ca250e58167aa467bdd74e86f81f8e2">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/986">#986</a></p>
</p>
</li>
<li><p id="change-0.4.4-20"><span class="target" id="change-cace8907ce2c688f149a3b7193cb6f03"><strong>[sql] </strong></span>Added &#8220;bind&#8221; keyword argument to insert(), update(),
delete() and DDL(). The .bind property is now assignable
on those statements as well as on select().<a class="changeset-link headerlink reference internal" href="#change-cace8907ce2c688f149a3b7193cb6f03">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-21"><span class="target" id="change-0e487d0efd2d32fd049531b232a703ea"><strong>[sql] </strong></span>Insert statements can now be compiled with extra &#8220;prefix&#8221;
words between INSERT and INTO, for vendor extensions like
MySQL&#8217;s INSERT IGNORE INTO table.<a class="changeset-link headerlink reference internal" href="#change-0e487d0efd2d32fd049531b232a703ea">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.4-misc">
<h3>misc<a class="headerlink" href="#change-0.4.4-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.4-22"><span class="target" id="change-e896f826ca21ffa3a8aee4ce1aa75540"><strong>[dialects] </strong></span>Invalid SQLite connection URLs now raise an error.<a class="changeset-link headerlink reference internal" href="#change-e896f826ca21ffa3a8aee4ce1aa75540">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-23"><span class="target" id="change-1f49158d705ba22bde8f415aae01e7df"><strong>[dialects] </strong></span>postgres TIMESTAMP renders correctly<a class="changeset-link headerlink reference internal" href="#change-1f49158d705ba22bde8f415aae01e7df">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/981">#981</a></p>
</p>
</li>
<li><p id="change-0.4.4-24"><span class="target" id="change-26c194222a2217765863b953678f61d7"><strong>[dialects] </strong></span>postgres PGArray is a &#8220;mutable&#8221; type by default; when used
with the ORM, mutable-style equality/ copy-on-write
techniques are used to test for changes.<a class="changeset-link headerlink reference internal" href="#change-26c194222a2217765863b953678f61d7">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.4-25"><span class="target" id="change-11410361d1e94b674b2dd45f62aa879c"><strong>[extensions] </strong></span>a new super-small &#8220;declarative&#8221; extension has been added,
which allows Table and mapper() configuration to take
place inline underneath a class declaration.  This
extension differs from ActiveMapper and Elixir in that it
does not redefine any SQLAlchemy semantics at all; literal
Column, Table and relation() constructs are used to define
the class behavior and table definition.<a class="changeset-link headerlink reference internal" href="#change-11410361d1e94b674b2dd45f62aa879c">¶</a><p></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.4.3">
<h2>0.4.3<a class="headerlink" href="#change-0.4.3" title="Permalink to this headline">¶</a></h2>
Released: Thu Feb 14 2008<div class="section" id="change-0.4.3-general">
<h3>general<a class="headerlink" href="#change-0.4.3-general" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.3-0"><span class="target" id="change-6edf54fb64a6efb12a4b41bf8fca7e85"><strong>[general] </strong></span>Fixed a variety of hidden and some not-so-hidden
compatibility issues for Python 2.3, thanks to new support
for running the full test suite on 2.3.<a class="changeset-link headerlink reference internal" href="#change-6edf54fb64a6efb12a4b41bf8fca7e85">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-1"><span class="target" id="change-8292102deab2ae8658025f199f4dba39"><strong>[general] </strong></span>Warnings are now issued as type exceptions.SAWarning.<a class="changeset-link headerlink reference internal" href="#change-8292102deab2ae8658025f199f4dba39">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.3-orm">
<h3>orm<a class="headerlink" href="#change-0.4.3-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.3-2"><span class="target" id="change-ed63aadc46e831e27192365c26bcbd40"><strong>[orm] </strong></span>Every Session.begin() must now be accompanied by a
corresponding commit() or rollback() unless the session is
closed with Session.close().  This also includes the begin()
which is implicit to a session created with
transactional=True.  The biggest change introduced here is
that when a Session created with transactional=True raises
an exception during flush(), you must call
Session.rollback() or Session.close() in order for that
Session to continue after an exception.<a class="changeset-link headerlink reference internal" href="#change-ed63aadc46e831e27192365c26bcbd40">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-3"><span class="target" id="change-4066869a71ee4e92e757eed30c24fcd6"><strong>[orm] </strong></span>Fixed merge() collection-doubling bug when merging transient
entities with backref&#8217;ed collections.<a class="changeset-link headerlink reference internal" href="#change-4066869a71ee4e92e757eed30c24fcd6">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/961">#961</a></p>
</p>
</li>
<li><p id="change-0.4.3-4"><span class="target" id="change-f30c07f4ca0f0cba96e2f3cb6182473e"><strong>[orm] </strong></span>merge(dont_load=True) does not accept transient entities,
this is in continuation with the fact that
merge(dont_load=True) does not accept any &#8220;dirty&#8221; objects
either.<a class="changeset-link headerlink reference internal" href="#change-f30c07f4ca0f0cba96e2f3cb6182473e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-5"><span class="target" id="change-12a5e6022a8effac005d99575c5c415b"><strong>[orm] </strong></span>Added standalone &#8220;query&#8221; class attribute generated by a
scoped_session.  This provides MyClass.query without using
Session.mapper.  Use via:<blockquote>
<div>MyClass.query = Session.query_property()</div></blockquote>
<a class="changeset-link headerlink reference internal" href="#change-12a5e6022a8effac005d99575c5c415b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-6"><span class="target" id="change-73db7d20e8dbfeedb6ba0b6cc4788aea"><strong>[orm] </strong></span>The proper error message is raised when trying to access
expired instance attributes with no session present<a class="changeset-link headerlink reference internal" href="#change-73db7d20e8dbfeedb6ba0b6cc4788aea">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-7"><span class="target" id="change-549192f88e74438d43000f482dc4a551"><strong>[orm] </strong></span>dynamic_loader() / lazy=&#8221;dynamic&#8221; now accepts and uses
the order_by parameter in the same way in which it works
with relation().<a class="changeset-link headerlink reference internal" href="#change-549192f88e74438d43000f482dc4a551">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-8"><span class="target" id="change-ff6e9ef1dbfd714585ff152dd416a7d6"><strong>[orm] </strong></span>Added expire_all() method to Session.  Calls expire() for
all persistent instances.  This is handy in conjunction
with...<a class="changeset-link headerlink reference internal" href="#change-ff6e9ef1dbfd714585ff152dd416a7d6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-9"><span class="target" id="change-42759467a8bd5b23f099a069100e4e3a"><strong>[orm] </strong></span>Instances which have been partially or fully expired will
have their expired attributes populated during a regular
Query operation which affects those objects, preventing a
needless second SQL statement for each instance.<a class="changeset-link headerlink reference internal" href="#change-42759467a8bd5b23f099a069100e4e3a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-10"><span class="target" id="change-b8b6e98149bfd5318ccf249d510a02ee"><strong>[orm] </strong></span>Dynamic relations, when referenced, create a strong
reference to the parent object so that the query still has a
parent to call against even if the parent is only created
(and otherwise dereferenced) within the scope of a single
expression.<a class="changeset-link headerlink reference internal" href="#change-b8b6e98149bfd5318ccf249d510a02ee">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/938">#938</a></p>
</p>
</li>
<li><p id="change-0.4.3-11"><span class="target" id="change-45880f45e498cf7f425d5f004b1ec762"><strong>[orm] </strong></span>Added a mapper() flag &#8220;eager_defaults&#8221;. When set to True,
defaults that are generated during an INSERT or UPDATE
operation are post-fetched immediately, instead of being
deferred until later.  This mimics the old 0.3 behavior.<a class="changeset-link headerlink reference internal" href="#change-45880f45e498cf7f425d5f004b1ec762">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-12"><span class="target" id="change-3891a133d4bd12b14d6068cb8f605156"><strong>[orm] </strong></span>query.join() can now accept class-mapped attributes as
arguments. These can be used in place or in any combination
with strings.  In particular this allows construction of
joins to subclasses on a polymorphic relation, i.e.:<blockquote>
<div>query(Company).join([&#8216;employees&#8217;, Engineer.name])</div></blockquote>
<a class="changeset-link headerlink reference internal" href="#change-3891a133d4bd12b14d6068cb8f605156">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-13"><span class="target" id="change-42b75449eedabd47e5cb497bfbb59051"><strong>[orm] [people.join(engineer))] [(&#8216;employees&#8217;] [Engineer.name] </strong></span>query.join() can also accept tuples of attribute name/some
selectable as arguments.  This allows construction of joins
<em>from</em> subclasses of a polymorphic relation, i.e.:<blockquote>
<div>query(Company).join(<p>)</p>
</div></blockquote>
<a class="changeset-link headerlink reference internal" href="#change-42b75449eedabd47e5cb497bfbb59051">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-14"><span class="target" id="change-899c6f1ca175ba0b8f026dc0aa41d68b"><strong>[orm] </strong></span>General improvements to the behavior of join() in
conjunction with polymorphic mappers, i.e. joining from/to
polymorphic mappers and properly applying aliases.<a class="changeset-link headerlink reference internal" href="#change-899c6f1ca175ba0b8f026dc0aa41d68b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-15"><span class="target" id="change-4701dbe6a7375d90fa6b81601106e759"><strong>[orm] </strong></span>Fixed/improved behavior when a mapper determines the natural
&#8220;primary key&#8221; of a mapped join, it will more effectively
reduce columns which are equivalent via foreign key
relation.  This affects how many arguments need to be sent
to query.get(), among other things.<a class="changeset-link headerlink reference internal" href="#change-4701dbe6a7375d90fa6b81601106e759">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/933">#933</a></p>
</p>
</li>
<li><p id="change-0.4.3-16"><span class="target" id="change-d7ca86341f6b875bc802fc522eda643c"><strong>[orm] </strong></span>The lazy loader can now handle a join condition where the
&#8220;bound&#8221; column (i.e. the one that gets the parent id sent as
a bind parameter) appears more than once in the join
condition.  Specifically this allows the common task of a
relation() which contains a parent-correlated subquery, such
as &#8220;select only the most recent child item&#8221;.<a class="changeset-link headerlink reference internal" href="#change-d7ca86341f6b875bc802fc522eda643c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/946">#946</a></p>
</p>
</li>
<li><p id="change-0.4.3-17"><span class="target" id="change-7ebcbb5cac084dd34f876f1e979346d5"><strong>[orm] </strong></span>Fixed bug in polymorphic inheritance where an incorrect
exception is raised when base polymorphic_on column does not
correspond to any columns within the local selectable of an
inheriting mapper more than one level deep<a class="changeset-link headerlink reference internal" href="#change-7ebcbb5cac084dd34f876f1e979346d5">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-18"><span class="target" id="change-52902ccac0e5570582c25b376fecb10b"><strong>[orm] </strong></span>Fixed bug in polymorphic inheritance which made it difficult
to set a working &#8220;order_by&#8221; on a polymorphic mapper.<a class="changeset-link headerlink reference internal" href="#change-52902ccac0e5570582c25b376fecb10b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-19"><span class="target" id="change-2202798af2faf2de027d6e9cb53425b2"><strong>[orm] </strong></span>Fixed a rather expensive call in Query that was slowing down
polymorphic queries.<a class="changeset-link headerlink reference internal" href="#change-2202798af2faf2de027d6e9cb53425b2">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-20"><span class="target" id="change-1174dcf99d9e604b10ae1b362749fc8d"><strong>[orm] </strong></span>&#8220;Passive defaults&#8221; and other &#8220;inline&#8221; defaults can now be
loaded during a flush() call if needed; in particular, this
allows constructing relations() where a foreign key column
references a server-side-generated, non-primary-key
column.<a class="changeset-link headerlink reference internal" href="#change-1174dcf99d9e604b10ae1b362749fc8d">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/954">#954</a></p>
</p>
</li>
<li><p id="change-0.4.3-21"><span class="target" id="change-33a848efb3c77483bf094e0593a0f304"><strong>[orm] </strong></span><dl class="docutils">
<dt>Additional Session transaction fixes/changes:</dt>
<dd><ul class="first last">
<li>Fixed bug with session transaction management: parent
transactions weren&#8217;t started on the connection when
adding a connection to a nested transaction.</li>
<li>session.transaction now always refers to the innermost
active transaction, even when commit/rollback are called
directly on the session transaction object.</li>
<li>Two-phase transactions can now be prepared.</li>
<li>When preparing a two-phase transaction fails on one
connection, all the connections are rolled back.</li>
<li>session.close() didn&#8217;t close all transactions when
nested transactions were used.</li>
<li>rollback() previously erroneously set the current
transaction directly to the parent of the transaction
that could be rolled back to. Now it rolls back the next
transaction up that can handle it, but sets the current
transaction to its parent and inactivates the
transactions in between. Inactive transactions can only
be rolled back or closed, any other call results in an
error.</li>
<li>autoflush for commit() wasn&#8217;t flushing for simple
subtransactions.</li>
<li>unitofwork flush didn&#8217;t close the failed transaction
when the session was not in a transaction and committing
the transaction failed.</li>
</ul>
</dd>
</dl>
<a class="changeset-link headerlink reference internal" href="#change-33a848efb3c77483bf094e0593a0f304">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-22"><span class="target" id="change-156ce1b0bbba6a383724228e99b59141"><strong>[orm] </strong></span>Miscellaneous tickets:<a class="changeset-link headerlink reference internal" href="#change-156ce1b0bbba6a383724228e99b59141">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/964">#964</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/940">#940</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.3-sql">
<h3>sql<a class="headerlink" href="#change-0.4.3-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.3-23"><span class="target" id="change-6dc387bc33169ccc70dccd8218f63eb6"><strong>[sql] </strong></span>Added &#8220;schema.DDL&#8221;, an executable free-form DDL statement.
DDLs can be executed in isolation or attached to Table or
MetaData instances and executed automatically when those
objects are created and/or dropped.<a class="changeset-link headerlink reference internal" href="#change-6dc387bc33169ccc70dccd8218f63eb6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-24"><span class="target" id="change-7a15201e78fb2f315a974ea2f2fdf57e"><strong>[sql] </strong></span>Table columns and constraints can be overridden on a an
existing table (such as a table that was already reflected)
using the &#8216;useexisting=True&#8217; flag, which now takes into
account the arguments passed along with it.<a class="changeset-link headerlink reference internal" href="#change-7a15201e78fb2f315a974ea2f2fdf57e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-25"><span class="target" id="change-9901077c4d7b859ebcf02d4e4c960588"><strong>[sql] </strong></span>Added a callable-based DDL events interface, adds hooks
before and after Tables and MetaData create and drop.<a class="changeset-link headerlink reference internal" href="#change-9901077c4d7b859ebcf02d4e4c960588">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-26"><span class="target" id="change-55f9b7d9b3f544d05ee33d474e48e718"><strong>[sql] </strong></span>Added generative where(&lt;criterion&gt;) method to delete() and
update() constructs which return a new object with criterion
joined to existing criterion via AND, just like
select().where().<a class="changeset-link headerlink reference internal" href="#change-55f9b7d9b3f544d05ee33d474e48e718">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-27"><span class="target" id="change-cda5a8913a71356022156500329b8ea2"><strong>[sql] </strong></span>Added &#8220;ilike()&#8221; operator to column operations.  Compiles to
ILIKE on postgres, lower(x) LIKE lower(y) on all
others.<a class="changeset-link headerlink reference internal" href="#change-cda5a8913a71356022156500329b8ea2">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/727">#727</a></p>
</p>
</li>
<li><p id="change-0.4.3-28"><span class="target" id="change-f9d50ae6c3ab814c61e765a4597db4a7"><strong>[sql] </strong></span>Added &#8220;now()&#8221; as a generic function; on SQLite, Oracle
and MSSQL compiles as &#8220;CURRENT_TIMESTAMP&#8221;; &#8220;now()&#8221; on
all others.<a class="changeset-link headerlink reference internal" href="#change-f9d50ae6c3ab814c61e765a4597db4a7">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/943">#943</a></p>
</p>
</li>
<li><p id="change-0.4.3-29"><span class="target" id="change-dc43f597e2f6c04ee681a57b1cdcab9f"><strong>[sql] </strong></span>The startswith(), endswith(), and contains() operators now
concatenate the wildcard operator with the given operand in
SQL, i.e. &#8220;&#8217;%&#8217; || &lt;bindparam&gt;&#8221; in all cases, accept
text(&#8216;something&#8217;) operands properly<a class="changeset-link headerlink reference internal" href="#change-dc43f597e2f6c04ee681a57b1cdcab9f">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/962">#962</a></p>
</p>
</li>
<li><p id="change-0.4.3-30"><span class="target" id="change-6e11a1c8b10e4f234d4523225bd257ef"><strong>[sql] </strong></span>cast() accepts text(&#8216;something&#8217;) and other non-literal
operands properly<a class="changeset-link headerlink reference internal" href="#change-6e11a1c8b10e4f234d4523225bd257ef">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/962">#962</a></p>
</p>
</li>
<li><p id="change-0.4.3-31"><span class="target" id="change-058b2c299ce6bcfa574f984a4c4a6e71"><strong>[sql] </strong></span>fixed bug in result proxy where anonymously generated
column labels would not be accessible using their straight
string name<a class="changeset-link headerlink reference internal" href="#change-058b2c299ce6bcfa574f984a4c4a6e71">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-32"><span class="target" id="change-3115dcb8cdb282b57a31d91ec76e5e43"><strong>[sql] </strong></span>Deferrable constraints can now be defined.<a class="changeset-link headerlink reference internal" href="#change-3115dcb8cdb282b57a31d91ec76e5e43">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-33"><span class="target" id="change-0fdb4ae6ed3cdbc2764f585352789ad5"><strong>[sql] </strong></span>Added &#8220;autocommit=True&#8221; keyword argument to select() and
text(), as well as generative autocommit() method on
select(); for statements which modify the database through
some user-defined means other than the usual INSERT/UPDATE/
DELETE etc.  This flag will enable &#8220;autocommit&#8221; behavior
during execution if no transaction is in progress.<a class="changeset-link headerlink reference internal" href="#change-0fdb4ae6ed3cdbc2764f585352789ad5">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/915">#915</a></p>
</p>
</li>
<li><p id="change-0.4.3-34"><span class="target" id="change-8ab38a99c33031ed1be3e3d2f2018ad6"><strong>[sql] </strong></span>The &#8216;.c.&#8217; attribute on a selectable now gets an entry for
every column expression in its columns clause.  Previously,
&#8220;unnamed&#8221; columns like functions and CASE statements weren&#8217;t
getting put there.  Now they will, using their full string
representation if no &#8216;name&#8217; is available.<a class="changeset-link headerlink reference internal" href="#change-8ab38a99c33031ed1be3e3d2f2018ad6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-35"><span class="target" id="change-dee2d53230f0bb2006399dd3a1acc69b"><strong>[sql] </strong></span>a CompositeSelect, i.e. any union(), union_all(),
intersect(), etc. now asserts that each selectable contains
the same number of columns.  This conforms to the
corresponding SQL requirement.<a class="changeset-link headerlink reference internal" href="#change-dee2d53230f0bb2006399dd3a1acc69b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-36"><span class="target" id="change-9aaabc97770589be11258354e4103c20"><strong>[sql] </strong></span>The anonymous &#8216;label&#8217; generated for otherwise unlabeled
functions and expressions now propagates outwards at compile
time for expressions like select([select([func.foo()])]).<a class="changeset-link headerlink reference internal" href="#change-9aaabc97770589be11258354e4103c20">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-37"><span class="target" id="change-e38291a9bb6875caafe6ff4eb62837d6"><strong>[sql] </strong></span>Building on the above ideas, CompositeSelects now build up
their &#8221;.c.&#8221; collection based on the names present in the
first selectable only; corresponding_column() now works
fully for all embedded selectables.<a class="changeset-link headerlink reference internal" href="#change-e38291a9bb6875caafe6ff4eb62837d6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-38"><span class="target" id="change-effacbc8cacf7eccb6b38ba3cbbae70c"><strong>[sql] </strong></span>Oracle and others properly encode SQL used for defaults like
sequences, etc., even if no unicode idents are used since
identifier preparer may return a cached unicode identifier.<a class="changeset-link headerlink reference internal" href="#change-effacbc8cacf7eccb6b38ba3cbbae70c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-39"><span class="target" id="change-1d04331648e18d01c0c95d1e615df08e"><strong>[sql] </strong></span>Column and clause comparisons to datetime objects on the
left hand side of the expression now work (d &lt; table.c.col).
(datetimes on the RHS have always worked, the LHS exception
is a quirk of the datetime implementation.)<a class="changeset-link headerlink reference internal" href="#change-1d04331648e18d01c0c95d1e615df08e">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.3-misc">
<h3>misc<a class="headerlink" href="#change-0.4.3-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.3-40"><span class="target" id="change-f63c306a189efd4f901b963ab28adb1f"><strong>[dialects] </strong></span>Better support for schemas in SQLite (linked in by ATTACH
DATABASE ... AS name).  In some cases in the past, schema
names were omitted from generated SQL for SQLite.  This is
no longer the case.<a class="changeset-link headerlink reference internal" href="#change-f63c306a189efd4f901b963ab28adb1f">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-41"><span class="target" id="change-9dee0f004a0cf1c0917dc6380650d13a"><strong>[dialects] </strong></span>table_names on SQLite now picks up temporary tables as well.<a class="changeset-link headerlink reference internal" href="#change-9dee0f004a0cf1c0917dc6380650d13a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-42"><span class="target" id="change-60a5b994550ff76a748f3c1c1876328e"><strong>[dialects] </strong></span>Auto-detect an unspecified MySQL ANSI_QUOTES mode during
reflection operations, support for changing the mode
midstream.  Manual mode setting is still required if no
reflection is used.<a class="changeset-link headerlink reference internal" href="#change-60a5b994550ff76a748f3c1c1876328e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-43"><span class="target" id="change-d2deeecdb1769a651e3418d54d79a6f7"><strong>[dialects] </strong></span>Fixed reflection of TIME columns on SQLite.<a class="changeset-link headerlink reference internal" href="#change-d2deeecdb1769a651e3418d54d79a6f7">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-44"><span class="target" id="change-df90bbae9a24a548712386fea17c51d7"><strong>[dialects] </strong></span>Finally added PGMacAddr type to postgres<a class="changeset-link headerlink reference internal" href="#change-df90bbae9a24a548712386fea17c51d7">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/580">#580</a></p>
</p>
</li>
<li><p id="change-0.4.3-45"><span class="target" id="change-aa4961efc15ee34be7bcbce396b294c8"><strong>[dialects] </strong></span>Reflect the sequence associated to a PK field (typically
with a BEFORE INSERT trigger) under Firebird<a class="changeset-link headerlink reference internal" href="#change-aa4961efc15ee34be7bcbce396b294c8">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-46"><span class="target" id="change-b06276ebd78dee4b8b236cfc9f6ea19e"><strong>[dialects] </strong></span>Oracle assembles the correct columns in the result set
column mapping when generating a LIMIT/OFFSET subquery,
allows columns to map properly to result sets even if
long-name truncation kicks in<a class="changeset-link headerlink reference internal" href="#change-b06276ebd78dee4b8b236cfc9f6ea19e">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/941">#941</a></p>
</p>
</li>
<li><p id="change-0.4.3-47"><span class="target" id="change-34c2a03d48cdd10e0016278bc5941d22"><strong>[dialects] </strong></span>MSSQL now includes EXEC in the _is_select regexp, which
should allow row-returning stored procedures to be used.<a class="changeset-link headerlink reference internal" href="#change-34c2a03d48cdd10e0016278bc5941d22">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-48"><span class="target" id="change-1fc2c8bc3c3438aaf84a962c2176c65b"><strong>[dialects] </strong></span>MSSQL now includes an experimental implementation of
LIMIT/OFFSET using the ANSI SQL row_number() function, so it
requires MSSQL-2005 or higher. To enable the feature, add
&#8220;has_window_funcs&#8221; to the keyword arguments for connect, or
add &#8221;?has_window_funcs=1&#8221; to your dburi query arguments.<a class="changeset-link headerlink reference internal" href="#change-1fc2c8bc3c3438aaf84a962c2176c65b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-49"><span class="target" id="change-937a4731635f0eb9fc1445d0e3061924"><strong>[ext] </strong></span>Changed ext.activemapper to use a non-transactional session
for the objectstore.<a class="changeset-link headerlink reference internal" href="#change-937a4731635f0eb9fc1445d0e3061924">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.3-50"><span class="target" id="change-9adb592707c367ff5863e266ed996077"><strong>[ext] </strong></span>Fixed output order of &#8220;[&#8216;a&#8217;] + obj.proxied&#8221; binary operation
on association-proxied lists.<a class="changeset-link headerlink reference internal" href="#change-9adb592707c367ff5863e266ed996077">¶</a><p></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.4.2p3">
<h2>0.4.2p3<a class="headerlink" href="#change-0.4.2p3" title="Permalink to this headline">¶</a></h2>
Released: Wed Jan 09 2008<div class="section" id="change-0.4.2p3-general">
<h3>general<a class="headerlink" href="#change-0.4.2p3-general" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.2p3-0"><span class="target" id="change-65d413b7ad515c5729bde99fb2e96731"><strong>[general] </strong></span>sub version numbering scheme changed to suite
setuptools version number rules; easy_install -u
should now get this version over 0.4.2.<a class="changeset-link headerlink reference internal" href="#change-65d413b7ad515c5729bde99fb2e96731">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.2p3-orm">
<h3>orm<a class="headerlink" href="#change-0.4.2p3-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.2p3-1"><span class="target" id="change-da292c6c47e2281b50fe3872d622ec66"><strong>[orm] </strong></span>fixed bug with session.dirty when using &#8220;mutable
scalars&#8221; (such as PickleTypes)<a class="changeset-link headerlink reference internal" href="#change-da292c6c47e2281b50fe3872d622ec66">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-2"><span class="target" id="change-e84ebdc378fd322dd6276c9b7906ed92"><strong>[orm] </strong></span>added a more descriptive error message when flushing
on a relation() that has non-locally-mapped columns
in its primary or secondary join condition<a class="changeset-link headerlink reference internal" href="#change-e84ebdc378fd322dd6276c9b7906ed92">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-3"><span class="target" id="change-d24181f3ffcf556b44aa903e5a74b37e"><strong>[orm] </strong></span>suppressing <em>all</em> errors in
InstanceState.__cleanup() now.<a class="changeset-link headerlink reference internal" href="#change-d24181f3ffcf556b44aa903e5a74b37e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-4"><span class="target" id="change-d2a931ab43317f5fcf9c6bdb7f4f4a39"><strong>[orm] </strong></span>fixed an attribute history bug whereby assigning a
new collection to a collection-based attribute which
already had pending changes would generate incorrect
history<a class="changeset-link headerlink reference internal" href="#change-d2a931ab43317f5fcf9c6bdb7f4f4a39">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/922">#922</a></p>
</p>
</li>
<li><p id="change-0.4.2p3-5"><span class="target" id="change-d81770ec7c97121d21e6eb326d9bb5da"><strong>[orm] </strong></span>fixed delete-orphan cascade bug whereby setting the
same object twice to a scalar attribute could log it
as an orphan<a class="changeset-link headerlink reference internal" href="#change-d81770ec7c97121d21e6eb326d9bb5da">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/925">#925</a></p>
</p>
</li>
<li><p id="change-0.4.2p3-6"><span class="target" id="change-13a128b105a34070dcf5a5147913fa10"><strong>[orm] </strong></span>Fixed cascades on a += assignment to a list-based
relation.<a class="changeset-link headerlink reference internal" href="#change-13a128b105a34070dcf5a5147913fa10">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-7"><span class="target" id="change-331b7392042497e067064bc0ea7a7a43"><strong>[orm] </strong></span>synonyms can now be created against props that don&#8217;t
exist yet, which are later added via add_property().
This commonly includes backrefs. (i.e. you can make
synonyms for backrefs without worrying about the
order of operations)<a class="changeset-link headerlink reference internal" href="#change-331b7392042497e067064bc0ea7a7a43">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/919">#919</a></p>
</p>
</li>
<li><p id="change-0.4.2p3-8"><span class="target" id="change-72cde5697e7ad6e3b60d641e29048733"><strong>[orm] </strong></span>fixed bug which could occur with polymorphic &#8220;union&#8221;
mapper which falls back to &#8220;deferred&#8221; loading of
inheriting tables<a class="changeset-link headerlink reference internal" href="#change-72cde5697e7ad6e3b60d641e29048733">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-9"><span class="target" id="change-fed49544228d810c496b9938b4c43c75"><strong>[orm] </strong></span>the &#8220;columns&#8221; collection on a mapper/mapped class
(i.e. &#8216;c&#8217;) is against the mapped table, not the
select_table in the case of polymorphic &#8220;union&#8221;
loading (this shouldn&#8217;t be noticeable).<a class="changeset-link headerlink reference internal" href="#change-fed49544228d810c496b9938b4c43c75">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-10"><span class="target" id="change-3ca851d8498ea2458bba602dee5ad8dd"><strong>[orm] </strong></span>fixed fairly critical bug whereby the same instance could be listed
more than once in the unitofwork.new collection; most typically
reproduced when using a combination of inheriting mappers and
ScopedSession.mapper, as the multiple __init__ calls per instance
could save() the object with distinct _state objects<a class="changeset-link headerlink reference internal" href="#change-3ca851d8498ea2458bba602dee5ad8dd">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-11"><span class="target" id="change-b0ea0f39c7d503288cdab2a995ef5b83"><strong>[orm] </strong></span>added very rudimentary yielding iterator behavior to Query.  Call
query.yield_per(&lt;number of rows&gt;) and evaluate the Query in an
iterative context; every collection of N rows will be packaged up
and yielded.  Use this method with extreme caution since it does
not attempt to reconcile eagerly loaded collections across
result batch boundaries, nor will it behave nicely if the same
instance occurs in more than one batch.  This means that an eagerly
loaded collection will get cleared out if it&#8217;s referenced in more than
one batch, and in all cases attributes will be overwritten on instances
that occur in more than one batch.<a class="changeset-link headerlink reference internal" href="#change-b0ea0f39c7d503288cdab2a995ef5b83">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-12"><span class="target" id="change-779e1c774fac07bedf9baab019348183"><strong>[orm] </strong></span>Fixed in-place set mutation operators for set collections and association
proxied sets.<a class="changeset-link headerlink reference internal" href="#change-779e1c774fac07bedf9baab019348183">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/920">#920</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.2p3-sql">
<h3>sql<a class="headerlink" href="#change-0.4.2p3-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.2p3-13"><span class="target" id="change-6a9e11d8c0bcdb3037efda66da46f2b0"><strong>[sql] </strong></span>Text type is properly exported now and does not
raise a warning on DDL create; String types with no
length only raise warnings during CREATE TABLE<a class="changeset-link headerlink reference internal" href="#change-6a9e11d8c0bcdb3037efda66da46f2b0">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/912">#912</a></p>
</p>
</li>
<li><p id="change-0.4.2p3-14"><span class="target" id="change-52447b5d997e550edaff1460987456ea"><strong>[sql] </strong></span>new UnicodeText type is added, to specify an
encoded, unlengthed Text type<a class="changeset-link headerlink reference internal" href="#change-52447b5d997e550edaff1460987456ea">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-15"><span class="target" id="change-c6e6be84c763b537b8b61ef8374ed8fe"><strong>[sql] </strong></span>fixed bug in union() so that select() statements
which don&#8217;t derive from FromClause objects can be
unioned<a class="changeset-link headerlink reference internal" href="#change-c6e6be84c763b537b8b61ef8374ed8fe">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-16"><span class="target" id="change-b4c8efafaa4b6fccec8239e9c9d14b0f"><strong>[sql] </strong></span>changed name of TEXT to Text since its a &#8220;generic&#8221;
type; TEXT name is deprecated until 0.5. The
&#8220;upgrading&#8221; behavior of String to Text when no
length is present is also deprecated until 0.5; will
issue a warning when used for CREATE TABLE
statements (String with no length for SQL expression
purposes is still fine)<a class="changeset-link headerlink reference internal" href="#change-b4c8efafaa4b6fccec8239e9c9d14b0f">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/912">#912</a></p>
</p>
</li>
<li><p id="change-0.4.2p3-17"><span class="target" id="change-11b279a02c641038e4cf01bcf7a3de4c"><strong>[sql] </strong></span>generative select.order_by(None) / group_by(None)
was not managing to reset order by/group by
criterion, fixed<a class="changeset-link headerlink reference internal" href="#change-11b279a02c641038e4cf01bcf7a3de4c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/924">#924</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.2p3-misc">
<h3>misc<a class="headerlink" href="#change-0.4.2p3-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.2p3-18"><span class="target" id="change-266d2296f2e6b99bc2514a5fd438deae"><strong>[dialects] </strong></span>Fixed reflection of mysql empty string column
defaults.<a class="changeset-link headerlink reference internal" href="#change-266d2296f2e6b99bc2514a5fd438deae">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-19"><span class="target" id="change-564eaa28aa3238cb8107b93c413f59d9"><strong>[ext] </strong></span>&#8216;+&#8217;, &#8216;*&#8217;, &#8216;+=&#8217; and &#8216;*=&#8217; support for association
proxied lists.<a class="changeset-link headerlink reference internal" href="#change-564eaa28aa3238cb8107b93c413f59d9">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2p3-20"><span class="target" id="change-88e678f937cdc36ead073631a00ca08b"><strong>[dialects] </strong></span>mssql - narrowed down the test for &#8220;date&#8221;/&#8221;datetime&#8221;
in MSDate/ MSDateTime subclasses so that incoming
&#8220;datetime&#8221; objects don&#8217;t get mis-interpreted as
&#8220;date&#8221; objects and vice versa.<a class="changeset-link headerlink reference internal" href="#change-88e678f937cdc36ead073631a00ca08b">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/923">#923</a></p>
</p>
</li>
<li><p id="change-0.4.2p3-21"><span class="target" id="change-3ed94dc039b8b2b50313d99519db04d5"><strong>[dialects] </strong></span>Fixed the missing call to subtype result processor for the PGArray
type.<a class="changeset-link headerlink reference internal" href="#change-3ed94dc039b8b2b50313d99519db04d5">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/913">#913</a></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.4.2">
<h2>0.4.2<a class="headerlink" href="#change-0.4.2" title="Permalink to this headline">¶</a></h2>
Released: Wed Jan 02 2008<div class="section" id="change-0.4.2-orm">
<h3>orm<a class="headerlink" href="#change-0.4.2-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.2-0"><span class="target" id="change-63f5538d57cbeccd4405271fb765620d"><strong>[orm] </strong></span>a major behavioral change to collection-based backrefs: they no
longer trigger lazy loads !  &#8220;reverse&#8221; adds and removes
are queued up and are merged with the collection when it is
actually read from and loaded; but do not trigger a load beforehand.
For users who have noticed this behavior, this should be much more
convenient than using dynamic relations in some cases; for those who
have not, you might notice your apps using a lot fewer queries than
before in some situations.<a class="changeset-link headerlink reference internal" href="#change-63f5538d57cbeccd4405271fb765620d">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/871">#871</a></p>
</p>
</li>
<li><p id="change-0.4.2-1"><span class="target" id="change-217b4c5e361c5fb21dea6f5061d41edc"><strong>[orm] </strong></span>mutable primary key support is added. primary key columns can be
changed freely, and the identity of the instance will change upon
flush. In addition, update cascades of foreign key referents (primary
key or not) along relations are supported, either in tandem with the
database&#8217;s ON UPDATE CASCADE (required for DB&#8217;s like Postgres) or
issued directly by the ORM in the form of UPDATE statements, by setting
the flag &#8220;passive_cascades=False&#8221;.<a class="changeset-link headerlink reference internal" href="#change-217b4c5e361c5fb21dea6f5061d41edc">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-2"><span class="target" id="change-e8ea4a2d69bd572ec6dfb581a1a81bc8"><strong>[orm] </strong></span>inheriting mappers now inherit the MapperExtensions of their parent
mapper directly, so that all methods for a particular MapperExtension
are called for subclasses as well.  As always, any MapperExtension
can return either EXT_CONTINUE to continue extension processing
or EXT_STOP to stop processing.  The order of mapper resolution is:
&lt;extensions declared on the classes mapper&gt; &lt;extensions declared on the
classes&#8217; parent mapper&gt; &lt;globally declared extensions&gt;.<p>Note that if you instantiate the same extension class separately
and then apply it individually for two mappers in the same inheritance
chain, the extension will be applied twice to the inheriting class,
and each method will be called twice.</p>
<p>To apply a mapper extension explicitly to each inheriting class but
have each method called only once per operation, use the same
instance of the extension for both mappers.</p>
<a class="changeset-link headerlink reference internal" href="#change-e8ea4a2d69bd572ec6dfb581a1a81bc8">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/490">#490</a></p>
</p>
</li>
<li><p id="change-0.4.2-3"><span class="target" id="change-32b5c8ae4f1ba4eae88b6d041b12a29d"><strong>[orm] </strong></span>MapperExtension.before_update() and after_update() are now called
symmetrically; previously, an instance that had no modified column
attributes (but had a relation() modification) could be called with
before_update() but not after_update()<a class="changeset-link headerlink reference internal" href="#change-32b5c8ae4f1ba4eae88b6d041b12a29d">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/907">#907</a></p>
</p>
</li>
<li><p id="change-0.4.2-4"><span class="target" id="change-27b98340e4e7bca99aa258a02c0b8f4c"><strong>[orm] </strong></span>columns which are missing from a Query&#8217;s select statement
now get automatically deferred during load.<a class="changeset-link headerlink reference internal" href="#change-27b98340e4e7bca99aa258a02c0b8f4c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-5"><span class="target" id="change-63184f50e7524cf31995dceb7eba804c"><strong>[orm] </strong></span>mapped classes which extend &#8220;object&#8221; and do not provide an
__init__() method will now raise TypeError if non-empty *args
or **kwargs are present at instance construction time (and are
not consumed by any extensions such as the scoped_session mapper),
consistent with the behavior of normal Python classes<a class="changeset-link headerlink reference internal" href="#change-63184f50e7524cf31995dceb7eba804c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/908">#908</a></p>
</p>
</li>
<li><p id="change-0.4.2-6"><span class="target" id="change-e0d48778c2223c5f35f8ee0a6f6241f4"><strong>[orm] </strong></span>fixed Query bug when filter_by() compares a relation against None<a class="changeset-link headerlink reference internal" href="#change-e0d48778c2223c5f35f8ee0a6f6241f4">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/899">#899</a></p>
</p>
</li>
<li><p id="change-0.4.2-7"><span class="target" id="change-4790b003fa9887f231b4dab765719240"><strong>[orm] </strong></span>improved support for pickling of mapped entities.  Per-instance
lazy/deferred/expired callables are now serializable so that
they serialize and deserialize with _state.<a class="changeset-link headerlink reference internal" href="#change-4790b003fa9887f231b4dab765719240">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-8"><span class="target" id="change-9d03199c53171e51a07d7087bbc50381"><strong>[orm] </strong></span>new synonym() behavior: an attribute will be placed on the mapped
class, if one does not exist already, in all cases. if a property
already exists on the class, the synonym will decorate the property
with the appropriate comparison operators so that it can be used in
column expressions just like any other mapped attribute (i.e. usable in
filter(), etc.) the &#8220;proxy=True&#8221; flag is deprecated and no longer means
anything. Additionally, the flag &#8220;map_column=True&#8221; will automatically
generate a ColumnProperty corresponding to the name of the synonym,
i.e.: &#8216;somename&#8217;:synonym(&#8216;_somename&#8217;, map_column=True) will map the
column named &#8216;somename&#8217; to the attribute &#8216;_somename&#8217;. See the example
in the mapper docs.<a class="changeset-link headerlink reference internal" href="#change-9d03199c53171e51a07d7087bbc50381">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/801">#801</a></p>
</p>
</li>
<li><p id="change-0.4.2-9"><span class="target" id="change-784457e85ca18f636410e38e12185882"><strong>[orm] </strong></span>Query.select_from() now replaces all existing FROM criterion with
the given argument; the previous behavior of constructing a list
of FROM clauses was generally not useful as is required
filter() calls to create join criterion, and new tables introduced
within filter() already add themselves to the FROM clause.  The
new behavior allows not just joins from the main table, but select
statements as well.  Filter criterion, order bys, eager load
clauses will be &#8220;aliased&#8221; against the given statement.<a class="changeset-link headerlink reference internal" href="#change-784457e85ca18f636410e38e12185882">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-10"><span class="target" id="change-3a785137de08700b2cd2a32fba4f0a05"><strong>[orm] </strong></span>this month&#8217;s refactoring of attribute instrumentation changes
the &#8220;copy-on-load&#8221; behavior we&#8217;ve had since midway through 0.3
with &#8220;copy-on-modify&#8221; in most cases.  This takes a sizable chunk
of latency out of load operations and overall does less work
as only attributes which are actually modified get their
&#8220;committed state&#8221; copied.  Only &#8220;mutable scalar&#8221; attributes
(i.e. a pickled object or other mutable item), the reason for
the copy-on-load change in the first place, retain the old
behavior.<a class="changeset-link headerlink reference internal" href="#change-3a785137de08700b2cd2a32fba4f0a05">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-11"><span class="target" id="change-b5fb4c5dc6e51819e3330abdfa847cd0"><strong>[orm] [attrname] </strong></span>a slight behavioral change to attributes is, del&#8217;ing an attribute
does <em>not</em> cause the lazyloader of that attribute to fire off again;
the &#8220;del&#8221; makes the effective value of the attribute &#8220;None&#8221;.  To
re-trigger the &#8220;loader&#8221; for an attribute, use
session.expire(instance,).<a class="changeset-link headerlink reference internal" href="#change-b5fb4c5dc6e51819e3330abdfa847cd0">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-12"><span class="target" id="change-2a465341874590d5feb725a00240b735"><strong>[orm] </strong></span>query.filter(SomeClass.somechild == None), when comparing
a many-to-one property to None, properly generates &#8220;id IS NULL&#8221;
including that the NULL is on the right side.<a class="changeset-link headerlink reference internal" href="#change-2a465341874590d5feb725a00240b735">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-13"><span class="target" id="change-3e8fd64d48f2bbde6c0011dd994f32cb"><strong>[orm] </strong></span>query.order_by() takes into account aliased joins, i.e.
query.join(&#8216;orders&#8217;, aliased=True).order_by(Order.id)<a class="changeset-link headerlink reference internal" href="#change-3e8fd64d48f2bbde6c0011dd994f32cb">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-14"><span class="target" id="change-e0a2026f22b806fae3b51161f90eb4aa"><strong>[orm] </strong></span>eagerload(), lazyload(), eagerload_all() take an optional
second class-or-mapper argument, which will select the mapper
to apply the option towards.  This can select among other
mappers which were added using add_entity().<a class="changeset-link headerlink reference internal" href="#change-e0a2026f22b806fae3b51161f90eb4aa">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-15"><span class="target" id="change-330cf46efeb1b16709defe4dc85891b0"><strong>[orm] </strong></span>eagerloading will work with mappers added via add_entity().<a class="changeset-link headerlink reference internal" href="#change-330cf46efeb1b16709defe4dc85891b0">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-16"><span class="target" id="change-3e54b894ee7ef3856d24b7831a0b878e"><strong>[orm] </strong></span>added &#8220;cascade delete&#8221; behavior to &#8220;dynamic&#8221; relations just like
that of regular relations.  if passive_deletes flag (also just added)
is not set, a delete of the parent item will trigger a full load of
the child items so that they can be deleted or updated accordingly.<a class="changeset-link headerlink reference internal" href="#change-3e54b894ee7ef3856d24b7831a0b878e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-17"><span class="target" id="change-c1b93949b70a2298405d46cc8d9e165c"><strong>[orm] </strong></span>also with dynamic, implemented correct count() behavior as well
as other helper methods.<a class="changeset-link headerlink reference internal" href="#change-c1b93949b70a2298405d46cc8d9e165c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-18"><span class="target" id="change-6d7297ea5825ce8f0a6afbfd061aeb45"><strong>[orm] </strong></span>fix to cascades on polymorphic relations, such that cascades
from an object to a polymorphic collection continue cascading
along the set of attributes specific to each element in the collection.<a class="changeset-link headerlink reference internal" href="#change-6d7297ea5825ce8f0a6afbfd061aeb45">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-19"><span class="target" id="change-a8ef939d2a84ff9c730c84834a7362d0"><strong>[orm] </strong></span>query.get() and query.load() do not take existing filter or other
criterion into account; these methods <em>always</em> look up the given id
in the database or return the current instance from the identity map,
disregarding any existing filter, join, group_by or other criterion
which has been configured.<a class="changeset-link headerlink reference internal" href="#change-a8ef939d2a84ff9c730c84834a7362d0">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/893">#893</a></p>
</p>
</li>
<li><p id="change-0.4.2-20"><span class="target" id="change-6bde88eab909a760935eadb9a4ede0f1"><strong>[orm] </strong></span>added support for version_id_col in conjunction with inheriting mappers.
version_id_col is typically set on the base mapper in an inheritance
relationship where it takes effect for all inheriting mappers.<a class="changeset-link headerlink reference internal" href="#change-6bde88eab909a760935eadb9a4ede0f1">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/883">#883</a></p>
</p>
</li>
<li><p id="change-0.4.2-21"><span class="target" id="change-eafb815c0a21fff7306edd70ede3f73f"><strong>[orm] </strong></span>relaxed rules on column_property() expressions having labels; any
ColumnElement is accepted now, as the compiler auto-labels non-labeled
ColumnElements now.  a selectable, like a select() statement, still
requires conversion to ColumnElement via as_scalar() or label().<a class="changeset-link headerlink reference internal" href="#change-eafb815c0a21fff7306edd70ede3f73f">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-22"><span class="target" id="change-0d02bce2307e213d0540d00aa850c909"><strong>[orm] </strong></span>fixed backref bug where you could not del instance.attr if attr
was None<a class="changeset-link headerlink reference internal" href="#change-0d02bce2307e213d0540d00aa850c909">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-23"><span class="target" id="change-8a557aa11c6f764820c17470e54658ce"><strong>[orm] </strong></span>several ORM attributes have been removed or made private:
mapper.get_attr_by_column(), mapper.set_attr_by_column(),
mapper.pks_by_table, mapper.cascade_callable(),
MapperProperty.cascade_callable(), mapper.canload(),
mapper.save_obj(), mapper.delete_obj(), mapper._mapper_registry,
attributes.AttributeManager<a class="changeset-link headerlink reference internal" href="#change-8a557aa11c6f764820c17470e54658ce">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-24"><span class="target" id="change-92cef2776421e3d2d6177bee48214fac"><strong>[orm] </strong></span>Assigning an incompatible collection type to a relation attribute now
raises TypeError instead of sqlalchemy&#8217;s ArgumentError.<a class="changeset-link headerlink reference internal" href="#change-92cef2776421e3d2d6177bee48214fac">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-25"><span class="target" id="change-df17f2469a0bb5f1a22d42fc865f73a4"><strong>[orm] </strong></span>Bulk assignment of a MappedCollection now raises an error if a key in the
incoming dictionary does not match the key that the collection&#8217;s keyfunc
would use for that value.<a class="changeset-link headerlink reference internal" href="#change-df17f2469a0bb5f1a22d42fc865f73a4">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/886">#886</a></p>
</p>
</li>
<li><p id="change-0.4.2-26"><span class="target" id="change-228dca0bafaa198350cfc39cb6561e8c"><strong>[orm] [newval2] [newval1] </strong></span>Custom collections can now specify a &#64;converter method to translate
objects used in &#8220;bulk&#8221; assignment into a stream of values, as in:<div class="highlight-python"><pre>obj.col =
# or
obj.dictcol = {'foo': newval1, 'bar': newval2}</pre>
</div>
<p>The MappedCollection uses this hook to ensure that incoming key/value
pairs are sane from the collection&#8217;s perspective.</p>
<a class="changeset-link headerlink reference internal" href="#change-228dca0bafaa198350cfc39cb6561e8c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-27"><span class="target" id="change-abc2dcd6fd504baa411c4ede8eda7189"><strong>[orm] </strong></span>fixed endless loop issue when using lazy=&#8221;dynamic&#8221; on both
sides of a bi-directional relationship<a class="changeset-link headerlink reference internal" href="#change-abc2dcd6fd504baa411c4ede8eda7189">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/872">#872</a></p>
</p>
</li>
<li><p id="change-0.4.2-28"><span class="target" id="change-5d359376de51a0ecf63071076057725e"><strong>[orm] </strong></span>more fixes to the LIMIT/OFFSET aliasing applied with Query + eagerloads,
in this case when mapped against a select statement<a class="changeset-link headerlink reference internal" href="#change-5d359376de51a0ecf63071076057725e">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/904">#904</a></p>
</p>
</li>
<li><p id="change-0.4.2-29"><span class="target" id="change-6705a0a328a243a3c879e94a69346ca4"><strong>[orm] </strong></span>fix to self-referential eager loading such that if the same mapped
instance appears in two or more distinct sets of columns in the same
result set, its eagerly loaded collection will be populated regardless
of whether or not all of the rows contain a set of &#8220;eager&#8221; columns for
that collection.  this would also show up as a KeyError when fetching
results with join_depth turned on.<a class="changeset-link headerlink reference internal" href="#change-6705a0a328a243a3c879e94a69346ca4">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-30"><span class="target" id="change-8ce8cb627bff40401582485251bd4caf"><strong>[orm] </strong></span>fixed bug where Query would not apply a subquery to the SQL when LIMIT
was used in conjunction with an inheriting mapper where the eager
loader was only in the parent mapper.<a class="changeset-link headerlink reference internal" href="#change-8ce8cb627bff40401582485251bd4caf">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-31"><span class="target" id="change-a583ca54c9f72d5e381ee158389cc17b"><strong>[orm] </strong></span>clarified the error message which occurs when you try to update()
an instance with the same identity key as an instance already present
in the session.<a class="changeset-link headerlink reference internal" href="#change-a583ca54c9f72d5e381ee158389cc17b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-32"><span class="target" id="change-765a4998bb1fb50421b5910813efbcc2"><strong>[orm] </strong></span>some clarifications and fixes to merge(instance, dont_load=True).
fixed bug where lazy loaders were getting disabled on returned instances.
Also, we currently do not support merging an instance which has uncommitted
changes on it, in the case that dont_load=True is used....this will
now raise an error.  This is due to complexities in merging the
&#8220;committed state&#8221; of the given instance to correctly correspond to the
newly copied instance, as well as other modified state.
Since the use case for dont_load=True is caching, the given instances
shouldn&#8217;t have any uncommitted changes on them anyway.
We also copy the instances over without using any events now, so that
the &#8216;dirty&#8217; list on the new session remains unaffected.<a class="changeset-link headerlink reference internal" href="#change-765a4998bb1fb50421b5910813efbcc2">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-33"><span class="target" id="change-ea7de496771c635bee87d7670889f0ee"><strong>[orm] </strong></span>fixed bug which could arise when using session.begin_nested() in conjunction
with more than one level deep of enclosing session.begin() statements<a class="changeset-link headerlink reference internal" href="#change-ea7de496771c635bee87d7670889f0ee">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-34"><span class="target" id="change-688cfda7b6b1b358dcef128e1f80b4bb"><strong>[orm] </strong></span>fixed session.refresh() with instance that has custom entity_name<a class="changeset-link headerlink reference internal" href="#change-688cfda7b6b1b358dcef128e1f80b4bb">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/914">#914</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.2-sql">
<h3>sql<a class="headerlink" href="#change-0.4.2-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.2-35"><span class="target" id="change-f840d15646468f91261fb9f4f827c464"><strong>[sql] </strong></span>generic functions ! we introduce a database of known SQL functions, such
as current_timestamp, coalesce, and create explicit function objects
representing them. These objects have constrained argument lists, are
type aware, and can compile in a dialect-specific fashion. So saying
func.char_length(&#8220;foo&#8221;, &#8220;bar&#8221;) raises an error (too many args),
func.coalesce(datetime.date(2007, 10, 5), datetime.date(2005, 10, 15))
knows that its return type is a Date. We only have a few functions
represented so far but will continue to add to the system<a class="changeset-link headerlink reference internal" href="#change-f840d15646468f91261fb9f4f827c464">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/615">#615</a></p>
</p>
</li>
<li><p id="change-0.4.2-36"><span class="target" id="change-50091a15ff9c9366b36b0868152e0df2"><strong>[sql] </strong></span>auto-reconnect support improved; a Connection can now automatically
reconnect after its underlying connection is invalidated, without
needing to connect() again from the engine.  This allows an ORM session
bound to a single Connection to not need a reconnect.
Open transactions on the Connection must be rolled back after an invalidation
of the underlying connection else an error is raised.  Also fixed
bug where disconnect detect was not being called for cursor(), rollback(),
or commit().<a class="changeset-link headerlink reference internal" href="#change-50091a15ff9c9366b36b0868152e0df2">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-37"><span class="target" id="change-4abfbfe6bea22beedb689afde26eee55"><strong>[sql] </strong></span>added new flag to String and create_engine(),
assert_unicode=(True|False|&#8217;warn&#8217;|None). Defaults to <cite>False</cite> or <cite>None</cite> on
create_engine() and String, <cite>&#8216;warn&#8217;</cite> on the Unicode type. When <cite>True</cite>,
results in all unicode conversion operations raising an exception when a
non-unicode bytestring is passed as a bind parameter. &#8216;warn&#8217; results
in a warning. It is strongly advised that all unicode-aware applications
make proper use of Python unicode objects (i.e. u&#8217;hello&#8217; and not &#8216;hello&#8217;)
so that data round trips accurately.<a class="changeset-link headerlink reference internal" href="#change-4abfbfe6bea22beedb689afde26eee55">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-38"><span class="target" id="change-1943253ba506b5613bb311d47f20a9de"><strong>[sql] </strong></span>generation of &#8220;unique&#8221; bind parameters has been simplified to use the same
&#8220;unique identifier&#8221; mechanisms as everything else.  This doesn&#8217;t affect
user code, except any code that might have been hardcoded against the generated
names.  Generated bind params now have the form &#8220;&lt;paramname&gt;_&lt;num&gt;&#8221;,
whereas before only the second bind of the same name would have this form.<a class="changeset-link headerlink reference internal" href="#change-1943253ba506b5613bb311d47f20a9de">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-39"><span class="target" id="change-8295165b5c3dd3ddc3c1d71843d664ad"><strong>[sql] </strong></span>select().as_scalar() will raise an exception if the select does not have
exactly one expression in its columns clause.<a class="changeset-link headerlink reference internal" href="#change-8295165b5c3dd3ddc3c1d71843d664ad">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-40"><span class="target" id="change-6e780ec732e6e0f32ed07d926adb7257"><strong>[sql] </strong></span>bindparam() objects themselves can be used as keys for execute(), i.e.
statement.execute({bind1:&#8217;foo&#8217;, bind2:&#8217;bar&#8217;})<a class="changeset-link headerlink reference internal" href="#change-6e780ec732e6e0f32ed07d926adb7257">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-41"><span class="target" id="change-96927335ae179f9639f2658179eca869"><strong>[sql] </strong></span>added new methods to TypeDecorator, process_bind_param() and
process_result_value(), which automatically take advantage of the processing
of the underlying type.  Ideal for using with Unicode or Pickletype.
TypeDecorator should now be the primary way to augment the behavior of any
existing type including other TypeDecorator subclasses such as PickleType.<a class="changeset-link headerlink reference internal" href="#change-96927335ae179f9639f2658179eca869">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-42"><span class="target" id="change-d16902bc09502cb5a78b696a5f86caf1"><strong>[sql] </strong></span>selectables (and others) will issue a warning when two columns in
their exported columns collection conflict based on name.<a class="changeset-link headerlink reference internal" href="#change-d16902bc09502cb5a78b696a5f86caf1">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-43"><span class="target" id="change-a7fd85cad8879a7cb7a882408ae2fc00"><strong>[sql] </strong></span>tables with schemas can still be used in sqlite, firebird,
schema name just gets dropped<a class="changeset-link headerlink reference internal" href="#change-a7fd85cad8879a7cb7a882408ae2fc00">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/890">#890</a></p>
</p>
</li>
<li><p id="change-0.4.2-44"><span class="target" id="change-2925ff88bfebf6c66313f6cf18859909"><strong>[sql] </strong></span>changed the various &#8220;literal&#8221; generation functions to use an anonymous
bind parameter.  not much changes here except their labels now look
like &#8221;:param_1&#8221;, &#8221;:param_2&#8221; instead of &#8221;:literal&#8221;<a class="changeset-link headerlink reference internal" href="#change-2925ff88bfebf6c66313f6cf18859909">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-45"><span class="target" id="change-2ab31cbdc0db31fb85313f8aa8fd9480"><strong>[sql] </strong></span>column labels in the form &#8220;tablename.columname&#8221;, i.e. with a dot, are now
supported.<a class="changeset-link headerlink reference internal" href="#change-2ab31cbdc0db31fb85313f8aa8fd9480">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-46"><span class="target" id="change-8fa1b1ab3760497c5d0dedf5bc7e031e"><strong>[sql] </strong></span>from_obj keyword argument to select() can be a scalar or a list.<a class="changeset-link headerlink reference internal" href="#change-8fa1b1ab3760497c5d0dedf5bc7e031e">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.2-firebird">
<h3>firebird<a class="headerlink" href="#change-0.4.2-firebird" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.2-47"><span class="target" id="change-296229733dda9c08bbcde17a5331e5fc"><strong>[firebird] [backend] </strong></span>does properly reflect domains (partially fixing) and
PassiveDefaults<a class="changeset-link headerlink reference internal" href="#change-296229733dda9c08bbcde17a5331e5fc">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/410">#410</a></p>
</p>
</li>
<li><p id="change-0.4.2-48"><span class="target" id="change-5c5bf54d072226185c9bcd8b439d9bed"><strong>[firebird] [3562] [backend] </strong></span>reverted to use default poolclass (was set to SingletonThreadPool in
0.4.0 for test purposes)<a class="changeset-link headerlink reference internal" href="#change-5c5bf54d072226185c9bcd8b439d9bed">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-49"><span class="target" id="change-c4e420a3bd5661f308a26a6dbe3bc067"><strong>[firebird] [backend] </strong></span>map func.length() to &#8216;char_length&#8217; (easily overridable with the UDF
&#8216;strlen&#8217; on old versions of Firebird)<a class="changeset-link headerlink reference internal" href="#change-c4e420a3bd5661f308a26a6dbe3bc067">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.2-misc">
<h3>misc<a class="headerlink" href="#change-0.4.2-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.2-50"><span class="target" id="change-2c81613f5859b7c1f3ceca0a78b13cfd"><strong>[dialects] </strong></span>sqlite SLDate type will not erroneously render &#8220;microseconds&#8221; portion
of a datetime or time object.<a class="changeset-link headerlink reference internal" href="#change-2c81613f5859b7c1f3ceca0a78b13cfd">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.2-51"><span class="target" id="change-8ca793172781cfe8727359f0bb56604c"><strong>[dialects] </strong></span><dl class="docutils">
<dt>oracle</dt>
<dd><ul class="first last">
<li>added disconnect detection support for Oracle</li>
<li>some cleanup to binary/raw types so that cx_oracle.LOB is detected
on an ad-hoc basis</li>
</ul>
</dd>
</dl>
<a class="changeset-link headerlink reference internal" href="#change-8ca793172781cfe8727359f0bb56604c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/902">#902</a></p>
</p>
</li>
<li><p id="change-0.4.2-52"><span class="target" id="change-e26463d0e09920a810721d5acec0fc1f"><strong>[dialects] </strong></span><dl class="docutils">
<dt>MSSQL</dt>
<dd><ul class="first last">
<li>PyODBC no longer has a global &#8220;set nocount on&#8221;.</li>
<li>Fix non-identity integer PKs on autload</li>
<li>Better support for convert_unicode</li>
<li>Less strict date conversion for pyodbc/adodbapi</li>
<li>Schema-qualified tables / autoload</li>
</ul>
</dd>
</dl>
<a class="changeset-link headerlink reference internal" href="#change-e26463d0e09920a810721d5acec0fc1f">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/824">#824</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/839">#839</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/842">#842</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/901">#901</a></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.4.1">
<h2>0.4.1<a class="headerlink" href="#change-0.4.1" title="Permalink to this headline">¶</a></h2>
Released: Sun Nov 18 2007<div class="section" id="change-0.4.1-orm">
<h3>orm<a class="headerlink" href="#change-0.4.1-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.1-0"><span class="target" id="change-0b89c1898d4084608e81d2938ee20609"><strong>[orm] </strong></span>eager loading with LIMIT/OFFSET applied no longer adds the primary
table joined to a limited subquery of itself; the eager loads now
join directly to the subquery which also provides the primary table&#8217;s
columns to the result set.  This eliminates a JOIN from all eager loads
with LIMIT/OFFSET.<a class="changeset-link headerlink reference internal" href="#change-0b89c1898d4084608e81d2938ee20609">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/843">#843</a></p>
</p>
</li>
<li><p id="change-0.4.1-1"><span class="target" id="change-594a0081d5108bf4ee29921c0a5a842e"><strong>[orm] </strong></span>session.refresh() and session.expire() now support an additional argument
&#8220;attribute_names&#8221;, a list of individual attribute keynames to be refreshed
or expired, allowing partial reloads of attributes on an already-loaded
instance.<a class="changeset-link headerlink reference internal" href="#change-594a0081d5108bf4ee29921c0a5a842e">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/802">#802</a></p>
</p>
</li>
<li><p id="change-0.4.1-2"><span class="target" id="change-b28a496490baf96e53a35fd41141c45c"><strong>[orm] </strong></span>added op() operator to instrumented attributes; i.e.
User.name.op(&#8216;ilike&#8217;)(&#8216;%somename%&#8217;)<a class="changeset-link headerlink reference internal" href="#change-b28a496490baf96e53a35fd41141c45c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/767">#767</a></p>
</p>
</li>
<li><p id="change-0.4.1-3"><span class="target" id="change-eb31b9d3e5311a271dc3c49b5404c206"><strong>[orm] </strong></span>Mapped classes may now define __eq__, __hash__, and __nonzero__ methods
with arbitrary semantics.  The orm now handles all mapped instances on
an identity-only basis. (e.g. &#8216;is&#8217; vs &#8216;==&#8217;)<a class="changeset-link headerlink reference internal" href="#change-eb31b9d3e5311a271dc3c49b5404c206">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/676">#676</a></p>
</p>
</li>
<li><p id="change-0.4.1-4"><span class="target" id="change-3f023f26f562df58ce90608560fd6504"><strong>[orm] </strong></span>the &#8220;properties&#8221; accessor on Mapper is removed; it now throws an informative
exception explaining the usage of mapper.get_property() and
mapper.iterate_properties<a class="changeset-link headerlink reference internal" href="#change-3f023f26f562df58ce90608560fd6504">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-5"><span class="target" id="change-2fc98bef8342a30df5eaf8d717ab428d"><strong>[orm] </strong></span>added having() method to Query, applies HAVING to the generated statement
in the same way as filter() appends to the WHERE clause.<a class="changeset-link headerlink reference internal" href="#change-2fc98bef8342a30df5eaf8d717ab428d">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-6"><span class="target" id="change-1ca51b23a65e7b311c38e71e4f06f672"><strong>[orm] </strong></span>The behavior of query.options() is now fully based on paths, i.e. an
option such as eagerload_all(&#8216;x.y.z.y.x&#8217;) will apply eagerloading to
only those paths, i.e. and not &#8216;x.y.x&#8217;; eagerload(&#8216;children.children&#8217;)
applies only to exactly two-levels deep, etc.<a class="changeset-link headerlink reference internal" href="#change-1ca51b23a65e7b311c38e71e4f06f672">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/777">#777</a></p>
</p>
</li>
<li><p id="change-0.4.1-7"><span class="target" id="change-25697ecfe693193b2646032ae6cbe5e3"><strong>[orm] </strong></span>PickleType will compare using <cite>==</cite> when set up with mutable=False,
and not the <cite>is</cite> operator.  To use <cite>is</cite> or any other comparator, send
in a custom comparison function using PickleType(comparator=my_custom_comparator).<a class="changeset-link headerlink reference internal" href="#change-25697ecfe693193b2646032ae6cbe5e3">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-8"><span class="target" id="change-6541ab9074117cd48928f7885253addf"><strong>[orm] </strong></span>query doesn&#8217;t throw an error if you use distinct() and an order_by()
containing UnaryExpressions (or other) together<a class="changeset-link headerlink reference internal" href="#change-6541ab9074117cd48928f7885253addf">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/848">#848</a></p>
</p>
</li>
<li><p id="change-0.4.1-9"><span class="target" id="change-4f9647deaa363941af6a3cc05cd1f193"><strong>[orm] </strong></span>order_by() expressions from joined tables are properly added to columns
clause when using distinct()<a class="changeset-link headerlink reference internal" href="#change-4f9647deaa363941af6a3cc05cd1f193">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/786">#786</a></p>
</p>
</li>
<li><p id="change-0.4.1-10"><span class="target" id="change-24e4c45db8fecf131cab8c0a13b7dbed"><strong>[orm] </strong></span>fixed error where Query.add_column() would not accept a class-bound
attribute as an argument; Query also raises an error if an invalid
argument was sent to add_column() (at instances() time)<a class="changeset-link headerlink reference internal" href="#change-24e4c45db8fecf131cab8c0a13b7dbed">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/858">#858</a></p>
</p>
</li>
<li><p id="change-0.4.1-11"><span class="target" id="change-8a9ee44baa74c1b5e3bd072e563eb7c4"><strong>[orm] </strong></span>added a little more checking for garbage-collection dereferences in
InstanceState.__cleanup() to reduce &#8220;gc ignored&#8221; errors on app
shutdown<a class="changeset-link headerlink reference internal" href="#change-8a9ee44baa74c1b5e3bd072e563eb7c4">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-12"><span class="target" id="change-a42838089d8927d06dc3e4f5fb731b84"><strong>[orm] </strong></span>The session API has been solidified:<a class="changeset-link headerlink reference internal" href="#change-a42838089d8927d06dc3e4f5fb731b84">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-13"><span class="target" id="change-5e08c60d85b9c39cc11a409fafc3424f"><strong>[orm] </strong></span>It&#8217;s an error to session.save() an object which is already
persistent<a class="changeset-link headerlink reference internal" href="#change-5e08c60d85b9c39cc11a409fafc3424f">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/840">#840</a></p>
</p>
</li>
<li><p id="change-0.4.1-14"><span class="target" id="change-4869e0999f48ab540716a33356319094"><strong>[orm] </strong></span>It&#8217;s an error to session.delete() an object which is <em>not</em>
persistent.<a class="changeset-link headerlink reference internal" href="#change-4869e0999f48ab540716a33356319094">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-15"><span class="target" id="change-e629f6ef18ff5d02c5e58f3269d83bb7"><strong>[orm] </strong></span>session.update() and session.delete() raise an error when updating
or deleting an instance that is already in the session with a
different identity.<a class="changeset-link headerlink reference internal" href="#change-e629f6ef18ff5d02c5e58f3269d83bb7">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-16"><span class="target" id="change-01dbce273a2adf5114b01dc0b145907c"><strong>[orm] </strong></span>The session checks more carefully when determining &#8220;object X already
in another session&#8221;; e.g. if you pickle a series of objects and
unpickle (i.e. as in a Pylons HTTP session or similar), they can go
into a new session without any conflict<a class="changeset-link headerlink reference internal" href="#change-01dbce273a2adf5114b01dc0b145907c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-17"><span class="target" id="change-70e068257ffe2a9509dde98014d7fc8f"><strong>[orm] </strong></span>merge() includes a keyword argument &#8220;dont_load=True&#8221;.  setting this
flag will cause the merge operation to not load any data from the
database in response to incoming detached objects, and will accept
the incoming detached object as though it were already present in
that session.  Use this to merge detached objects from external
caching systems into the session.<a class="changeset-link headerlink reference internal" href="#change-70e068257ffe2a9509dde98014d7fc8f">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-18"><span class="target" id="change-6ef45e3576f11236b5bc83eb98617664"><strong>[orm] </strong></span>Deferred column attributes no longer trigger a load operation when the
attribute is assigned to.  In those cases, the newly assigned value
will be present in the flushes&#8217; UPDATE statement unconditionally.<a class="changeset-link headerlink reference internal" href="#change-6ef45e3576f11236b5bc83eb98617664">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-19"><span class="target" id="change-91e4cc2655c18b9537f4d744bfdd2708"><strong>[orm] </strong></span>Fixed a truncation error when re-assigning a subset of a collection
(obj.relation = obj.relation[1:])<a class="changeset-link headerlink reference internal" href="#change-91e4cc2655c18b9537f4d744bfdd2708">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/834">#834</a></p>
</p>
</li>
<li><p id="change-0.4.1-20"><span class="target" id="change-41c6f4041a8bb7bdfbc47fec3d053013"><strong>[orm] </strong></span>De-cruftified backref configuration code, backrefs which step on
existing properties now raise an error<a class="changeset-link headerlink reference internal" href="#change-41c6f4041a8bb7bdfbc47fec3d053013">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/832">#832</a></p>
</p>
</li>
<li><p id="change-0.4.1-21"><span class="target" id="change-759a3aea37ad25edb343df437295e6e6"><strong>[orm] </strong></span>Improved behavior of add_property() etc., fixed involving
synonym/deferred.<a class="changeset-link headerlink reference internal" href="#change-759a3aea37ad25edb343df437295e6e6">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/831">#831</a></p>
</p>
</li>
<li><p id="change-0.4.1-22"><span class="target" id="change-5d9a9be98d135fcb8ef55e33ae16b4e9"><strong>[orm] </strong></span>Fixed clear_mappers() behavior to better clean up after itself.<a class="changeset-link headerlink reference internal" href="#change-5d9a9be98d135fcb8ef55e33ae16b4e9">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-23"><span class="target" id="change-c43e29a204caeb3c86ea12bedc74a885"><strong>[orm] </strong></span>Fix to &#8220;row switch&#8221; behavior, i.e. when an INSERT/DELETE is combined
into a single UPDATE; many-to-many relations on the parent object
update properly.<a class="changeset-link headerlink reference internal" href="#change-c43e29a204caeb3c86ea12bedc74a885">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/841">#841</a></p>
</p>
</li>
<li><p id="change-0.4.1-24"><span class="target" id="change-ccf7e204c172dae174612768df596949"><strong>[orm] </strong></span>Fixed __hash__ for association proxy- these collections are unhashable,
just like their mutable Python counterparts.<a class="changeset-link headerlink reference internal" href="#change-ccf7e204c172dae174612768df596949">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-25"><span class="target" id="change-2754c6abcf835f7d57e9369b9cfdcd6a"><strong>[orm] </strong></span>Added proxying of save_or_update, __contains__ and __iter__ methods for
scoped sessions.<a class="changeset-link headerlink reference internal" href="#change-2754c6abcf835f7d57e9369b9cfdcd6a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-26"><span class="target" id="change-94bbc737fc90680c013c33b8fd5c6177"><strong>[orm] </strong></span>fixed very hard-to-reproduce issue where by the FROM clause of Query
could get polluted by certain generative calls<a class="changeset-link headerlink reference internal" href="#change-94bbc737fc90680c013c33b8fd5c6177">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/852">#852</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.1-sql">
<h3>sql<a class="headerlink" href="#change-0.4.1-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.1-27"><span class="target" id="change-c4010d5d99cc7a8ff9d77a8cf6a8aef4"><strong>[sql] </strong></span>the &#8220;shortname&#8221; keyword parameter on bindparam() has been
deprecated.<a class="changeset-link headerlink reference internal" href="#change-c4010d5d99cc7a8ff9d77a8cf6a8aef4">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-28"><span class="target" id="change-cc475e4294cf5bc311cbfa7da8a7cc8f"><strong>[sql] </strong></span>Added contains operator (generates a &#8220;LIKE %&lt;other&gt;%&#8221; clause).<a class="changeset-link headerlink reference internal" href="#change-cc475e4294cf5bc311cbfa7da8a7cc8f">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-29"><span class="target" id="change-4d5450de721c9aeffc95905577b27182"><strong>[sql] </strong></span>anonymous column expressions are automatically labeled.
e.g. select([x* 5]) produces &#8220;SELECT x * 5 AS anon_1&#8221;.
This allows the labelname to be present in the cursor.description
which can then be appropriately matched to result-column processing
rules. (we can&#8217;t reliably use positional tracking for result-column
matches since text() expressions may represent multiple columns).<a class="changeset-link headerlink reference internal" href="#change-4d5450de721c9aeffc95905577b27182">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-30"><span class="target" id="change-5378ee3b3457f069b4aece9be3205155"><strong>[sql] </strong></span>operator overloading is now controlled by TypeEngine objects - the
one built-in operator overload so far is String types overloading
&#8216;+&#8217; to be the string concatenation operator.
User-defined types can also define their own operator overloading
by overriding the adapt_operator(self, op) method.<a class="changeset-link headerlink reference internal" href="#change-5378ee3b3457f069b4aece9be3205155">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-31"><span class="target" id="change-84a5f6328d01750340ded0b38bddf0b1"><strong>[sql] </strong></span>untyped bind parameters on the right side of a binary expression
will be assigned the type of the left side of the operation, to better
enable the appropriate bind parameter processing to take effect<a class="changeset-link headerlink reference internal" href="#change-84a5f6328d01750340ded0b38bddf0b1">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/819">#819</a></p>
</p>
</li>
<li><p id="change-0.4.1-32"><span class="target" id="change-1c04ab02a23376e994e8ae24241f0a56"><strong>[sql] </strong></span>Removed regular expression step from most statement compilations.
Also fixes<a class="changeset-link headerlink reference internal" href="#change-1c04ab02a23376e994e8ae24241f0a56">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/833">#833</a></p>
</p>
</li>
<li><p id="change-0.4.1-33"><span class="target" id="change-843aea1d01efb76d3683d2d7c05850a3"><strong>[sql] </strong></span>Fixed empty (zero column) sqlite inserts, allowing inserts on
autoincrementing single column tables.<a class="changeset-link headerlink reference internal" href="#change-843aea1d01efb76d3683d2d7c05850a3">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-34"><span class="target" id="change-b7662d8394714cbb6d9daa235d86c4b6"><strong>[sql] </strong></span>Fixed expression translation of text() clauses; this repairs various
ORM scenarios where literal text is used for SQL expressions<a class="changeset-link headerlink reference internal" href="#change-b7662d8394714cbb6d9daa235d86c4b6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-35"><span class="target" id="change-36a4d5696bd619c85b8b8b650728d842"><strong>[sql] </strong></span>Removed ClauseParameters object; compiled.params returns a regular
dictionary now, as well as result.last_inserted_params() /
last_updated_params().<a class="changeset-link headerlink reference internal" href="#change-36a4d5696bd619c85b8b8b650728d842">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-36"><span class="target" id="change-246ac6dc033a79f2373e3fc6a80fdfe8"><strong>[sql] </strong></span>Fixed INSERT statements w.r.t. primary key columns that have
SQL-expression based default generators on them; SQL expression
executes inline as normal but will not trigger a &#8220;postfetch&#8221; condition
for the column, for those DB&#8217;s who provide it via cursor.lastrowid<a class="changeset-link headerlink reference internal" href="#change-246ac6dc033a79f2373e3fc6a80fdfe8">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-37"><span class="target" id="change-4313d5275f28eb3f99349b58aad9a963"><strong>[sql] </strong></span>func. objects can be pickled/unpickled<a class="changeset-link headerlink reference internal" href="#change-4313d5275f28eb3f99349b58aad9a963">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/844">#844</a></p>
</p>
</li>
<li><p id="change-0.4.1-38"><span class="target" id="change-530c7500b6d6596c5e44ff1bcc3bce10"><strong>[sql] </strong></span>rewrote and simplified the system used to &#8220;target&#8221; columns across
selectable expressions.  On the SQL side this is represented by the
&#8220;corresponding_column()&#8221; method. This method is used heavily by the ORM
to &#8220;adapt&#8221; elements of an expression to similar, aliased expressions,
as well as to target result set columns originally bound to a
table or selectable to an aliased, &#8220;corresponding&#8221; expression.  The new
rewrite features completely consistent and accurate behavior.<a class="changeset-link headerlink reference internal" href="#change-530c7500b6d6596c5e44ff1bcc3bce10">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-39"><span class="target" id="change-9ce2e2e3ce7ee6bc38d6391ca49d1bc1"><strong>[sql] </strong></span>Added a field (&#8220;info&#8221;) for storing arbitrary data on schema items<a class="changeset-link headerlink reference internal" href="#change-9ce2e2e3ce7ee6bc38d6391ca49d1bc1">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/573">#573</a></p>
</p>
</li>
<li><p id="change-0.4.1-40"><span class="target" id="change-e82d8124e2cacd51fd60363bf86daeee"><strong>[sql] </strong></span>The &#8220;properties&#8221; collection on Connections has been renamed &#8220;info&#8221; to
match schema&#8217;s writable collections.  Access is still available via
the &#8220;properties&#8221; name until 0.5.<a class="changeset-link headerlink reference internal" href="#change-e82d8124e2cacd51fd60363bf86daeee">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-41"><span class="target" id="change-6e152ccd5b3f9e3f7ee75b1efb1f7acd"><strong>[sql] </strong></span>fixed the close() method on Transaction when using strategy=&#8217;threadlocal&#8217;<a class="changeset-link headerlink reference internal" href="#change-6e152ccd5b3f9e3f7ee75b1efb1f7acd">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-42"><span class="target" id="change-74a921aec37d54b685b3772d6afe21c8"><strong>[sql] </strong></span>fix to compiled bind parameters to not mistakenly populate None<a class="changeset-link headerlink reference internal" href="#change-74a921aec37d54b685b3772d6afe21c8">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/853">#853</a></p>
</p>
</li>
<li><p id="change-0.4.1-43"><span class="target" id="change-d7e28424562953a96441f068c4371b86"><strong>[sql] </strong></span>&lt;Engine|Connection&gt;._execute_clauseelement becomes a public method
Connectable.execute_clauseelement<a class="changeset-link headerlink reference internal" href="#change-d7e28424562953a96441f068c4371b86">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.1-misc">
<h3>misc<a class="headerlink" href="#change-0.4.1-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.1-44"><span class="target" id="change-87d6ffbdea8e609cece2a7580f1cbfd8"><strong>[dialects] </strong></span>Added experimental support for MaxDB (versions &gt;= 7.6.03.007 only).<a class="changeset-link headerlink reference internal" href="#change-87d6ffbdea8e609cece2a7580f1cbfd8">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-45"><span class="target" id="change-914074ff8e5eed82fab96d0b8a6b71cc"><strong>[dialects] </strong></span>oracle will now reflect &#8220;DATE&#8221; as an OracleDateTime column, not
OracleDate<a class="changeset-link headerlink reference internal" href="#change-914074ff8e5eed82fab96d0b8a6b71cc">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-46"><span class="target" id="change-ea8c17afee12829dee303f9a3b5e9e93"><strong>[dialects] </strong></span>added awareness of schema name in oracle table_names() function,
fixes metadata.reflect(schema=&#8217;someschema&#8217;)<a class="changeset-link headerlink reference internal" href="#change-ea8c17afee12829dee303f9a3b5e9e93">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/847">#847</a></p>
</p>
</li>
<li><p id="change-0.4.1-47"><span class="target" id="change-bd6478eaa69e057034c6c987444e39a2"><strong>[dialects] </strong></span>MSSQL anonymous labels for selection of functions made deterministic<a class="changeset-link headerlink reference internal" href="#change-bd6478eaa69e057034c6c987444e39a2">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-48"><span class="target" id="change-538b138b4fd33c8a8761b3953aa54d96"><strong>[dialects] </strong></span>sqlite will reflect &#8220;DECIMAL&#8221; as a numeric column.<a class="changeset-link headerlink reference internal" href="#change-538b138b4fd33c8a8761b3953aa54d96">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-49"><span class="target" id="change-1b89ee1a9467ff024e61a062369696f0"><strong>[dialects] </strong></span>Made access dao detection more reliable<a class="changeset-link headerlink reference internal" href="#change-1b89ee1a9467ff024e61a062369696f0">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/828">#828</a></p>
</p>
</li>
<li><p id="change-0.4.1-50"><span class="target" id="change-b559a79228b5f4bf95f4c9c0621d82e4"><strong>[dialects] </strong></span>Renamed the Dialect attribute &#8216;preexecute_sequences&#8217; to
&#8216;preexecute_pk_sequences&#8217;.  An attribute porxy is in place for
out-of-tree dialects using the old name.<a class="changeset-link headerlink reference internal" href="#change-b559a79228b5f4bf95f4c9c0621d82e4">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-51"><span class="target" id="change-cd70ea2a75cf0f0058a871da3c0a7381"><strong>[dialects] </strong></span>Added test coverage for unknown type reflection. Fixed sqlite/mysql
handling of type reflection for unknown types.<a class="changeset-link headerlink reference internal" href="#change-cd70ea2a75cf0f0058a871da3c0a7381">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-52"><span class="target" id="change-e8a0ddea13b9ebc8886d4b136d2b1d68"><strong>[dialects] </strong></span>Added REAL for mysql dialect (for folks exploiting the
REAL_AS_FLOAT sql mode).<a class="changeset-link headerlink reference internal" href="#change-e8a0ddea13b9ebc8886d4b136d2b1d68">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-53"><span class="target" id="change-0f02a6b3d522bc191f30d77738ee5134"><strong>[dialects] </strong></span>mysql Float, MSFloat and MSDouble constructed without arguments
now produce no-argument DDL, e.g.&#8217;FLOAT&#8217;.<a class="changeset-link headerlink reference internal" href="#change-0f02a6b3d522bc191f30d77738ee5134">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.1-54"><span class="target" id="change-e83c6ba370ca3384eed62f241d8b80d9"><strong>[misc] </strong></span>Removed unused util.hash().<a class="changeset-link headerlink reference internal" href="#change-e83c6ba370ca3384eed62f241d8b80d9">¶</a><p></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.4.0">
<h2>0.4.0<a class="headerlink" href="#change-0.4.0" title="Permalink to this headline">¶</a></h2>
Released: Wed Oct 17 2007<ul class="simple">
<li><p id="change-0.4.0-0"><span class="target" id="change-b4fc8b2d58a4d717e756adb83fde5498"></span>(see 0.4.0beta1 for the start of major changes against 0.3,
as well as <a class="reference external" href="http://www.sqlalchemy.org/trac/wiki/WhatsNewIn04">http://www.sqlalchemy.org/trac/wiki/WhatsNewIn04</a> )<a class="changeset-link headerlink reference internal" href="#change-b4fc8b2d58a4d717e756adb83fde5498">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-1"><span class="target" id="change-bcf3dff7b0aa6e5210dcc06d54677447"></span>Added initial Sybase support (mxODBC so far)<a class="changeset-link headerlink reference internal" href="#change-bcf3dff7b0aa6e5210dcc06d54677447">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/785">#785</a></p>
</p>
</li>
<li><p id="change-0.4.0-2"><span class="target" id="change-25fce3a42aa163243a076187861b48a8"></span>Added partial index support for PostgreSQL. Use the postgres_where keyword
on the Index.<a class="changeset-link headerlink reference internal" href="#change-25fce3a42aa163243a076187861b48a8">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-3"><span class="target" id="change-50353e4f1d87383f71322fa8c91dc8dc"></span>string-based query param parsing/config file parser understands
wider range of string values for booleans<a class="changeset-link headerlink reference internal" href="#change-50353e4f1d87383f71322fa8c91dc8dc">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/817">#817</a></p>
</p>
</li>
<li><p id="change-0.4.0-4"><span class="target" id="change-c14bc3996acddaff218f64dced993cbc"></span>backref remove object operation doesn&#8217;t fail if the other-side
collection doesn&#8217;t contain the item, supports noload collections<a class="changeset-link headerlink reference internal" href="#change-c14bc3996acddaff218f64dced993cbc">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/813">#813</a></p>
</p>
</li>
<li><p id="change-0.4.0-5"><span class="target" id="change-3fe165fcf8b210dd06e23fe29c90fdcf"></span>removed __len__ from &#8220;dynamic&#8221; collection as it would require issuing
a SQL &#8220;count()&#8221; operation, thus forcing all list evaluations to issue
redundant SQL<a class="changeset-link headerlink reference internal" href="#change-3fe165fcf8b210dd06e23fe29c90fdcf">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/818">#818</a></p>
</p>
</li>
<li><p id="change-0.4.0-6"><span class="target" id="change-fed60a94c48be9f1d4fbf64b773478a9"></span>inline optimizations added to locate_dirty() which can greatly speed up
repeated calls to flush(), as occurs with autoflush=True<a class="changeset-link headerlink reference internal" href="#change-fed60a94c48be9f1d4fbf64b773478a9">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/816">#816</a></p>
</p>
</li>
<li><p id="change-0.4.0-7"><span class="target" id="change-6931e3874f7028b6166fbaee26c13735"></span>The IdentifierPreprarer&#8217;s _requires_quotes test is now regex based.  Any
out-of-tree dialects that provide custom sets of legal_characters or
illegal_initial_characters will need to move to regexes or override
_requires_quotes.<a class="changeset-link headerlink reference internal" href="#change-6931e3874f7028b6166fbaee26c13735">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-8"><span class="target" id="change-5a64dfccda02d75cc5a717a5d72f1d75"></span>Firebird has supports_sane_rowcount and supports_sane_multi_rowcount set
to False due to ticket #370 (right way).<a class="changeset-link headerlink reference internal" href="#change-5a64dfccda02d75cc5a717a5d72f1d75">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-9"><span class="target" id="change-a9896a5318c3109f7c89af2ad2c36bc9"></span><dl class="docutils">
<dt>Improvements and fixes on Firebird reflection:</dt>
<dd><ul class="first last">
<li>FBDialect now mimics OracleDialect, regarding case-sensitivity of TABLE and
COLUMN names (see &#8216;case_sensitive remotion&#8217; topic on this current file).</li>
<li>FBDialect.table_names() doesn&#8217;t bring system tables (ticket:796).</li>
<li>FB now reflects Column&#8217;s nullable property correctly.</li>
</ul>
</dd>
</dl>
<a class="changeset-link headerlink reference internal" href="#change-a9896a5318c3109f7c89af2ad2c36bc9">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-10"><span class="target" id="change-7a9f394245eb8aa496bcd282b6cb9d91"></span>Fixed SQL compiler&#8217;s awareness of top-level column labels as used
in result-set processing; nested selects which contain the same column
names don&#8217;t affect the result or conflict with result-column metadata.<a class="changeset-link headerlink reference internal" href="#change-7a9f394245eb8aa496bcd282b6cb9d91">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-11"><span class="target" id="change-d558e9c84b1e5793e3c4a3c171f163af"></span>query.get() and related functions (like many-to-one lazyloading)
use compile-time-aliased bind parameter names, to prevent
name conflicts with bind parameters that already exist in the
mapped selectable.<a class="changeset-link headerlink reference internal" href="#change-d558e9c84b1e5793e3c4a3c171f163af">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-12"><span class="target" id="change-05e3bf9bc8a5fbc5cb566b518f8c3d52"></span>Fixed three- and multi-level select and deferred inheritance loading
(i.e. abc inheritance with no select_table).<a class="changeset-link headerlink reference internal" href="#change-05e3bf9bc8a5fbc5cb566b518f8c3d52">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/795">#795</a></p>
</p>
</li>
<li><p id="change-0.4.0-13"><span class="target" id="change-5d0fab06b154a736d16cc1f5f05124d6"></span>Ident passed to id_chooser in shard.py always a list.<a class="changeset-link headerlink reference internal" href="#change-5d0fab06b154a736d16cc1f5f05124d6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-14"><span class="target" id="change-900edd4aa3ce5b35e0379abe1f1aceec"></span>The no-arg ResultProxy._row_processor() is now the class attribute
<cite>_process_row</cite>.<a class="changeset-link headerlink reference internal" href="#change-900edd4aa3ce5b35e0379abe1f1aceec">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-15"><span class="target" id="change-a888d5a2b3097f6a24d949a8c8094ba0"></span>Added support for returning values from inserts and updates for
PostgreSQL 8.2+.<a class="changeset-link headerlink reference internal" href="#change-a888d5a2b3097f6a24d949a8c8094ba0">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/797">#797</a></p>
</p>
</li>
<li><p id="change-0.4.0-16"><span class="target" id="change-737ba18b8c4d08ef01910aa20772d16a"></span>PG reflection, upon seeing the default schema name being used explicitly
as the &#8220;schema&#8221; argument in a Table, will assume that this is the
user&#8217;s desired convention, and will explicitly set the &#8220;schema&#8221; argument
in foreign-key-related reflected tables, thus making them match only
with Table constructors that also use the explicit &#8220;schema&#8221; argument
(even though its the default schema).
In other words, SA assumes the user is being consistent in this usage.<a class="changeset-link headerlink reference internal" href="#change-737ba18b8c4d08ef01910aa20772d16a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-17"><span class="target" id="change-ebf15415b10e013bcf0d9a82f892a217"></span>fixed sqlite reflection of BOOL/BOOLEAN<a class="changeset-link headerlink reference internal" href="#change-ebf15415b10e013bcf0d9a82f892a217">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/808">#808</a></p>
</p>
</li>
<li><p id="change-0.4.0-18"><span class="target" id="change-f1c6c0df2c06bf883b72c36b13e92e75"></span>Added support for UPDATE with LIMIT on mysql.<a class="changeset-link headerlink reference internal" href="#change-f1c6c0df2c06bf883b72c36b13e92e75">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-19"><span class="target" id="change-efe5107a0d07dac76612b27de5b70784"></span>null foreign key on a m2o doesn&#8217;t trigger a lazyload<a class="changeset-link headerlink reference internal" href="#change-efe5107a0d07dac76612b27de5b70784">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/803">#803</a></p>
</p>
</li>
<li><p id="change-0.4.0-20"><span class="target" id="change-528c46ca19ca4d864d2acad507616b4c"></span>oracle does not implicitly convert to unicode for non-typed result
sets (i.e. when no TypeEngine/String/Unicode type is even being used;
previously it was detecting DBAPI types and converting regardless).
should fix<a class="changeset-link headerlink reference internal" href="#change-528c46ca19ca4d864d2acad507616b4c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/800">#800</a></p>
</p>
</li>
<li><p id="change-0.4.0-21"><span class="target" id="change-77dbca629719cb4cb77e1ddf562e7d9a"></span>fix to anonymous label generation of long table/column names<a class="changeset-link headerlink reference internal" href="#change-77dbca629719cb4cb77e1ddf562e7d9a">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/806">#806</a></p>
</p>
</li>
<li><p id="change-0.4.0-22"><span class="target" id="change-220b2721e3178a042f4628ddf67103d4"></span>Firebird dialect now uses SingletonThreadPool as poolclass.<a class="changeset-link headerlink reference internal" href="#change-220b2721e3178a042f4628ddf67103d4">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-23"><span class="target" id="change-a9a8ada8cf6f9e910f573eaa9489415b"></span>Firebird now uses dialect.preparer to format sequences names<a class="changeset-link headerlink reference internal" href="#change-a9a8ada8cf6f9e910f573eaa9489415b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-24"><span class="target" id="change-3a7b59bf8fe3093a054925308b7f4799"></span>Fixed breakage with postgres and multiple two-phase transactions. Two-phase
commits and rollbacks didn&#8217;t automatically end up with a new transaction
as the usual dbapi commits/rollbacks do.<a class="changeset-link headerlink reference internal" href="#change-3a7b59bf8fe3093a054925308b7f4799">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/810">#810</a></p>
</p>
</li>
<li><p id="change-0.4.0-25"><span class="target" id="change-dcfcc254bf2beebefed7c884d53fdbbc"></span>Added an option to the _ScopedExt mapper extension to not automatically
save new objects to session on object initialization.<a class="changeset-link headerlink reference internal" href="#change-dcfcc254bf2beebefed7c884d53fdbbc">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-26"><span class="target" id="change-5c1e6eaf781c2a9ecb4b8d604b4c12d7"></span>fixed Oracle non-ansi join syntax<a class="changeset-link headerlink reference internal" href="#change-5c1e6eaf781c2a9ecb4b8d604b4c12d7">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-27"><span class="target" id="change-2d010cff627c0048b473b58acfd31fc3"></span>PickleType and Interval types (on db not supporting it natively) are now
slightly faster.<a class="changeset-link headerlink reference internal" href="#change-2d010cff627c0048b473b58acfd31fc3">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-28"><span class="target" id="change-1aa7ff5a74776a60681a3dc879294a54"></span>Added Float and Time types to Firebird (FBFloat and FBTime). Fixed
BLOB SUB_TYPE for TEXT and Binary types.<a class="changeset-link headerlink reference internal" href="#change-1aa7ff5a74776a60681a3dc879294a54">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0-29"><span class="target" id="change-90371ac2603990896e47a63773b4be24"></span>Changed the API for the in_ operator. in_() now accepts a single argument
that is a sequence of values or a selectable. The old API of passing in
values as varargs still works but is deprecated.<a class="changeset-link headerlink reference internal" href="#change-90371ac2603990896e47a63773b4be24">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.0beta6">
<h2>0.4.0beta6<a class="headerlink" href="#change-0.4.0beta6" title="Permalink to this headline">¶</a></h2>
Released: Thu Sep 27 2007<ul class="simple">
<li><p id="change-0.4.0beta6-0"><span class="target" id="change-1df819a6cf9fd245a16b40d9c188c60f"></span>The Session identity map is now <em>weak referencing</em> by default, use
weak_identity_map=False to use a regular dict.  The weak dict we are using
is customized to detect instances which are &#8220;dirty&#8221; and maintain a
temporary strong reference to those instances until changes are flushed.<a class="changeset-link headerlink reference internal" href="#change-1df819a6cf9fd245a16b40d9c188c60f">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta6-1"><span class="target" id="change-1d1c0f14569b491f750569e9ee7529b3"></span>Mapper compilation has been reorganized such that most compilation occurs
upon mapper construction.  This allows us to have fewer calls to
mapper.compile() and also to allow class-based properties to force a
compilation (i.e. User.addresses == 7 will compile all mappers; this is).  The only caveat here is that an inheriting mapper now
looks for its inherited mapper upon construction; so mappers within
inheritance relationships need to be constructed in inheritance order
(which should be the normal case anyway).<a class="changeset-link headerlink reference internal" href="#change-1d1c0f14569b491f750569e9ee7529b3">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/758">#758</a></p>
</p>
</li>
<li><p id="change-0.4.0beta6-2"><span class="target" id="change-b7cf4f4d67686ec87fdba236e7d68f25"></span>added &#8220;FETCH&#8221; to the keywords detected by Postgres to indicate a
result-row holding statement (i.e. in addition to &#8220;SELECT&#8221;).<a class="changeset-link headerlink reference internal" href="#change-b7cf4f4d67686ec87fdba236e7d68f25">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta6-3"><span class="target" id="change-9547226b45b928b5e944366ec8a0ab93"></span>Added full list of SQLite reserved keywords so that they get escaped
properly.<a class="changeset-link headerlink reference internal" href="#change-9547226b45b928b5e944366ec8a0ab93">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta6-4"><span class="target" id="change-f4cba78c179582e4bb530a36c5e55152"></span>Tightened up the relationship between the Query&#8217;s generation of &#8220;eager
load&#8221; aliases, and Query.instances() which actually grabs the eagerly
loaded rows.  If the aliases were not specifically generated for that
statement by EagerLoader, the EagerLoader will not take effect when the
rows are fetched.  This prevents columns from being grabbed accidentally
as being part of an eager load when they were not meant for such, which
can happen with textual SQL as well as some inheritance situations.  It&#8217;s
particularly important since the &#8220;anonymous aliasing&#8221; of columns uses
simple integer counts now to generate labels.<a class="changeset-link headerlink reference internal" href="#change-f4cba78c179582e4bb530a36c5e55152">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta6-5"><span class="target" id="change-066c676b077070c937c1d23f53d45e3a"></span>Removed &#8220;parameters&#8221; argument from clauseelement.compile(), replaced with
&#8220;column_keys&#8221;.  The parameters sent to execute() only interact with the
insert/update statement compilation process in terms of the column names
present but not the values for those columns.  Produces more consistent
execute/executemany behavior, simplifies things a bit internally.<a class="changeset-link headerlink reference internal" href="#change-066c676b077070c937c1d23f53d45e3a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta6-6"><span class="target" id="change-a57972bf47c37142d2f8450ba8343433"></span>Added &#8216;comparator&#8217; keyword argument to PickleType.  By default, &#8220;mutable&#8221;
PickleType does a &#8220;deep compare&#8221; of objects using their dumps()
representation.  But this doesn&#8217;t work for dictionaries.  Pickled objects
which provide an adequate __eq__() implementation can be set up with
&#8220;PickleType(comparator=operator.eq)&#8221;<a class="changeset-link headerlink reference internal" href="#change-a57972bf47c37142d2f8450ba8343433">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/560">#560</a></p>
</p>
</li>
<li><p id="change-0.4.0beta6-7"><span class="target" id="change-86b7e1bcfc257a95dd46f409ad3ed7d4"></span>Added session.is_modified(obj) method; performs the same &#8220;history&#8221;
comparison operation as occurs within a flush operation; setting
include_collections=False gives the same result as is used when the flush
determines whether or not to issue an UPDATE for the instance&#8217;s row.<a class="changeset-link headerlink reference internal" href="#change-86b7e1bcfc257a95dd46f409ad3ed7d4">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta6-8"><span class="target" id="change-3353f6e734c51856789b2c7c67e6ba70"></span>Added &#8220;schema&#8221; argument to Sequence; use this with Postgres /Oracle when
the sequence is located in an alternate schema.  Implements part of, should fix.<a class="changeset-link headerlink reference internal" href="#change-3353f6e734c51856789b2c7c67e6ba70">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/584">#584</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/761">#761</a></p>
</p>
</li>
<li><p id="change-0.4.0beta6-9"><span class="target" id="change-1b5a20829be72cd57e395d53c965f562"></span>Fixed reflection of the empty string for mysql enums.<a class="changeset-link headerlink reference internal" href="#change-1b5a20829be72cd57e395d53c965f562">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta6-10"><span class="target" id="change-d3dde7998c563eec40c710cbada1d8af"></span>Changed MySQL dialect to use the older LIMIT &lt;offset&gt;, &lt;limit&gt; syntax
instead of LIMIT &lt;l&gt; OFFSET &lt;o&gt; for folks using 3.23.<a class="changeset-link headerlink reference internal" href="#change-d3dde7998c563eec40c710cbada1d8af">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/794">#794</a></p>
</p>
</li>
<li><p id="change-0.4.0beta6-11"><span class="target" id="change-9d4fe872e8b59bfeefb5183ab7684f9a"></span>Added &#8216;passive_deletes=&#8221;all&#8221;&#8217; flag to relation(), disables all nulling-out
of foreign key attributes during a flush where the parent object is
deleted.<a class="changeset-link headerlink reference internal" href="#change-9d4fe872e8b59bfeefb5183ab7684f9a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta6-12"><span class="target" id="change-563c3cbf44802188d12788163d985e16"></span>Column defaults and onupdates, executing inline, will add parenthesis for
subqueries and other parenthesis-requiring expressions<a class="changeset-link headerlink reference internal" href="#change-563c3cbf44802188d12788163d985e16">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta6-13"><span class="target" id="change-12d3f310eb9663bf0ecfedbe0a47fbad"></span>The behavior of String/Unicode types regarding that they auto-convert to
TEXT/CLOB when no length is present now occurs <em>only</em> for an exact type of
String or Unicode with no arguments.  If you use VARCHAR or NCHAR
(subclasses of String/Unicode) with no length, they will be interpreted by
the dialect as VARCHAR/NCHAR; no &#8220;magic&#8221; conversion happens there.  This
is less surprising behavior and in particular this helps Oracle keep
string-based bind parameters as VARCHARs and not CLOBs.<a class="changeset-link headerlink reference internal" href="#change-12d3f310eb9663bf0ecfedbe0a47fbad">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/793">#793</a></p>
</p>
</li>
<li><p id="change-0.4.0beta6-14"><span class="target" id="change-f455b93bc401877daa0ba14fb70ec408"></span>Fixes to ShardedSession to work with deferred columns.<a class="changeset-link headerlink reference internal" href="#change-f455b93bc401877daa0ba14fb70ec408">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/771">#771</a></p>
</p>
</li>
<li><p id="change-0.4.0beta6-15"><span class="target" id="change-955f25fb13ad169f392d6f1a17e804ac"></span>User-defined shard_chooser() function must accept &#8220;clause=None&#8221; argument;
this is the ClauseElement passed to session.execute(statement) and can be
used to determine correct shard id (since execute() doesn&#8217;t take an
instance.)<a class="changeset-link headerlink reference internal" href="#change-955f25fb13ad169f392d6f1a17e804ac">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta6-16"><span class="target" id="change-e2bee4b5e6c30d433fb8a7e4ae81663a"></span>Adjusted operator precedence of NOT to match &#8216;==&#8217; and others, so that
~(x &lt;operator&gt; y) produces NOT (x &lt;op&gt; y), which is better compatible
with older MySQL versions..  This doesn&#8217;t apply to &#8220;~(x==y)&#8221;
as it does in 0.3 since ~(x==y) compiles to &#8220;x != y&#8221;, but still applies
to operators like BETWEEN.<a class="changeset-link headerlink reference internal" href="#change-e2bee4b5e6c30d433fb8a7e4ae81663a">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/764">#764</a></p>
</p>
</li>
<li><p id="change-0.4.0beta6-17"><span class="target" id="change-72a7f7aec701fc5fbf615366585da0c8"></span>Other tickets:,,.<a class="changeset-link headerlink reference internal" href="#change-72a7f7aec701fc5fbf615366585da0c8">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/757">#757</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/768">#768</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/779">#779</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/728">#728</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.0beta5">
<h2>0.4.0beta5<a class="headerlink" href="#change-0.4.0beta5" title="Permalink to this headline">¶</a></h2>
no release date<ul class="simple">
<li><p id="change-0.4.0beta5-0"><span class="target" id="change-8d770fefd20726d046539230358cf916"></span>Connection pool fixes; the better performance of beta4 remains but fixes
&#8220;connection overflow&#8221; and other bugs which were present (like).<a class="changeset-link headerlink reference internal" href="#change-8d770fefd20726d046539230358cf916">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/754">#754</a></p>
</p>
</li>
<li><p id="change-0.4.0beta5-1"><span class="target" id="change-e4680818ac93f4cde5adbfd53ec55dce"></span>Fixed bugs in determining proper sync clauses from custom inherit
conditions.<a class="changeset-link headerlink reference internal" href="#change-e4680818ac93f4cde5adbfd53ec55dce">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/769">#769</a></p>
</p>
</li>
<li><p id="change-0.4.0beta5-2"><span class="target" id="change-2c611a783379e4c4bbf0acadbc498ce5"></span>Extended &#8216;engine_from_config&#8217; coercion for QueuePool size / overflow.<a class="changeset-link headerlink reference internal" href="#change-2c611a783379e4c4bbf0acadbc498ce5">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/763">#763</a></p>
</p>
</li>
<li><p id="change-0.4.0beta5-3"><span class="target" id="change-a02fe61d853e712245ea2fa9e3cf8182"></span>mysql views can be reflected again.<a class="changeset-link headerlink reference internal" href="#change-a02fe61d853e712245ea2fa9e3cf8182">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/748">#748</a></p>
</p>
</li>
<li><p id="change-0.4.0beta5-4"><span class="target" id="change-43e8bb9fe2e39b744b2a496fb3f5ac6f"></span>AssociationProxy can now take custom getters and setters.<a class="changeset-link headerlink reference internal" href="#change-43e8bb9fe2e39b744b2a496fb3f5ac6f">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta5-5"><span class="target" id="change-80a35e2d5a32af8ce1f16c72e2776cc9"></span>Fixed malfunctioning BETWEEN in orm queries.<a class="changeset-link headerlink reference internal" href="#change-80a35e2d5a32af8ce1f16c72e2776cc9">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta5-6"><span class="target" id="change-99c2f326bb6523f16579523728bf307c"></span>Fixed OrderedProperties pickling<a class="changeset-link headerlink reference internal" href="#change-99c2f326bb6523f16579523728bf307c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/762">#762</a></p>
</p>
</li>
<li><p id="change-0.4.0beta5-7"><span class="target" id="change-3a2a0bf70aa28afcbafdd2992791f31d"></span>SQL-expression defaults and sequences now execute &#8220;inline&#8221; for all
non-primary key columns during an INSERT or UPDATE, and for all columns
during an executemany()-style call. inline=True flag on any insert/update
statement also forces the same behavior with a single execute().
result.postfetch_cols() is a collection of columns for which the previous
single insert or update statement contained a SQL-side default expression.<a class="changeset-link headerlink reference internal" href="#change-3a2a0bf70aa28afcbafdd2992791f31d">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta5-8"><span class="target" id="change-ffca3b05b1018517a278afe82229a29c"></span>Fixed PG executemany() behavior.<a class="changeset-link headerlink reference internal" href="#change-ffca3b05b1018517a278afe82229a29c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/759">#759</a></p>
</p>
</li>
<li><p id="change-0.4.0beta5-9"><span class="target" id="change-3a401edfbc7ebb4442cd5e73acb6d51e"></span>postgres reflects tables with autoincrement=False for primary key columns
which have no defaults.<a class="changeset-link headerlink reference internal" href="#change-3a401edfbc7ebb4442cd5e73acb6d51e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta5-10"><span class="target" id="change-ba060cbd953a2ef43be8d18f2fd83983"></span>postgres no longer wraps executemany() with individual execute() calls,
instead favoring performance.  &#8220;rowcount&#8221;/&#8221;concurrency&#8221; checks with
deleted items (which use executemany) are disabled with PG since psycopg2
does not report proper rowcount for executemany().<a class="changeset-link headerlink reference internal" href="#change-ba060cbd953a2ef43be8d18f2fd83983">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta5-11"><span class="target" id="change-45d7d861a3365452e7c1d9a6ec39b83c"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-45d7d861a3365452e7c1d9a6ec39b83c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/742">#742</a></p>
</p>
</li>
<li><p id="change-0.4.0beta5-12"><span class="target" id="change-45d7d861a3365452e7c1d9a6ec39b83c"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-45d7d861a3365452e7c1d9a6ec39b83c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/748">#748</a></p>
</p>
</li>
<li><p id="change-0.4.0beta5-13"><span class="target" id="change-45d7d861a3365452e7c1d9a6ec39b83c"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-45d7d861a3365452e7c1d9a6ec39b83c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/760">#760</a></p>
</p>
</li>
<li><p id="change-0.4.0beta5-14"><span class="target" id="change-45d7d861a3365452e7c1d9a6ec39b83c"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-45d7d861a3365452e7c1d9a6ec39b83c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/762">#762</a></p>
</p>
</li>
<li><p id="change-0.4.0beta5-15"><span class="target" id="change-45d7d861a3365452e7c1d9a6ec39b83c"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-45d7d861a3365452e7c1d9a6ec39b83c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/763">#763</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.0beta4">
<h2>0.4.0beta4<a class="headerlink" href="#change-0.4.0beta4" title="Permalink to this headline">¶</a></h2>
Released: Wed Aug 22 2007<ul class="simple">
<li><p id="change-0.4.0beta4-0"><span class="target" id="change-f4d29dc7b02b99ed3260ef11c8fe9840"></span>Tidied up what ends up in your namespace when you &#8216;from sqlalchemy import *&#8217;:<a class="changeset-link headerlink reference internal" href="#change-f4d29dc7b02b99ed3260ef11c8fe9840">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-1"><span class="target" id="change-6890b669137922b1f67f9c81c9e393cd"></span>&#8216;table&#8217; and &#8216;column&#8217; are no longer imported.  They remain available by
direct reference (as in &#8216;sql.table&#8217; and &#8216;sql.column&#8217;) or a glob import
from the sql package.  It was too easy to accidentally use a
sql.expressions.table instead of schema.Table when just starting out
with SQLAlchemy, likewise column.<a class="changeset-link headerlink reference internal" href="#change-6890b669137922b1f67f9c81c9e393cd">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-2"><span class="target" id="change-2663410f9071b570a253c86fb4d09031"></span>Internal-ish classes like ClauseElement, FromClause, NullTypeEngine,
etc., are also no longer imported into your namespace<a class="changeset-link headerlink reference internal" href="#change-2663410f9071b570a253c86fb4d09031">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-3"><span class="target" id="change-487de14a19636219ee9867528df4aee5"></span>The &#8216;Smallinteger&#8217; compatibility name (small i!) is no longer imported,
but remains in schema.py for now.  SmallInteger (big I!) is still
imported.<a class="changeset-link headerlink reference internal" href="#change-487de14a19636219ee9867528df4aee5">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-4"><span class="target" id="change-8b98efdb7b0519850778b7118b3c2e6d"></span>The connection pool uses a &#8220;threadlocal&#8221; strategy internally to return
the same connection already bound to a thread, for &#8220;contextual&#8221; connections;
these are the connections used when you do a &#8220;connectionless&#8221; execution
like insert().execute().  This is like a &#8220;partial&#8221; version of the
&#8220;threadlocal&#8221; engine strategy but without the thread-local transaction part
of it.  We&#8217;re hoping it reduces connection pool overhead as well as
database usage.  However, if it proves to impact stability in a negative way,
we&#8217;ll roll it right back.<a class="changeset-link headerlink reference internal" href="#change-8b98efdb7b0519850778b7118b3c2e6d">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-5"><span class="target" id="change-acf296f37f99428d8f44ec69e3890aa0"></span>Fix to bind param processing such that &#8220;False&#8221; values (like blank strings)
still get processed/encoded.<a class="changeset-link headerlink reference internal" href="#change-acf296f37f99428d8f44ec69e3890aa0">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-6"><span class="target" id="change-401edf6c4209442b8a393d710989444a"></span>Fix to select() &#8220;generative&#8221; behavior, such that calling column(),
select_from(), correlate(), and with_prefix() does not modify the
original select object<a class="changeset-link headerlink reference internal" href="#change-401edf6c4209442b8a393d710989444a">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/752">#752</a></p>
</p>
</li>
<li><p id="change-0.4.0beta4-7"><span class="target" id="change-954a4eace190252f4ee50417a801d00c"></span>Added a &#8220;legacy&#8221; adapter to types, such that user-defined TypeEngine
and TypeDecorator classes which define convert_bind_param() and/or
convert_result_value() will continue to function.  Also supports
calling the super() version of those methods.<a class="changeset-link headerlink reference internal" href="#change-954a4eace190252f4ee50417a801d00c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-8"><span class="target" id="change-044df9e23478cf328cff40782234c4f6"></span>Added session.prune(), trims away instances cached in a session that
are no longer referenced elsewhere. (A utility for strong-ref
identity maps).<a class="changeset-link headerlink reference internal" href="#change-044df9e23478cf328cff40782234c4f6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-9"><span class="target" id="change-8d0b91ca4fcfc0ad6d3b9cd553567fba"></span>Added close() method to Transaction.  Closes out a transaction using
rollback if it&#8217;s the outermost transaction, otherwise just ends
without affecting the outer transaction.<a class="changeset-link headerlink reference internal" href="#change-8d0b91ca4fcfc0ad6d3b9cd553567fba">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-10"><span class="target" id="change-dfe299aa8afc78c5d63d67f689f3815a"></span>Transactional and non-transactional Session integrates better with
bound connection; a close() will ensure that connection
transactional state is the same as that which existed on it before
being bound to the Session.<a class="changeset-link headerlink reference internal" href="#change-dfe299aa8afc78c5d63d67f689f3815a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-11"><span class="target" id="change-dc59c0230dc589d9da18567e46119d37"></span>Modified SQL operator functions to be module-level operators,
allowing SQL expressions to be pickleable.<a class="changeset-link headerlink reference internal" href="#change-dc59c0230dc589d9da18567e46119d37">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/735">#735</a></p>
</p>
</li>
<li><p id="change-0.4.0beta4-12"><span class="target" id="change-91eb02a84f178101962db7b783aa809a"></span>Small adjustment to mapper class.__init__ to allow for Py2.6
object.__init__() behavior.<a class="changeset-link headerlink reference internal" href="#change-91eb02a84f178101962db7b783aa809a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-13"><span class="target" id="change-ff553271888137520292109b17a04720"></span>Fixed &#8216;prefix&#8217; argument for select()<a class="changeset-link headerlink reference internal" href="#change-ff553271888137520292109b17a04720">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-14"><span class="target" id="change-e4222fd4e054c51dc51cbb0643020566"></span>Connection.begin() no longer accepts nested=True, this logic is now
all in begin_nested().<a class="changeset-link headerlink reference internal" href="#change-e4222fd4e054c51dc51cbb0643020566">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-15"><span class="target" id="change-678e4addb4b749e32601ce1f3fa4f806"></span>Fixes to new &#8220;dynamic&#8221; relation loader involving cascades<a class="changeset-link headerlink reference internal" href="#change-678e4addb4b749e32601ce1f3fa4f806">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta4-16"><span class="target" id="change-4af6f88998dc3d47b1e2144c8709f9cc"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-4af6f88998dc3d47b1e2144c8709f9cc">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/735">#735</a></p>
</p>
</li>
<li><p id="change-0.4.0beta4-17"><span class="target" id="change-4af6f88998dc3d47b1e2144c8709f9cc"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-4af6f88998dc3d47b1e2144c8709f9cc">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/752">#752</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.0beta3">
<h2>0.4.0beta3<a class="headerlink" href="#change-0.4.0beta3" title="Permalink to this headline">¶</a></h2>
Released: Thu Aug 16 2007<ul class="simple">
<li><p id="change-0.4.0beta3-0"><span class="target" id="change-f5cf19f3f7be3f62710b12ab0c1a7f21"></span>SQL types optimization:<a class="changeset-link headerlink reference internal" href="#change-f5cf19f3f7be3f62710b12ab0c1a7f21">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta3-1"><span class="target" id="change-75d0b6d4c9572877034c53d512674299"></span>New performance tests show a combined mass-insert/mass-select test as
having 68% fewer function calls than the same test run against 0.3.<a class="changeset-link headerlink reference internal" href="#change-75d0b6d4c9572877034c53d512674299">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta3-2"><span class="target" id="change-b75224a719e77f997a148bc85a071410"></span>General performance improvement of result set iteration is around 10-20%.<a class="changeset-link headerlink reference internal" href="#change-b75224a719e77f997a148bc85a071410">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta3-3"><span class="target" id="change-ef940138c452b9816295b5d82d66f548"></span>In types.AbstractType, convert_bind_param() and convert_result_value()
have migrated to callable-returning bind_processor() and
result_processor() methods.  If no callable is returned, no pre/post
processing function is called.<a class="changeset-link headerlink reference internal" href="#change-ef940138c452b9816295b5d82d66f548">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta3-4"><span class="target" id="change-c35fd87db1a5b5f45a1bf543d34cd61b"></span>Hooks added throughout base/sql/defaults to optimize the calling of bind
aram/result processors so that method call overhead is minimized.<a class="changeset-link headerlink reference internal" href="#change-c35fd87db1a5b5f45a1bf543d34cd61b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta3-5"><span class="target" id="change-c8f92244fa634dc13e7327afd269b6b4"></span>Support added for executemany() scenarios such that unneeded &#8220;last row id&#8221;
logic doesn&#8217;t kick in, parameters aren&#8217;t excessively traversed.<a class="changeset-link headerlink reference internal" href="#change-c8f92244fa634dc13e7327afd269b6b4">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta3-6"><span class="target" id="change-17bd7748986ad2bd56cfce9a8078756b"></span>Added &#8216;inherit_foreign_keys&#8217; arg to mapper().<a class="changeset-link headerlink reference internal" href="#change-17bd7748986ad2bd56cfce9a8078756b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta3-7"><span class="target" id="change-dba458ce8601c7fccb26c149512fbe0d"></span>Added support for string date passthrough in sqlite.<a class="changeset-link headerlink reference internal" href="#change-dba458ce8601c7fccb26c149512fbe0d">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta3-8"><span class="target" id="change-54e4755a0af97b6ee1bd86616e80216d"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-54e4755a0af97b6ee1bd86616e80216d">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/738">#738</a></p>
</p>
</li>
<li><p id="change-0.4.0beta3-9"><span class="target" id="change-54e4755a0af97b6ee1bd86616e80216d"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-54e4755a0af97b6ee1bd86616e80216d">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/739">#739</a></p>
</p>
</li>
<li><p id="change-0.4.0beta3-10"><span class="target" id="change-54e4755a0af97b6ee1bd86616e80216d"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-54e4755a0af97b6ee1bd86616e80216d">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/743">#743</a></p>
</p>
</li>
<li><p id="change-0.4.0beta3-11"><span class="target" id="change-54e4755a0af97b6ee1bd86616e80216d"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-54e4755a0af97b6ee1bd86616e80216d">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/744">#744</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.0beta2">
<h2>0.4.0beta2<a class="headerlink" href="#change-0.4.0beta2" title="Permalink to this headline">¶</a></h2>
Released: Tue Aug 14 2007<div class="section" id="change-0.4.0beta2-oracle">
<h3>oracle<a class="headerlink" href="#change-0.4.0beta2-oracle" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.0beta2-0"><span class="target" id="change-27a03f85e379bb466ed82ab2bae62c14"><strong>[oracle] [improvements.] </strong></span>Auto-commit after LOAD DATA INFILE for mysql.<a class="changeset-link headerlink reference internal" href="#change-27a03f85e379bb466ed82ab2bae62c14">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta2-1"><span class="target" id="change-2bfda89d7a3397e856da817c3ebe21ef"><strong>[oracle] [improvements.] </strong></span>A rudimental SessionExtension class has been added, allowing user-defined
functionality to take place at flush(), commit(), and rollback() boundaries.<a class="changeset-link headerlink reference internal" href="#change-2bfda89d7a3397e856da817c3ebe21ef">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta2-2"><span class="target" id="change-eead32c9c30ad838d3dd8335b30c3cc5"><strong>[oracle] [improvements.] </strong></span>Added engine_from_config() function for helping to create_engine() from an
.ini style config.<a class="changeset-link headerlink reference internal" href="#change-eead32c9c30ad838d3dd8335b30c3cc5">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta2-3"><span class="target" id="change-b0bb14e6d31421d0f6c217f9639275b0"><strong>[oracle] [improvements.] </strong></span>base_mapper() becomes a plain attribute.<a class="changeset-link headerlink reference internal" href="#change-b0bb14e6d31421d0f6c217f9639275b0">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta2-4"><span class="target" id="change-15ded3b2513f94c39817cee6f52b785b"><strong>[oracle] [improvements.] </strong></span>session.execute() and scalar() can search for a Table with which to bind from
using the given ClauseElement.<a class="changeset-link headerlink reference internal" href="#change-15ded3b2513f94c39817cee6f52b785b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta2-5"><span class="target" id="change-25c6fb3d43b7dc1f4e87ea3b94d97e32"><strong>[oracle] [improvements.] </strong></span>Session automatically extrapolates tables from mappers with binds, also uses
base_mapper so that inheritance hierarchies bind automatically.<a class="changeset-link headerlink reference internal" href="#change-25c6fb3d43b7dc1f4e87ea3b94d97e32">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta2-6"><span class="target" id="change-c8b69249d8076c0cd3f9d71973a0c16f"><strong>[oracle] [improvements.] </strong></span>Moved ClauseVisitor traversal back to inlined non-recursive.<a class="changeset-link headerlink reference internal" href="#change-c8b69249d8076c0cd3f9d71973a0c16f">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.0beta2-misc">
<h3>misc<a class="headerlink" href="#change-0.4.0beta2-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.0beta2-7"><span class="target" id="change-7f72c630ecf1937ef9e22932a61de352"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-7f72c630ecf1937ef9e22932a61de352">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/730">#730</a></p>
</p>
</li>
<li><p id="change-0.4.0beta2-8"><span class="target" id="change-7f72c630ecf1937ef9e22932a61de352"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-7f72c630ecf1937ef9e22932a61de352">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/732">#732</a></p>
</p>
</li>
<li><p id="change-0.4.0beta2-9"><span class="target" id="change-7f72c630ecf1937ef9e22932a61de352"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-7f72c630ecf1937ef9e22932a61de352">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/733">#733</a></p>
</p>
</li>
<li><p id="change-0.4.0beta2-10"><span class="target" id="change-7f72c630ecf1937ef9e22932a61de352"><strong>[tickets] [fixed] </strong></span><a class="changeset-link headerlink reference internal" href="#change-7f72c630ecf1937ef9e22932a61de352">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/734">#734</a></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.4.0beta1">
<h2>0.4.0beta1<a class="headerlink" href="#change-0.4.0beta1" title="Permalink to this headline">¶</a></h2>
Released: Sun Aug 12 2007<div class="section" id="change-0.4.0beta1-orm">
<h3>orm<a class="headerlink" href="#change-0.4.0beta1-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.0beta1-0"><span class="target" id="change-73240e5294e8bb13d8b6f22802a98b27"><strong>[orm] </strong></span>Speed! Along with recent speedups to ResultProxy, total number of function
calls significantly reduced for large loads.<a class="changeset-link headerlink reference internal" href="#change-73240e5294e8bb13d8b6f22802a98b27">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-1"><span class="target" id="change-d6d237dcaf791d97938c5d2cb8ebcff0"><strong>[orm] </strong></span>test/perf/masseagerload.py reports 0.4 as having the fewest number of
function calls across all SA versions (0.1, 0.2, and 0.3).<a class="changeset-link headerlink reference internal" href="#change-d6d237dcaf791d97938c5d2cb8ebcff0">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-2"><span class="target" id="change-4a456a11201666fadfcbbfcb69bd3d5e"><strong>[orm] </strong></span>New collection_class api and implementation. Collections are
now instrumented via decorations rather than proxying.  You can now have
collections that manage their own membership, and your class instance will
be directly exposed on the relation property.  The changes are transparent
for most users.<a class="changeset-link headerlink reference internal" href="#change-4a456a11201666fadfcbbfcb69bd3d5e">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/213">#213</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-3"><span class="target" id="change-ac7854a38e375ff1341e8a1b2a022235"><strong>[orm] </strong></span>InstrumentedList (as it was) is removed, and relation properties no
longer have &#8216;clear()&#8217;, &#8216;.data&#8217;, or any other added methods beyond those
provided by the collection type. You are free, of course, to add them to
a custom class.<a class="changeset-link headerlink reference internal" href="#change-ac7854a38e375ff1341e8a1b2a022235">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-4"><span class="target" id="change-bbebf85d0077a44cbe2ac84913a07d0b"><strong>[orm] </strong></span>__setitem__-like assignments now fire remove events for the existing
value, if any.<a class="changeset-link headerlink reference internal" href="#change-bbebf85d0077a44cbe2ac84913a07d0b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-5"><span class="target" id="change-1a0c1db9fbcb17a7c2ba890ea4d9bdc1"><strong>[orm] </strong></span>dict-likes used as collection classes no longer need to change __iter__
semantics- itervalues() is used by default instead. This is a backwards
incompatible change.<a class="changeset-link headerlink reference internal" href="#change-1a0c1db9fbcb17a7c2ba890ea4d9bdc1">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-6"><span class="target" id="change-12084d2d1417fb4bf746fd0665112f5f"><strong>[orm] </strong></span>Subclassing dict for a mapped collection is no longer needed in most
cases. orm.collections provides canned implementations that key objects
by a specified column or a custom function of your choice.<a class="changeset-link headerlink reference internal" href="#change-12084d2d1417fb4bf746fd0665112f5f">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-7"><span class="target" id="change-4db3f11e48432727edaead94e272e84a"><strong>[orm] </strong></span>Collection assignment now requires a compatible type- assigning None to
clear a collection or assigning a list to a dict collection will now
raise an argument error.<a class="changeset-link headerlink reference internal" href="#change-4db3f11e48432727edaead94e272e84a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-8"><span class="target" id="change-4431e2ff75387079894f22115c2f811e"><strong>[orm] </strong></span>AttributeExtension moved to interfaces, and .delete is now .remove The
event method signature has also been swapped around.<a class="changeset-link headerlink reference internal" href="#change-4431e2ff75387079894f22115c2f811e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-9"><span class="target" id="change-e23a2954c9bd9fb1bde4aeceefe5d541"><strong>[orm] </strong></span>Major overhaul for Query:<a class="changeset-link headerlink reference internal" href="#change-e23a2954c9bd9fb1bde4aeceefe5d541">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-10"><span class="target" id="change-2503ad929a0fe516710bf9a1780fd348"><strong>[orm] </strong></span>All selectXXX methods are deprecated.  Generative methods are now the
standard way to do things, i.e. filter(), filter_by(), all(), one(),
etc.  Deprecated methods are docstring&#8217;ed with their new replacements.<a class="changeset-link headerlink reference internal" href="#change-2503ad929a0fe516710bf9a1780fd348">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-11"><span class="target" id="change-1693eadbe7a1e73418dc29c3c9f5f383"><strong>[orm] </strong></span>Class-level properties are now usable as query elements... no more
&#8216;.c.&#8217;!  &#8220;Class.c.propname&#8221; is now superseded by &#8220;Class.propname&#8221;.  All
clause operators are supported, as well as higher level operators such
as Class.prop==&lt;some instance&gt; for scalar attributes,
Class.prop.contains(&lt;some instance&gt;) and Class.prop.any(&lt;some
expression&gt;) for collection-based attributes (all are also
negatable).  Table-based column expressions as well as columns mounted
on mapped classes via &#8216;c&#8217; are of course still fully available and can be
freely mixed with the new attributes.<a class="changeset-link headerlink reference internal" href="#change-1693eadbe7a1e73418dc29c3c9f5f383">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/643">#643</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-12"><span class="target" id="change-6a051d0e61d70a59ef63537773b2b738"><strong>[orm] </strong></span>Removed ancient query.select_by_attributename() capability.<a class="changeset-link headerlink reference internal" href="#change-6a051d0e61d70a59ef63537773b2b738">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-13"><span class="target" id="change-f99a8e52f17864f9bdbcd276ea36c00e"><strong>[orm] </strong></span>The aliasing logic used by eager loading has been generalized, so that
it also adds full automatic aliasing support to Query.  It&#8217;s no longer
necessary to create an explicit Alias to join to the same tables
multiple times; <em>even for self-referential relationships</em>.<ul>
<li>join() and outerjoin() take arguments &#8220;aliased=True&#8221;.  Yhis causes
their joins to be built on aliased tables; subsequent calls to
filter() and filter_by() will translate all table expressions (yes,
real expressions using the original mapped Table) to be that of the
Alias for the duration of that join() (i.e. until reset_joinpoint() or
another join() is called).</li>
<li>join() and outerjoin() take arguments &#8220;id=&lt;somestring&gt;&#8221;.  When used
with &#8220;aliased=True&#8221;, the id can be referenced by add_entity(cls,
id=&lt;somestring&gt;) so that you can select the joined instances even if
they&#8217;re from an alias.</li>
<li>join() and outerjoin() now work with self-referential relationships!
Using &#8220;aliased=True&#8221;, you can join as many levels deep as desired,
i.e. query.join([&#8216;children&#8217;, &#8216;children&#8217;], aliased=True); filter
criterion will be against the rightmost joined table</li>
</ul>
<a class="changeset-link headerlink reference internal" href="#change-f99a8e52f17864f9bdbcd276ea36c00e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-14"><span class="target" id="change-3f64e9fd6a4f77b6f36bda3cef6dc70c"><strong>[orm] </strong></span>Added query.populate_existing(), marks the query to reload all
attributes and collections of all instances touched in the query,
including eagerly-loaded entities.<a class="changeset-link headerlink reference internal" href="#change-3f64e9fd6a4f77b6f36bda3cef6dc70c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/660">#660</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-15"><span class="target" id="change-d588f4a694c199bddb5e48ec5c218e25"><strong>[orm] </strong></span>Added eagerload_all(), allows eagerload_all(&#8216;x.y.z&#8217;) to specify eager
loading of all properties in the given path.<a class="changeset-link headerlink reference internal" href="#change-d588f4a694c199bddb5e48ec5c218e25">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-16"><span class="target" id="change-a392d359411abd1fdd70fd91eee275f6"><strong>[orm] </strong></span>Major overhaul for Session:<a class="changeset-link headerlink reference internal" href="#change-a392d359411abd1fdd70fd91eee275f6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-17"><span class="target" id="change-b3a93d1308868a3fe8596d48cba80f96"><strong>[orm] </strong></span>New function which &#8220;configures&#8221; a session called &#8220;sessionmaker()&#8221;.  Send
various keyword arguments to this function once, returns a new class
which creates a Session against that stereotype.<a class="changeset-link headerlink reference internal" href="#change-b3a93d1308868a3fe8596d48cba80f96">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-18"><span class="target" id="change-d081429019999b17e12865d77c0fe190"><strong>[orm] </strong></span>SessionTransaction removed from &#8220;public&#8221; API.  You now can call begin()/
commit()/rollback() on the Session itself.<a class="changeset-link headerlink reference internal" href="#change-d081429019999b17e12865d77c0fe190">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-19"><span class="target" id="change-d803dd5eca36864f998d6bec158fd580"><strong>[orm] </strong></span>Session also supports SAVEPOINT transactions; call begin_nested().<a class="changeset-link headerlink reference internal" href="#change-d803dd5eca36864f998d6bec158fd580">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-20"><span class="target" id="change-e2ebb386a75361f672fdc4c3c1aa6b9d"><strong>[orm] </strong></span>Session supports two-phase commit behavior when vertically or
horizontally partitioning (i.e., using more than one engine).  Use
twophase=True.<a class="changeset-link headerlink reference internal" href="#change-e2ebb386a75361f672fdc4c3c1aa6b9d">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-21"><span class="target" id="change-9a345bfb97770dff468324795e2f74b4"><strong>[orm] </strong></span>Session flag &#8220;transactional=True&#8221; produces a session which always places
itself into a transaction when first used.  Upon commit(), rollback() or
close(), the transaction ends; but begins again on the next usage.<a class="changeset-link headerlink reference internal" href="#change-9a345bfb97770dff468324795e2f74b4">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-22"><span class="target" id="change-80cbb51c05d836b884ed1dc60c229fcb"><strong>[orm] </strong></span>Session supports &#8220;autoflush=True&#8221;.  This issues a flush() before each
query.  Use in conjunction with transactional, and you can just
save()/update() and then query, the new objects will be there.  Use
commit() at the end (or flush() if non-transactional) to flush remaining
changes.<a class="changeset-link headerlink reference internal" href="#change-80cbb51c05d836b884ed1dc60c229fcb">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-23"><span class="target" id="change-7e824e1c9899b1998d251013e315f0d0"><strong>[orm] </strong></span>New scoped_session() function replaces SessionContext and assignmapper.
Builds onto &#8220;sessionmaker()&#8221; concept to produce a class whos Session()
construction returns the thread-local session.  Or, call all Session
methods as class methods, i.e. Session.save(foo); Session.commit().
just like the old &#8220;objectstore&#8221; days.<a class="changeset-link headerlink reference internal" href="#change-7e824e1c9899b1998d251013e315f0d0">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-24"><span class="target" id="change-750a1ea55476904ec3c0c11ffc957b4c"><strong>[orm] </strong></span>Added new &#8220;binds&#8221; argument to Session to support configuration of
multiple binds with sessionmaker() function.<a class="changeset-link headerlink reference internal" href="#change-750a1ea55476904ec3c0c11ffc957b4c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-25"><span class="target" id="change-a7615aa7295fda4b76a5dc6b9ad79844"><strong>[orm] </strong></span>A rudimental SessionExtension class has been added, allowing
user-defined functionality to take place at flush(), commit(), and
rollback() boundaries.<a class="changeset-link headerlink reference internal" href="#change-a7615aa7295fda4b76a5dc6b9ad79844">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-26"><span class="target" id="change-9bd37da16a971ed83453125c1b474094"><strong>[orm] </strong></span>Query-based relation()s available with dynamic_loader().  This is a
<em>writable</em> collection (supporting append() and remove()) which is also a
live Query object when accessed for reads.  Ideal for dealing with very
large collections where only partial loading is desired.<a class="changeset-link headerlink reference internal" href="#change-9bd37da16a971ed83453125c1b474094">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-27"><span class="target" id="change-f765c92d74ee81bbf71b692a95131664"><strong>[orm] </strong></span>flush()-embedded inline INSERT/UPDATE expressions.  Assign any SQL
expression, like &#8220;sometable.c.column + 1&#8221;, to an instance&#8217;s attribute.
Upon flush(), the mapper detects the expression and embeds it directly in
the INSERT or UPDATE statement; the attribute gets deferred on the
instance so it loads the new value the next time you access it.<a class="changeset-link headerlink reference internal" href="#change-f765c92d74ee81bbf71b692a95131664">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-28"><span class="target" id="change-e9bf598b4653d8e6c0b87142da0e83bd"><strong>[orm] </strong></span>A rudimental sharding (horizontal scaling) system is introduced.  This
system uses a modified Session which can distribute read and write
operations among multiple databases, based on user-defined functions
defining the &#8220;sharding strategy&#8221;.  Instances and their dependents can be
distributed and queried among multiple databases based on attribute
values, round-robin approaches or any other user-defined
system.<a class="changeset-link headerlink reference internal" href="#change-e9bf598b4653d8e6c0b87142da0e83bd">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/618">#618</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-29"><span class="target" id="change-a02e26a19bf5a4351869a565aed6dbd4"><strong>[orm] </strong></span>Eager loading has been enhanced to allow even more joins in more places.
It now functions at any arbitrary depth along self-referential and
cyclical structures.  When loading cyclical structures, specify
&#8220;join_depth&#8221; on relation() indicating how many times you&#8217;d like the table
to join to itself; each level gets a distinct table alias.  The alias
names themselves are generated at compile time using a simple counting
scheme now and are a lot easier on the eyes, as well as of course
completely deterministic.<a class="changeset-link headerlink reference internal" href="#change-a02e26a19bf5a4351869a565aed6dbd4">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/659">#659</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-30"><span class="target" id="change-3ee39648a350e0ce7f6e88a460ef4222"><strong>[orm] </strong></span>Added composite column properties.  This allows you to create a type which
is represented by more than one column, when using the ORM.  Objects of
the new type are fully functional in query expressions, comparisons,
query.get() clauses, etc. and act as though they are regular single-column
scalars... except they&#8217;re not!  Use the function composite(cls, *columns)
inside of the mapper&#8217;s &#8220;properties&#8221; dict, and instances of cls will be
created/mapped to a single attribute, comprised of the values corresponding
to *columns.<a class="changeset-link headerlink reference internal" href="#change-3ee39648a350e0ce7f6e88a460ef4222">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/211">#211</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-31"><span class="target" id="change-5e44b305ff3b453bab31a4f4dd315202"><strong>[orm] </strong></span>Improved support for custom column_property() attributes which feature
correlated subqueries, works better with eager loading now.<a class="changeset-link headerlink reference internal" href="#change-5e44b305ff3b453bab31a4f4dd315202">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-32"><span class="target" id="change-16479493bb7436bccac47ec4d52aa7ab"><strong>[orm] </strong></span>Primary key &#8220;collapse&#8221; behavior; the mapper will analyze all columns in
its given selectable for primary key &#8220;equivalence&#8221;, that is, columns which
are equivalent via foreign key relationship or via an explicit
inherit_condition. primarily for joined-table inheritance scenarios where
different named PK columns in inheriting tables should &#8220;collapse&#8221; into a
single-valued (or fewer-valued) primary key.  Fixes things like.<a class="changeset-link headerlink reference internal" href="#change-16479493bb7436bccac47ec4d52aa7ab">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/611">#611</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-33"><span class="target" id="change-8b14a583258b389d8befb88ffab4616e"><strong>[orm] </strong></span>Joined-table inheritance will now generate the primary key columns of all
inherited classes against the root table of the join only.  This implies
that each row in the root table is distinct to a single instance.  If for
some rare reason this is not desirable, explicit primary_key settings on
individual mappers will override it.<a class="changeset-link headerlink reference internal" href="#change-8b14a583258b389d8befb88ffab4616e">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-34"><span class="target" id="change-5ecb81bd3049827ea00f874dff8a47e2"><strong>[orm] </strong></span>When &#8220;polymorphic&#8221; flags are used with joined-table or single-table
inheritance, all identity keys are generated against the root class of the
inheritance hierarchy; this allows query.get() to work polymorphically
using the same caching semantics as a non-polymorphic get.  Note that this
currently does not work with concrete inheritance.<a class="changeset-link headerlink reference internal" href="#change-5ecb81bd3049827ea00f874dff8a47e2">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-35"><span class="target" id="change-b92f42ac37b868e4e25064ca4b5d334d"><strong>[orm] </strong></span>Secondary inheritance loading: polymorphic mappers can be constructed
<em>without</em> a select_table argument. inheriting mappers whose tables were
not represented in the initial load will issue a second SQL query
immediately, once per instance (i.e. not very efficient for large lists),
in order to load the remaining columns.<a class="changeset-link headerlink reference internal" href="#change-b92f42ac37b868e4e25064ca4b5d334d">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-36"><span class="target" id="change-e17dea4885205655b3c0e9dc601c5577"><strong>[orm] </strong></span>Secondary inheritance loading can also move its second query into a
column-level &#8220;deferred&#8221; load, via the &#8220;polymorphic_fetch&#8221; argument, which
can be set to &#8216;select&#8217; or &#8216;deferred&#8217;<a class="changeset-link headerlink reference internal" href="#change-e17dea4885205655b3c0e9dc601c5577">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-37"><span class="target" id="change-ba1a26695302fe5a0797ba0c2382d86e"><strong>[orm] </strong></span>It&#8217;s now possible to map only a subset of available selectable columns
onto mapper properties, using include_columns/exclude_columns..<a class="changeset-link headerlink reference internal" href="#change-ba1a26695302fe5a0797ba0c2382d86e">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/696">#696</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-38"><span class="target" id="change-d0fafbe316e5579935f88cf76fc3be57"><strong>[orm] </strong></span>Added undefer_group() MapperOption, sets a set of &#8220;deferred&#8221; columns
joined by a &#8220;group&#8221; to load as &#8220;undeferred&#8221;.<a class="changeset-link headerlink reference internal" href="#change-d0fafbe316e5579935f88cf76fc3be57">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-39"><span class="target" id="change-c76aef44f5e7e8717c85b529552921fa"><strong>[orm] </strong></span>Rewrite of the &#8220;deterministic alias name&#8221; logic to be part of the SQL
layer, produces much simpler alias and label names more in the style of
Hibernate<a class="changeset-link headerlink reference internal" href="#change-c76aef44f5e7e8717c85b529552921fa">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.0beta1-sql">
<h3>sql<a class="headerlink" href="#change-0.4.0beta1-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.0beta1-40"><span class="target" id="change-194d03e759795cb2ff68bbe9af23b306"><strong>[sql] </strong></span>Speed!  Clause compilation as well as the mechanics of SQL constructs have
been streamlined and simplified to a significant degree, for a 20-30%
improvement of the statement construction/compilation overhead of 0.3.<a class="changeset-link headerlink reference internal" href="#change-194d03e759795cb2ff68bbe9af23b306">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-41"><span class="target" id="change-78c937a453ae2a2e9d60a9d7a1b498ac"><strong>[sql] </strong></span>All &#8220;type&#8221; keyword arguments, such as those to bindparam(), column(),
Column(), and func.&lt;something&gt;(), renamed to &#8220;type_&#8221;.  Those objects still
name their &#8220;type&#8221; attribute as &#8220;type&#8221;.<a class="changeset-link headerlink reference internal" href="#change-78c937a453ae2a2e9d60a9d7a1b498ac">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-42"><span class="target" id="change-52f227bbb5a90b801adc6ecfd0cc6e3a"><strong>[sql] </strong></span>case_sensitive=(True|False) setting removed from schema items, since
checking this state added a lot of method call overhead and there was no
decent reason to ever set it to False.  Table and column names which are
all lower case will be treated as case-insensitive (yes we adjust for
Oracle&#8217;s UPPERCASE style too).<a class="changeset-link headerlink reference internal" href="#change-52f227bbb5a90b801adc6ecfd0cc6e3a">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.0beta1-mysql">
<h3>mysql<a class="headerlink" href="#change-0.4.0beta1-mysql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.0beta1-43"><span class="target" id="change-c9ff316cda3e7c6e32e67deee9bdb175"><strong>[mysql] </strong></span>Table and column names loaded via reflection are now Unicode.<a class="changeset-link headerlink reference internal" href="#change-c9ff316cda3e7c6e32e67deee9bdb175">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-44"><span class="target" id="change-4db25c57037e2e33e840cb086dca3781"><strong>[mysql] </strong></span>All standard column types are now supported, including SET.<a class="changeset-link headerlink reference internal" href="#change-4db25c57037e2e33e840cb086dca3781">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-45"><span class="target" id="change-5117b0e81758578c4222aa8bbd429983"><strong>[mysql] </strong></span>Table reflection can now be performed in as little as one round-trip.<a class="changeset-link headerlink reference internal" href="#change-5117b0e81758578c4222aa8bbd429983">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-46"><span class="target" id="change-a5b4e4cd9830ca04727e6cc01578d944"><strong>[mysql] </strong></span>ANSI and ANSI_QUOTES sql modes are now supported.<a class="changeset-link headerlink reference internal" href="#change-a5b4e4cd9830ca04727e6cc01578d944">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-47"><span class="target" id="change-3b4260991961474e8042e1a66c9f73b0"><strong>[mysql] </strong></span>Indexes are now reflected.<a class="changeset-link headerlink reference internal" href="#change-3b4260991961474e8042e1a66c9f73b0">¶</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.0beta1-oracle">
<h3>oracle<a class="headerlink" href="#change-0.4.0beta1-oracle" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.0beta1-48"><span class="target" id="change-cf0060d4bbf9e676c4a7c5beb5f02382"><strong>[oracle] </strong></span>Very rudimental support for OUT parameters added; use sql.outparam(name,
type) to set up an OUT parameter, just like bindparam(); after execution,
values are available via result.out_parameters dictionary.<a class="changeset-link headerlink reference internal" href="#change-cf0060d4bbf9e676c4a7c5beb5f02382">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/507">#507</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.0beta1-misc">
<h3>misc<a class="headerlink" href="#change-0.4.0beta1-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.0beta1-49"><span class="target" id="change-ef7a1ed2659338f4b08899b9caaab99b"><strong>[transactions] </strong></span>Added context manager (with statement) support for transactions.<a class="changeset-link headerlink reference internal" href="#change-ef7a1ed2659338f4b08899b9caaab99b">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-50"><span class="target" id="change-c77644da7acda73068dc7396e5f398af"><strong>[transactions] </strong></span>Added support for two phase commit, works with mysql and postgres so far.<a class="changeset-link headerlink reference internal" href="#change-c77644da7acda73068dc7396e5f398af">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-51"><span class="target" id="change-df709470ae31b3f45008bbaa141d6d2c"><strong>[transactions] </strong></span>Added a subtransaction implementation that uses savepoints.<a class="changeset-link headerlink reference internal" href="#change-df709470ae31b3f45008bbaa141d6d2c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-52"><span class="target" id="change-8ade1ccb1059d3677b8b76a06a346099"><strong>[transactions] </strong></span>Added support for savepoints.<a class="changeset-link headerlink reference internal" href="#change-8ade1ccb1059d3677b8b76a06a346099">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-53"><span class="target" id="change-57d0fe83f069aa4fcd55bfbfe003c8f0"><strong>[metadata] </strong></span>Tables can be reflected from the database en-masse without declaring
them in advance.  MetaData(engine, reflect=True) will load all tables
present in the database, or use metadata.reflect() for finer control.<a class="changeset-link headerlink reference internal" href="#change-57d0fe83f069aa4fcd55bfbfe003c8f0">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-54"><span class="target" id="change-c614e9a639adda152c6ab95d984bf7d5"><strong>[metadata] </strong></span>DynamicMetaData has been renamed to ThreadLocalMetaData<a class="changeset-link headerlink reference internal" href="#change-c614e9a639adda152c6ab95d984bf7d5">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-55"><span class="target" id="change-ec45f540628c12b33729f88a7567a8d3"><strong>[metadata] </strong></span>The ThreadLocalMetaData constructor now takes no arguments.<a class="changeset-link headerlink reference internal" href="#change-ec45f540628c12b33729f88a7567a8d3">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-56"><span class="target" id="change-df3a2a76ccedf6eff1bec3c34ea2c717"><strong>[metadata] </strong></span>BoundMetaData has been removed- regular MetaData is equivalent<a class="changeset-link headerlink reference internal" href="#change-df3a2a76ccedf6eff1bec3c34ea2c717">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-57"><span class="target" id="change-91306d19b451219b417b42a60215a684"><strong>[metadata] </strong></span>Numeric and Float types now have an &#8220;asdecimal&#8221; flag; defaults to True for
Numeric, False for Float.  When True, values are returned as
decimal.Decimal objects; when False, values are returned as float().  The
defaults of True/False are already the behavior for PG and MySQL&#8217;s DBAPI
modules.<a class="changeset-link headerlink reference internal" href="#change-91306d19b451219b417b42a60215a684">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/646">#646</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-58"><span class="target" id="change-08e4ad114c618cb250f9f7dfd398ee15"><strong>[metadata] </strong></span>New SQL operator implementation which removes all hardcoded operators from
expression structures and moves them into compilation; allows greater
flexibility of operator compilation; for example, &#8220;+&#8221; compiles to &#8220;||&#8221;
when used in a string context, or &#8220;concat(a,b)&#8221; on MySQL; whereas in a
numeric context it compiles to &#8220;+&#8221;.  Fixes.<a class="changeset-link headerlink reference internal" href="#change-08e4ad114c618cb250f9f7dfd398ee15">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/475">#475</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-59"><span class="target" id="change-b3b40957f331feb3c0753ba57969930d"><strong>[metadata] </strong></span>&#8220;Anonymous&#8221; alias and label names are now generated at SQL compilation
time in a completely deterministic fashion... no more random hex IDs<a class="changeset-link headerlink reference internal" href="#change-b3b40957f331feb3c0753ba57969930d">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-60"><span class="target" id="change-e48f6937efaa01d2cb93a212c539a175"><strong>[metadata] </strong></span>Significant architectural overhaul to SQL elements (ClauseElement).  All
elements share a common &#8220;mutability&#8221; framework which allows a consistent
approach to in-place modifications of elements as well as generative
behavior.  Improves stability of the ORM which makes heavy usage of
mutations to SQL expressions.<a class="changeset-link headerlink reference internal" href="#change-e48f6937efaa01d2cb93a212c539a175">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-61"><span class="target" id="change-14a7a270d71f45154959854f228c79f8"><strong>[metadata] </strong></span>select() and union()&#8217;s now have &#8220;generative&#8221; behavior.  Methods like
order_by() and group_by() return a <em>new</em> instance - the original instance
is left unchanged.  Non-generative methods remain as well.<a class="changeset-link headerlink reference internal" href="#change-14a7a270d71f45154959854f228c79f8">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-62"><span class="target" id="change-b2f095c257ecd4fc1b70ea9343fab060"><strong>[metadata] </strong></span>The internals of select/union vastly simplified- all decision making
regarding &#8220;is subquery&#8221; and &#8220;correlation&#8221; pushed to SQL generation phase.
select() elements are now <em>never</em> mutated by their enclosing containers or
by any dialect&#8217;s compilation process<a class="changeset-link headerlink reference internal" href="#change-b2f095c257ecd4fc1b70ea9343fab060">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/569">#569</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/52">#52</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-63"><span class="target" id="change-cd01f4b5a2b4d78a16a7b4d48f5c73f0"><strong>[metadata] </strong></span>select(scalar=True) argument is deprecated; use select(..).as_scalar().
The resulting object obeys the full &#8220;column&#8221; interface and plays better
within expressions.<a class="changeset-link headerlink reference internal" href="#change-cd01f4b5a2b4d78a16a7b4d48f5c73f0">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-64"><span class="target" id="change-10b500c2c9cba9a5927217ff7420f2b0"><strong>[metadata] </strong></span>Added select().with_prefix(&#8216;foo&#8217;) allowing any set of keywords to be
placed before the columns clause of the SELECT<a class="changeset-link headerlink reference internal" href="#change-10b500c2c9cba9a5927217ff7420f2b0">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/504">#504</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-65"><span class="target" id="change-df8444af8624fed7a285c5b7bf482a29"><strong>[metadata] </strong></span>Added array slice support to row[&lt;index&gt;]<a class="changeset-link headerlink reference internal" href="#change-df8444af8624fed7a285c5b7bf482a29">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/686">#686</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-66"><span class="target" id="change-071fcdfe4ff56a5b234d1de2137bbf1d"><strong>[metadata] </strong></span>Result sets make a better attempt at matching the DBAPI types present in
cursor.description to the TypeEngine objects defined by the dialect, which
are then used for result-processing. Note this only takes effect for
textual SQL; constructed SQL statements always have an explicit type map.<a class="changeset-link headerlink reference internal" href="#change-071fcdfe4ff56a5b234d1de2137bbf1d">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-67"><span class="target" id="change-5df181a5d5e28fb2cade70322001e596"><strong>[metadata] </strong></span>Result sets from CRUD operations close their underlying cursor immediately
and will also autoclose the connection if defined for the operation; this
allows more efficient usage of connections for successive CRUD operations
with less chance of &#8220;dangling connections&#8221;.<a class="changeset-link headerlink reference internal" href="#change-5df181a5d5e28fb2cade70322001e596">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-68"><span class="target" id="change-89948a9f39a2ae2cba3dc69fc35f2d88"><strong>[metadata] </strong></span>Column defaults and onupdate Python functions (i.e. passed to
ColumnDefault) may take zero or one arguments; the one argument is the
ExecutionContext, from which you can call &#8220;context.parameters[someparam]&#8221;
to access the other bind parameter values affixed to the statement.  The connection used for the execution is available as well
so that you can pre-execute statements.<a class="changeset-link headerlink reference internal" href="#change-89948a9f39a2ae2cba3dc69fc35f2d88">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/559">#559</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-69"><span class="target" id="change-3424c25ad26ee106ba392edc6c3a817c"><strong>[metadata] </strong></span>Added &#8220;explcit&#8221; create/drop/execute support for sequences (i.e. you can
pass a &#8220;connectable&#8221; to each of those methods on Sequence).<a class="changeset-link headerlink reference internal" href="#change-3424c25ad26ee106ba392edc6c3a817c">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-70"><span class="target" id="change-7bb1f65298c3ca1debf3d2f941ac1247"><strong>[metadata] </strong></span>Better quoting of identifiers when manipulating schemas.<a class="changeset-link headerlink reference internal" href="#change-7bb1f65298c3ca1debf3d2f941ac1247">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-71"><span class="target" id="change-35fdc74c58ccab72b6a95ed3fd9c27bd"><strong>[metadata] </strong></span>Standardized the behavior for table reflection where types can&#8217;t be
located; NullType is substituted instead, warning is raised.<a class="changeset-link headerlink reference internal" href="#change-35fdc74c58ccab72b6a95ed3fd9c27bd">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-72"><span class="target" id="change-91634a26453429e65ac127027572ca43"><strong>[metadata] </strong></span>ColumnCollection (i.e. the &#8216;c&#8217; attribute on tables) follows dictionary
semantics for &#8220;__contains__&#8221;<a class="changeset-link headerlink reference internal" href="#change-91634a26453429e65ac127027572ca43">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/606">#606</a></p>
</p>
</li>
<li><p id="change-0.4.0beta1-73"><span class="target" id="change-c2feef689fd707ec3da5f884a6aa2987"><strong>[engines] </strong></span>Speed! The mechanics of result processing and bind parameter processing
have been overhauled, streamlined and optimized to issue as little method
calls as possible.  Bench tests for mass INSERT and mass rowset iteration
both show 0.4 to be over twice as fast as 0.3, using 68% fewer function
calls.<a class="changeset-link headerlink reference internal" href="#change-c2feef689fd707ec3da5f884a6aa2987">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-74"><span class="target" id="change-dbcb4c5e8906eb7ab54649e1e2eee3e6"><strong>[engines] </strong></span>You can now hook into the pool lifecycle and run SQL statements or other
logic at new each DBAPI connection, pool check-out and check-in.<a class="changeset-link headerlink reference internal" href="#change-dbcb4c5e8906eb7ab54649e1e2eee3e6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-75"><span class="target" id="change-fd980057fb18ce87420a619497401906"><strong>[engines] </strong></span>Connections gain a .properties collection, with contents scoped to the
lifetime of the underlying DBAPI connection<a class="changeset-link headerlink reference internal" href="#change-fd980057fb18ce87420a619497401906">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-76"><span class="target" id="change-7db700fb15caca564e6d1b470ddbf1c7"><strong>[engines] </strong></span>Removed auto_close_cursors and disallow_open_cursors arguments from Pool;
reduces overhead as cursors are normally closed by ResultProxy and
Connection.<a class="changeset-link headerlink reference internal" href="#change-7db700fb15caca564e6d1b470ddbf1c7">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-77"><span class="target" id="change-3b532a60bc0029ec354daf934d3a927a"><strong>[extensions] </strong></span>proxyengine is temporarily removed, pending an actually working
replacement.<a class="changeset-link headerlink reference internal" href="#change-3b532a60bc0029ec354daf934d3a927a">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-78"><span class="target" id="change-4365514b9b0ac1a9bf2782c1798256a6"><strong>[extensions] </strong></span>SelectResults has been replaced by Query.  SelectResults /
SelectResultsExt still exist but just return a slightly modified Query
object for backwards-compatibility.  join_to() method from SelectResults
isn&#8217;t present anymore, need to use join().<a class="changeset-link headerlink reference internal" href="#change-4365514b9b0ac1a9bf2782c1798256a6">¶</a><p></p>
</p>
</li>
<li><p id="change-0.4.0beta1-79"><span class="target" id="change-bf48335461a856fcc94af29e957c22d2"><strong>[postgres] </strong></span>Added PGArray datatype for using postgres array datatypes.<a class="changeset-link headerlink reference internal" href="#change-bf48335461a856fcc94af29e957c22d2">¶</a><p></p>
</p>
</li>
</ul>
</div>
</div>
</div>

    </div>

</div>

<div id="docs-bottom-navigation" class="docs-navigation-links">
        Previous:
        <a href="changelog_05.html" title="previous chapter">0.5 Changelog</a>
        Next:
        <a href="changelog_03.html" title="next chapter">0.3 Changelog</a>

    <div id="docs-copyright">
        &copy; <a href="../copyright.html">Copyright</a> 2007-2014, the SQLAlchemy authors and contributors.
        Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.2b1.
    </div>
</div>

</div>

        
    </body>
</html>