<!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.3 Changelog — SQLAlchemy 1.2 Documentation </title> <!-- begin iterate through site-imported + 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/changelog.css" type="text/css" /> <link rel="stylesheet" href="../_static/sphinx_paramlinks.css" type="text/css" /> <!-- end iterate through site-imported + sphinx environment css_files --> <!-- begin layout.mako headers --> <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 1.2 Documentation" href="../index.html" /> <link rel="up" title="Changes and Migration" href="index.html" /> <link rel="next" title="0.2 Changelog" href="changelog_02.html" /> <link rel="prev" title="0.4 Changelog" href="changelog_04.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">1.2.19</span> | Release Date: April 15, 2019 </div> <h1>SQLAlchemy 1.2 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 1.2 Documentation</a></h3> <p id="sidebar-topnav"> <a href="../contents.html">Contents</a> | <a href="../genindex.html">Index</a> </p> <div id="sidebar-search"> <form class="search" action="../search.html" method="get"> <label> Search terms: <input type="text" placeholder="search..." name="q" size="12" /> </label> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <div id="docs-sidebar"> <div id="sidebar-banner"> </div> <div id="docs-sidebar-inner"> <h3> <a href="index.html" title="Changes and Migration">Changes and Migration</a> </h3> <ul> <li><span class="link-container"><a class="reference external" href="migration_12.html">What’s New in SQLAlchemy 1.2?</a></span></li> <li><span class="link-container"><a class="reference external" href="changelog_12.html">1.2 Changelog</a></span></li> <li><span class="link-container"><a class="reference external" href="changelog_11.html">1.1 Changelog</a></span></li> <li><span class="link-container"><a class="reference external" href="changelog_10.html">1.0 Changelog</a></span></li> <li><span class="link-container"><a class="reference external" href="changelog_09.html">0.9 Changelog</a></span></li> <li><span class="link-container"><a class="reference external" href="changelog_08.html">0.8 Changelog</a></span></li> <li><span class="link-container"><a class="reference external" href="changelog_07.html">0.7 Changelog</a></span></li> <li><span class="link-container"><a class="reference external" href="changelog_06.html">0.6 Changelog</a></span></li> <li><span class="link-container"><a class="reference external" href="changelog_05.html">0.5 Changelog</a></span></li> <li><span class="link-container"><a class="reference external" href="changelog_04.html">0.4 Changelog</a></span></li> <li class="selected"><span class="link-container"><strong>0.3 Changelog</strong><a class="paramlink headerlink reference internal" href="#">¶</a></span><ul> <li><span class="link-container"><a class="reference external" href="#change-0.3.11">0.3.11</a></span><ul> <li><span class="link-container"><a class="reference external" href="#change-0.3.11-orm">orm</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.11-engine">engine</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.11-sql">sql</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.11-mysql">mysql</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.11-sqlite">sqlite</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.11-mssql">mssql</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.11-oracle">oracle</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.11-firebird">firebird</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.11-misc">misc</a></span></li> </ul> </li> <li><span class="link-container"><a class="reference external" href="#change-0.3.10">0.3.10</a></span><ul> <li><span class="link-container"><a class="reference external" href="#change-0.3.10-general">general</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.10-orm">orm</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.10-sql">sql</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.10-misc">misc</a></span></li> </ul> </li> <li><span class="link-container"><a class="reference external" href="#change-0.3.9">0.3.9</a></span><ul> <li><span class="link-container"><a class="reference external" href="#change-0.3.9-general">general</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.9-orm">orm</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.9-sql">sql</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.9-mysql">mysql</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.9-sqlite">sqlite</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.9-mssql">mssql</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.9-oracle">oracle</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.9-misc">misc</a></span></li> </ul> </li> <li><span class="link-container"><a class="reference external" href="#change-0.3.8">0.3.8</a></span><ul> <li><span class="link-container"><a class="reference external" href="#change-0.3.8-orm">orm</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.8-sql">sql</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.8-mysql">mysql</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.8-firebird">firebird</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.8-misc">misc</a></span></li> </ul> </li> <li><span class="link-container"><a class="reference external" href="#change-0.3.7">0.3.7</a></span><ul> <li><span class="link-container"><a class="reference external" href="#change-0.3.7-orm">orm</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.7-sql">sql</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.7-mysql">mysql</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.7-sqlite">sqlite</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.7-mssql">mssql</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.7-oracle">oracle</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.7-misc">misc</a></span></li> </ul> </li> <li><span class="link-container"><a class="reference external" href="#change-0.3.6">0.3.6</a></span><ul> <li><span class="link-container"><a class="reference external" href="#change-0.3.6-orm">orm</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.6-sql">sql</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.6-mysql">mysql</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.6-oracle">oracle</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.6-misc">misc</a></span></li> </ul> </li> <li><span class="link-container"><a class="reference external" href="#change-0.3.5">0.3.5</a></span><ul> <li><span class="link-container"><a class="reference external" href="#change-0.3.5-orm">orm</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.5-sql">sql</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.5-mysql">mysql</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.5-mssql">mssql</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.5-oracle">oracle</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.5-misc">misc</a></span></li> </ul> </li> <li><span class="link-container"><a class="reference external" href="#change-0.3.4">0.3.4</a></span><ul> <li><span class="link-container"><a class="reference external" href="#change-0.3.4-general">general</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.4-orm">orm</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.4-sql">sql</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.4-mysql">mysql</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.4-mssql">mssql</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.4-oracle">oracle</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.4-firebird">firebird</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.4-misc">misc</a></span></li> </ul> </li> <li><span class="link-container"><a class="reference external" href="#change-0.3.3">0.3.3</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.2">0.3.2</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.1">0.3.1</a></span><ul> <li><span class="link-container"><a class="reference external" href="#change-0.3.1-orm">orm</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.1-misc">misc</a></span></li> </ul> </li> <li><span class="link-container"><a class="reference external" href="#change-0.3.0">0.3.0</a></span><ul> <li><span class="link-container"><a class="reference external" href="#change-0.3.0-general">general</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.0-orm">orm</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.0-sql">sql</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.0-schema">schema</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.0-sqlite">sqlite</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.0-oracle">oracle</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.0-firebird">firebird</a></span></li> <li><span class="link-container"><a class="reference external" href="#change-0.3.0-misc">misc</a></span></li> </ul> </li> </ul> </li> <li><span class="link-container"><a class="reference external" href="changelog_02.html">0.2 Changelog</a></span></li> <li><span class="link-container"><a class="reference external" href="changelog_01.html">0.1 Changelog</a></span></li> <li><span class="link-container"><a class="reference external" href="migration_11.html">What’s New in SQLAlchemy 1.1?</a></span></li> <li><span class="link-container"><a class="reference external" href="migration_10.html">What’s New in SQLAlchemy 1.0?</a></span></li> <li><span class="link-container"><a class="reference external" href="migration_09.html">What’s New in SQLAlchemy 0.9?</a></span></li> <li><span class="link-container"><a class="reference external" href="migration_08.html">What’s New in SQLAlchemy 0.8?</a></span></li> <li><span class="link-container"><a class="reference external" href="migration_07.html">What’s New in SQLAlchemy 0.7?</a></span></li> <li><span class="link-container"><a class="reference external" href="migration_06.html">What’s New in SQLAlchemy 0.6?</a></span></li> <li><span class="link-container"><a class="reference external" href="migration_05.html">What’s new in SQLAlchemy 0.5?</a></span></li> <li><span class="link-container"><a class="reference external" href="migration_04.html">What’s new in SQLAlchemy 0.4?</a></span></li> </ul> </div> </div> </div> <div id="docs-body" class="withsidebar" > <div class="section" id="changelog"> <h1>0.3 Changelog<a class="headerlink" href="#changelog" title="Permalink to this headline">¶</a></h1> <div class="section" id="change-0.3.11"> <h2>0.3.11<a class="headerlink" href="#change-0.3.11" title="Permalink to this headline">¶</a></h2> Released: Sun Oct 14 2007<div class="section" id="change-0.3.11-orm"> <h3>orm<a class="headerlink" href="#change-0.3.11-orm" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.11-0"><span class="target" id="change-795ef475f7d4b812b08e3c6d684d0937"><strong>[orm] </strong></span><p>added a check for joining from A->B using join(), along two different m2m tables. this raises an error in 0.3 but is possible in 0.4 when aliases are used.</p> <a class="changeset-link headerlink reference internal" href="#change-795ef475f7d4b812b08e3c6d684d0937">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/687">#687</a></p> </p> </li> <li><p id="change-0.3.11-1"><span class="target" id="change-88ee862c631f69b98c54fa871a991656"><strong>[orm] </strong></span><p>fixed small exception throw bug in Session.merge()</p> <a class="changeset-link headerlink reference internal" href="#change-88ee862c631f69b98c54fa871a991656">¶</a><p></p> </p> </li> <li><p id="change-0.3.11-2"><span class="target" id="change-bd9e04477cd60c6d6a7a4cebb7f0913a"><strong>[orm] </strong></span><p>fixed bug where mapper, being linked to a join where one table had no PK columns, would not detect that the joined table had no PK.</p> <a class="changeset-link headerlink reference internal" href="#change-bd9e04477cd60c6d6a7a4cebb7f0913a">¶</a><p></p> </p> </li> <li><p id="change-0.3.11-3"><span class="target" id="change-1e038d2dbcdd2153030e7394dfd58f3d"><strong>[orm] </strong></span><p>fixed bugs in determining proper sync clauses from custom inherit conditions</p> <a class="changeset-link headerlink reference internal" href="#change-1e038d2dbcdd2153030e7394dfd58f3d">¶</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.3.11-4"><span class="target" id="change-0e43e8232535b10db727543c77f728bd"><strong>[orm] </strong></span><p>backref remove object operation doesn’t fail if the other-side collection doesn’t contain the item, supports noload collections</p> <a class="changeset-link headerlink reference internal" href="#change-0e43e8232535b10db727543c77f728bd">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/813">#813</a></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.11-engine"> <h3>engine<a class="headerlink" href="#change-0.3.11-engine" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.11-5"><span class="target" id="change-a8031639e187f84e4aa5334fd71c2098"><strong>[engine] </strong></span><p>fixed another occasional race condition which could occur when using pool with threadlocal setting</p> <a class="changeset-link headerlink reference internal" href="#change-a8031639e187f84e4aa5334fd71c2098">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.11-sql"> <h3>sql<a class="headerlink" href="#change-0.3.11-sql" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.11-6"><span class="target" id="change-606aa4f88278c9f53504856ea6950d76"><strong>[sql] </strong></span><p>tweak DISTINCT precedence for clauses like <cite>func.count(t.c.col.distinct())</cite></p> <a class="changeset-link headerlink reference internal" href="#change-606aa4f88278c9f53504856ea6950d76">¶</a><p></p> </p> </li> <li><p id="change-0.3.11-7"><span class="target" id="change-d8d45d29d80bd66d00ef851e04a3f82b"><strong>[sql] </strong></span><p>Fixed detection of internal ‘$’ characters in :bind$params</p> <a class="changeset-link headerlink reference internal" href="#change-d8d45d29d80bd66d00ef851e04a3f82b">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/719">#719</a></p> </p> </li> <li><p id="change-0.3.11-8"><span class="target" id="change-d5969ca86631966109273bba06c34ca5"><strong>[sql] </strong></span><p>don’t assume join criterion consists only of column objects</p> <a class="changeset-link headerlink reference internal" href="#change-d5969ca86631966109273bba06c34ca5">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/768">#768</a></p> </p> </li> <li><p id="change-0.3.11-9"><span class="target" id="change-adee1f3a5bf6063740c4e5d0d8759576"><strong>[sql] </strong></span><p>adjusted operator precedence of NOT to match ‘==’ and others, so that ~(x==y) produces NOT (x=y), which is compatible with MySQL < 5.0 (doesn’t like “NOT x=y”)</p> <a class="changeset-link headerlink reference internal" href="#change-adee1f3a5bf6063740c4e5d0d8759576">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/764">#764</a></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.11-mysql"> <h3>mysql<a class="headerlink" href="#change-0.3.11-mysql" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.11-10"><span class="target" id="change-0925c07610677ed2716dea213bbd0a75"><strong>[mysql] </strong></span><p>fixed specification of YEAR columns when generating schema</p> <a class="changeset-link headerlink reference internal" href="#change-0925c07610677ed2716dea213bbd0a75">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.11-sqlite"> <h3>sqlite<a class="headerlink" href="#change-0.3.11-sqlite" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.11-11"><span class="target" id="change-cb3f35b104dcbe7a26298edfc829c240"><strong>[sqlite] </strong></span><p>passthrough for stringified dates</p> <a class="changeset-link headerlink reference internal" href="#change-cb3f35b104dcbe7a26298edfc829c240">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.11-mssql"> <h3>mssql<a class="headerlink" href="#change-0.3.11-mssql" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.11-12"><span class="target" id="change-9ae1839db8b6431a7d9a951df9db226f"><strong>[mssql] </strong></span><p>added support for TIME columns (simulated using DATETIME)</p> <a class="changeset-link headerlink reference internal" href="#change-9ae1839db8b6431a7d9a951df9db226f">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/679">#679</a></p> </p> </li> <li><p id="change-0.3.11-13"><span class="target" id="change-22d1b8a85d2e3fad306665d645da0f78"><strong>[mssql] </strong></span><p>added support for BIGINT, MONEY, SMALLMONEY, UNIQUEIDENTIFIER and SQL_VARIANT</p> <a class="changeset-link headerlink reference internal" href="#change-22d1b8a85d2e3fad306665d645da0f78">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/721">#721</a></p> </p> </li> <li><p id="change-0.3.11-14"><span class="target" id="change-b1949f314913ce8e14c5552e9e90e924"><strong>[mssql] </strong></span><p>index names are now quoted when dropping from reflected tables</p> <a class="changeset-link headerlink reference internal" href="#change-b1949f314913ce8e14c5552e9e90e924">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/684">#684</a></p> </p> </li> <li><p id="change-0.3.11-15"><span class="target" id="change-dc27077ba3230cb424fcf4b4b8185ac1"><strong>[mssql] </strong></span><p>can now specify a DSN for PyODBC, using a URI like mssql:///?dsn=bob</p> <a class="changeset-link headerlink reference internal" href="#change-dc27077ba3230cb424fcf4b4b8185ac1">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.11-oracle"> <h3>oracle<a class="headerlink" href="#change-0.3.11-oracle" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.11-16"><span class="target" id="change-5f0bd7c8398c9a49d384e169dded9299"><strong>[oracle] </strong></span><p>removed LONG_STRING, LONG_BINARY from “binary” types, so type objects don’t try to read their values as LOB.</p> <a class="changeset-link headerlink reference internal" href="#change-5f0bd7c8398c9a49d384e169dded9299">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/622">#622</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/751">#751</a></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.11-firebird"> <h3>firebird<a class="headerlink" href="#change-0.3.11-firebird" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.11-17"><span class="target" id="change-68a13c0986d622612ea9b90a1e732d21"><strong>[firebird] </strong></span><p>supports_sane_rowcount() set to False due to ticket #370 (right way).</p> <a class="changeset-link headerlink reference internal" href="#change-68a13c0986d622612ea9b90a1e732d21">¶</a><p></p> </p> </li> <li><p id="change-0.3.11-18"><span class="target" id="change-6d153f889ecfbaa34265a173aef5720d"><strong>[firebird] </strong></span><p>fixed reflection of Column’s nullable property.</p> <a class="changeset-link headerlink reference internal" href="#change-6d153f889ecfbaa34265a173aef5720d">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.11-misc"> <h3>misc<a class="headerlink" href="#change-0.3.11-misc" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.11-19"><span class="target" id="change-c26caf7b92713b64413c6519ddfa159a"><strong>[postgres] </strong></span><p>when reflecting tables from alternate schemas, the “default” placed upon the primary key, i.e. usually a sequence name, has the “schema” name unconditionally quoted, so that schema names which need quoting are fine. its slightly unnecessary for schema names which don’t need quoting but not harmful.</p> <a class="changeset-link headerlink reference internal" href="#change-c26caf7b92713b64413c6519ddfa159a">¶</a><p></p> </p> </li> </ul> </div> </div> <div class="section" id="change-0.3.10"> <h2>0.3.10<a class="headerlink" href="#change-0.3.10" title="Permalink to this headline">¶</a></h2> Released: Fri Jul 20 2007<div class="section" id="change-0.3.10-general"> <h3>general<a class="headerlink" href="#change-0.3.10-general" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.10-0"><span class="target" id="change-d21e68c9886bf315a5224f8aedf8c2f0"><strong>[general] </strong></span><p>a new mutex that was added in 0.3.9 causes the pool_timeout feature to fail during a race condition; threads would raise TimeoutError immediately with no delay if many threads push the pool into overflow at the same time. this issue has been fixed.</p> <a class="changeset-link headerlink reference internal" href="#change-d21e68c9886bf315a5224f8aedf8c2f0">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.10-orm"> <h3>orm<a class="headerlink" href="#change-0.3.10-orm" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.10-1"><span class="target" id="change-abc5c622ebf7f48299346d88e835234a"><strong>[orm] </strong></span><p>cleanup to connection-bound sessions, SessionTransaction</p> <a class="changeset-link headerlink reference internal" href="#change-abc5c622ebf7f48299346d88e835234a">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.10-sql"> <h3>sql<a class="headerlink" href="#change-0.3.10-sql" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.10-2"><span class="target" id="change-f1f6a898d9d4aad0cfea3d441d7da52c"><strong>[sql] </strong></span><p>got connection-bound metadata to work with implicit execution</p> <a class="changeset-link headerlink reference internal" href="#change-f1f6a898d9d4aad0cfea3d441d7da52c">¶</a><p></p> </p> </li> <li><p id="change-0.3.10-3"><span class="target" id="change-fc0a1a167698a3a8067f5371fbe8a5c3"><strong>[sql] </strong></span><p>foreign key specs can have any character in their identifiers</p> <a class="changeset-link headerlink reference internal" href="#change-fc0a1a167698a3a8067f5371fbe8a5c3">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/667">#667</a></p> </p> </li> <li><p id="change-0.3.10-4"><span class="target" id="change-2b2c84c6ab73af1cb0a95c1ef7da18e8"><strong>[sql] </strong></span><p>added commutativity-awareness to binary clause comparisons to each other, improves ORM lazy load optimization</p> <a class="changeset-link headerlink reference internal" href="#change-2b2c84c6ab73af1cb0a95c1ef7da18e8">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/664">#664</a></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.10-misc"> <h3>misc<a class="headerlink" href="#change-0.3.10-misc" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.10-5"><span class="target" id="change-ad87700ec6114efcef15a751769a83f7"><strong>[postgres] </strong></span><p>fixed max identifier length (63)</p> <a class="changeset-link headerlink reference internal" href="#change-ad87700ec6114efcef15a751769a83f7">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/571">#571</a></p> </p> </li> </ul> </div> </div> <div class="section" id="change-0.3.9"> <h2>0.3.9<a class="headerlink" href="#change-0.3.9" title="Permalink to this headline">¶</a></h2> Released: Sun Jul 15 2007<div class="section" id="change-0.3.9-general"> <h3>general<a class="headerlink" href="#change-0.3.9-general" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.9-0"><span class="target" id="change-15b74e04e779630532bed8eb2cb6e6c1"><strong>[general] </strong></span><p>better error message for NoSuchColumnError</p> <a class="changeset-link headerlink reference internal" href="#change-15b74e04e779630532bed8eb2cb6e6c1">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/607">#607</a></p> </p> </li> <li><p id="change-0.3.9-1"><span class="target" id="change-1a63992eb7fa15d2defa97764255fbc0"><strong>[general] </strong></span><p>finally figured out how to get setuptools version in, available as sqlalchemy.__version__</p> <a class="changeset-link headerlink reference internal" href="#change-1a63992eb7fa15d2defa97764255fbc0">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/428">#428</a></p> </p> </li> <li><p id="change-0.3.9-2"><span class="target" id="change-a914144f1b4a77794f443fe172406549"><strong>[general] </strong></span><p>the various “engine” arguments, such as “engine”, “connectable”, “engine_or_url”, “bind_to”, etc. are all present, but deprecated. they all get replaced by the single term “bind”. you also set the “bind” of MetaData using metadata.bind = <engine or connection></p> <a class="changeset-link headerlink reference internal" href="#change-a914144f1b4a77794f443fe172406549">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.9-orm"> <h3>orm<a class="headerlink" href="#change-0.3.9-orm" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.9-3"><span class="target" id="change-301449c29e0fd8c8dbf2a0cbf6bbb0a7"><strong>[orm] </strong></span><p>forwards-compatibility with 0.4: added one(), first(), and all() to Query. almost all Query functionality from 0.4 is present in 0.3.9 for forwards-compat purposes.</p> <a class="changeset-link headerlink reference internal" href="#change-301449c29e0fd8c8dbf2a0cbf6bbb0a7">¶</a><p></p> </p> </li> <li><p id="change-0.3.9-4"><span class="target" id="change-3d04848b5b90892e4896d27e42104550"><strong>[orm] </strong></span><p>reset_joinpoint() really really works this time, promise ! lets you re-join from the root: query.join([‘a’, ‘b’]).filter(<crit>).reset_joinpoint().join([‘a’, ‘c’]).filter(<some other crit>).all() in 0.4 all join() calls start from the “root”</p> <a class="changeset-link headerlink reference internal" href="#change-3d04848b5b90892e4896d27e42104550">¶</a><p></p> </p> </li> <li><p id="change-0.3.9-5"><span class="target" id="change-a0eabad47f40a8f2c05402d784e913e5"><strong>[orm] </strong></span><p>added synchronization to the mapper() construction step, to avoid thread collisions when pre-existing mappers are compiling in a different thread</p> <a class="changeset-link headerlink reference internal" href="#change-a0eabad47f40a8f2c05402d784e913e5">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/613">#613</a></p> </p> </li> <li><p id="change-0.3.9-6"><span class="target" id="change-7511ce30f30748be291cfdd03fd2985c"><strong>[orm] </strong></span><p>a warning is issued by Mapper when two primary key columns of the same name are munged into a single attribute. this happens frequently when mapping to joins (or inheritance).</p> <a class="changeset-link headerlink reference internal" href="#change-7511ce30f30748be291cfdd03fd2985c">¶</a><p></p> </p> </li> <li><p id="change-0.3.9-7"><span class="target" id="change-2b84bfaaf17d2ee58aef7c2087b5d1a2"><strong>[orm] </strong></span><p>synonym() properties are fully supported by all Query joining/ with_parent operations</p> <a class="changeset-link headerlink reference internal" href="#change-2b84bfaaf17d2ee58aef7c2087b5d1a2">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/598">#598</a></p> </p> </li> <li><p id="change-0.3.9-8"><span class="target" id="change-29072b60d67f065003dc3d3c58fc4f41"><strong>[orm] </strong></span><p>fixed very stupid bug when deleting items with many-to-many uselist=False relations</p> <a class="changeset-link headerlink reference internal" href="#change-29072b60d67f065003dc3d3c58fc4f41">¶</a><p></p> </p> </li> <li><p id="change-0.3.9-9"><span class="target" id="change-7c527faac0be51d0670878009672f72e"><strong>[orm] </strong></span><p>remember all that stuff about polymorphic_union ? for joined table inheritance ? Funny thing… You sort of don’t need it for joined table inheritance, you can just string all the tables together via outerjoin(). The UNION still applies if concrete tables are involved, though (since nothing to join them on).</p> <a class="changeset-link headerlink reference internal" href="#change-7c527faac0be51d0670878009672f72e">¶</a><p></p> </p> </li> <li><p id="change-0.3.9-10"><span class="target" id="change-fe5f2850304952163433155f047967b3"><strong>[orm] </strong></span><p>small fix to eager loading to better work with eager loads to polymorphic mappers that are using a straight “outerjoin” clause</p> <a class="changeset-link headerlink reference internal" href="#change-fe5f2850304952163433155f047967b3">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.9-sql"> <h3>sql<a class="headerlink" href="#change-0.3.9-sql" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.9-11"><span class="target" id="change-5facd76a849bbd35a1d758bee9da40c8"><strong>[sql] </strong></span><p>ForeignKey to a table in a schema that’s not the default schema requires the schema to be explicit; i.e. ForeignKey(‘alt_schema.users.id’)</p> <a class="changeset-link headerlink reference internal" href="#change-5facd76a849bbd35a1d758bee9da40c8">¶</a><p></p> </p> </li> <li><p id="change-0.3.9-12"><span class="target" id="change-cf52683aa8efacf1647755b6e2f1acf9"><strong>[sql] </strong></span><p>MetaData can now be constructed with an engine or url as the first argument, just like BoundMetaData</p> <a class="changeset-link headerlink reference internal" href="#change-cf52683aa8efacf1647755b6e2f1acf9">¶</a><p></p> </p> </li> <li><p id="change-0.3.9-13"><span class="target" id="change-2539cd0d61dd58d959c61c6876dc1209"><strong>[sql] </strong></span><p>BoundMetaData is now deprecated, and MetaData is a direct substitute.</p> <a class="changeset-link headerlink reference internal" href="#change-2539cd0d61dd58d959c61c6876dc1209">¶</a><p></p> </p> </li> <li><p id="change-0.3.9-14"><span class="target" id="change-10f3b9882e40dd9a45d7188ae6a8237c"><strong>[sql] </strong></span><p>DynamicMetaData has been renamed to ThreadLocalMetaData. the DynamicMetaData name is deprecated and is an alias for ThreadLocalMetaData or a regular MetaData if threadlocal=False</p> <a class="changeset-link headerlink reference internal" href="#change-10f3b9882e40dd9a45d7188ae6a8237c">¶</a><p></p> </p> </li> <li><p id="change-0.3.9-15"><span class="target" id="change-03586a372d9beeedd862f01e0addc777"><strong>[sql] </strong></span><p>composite primary key is represented as a non-keyed set to allow for composite keys consisting of cols with the same name; occurs within a Join. helps inheritance scenarios formulate correct PK.</p> <a class="changeset-link headerlink reference internal" href="#change-03586a372d9beeedd862f01e0addc777">¶</a><p></p> </p> </li> <li><p id="change-0.3.9-16"><span class="target" id="change-afa1167f3e5743e5abd5356d62de6046"><strong>[sql] </strong></span><p>improved ability to get the “correct” and most minimal set of primary key columns from a join, equating foreign keys and otherwise equated columns. this is also mostly to help inheritance scenarios formulate the best choice of primary key columns.</p> <a class="changeset-link headerlink reference internal" href="#change-afa1167f3e5743e5abd5356d62de6046">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/185">#185</a></p> </p> </li> <li><p id="change-0.3.9-17"><span class="target" id="change-9c7cdd3f8030a2d57cf94f1f1f892b4c"><strong>[sql] </strong></span><p>added ‘bind’ argument to Sequence.create()/drop(), ColumnDefault.execute()</p> <a class="changeset-link headerlink reference internal" href="#change-9c7cdd3f8030a2d57cf94f1f1f892b4c">¶</a><p></p> </p> </li> <li><p id="change-0.3.9-18"><span class="target" id="change-81ad0a30acb500499415014b6aefd421"><strong>[sql] </strong></span><p>columns can be overridden in a reflected table with a “key” attribute different than the column’s name, including for primary key columns</p> <a class="changeset-link headerlink reference internal" href="#change-81ad0a30acb500499415014b6aefd421">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/650">#650</a></p> </p> </li> <li><p id="change-0.3.9-19"><span class="target" id="change-4b5d1e9e40c66d1b53a831c30e88292a"><strong>[sql] </strong></span><p>fixed “ambiguous column” result detection, when dupe col names exist in a result</p> <a class="changeset-link headerlink reference internal" href="#change-4b5d1e9e40c66d1b53a831c30e88292a">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/657">#657</a></p> </p> </li> <li><p id="change-0.3.9-20"><span class="target" id="change-dc154cb277d63d3f13716fab650411d5"><strong>[sql] </strong></span><p>some enhancements to “column targeting”, the ability to match a column to a “corresponding” column in another selectable. this affects mostly ORM ability to map to complex joins</p> <a class="changeset-link headerlink reference internal" href="#change-dc154cb277d63d3f13716fab650411d5">¶</a><p></p> </p> </li> <li><p id="change-0.3.9-21"><span class="target" id="change-a0f1f7110e545dcbde1e4a60d9b028cc"><strong>[sql] </strong></span><p>MetaData and all SchemaItems are safe to use with pickle. slow table reflections can be dumped into a pickled file to be reused later. Just reconnect the engine to the metadata after unpickling.</p> <a class="changeset-link headerlink reference internal" href="#change-a0f1f7110e545dcbde1e4a60d9b028cc">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/619">#619</a></p> </p> </li> <li><p id="change-0.3.9-22"><span class="target" id="change-c1578db6e36277a7adc101ca74177397"><strong>[sql] </strong></span><p>added a mutex to QueuePool’s “overflow” calculation to prevent a race condition that can bypass max_overflow</p> <a class="changeset-link headerlink reference internal" href="#change-c1578db6e36277a7adc101ca74177397">¶</a><p></p> </p> </li> <li><p id="change-0.3.9-23"><span class="target" id="change-3b19729cd27655192e7f677db9437a75"><strong>[sql] </strong></span><p>fixed grouping of compound selects to give correct results. will break on sqlite in some cases, but those cases were producing incorrect results anyway, sqlite doesn’t support grouped compound selects</p> <a class="changeset-link headerlink reference internal" href="#change-3b19729cd27655192e7f677db9437a75">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/623">#623</a></p> </p> </li> <li><p id="change-0.3.9-24"><span class="target" id="change-1a5573250745da4cc296c5478a905559"><strong>[sql] </strong></span><p>fixed precedence of operators so that parenthesis are correctly applied</p> <a class="changeset-link headerlink reference internal" href="#change-1a5573250745da4cc296c5478a905559">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/620">#620</a></p> </p> </li> <li><p id="change-0.3.9-25"><span class="target" id="change-f3c83d18250d490e0c0e719048bb5c78"><strong>[sql] </strong></span><p>calling <column>.in_() (i.e. with no arguments) will return “CASE WHEN (<column> IS NULL) THEN NULL ELSE 0 END = 1)”, so that NULL or False is returned in all cases, rather than throwing an error</p> <a class="changeset-link headerlink reference internal" href="#change-f3c83d18250d490e0c0e719048bb5c78">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/545">#545</a></p> </p> </li> <li><p id="change-0.3.9-26"><span class="target" id="change-29d36e2ae856641782a99036963ac096"><strong>[sql] </strong></span><p>fixed “where”/”from” criterion of select() to accept a unicode string in addition to regular string - both convert to text()</p> <a class="changeset-link headerlink reference internal" href="#change-29d36e2ae856641782a99036963ac096">¶</a><p></p> </p> </li> <li><p id="change-0.3.9-27"><span class="target" id="change-d5193859e2955a59dd9b9689c9c46766"><strong>[sql] </strong></span><p>added standalone distinct() function in addition to column.distinct()</p> <a class="changeset-link headerlink reference internal" href="#change-d5193859e2955a59dd9b9689c9c46766">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/558">#558</a></p> </p> </li> <li><p id="change-0.3.9-28"><span class="target" id="change-22737e38569c4710d50bad784dc3c2f6"><strong>[sql] </strong></span><p>result.last_inserted_ids() should return a list that is identically sized to the primary key constraint of the table. values that were “passively” created and not available via cursor.lastrowid will be None.</p> <a class="changeset-link headerlink reference internal" href="#change-22737e38569c4710d50bad784dc3c2f6">¶</a><p></p> </p> </li> <li><p id="change-0.3.9-29"><span class="target" id="change-133fed2970fe02b19469b87df37569d2"><strong>[sql] </strong></span><p>long-identifier detection fixed to use > rather than >= for max ident length</p> <a class="changeset-link headerlink reference internal" href="#change-133fed2970fe02b19469b87df37569d2">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/589">#589</a></p> </p> </li> <li><p id="change-0.3.9-30"><span class="target" id="change-4b796f178bce68c33756958792addb5e"><strong>[sql] </strong></span><p>fixed bug where selectable.corresponding_column(selectable.c.col) would not return selectable.c.col, if the selectable is a join of a table and another join involving the same table. messed up ORM decision making</p> <a class="changeset-link headerlink reference internal" href="#change-4b796f178bce68c33756958792addb5e">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/593">#593</a></p> </p> </li> <li><p id="change-0.3.9-31"><span class="target" id="change-01be6714d969a9a05321795a1a05462e"><strong>[sql] </strong></span><p>added Interval type to types.py</p> <a class="changeset-link headerlink reference internal" href="#change-01be6714d969a9a05321795a1a05462e">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/595">#595</a></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.9-mysql"> <h3>mysql<a class="headerlink" href="#change-0.3.9-mysql" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.9-32"><span class="target" id="change-a2ea4c40b80240eda48ac840435d5023"><strong>[mysql] </strong></span><p>fixed catching of some errors that imply a dropped connection</p> <a class="changeset-link headerlink reference internal" href="#change-a2ea4c40b80240eda48ac840435d5023">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/625">#625</a></p> </p> </li> <li><p id="change-0.3.9-33"><span class="target" id="change-d2c713d82a5cc3352589d3b97a4f1a75"><strong>[mysql] </strong></span><p>fixed escaping of the modulo operator</p> <a class="changeset-link headerlink reference internal" href="#change-d2c713d82a5cc3352589d3b97a4f1a75">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/624">#624</a></p> </p> </li> <li><p id="change-0.3.9-34"><span class="target" id="change-ccc1148a1c82ef495cc71ca9962442b9"><strong>[mysql] </strong></span><p>added ‘fields’ to reserved words</p> <a class="changeset-link headerlink reference internal" href="#change-ccc1148a1c82ef495cc71ca9962442b9">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/590">#590</a></p> </p> </li> <li><p id="change-0.3.9-35"><span class="target" id="change-706aff419d104524d8aee408e01fca4b"><strong>[mysql] </strong></span><p>various reflection enhancement/fixes</p> <a class="changeset-link headerlink reference internal" href="#change-706aff419d104524d8aee408e01fca4b">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.9-sqlite"> <h3>sqlite<a class="headerlink" href="#change-0.3.9-sqlite" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.9-36"><span class="target" id="change-cda34421fe7120853f316f8e8cfbc11b"><strong>[sqlite] </strong></span><p>rearranged dialect initialization so it has time to warn about pysqlite1 being too old.</p> <a class="changeset-link headerlink reference internal" href="#change-cda34421fe7120853f316f8e8cfbc11b">¶</a><p></p> </p> </li> <li><p id="change-0.3.9-37"><span class="target" id="change-123da4b941ba10797888a9215510d452"><strong>[sqlite] </strong></span><p>sqlite better handles datetime/date/time objects mixed and matched with various Date/Time/DateTime columns</p> <a class="changeset-link headerlink reference internal" href="#change-123da4b941ba10797888a9215510d452">¶</a><p></p> </p> </li> <li><p id="change-0.3.9-38"><span class="target" id="change-ecc1a278352da6fe50070d9f2df39fc6"><strong>[sqlite] </strong></span><p>string PK column inserts don’t get overwritten with OID</p> <a class="changeset-link headerlink reference internal" href="#change-ecc1a278352da6fe50070d9f2df39fc6">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/603">#603</a></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.9-mssql"> <h3>mssql<a class="headerlink" href="#change-0.3.9-mssql" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.9-39"><span class="target" id="change-2bfbe63bd44f73945555c6ffb24c094e"><strong>[mssql] </strong></span><p>fix port option handling for pyodbc</p> <a class="changeset-link headerlink reference internal" href="#change-2bfbe63bd44f73945555c6ffb24c094e">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/634">#634</a></p> </p> </li> <li><p id="change-0.3.9-40"><span class="target" id="change-1e148d4d69c64d022729a0015335e1e8"><strong>[mssql] </strong></span><p>now able to reflect start and increment values for identity columns</p> <a class="changeset-link headerlink reference internal" href="#change-1e148d4d69c64d022729a0015335e1e8">¶</a><p></p> </p> </li> <li><p id="change-0.3.9-41"><span class="target" id="change-439f3b4aba1eb4036d66b94a0f22614d"><strong>[mssql] </strong></span><p>preliminary support for using scope_identity() with pyodbc</p> <a class="changeset-link headerlink reference internal" href="#change-439f3b4aba1eb4036d66b94a0f22614d">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.9-oracle"> <h3>oracle<a class="headerlink" href="#change-0.3.9-oracle" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.9-42"><span class="target" id="change-7c280ed8cae1ff8178c595a4ad188950"><strong>[oracle] </strong></span><p>datetime fixes: got subsecond TIMESTAMP to work, added OracleDate which supports types.Date with only year/month/day</p> <a class="changeset-link headerlink reference internal" href="#change-7c280ed8cae1ff8178c595a4ad188950">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/604">#604</a></p> </p> </li> <li><p id="change-0.3.9-43"><span class="target" id="change-fe2a41d1863a635eb6874cd35fb20b48"><strong>[oracle] </strong></span><p>added dialect flag “auto_convert_lobs”, defaults to True; will cause any LOB objects detected in a result set to be forced into OracleBinary so that the LOB is read() automatically, if no typemap was present (i.e., if a textual execute() was issued).</p> <a class="changeset-link headerlink reference internal" href="#change-fe2a41d1863a635eb6874cd35fb20b48">¶</a><p></p> </p> </li> <li><p id="change-0.3.9-44"><span class="target" id="change-1785061d703c74bd4913416cc528e437"><strong>[oracle] </strong></span><p>mod operator ‘%’ produces MOD</p> <a class="changeset-link headerlink reference internal" href="#change-1785061d703c74bd4913416cc528e437">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/624">#624</a></p> </p> </li> <li><p id="change-0.3.9-45"><span class="target" id="change-ae5989d376a6e417a66cf93a4214f7d1"><strong>[oracle] </strong></span><p>converts cx_oracle datetime objects to Python datetime.datetime when Python 2.3 used</p> <a class="changeset-link headerlink reference internal" href="#change-ae5989d376a6e417a66cf93a4214f7d1">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/542">#542</a></p> </p> </li> <li><p id="change-0.3.9-46"><span class="target" id="change-2cdcc2d95fcff22d45cbf69a4828bb78"><strong>[oracle] </strong></span><p>fixed unicode conversion in Oracle TEXT type</p> <a class="changeset-link headerlink reference internal" href="#change-2cdcc2d95fcff22d45cbf69a4828bb78">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.9-misc"> <h3>misc<a class="headerlink" href="#change-0.3.9-misc" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.9-47"><span class="target" id="change-eb702c9d953f71913b8f13239bd1ace3"><strong>[ext] </strong></span><p>iteration over dict association proxies is now dict-like, not InstrumentedList-like (e.g. over keys instead of values)</p> <a class="changeset-link headerlink reference internal" href="#change-eb702c9d953f71913b8f13239bd1ace3">¶</a><p></p> </p> </li> <li><p id="change-0.3.9-48"><span class="target" id="change-00e6c94fbb4056e8fd8396d98317361e"><strong>[ext] </strong></span><p>association proxies no longer bind tightly to source collections, and are constructed with a thunk instead</p> <a class="changeset-link headerlink reference internal" href="#change-00e6c94fbb4056e8fd8396d98317361e">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/597">#597</a></p> </p> </li> <li><p id="change-0.3.9-49"><span class="target" id="change-2e4b108cd893d88498c7604cffd62078"><strong>[ext] </strong></span><p>added selectone_by() to assignmapper</p> <a class="changeset-link headerlink reference internal" href="#change-2e4b108cd893d88498c7604cffd62078">¶</a><p></p> </p> </li> <li><p id="change-0.3.9-50"><span class="target" id="change-d2c713d82a5cc3352589d3b97a4f1a75"><strong>[postgres] </strong></span><p>fixed escaping of the modulo operator</p> <a class="changeset-link headerlink reference internal" href="#change-d2c713d82a5cc3352589d3b97a4f1a75">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/624">#624</a></p> </p> </li> <li><p id="change-0.3.9-51"><span class="target" id="change-64c391579ec741ebb893bf0eda8954dd"><strong>[postgres] </strong></span><p>added support for reflection of domains</p> <a class="changeset-link headerlink reference internal" href="#change-64c391579ec741ebb893bf0eda8954dd">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/570">#570</a></p> </p> </li> <li><p id="change-0.3.9-52"><span class="target" id="change-7155ff564edfbf3f017269ef87e325b1"><strong>[postgres] </strong></span><p>types which are missing during reflection resolve to Null type instead of raising an error</p> <a class="changeset-link headerlink reference internal" href="#change-7155ff564edfbf3f017269ef87e325b1">¶</a><p></p> </p> </li> <li><p id="change-0.3.9-53"><span class="target" id="change-059d6872923fb7b2dd4dbe3e1b480fa1"><strong>[postgres] </strong></span><p>the fix in “schema” above fixes reflection of foreign keys from an alt-schema table to a public schema table</p> <a class="changeset-link headerlink reference internal" href="#change-059d6872923fb7b2dd4dbe3e1b480fa1">¶</a><p></p> </p> </li> </ul> </div> </div> <div class="section" id="change-0.3.8"> <h2>0.3.8<a class="headerlink" href="#change-0.3.8" title="Permalink to this headline">¶</a></h2> Released: Sat Jun 02 2007<div class="section" id="change-0.3.8-orm"> <h3>orm<a class="headerlink" href="#change-0.3.8-orm" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.8-0"><span class="target" id="change-220bb837574d279c29a38a113e5fe6cc"><strong>[orm] </strong></span><p>added reset_joinpoint() method to Query, moves the “join point” back to the starting mapper. 0.4 will change the behavior of join() to reset the “join point” in all cases so this is an interim method. for forwards compatibility, ensure joins across multiple relations are specified using a single join(), i.e. join([‘a’, ‘b’, ‘c’]).</p> <a class="changeset-link headerlink reference internal" href="#change-220bb837574d279c29a38a113e5fe6cc">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-1"><span class="target" id="change-83691e3c49fa12bf686a08d0a5af2c40"><strong>[orm] </strong></span><p>fixed bug in query.instances() that wouldn’t handle more than on additional mapper or one additional column.</p> <a class="changeset-link headerlink reference internal" href="#change-83691e3c49fa12bf686a08d0a5af2c40">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-2"><span class="target" id="change-0a134f37a0801fcebac51e263334c46e"><strong>[orm] </strong></span><p>“delete-orphan” no longer implies “delete”. ongoing effort to separate the behavior of these two operations.</p> <a class="changeset-link headerlink reference internal" href="#change-0a134f37a0801fcebac51e263334c46e">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-3"><span class="target" id="change-a7c0ffc4d0d71da2376e9be63199b048"><strong>[orm] </strong></span><p>many-to-many relationships properly set the type of bind params for delete operations on the association table</p> <a class="changeset-link headerlink reference internal" href="#change-a7c0ffc4d0d71da2376e9be63199b048">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-4"><span class="target" id="change-cb313a2a343c37587dcb6a44a61e9cd5"><strong>[orm] </strong></span><p>many-to-many relationships check that the number of rows deleted from the association table by a delete operation matches the expected results</p> <a class="changeset-link headerlink reference internal" href="#change-cb313a2a343c37587dcb6a44a61e9cd5">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-5"><span class="target" id="change-903aed08735804f496b188549879ab4f"><strong>[orm] </strong></span><p>session.get() and session.load() propagate **kwargs through to query</p> <a class="changeset-link headerlink reference internal" href="#change-903aed08735804f496b188549879ab4f">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-6"><span class="target" id="change-4900a187a33ec9e4b25fecb93f373349"><strong>[orm] </strong></span><p>fix to polymorphic query which allows the original polymorphic_union to be embedded into a correlated subquery</p> <a class="changeset-link headerlink reference internal" href="#change-4900a187a33ec9e4b25fecb93f373349">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/577">#577</a></p> </p> </li> <li><p id="change-0.3.8-7"><span class="target" id="change-8a65a9ccd3b899be79463c57097742a8"><strong>[orm] </strong></span><p>fix to select_by(<propname>=<object instance>) -style joins in conjunction with many-to-many relationships, bug introduced in r2556</p> <a class="changeset-link headerlink reference internal" href="#change-8a65a9ccd3b899be79463c57097742a8">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-8"><span class="target" id="change-364da54ef89796ce592a65df9986c2de"><strong>[orm] </strong></span><p>the “primary_key” argument to mapper() is propagated to the “polymorphic” mapper. primary key columns in this list get normalized to that of the mapper’s local table.</p> <a class="changeset-link headerlink reference internal" href="#change-364da54ef89796ce592a65df9986c2de">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-9"><span class="target" id="change-49c52ba1ca54032ac76f17ea1ac98f39"><strong>[orm] </strong></span><p>restored logging of “lazy loading clause” under sa.orm.strategies logger, got removed in 0.3.7</p> <a class="changeset-link headerlink reference internal" href="#change-49c52ba1ca54032ac76f17ea1ac98f39">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-10"><span class="target" id="change-c4c11ecc4b62a615e38a3a2aa51ea362"><strong>[orm] </strong></span><p>improved support for eagerloading of properties off of mappers that are mapped to select() statements; i.e. eagerloader is better at locating the correct selectable with which to attach its LEFT OUTER JOIN.</p> <a class="changeset-link headerlink reference internal" href="#change-c4c11ecc4b62a615e38a3a2aa51ea362">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.8-sql"> <h3>sql<a class="headerlink" href="#change-0.3.8-sql" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.8-11"><span class="target" id="change-b633ad04bf23c91721ac0943b6db5eca"><strong>[sql] </strong></span><p>_Label class overrides compare_self to return its ultimate object. meaning, if you say someexpr.label(‘foo’) == 5, it produces the correct “someexpr == 5”.</p> <a class="changeset-link headerlink reference internal" href="#change-b633ad04bf23c91721ac0943b6db5eca">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-12"><span class="target" id="change-2f98e49a9c61f9fdc7c291653364afe9"><strong>[sql] </strong></span><p>_Label propagates “_hide_froms()” so that scalar selects behave more properly with regards to FROM clause #574</p> <a class="changeset-link headerlink reference internal" href="#change-2f98e49a9c61f9fdc7c291653364afe9">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-13"><span class="target" id="change-e7872b2b2a3bbd38c13e8950a8e540bf"><strong>[sql] </strong></span><p>fix to long name generation when using oid_column as an order by (oids used heavily in mapper queries)</p> <a class="changeset-link headerlink reference internal" href="#change-e7872b2b2a3bbd38c13e8950a8e540bf">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-14"><span class="target" id="change-936ba4bd4f829a2f737cd53def3e14fc"><strong>[sql] </strong></span><p>significant speed improvement to ResultProxy, pre-caches TypeEngine dialect implementations and saves on function calls per column</p> <a class="changeset-link headerlink reference internal" href="#change-936ba4bd4f829a2f737cd53def3e14fc">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-15"><span class="target" id="change-fc92e69994fc285cf4e0fd2f1f78cec5"><strong>[sql] </strong></span><p>parenthesis are applied to clauses via a new _Grouping construct. uses operator precedence to more intelligently apply parenthesis to clauses, provides cleaner nesting of clauses (doesn’t mutate clauses placed in other clauses, i.e. no ‘parens’ flag)</p> <a class="changeset-link headerlink reference internal" href="#change-fc92e69994fc285cf4e0fd2f1f78cec5">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-16"><span class="target" id="change-bb4e8c5c4e8e15649157fd777ceefdc2"><strong>[sql] </strong></span><p>added ‘modifier’ keyword, works like func.<foo> except does not add parenthesis. e.g. select([modifier.DISTINCT(…)]) etc.</p> <a class="changeset-link headerlink reference internal" href="#change-bb4e8c5c4e8e15649157fd777ceefdc2">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-17"><span class="target" id="change-6c51873f355f528caf99b2451980c036"><strong>[sql] </strong></span><p>removed “no group by’s in a select that’s part of a UNION” restriction</p> <a class="changeset-link headerlink reference internal" href="#change-6c51873f355f528caf99b2451980c036">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/578">#578</a></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.8-mysql"> <h3>mysql<a class="headerlink" href="#change-0.3.8-mysql" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.8-18"><span class="target" id="change-9641b6abc326362d6deac112eace4afb"><strong>[mysql] </strong></span><p>Nearly all MySQL column types are now supported for declaration and reflection. Added NCHAR, NVARCHAR, VARBINARY, TINYBLOB, LONGBLOB, YEAR</p> <a class="changeset-link headerlink reference internal" href="#change-9641b6abc326362d6deac112eace4afb">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-19"><span class="target" id="change-18085e3f56d8b900bc96c38dd5a26b45"><strong>[mysql] </strong></span><p>The sqltypes.Binary passthrough now always builds a BLOB, avoiding problems with very old database versions</p> <a class="changeset-link headerlink reference internal" href="#change-18085e3f56d8b900bc96c38dd5a26b45">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-20"><span class="target" id="change-9724aa42d8520597d817509db4f12ea8"><strong>[mysql] </strong></span><p>support for column-level CHARACTER SET and COLLATE declarations, as well as ASCII, UNICODE, NATIONAL and BINARY shorthand.</p> <a class="changeset-link headerlink reference internal" href="#change-9724aa42d8520597d817509db4f12ea8">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.8-firebird"> <h3>firebird<a class="headerlink" href="#change-0.3.8-firebird" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.8-21"><span class="target" id="change-0a0b981a70a945c67ba5720e526c1f3c"><strong>[firebird] </strong></span><p>set max identifier length to 31</p> <a class="changeset-link headerlink reference internal" href="#change-0a0b981a70a945c67ba5720e526c1f3c">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-22"><span class="target" id="change-ee8ef044cfb4e438086a05caa7914ae7"><strong>[firebird] </strong></span><p>supports_sane_rowcount() set to False due to ticket #370. versioned_id_col feature wont work in FB.</p> <a class="changeset-link headerlink reference internal" href="#change-ee8ef044cfb4e438086a05caa7914ae7">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-23"><span class="target" id="change-4caef4c969ab8a7577cc51fc60890d5e"><strong>[firebird] </strong></span><p>some execution fixes</p> <a class="changeset-link headerlink reference internal" href="#change-4caef4c969ab8a7577cc51fc60890d5e">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-24"><span class="target" id="change-794981a4b2ff6f2c7dd837ecebbc73c5"><strong>[firebird] </strong></span><p>new association proxy implementation, implementing complete proxies to list, dict and set-based relation collections</p> <a class="changeset-link headerlink reference internal" href="#change-794981a4b2ff6f2c7dd837ecebbc73c5">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-25"><span class="target" id="change-63cb2d366f99e745287c162781638285"><strong>[firebird] </strong></span><p>added orderinglist, a custom list class that synchronizes an object attribute with that object’s position in the list</p> <a class="changeset-link headerlink reference internal" href="#change-63cb2d366f99e745287c162781638285">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-26"><span class="target" id="change-26aa9970c7ff168af29ed9bc9c0eed85"><strong>[firebird] </strong></span><p>small fix to SelectResultsExt to not bypass itself during select().</p> <a class="changeset-link headerlink reference internal" href="#change-26aa9970c7ff168af29ed9bc9c0eed85">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-27"><span class="target" id="change-59a547b4472cbf0c7ab99ad2df75dfd1"><strong>[firebird] </strong></span><p>added filter(), filter_by() to assignmapper</p> <a class="changeset-link headerlink reference internal" href="#change-59a547b4472cbf0c7ab99ad2df75dfd1">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.8-misc"> <h3>misc<a class="headerlink" href="#change-0.3.8-misc" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.8-28"><span class="target" id="change-dac5031c19faee84b91961d912ecba94"><strong>[engines] </strong></span><p>added detach() to Connection, allows underlying DBAPI connection to be detached from its pool, closing on dereference/close() instead of being reused by the pool.</p> <a class="changeset-link headerlink reference internal" href="#change-dac5031c19faee84b91961d912ecba94">¶</a><p></p> </p> </li> <li><p id="change-0.3.8-29"><span class="target" id="change-4f0f262d9c14896c7b7e1477cfee8d6e"><strong>[engines] </strong></span><p>added invalidate() to Connection, immediately invalidates the Connection and its underlying DBAPI connection.</p> <a class="changeset-link headerlink reference internal" href="#change-4f0f262d9c14896c7b7e1477cfee8d6e">¶</a><p></p> </p> </li> </ul> </div> </div> <div class="section" id="change-0.3.7"> <h2>0.3.7<a class="headerlink" href="#change-0.3.7" title="Permalink to this headline">¶</a></h2> Released: Sun Apr 29 2007<div class="section" id="change-0.3.7-orm"> <h3>orm<a class="headerlink" href="#change-0.3.7-orm" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.7-0"><span class="target" id="change-b70a16716f8cf919b358494b261c6e83"><strong>[orm] </strong></span><p>fixed critical issue when, after options(eagerload()) is used, the mapper would then always apply query “wrapping” behavior for all subsequent LIMIT/OFFSET/DISTINCT queries, even if no eager loading was applied on those subsequent queries.</p> <a class="changeset-link headerlink reference internal" href="#change-b70a16716f8cf919b358494b261c6e83">¶</a><p></p> </p> </li> <li><p id="change-0.3.7-1"><span class="target" id="change-7861d96f724ca34ac55a3d701575ffac"><strong>[orm] </strong></span><p>added query.with_parent(someinstance) method. searches for target instance using lazy join criterion from parent instance. takes optional string “property” to isolate the desired relation. also adds static Query.query_from_parent(instance, property) version.</p> <a class="changeset-link headerlink reference internal" href="#change-7861d96f724ca34ac55a3d701575ffac">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/541">#541</a></p> </p> </li> <li><p id="change-0.3.7-2"><span class="target" id="change-3a8b0fc4795043a6b42596d769387cb9"><strong>[orm] </strong></span><p>improved query.XXX_by(someprop=someinstance) querying to use similar methodology to with_parent, i.e. using the “lazy” clause which prevents adding the remote instance’s table to the SQL, thereby making more complex conditions possible</p> <a class="changeset-link headerlink reference internal" href="#change-3a8b0fc4795043a6b42596d769387cb9">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/554">#554</a></p> </p> </li> <li><p id="change-0.3.7-3"><span class="target" id="change-0a56acf715d490dcc5adea669d5277ac"><strong>[orm] </strong></span><p>added generative versions of aggregates, i.e. sum(), avg(), etc. to query. used via query.apply_max(), apply_sum(), etc. #552</p> <a class="changeset-link headerlink reference internal" href="#change-0a56acf715d490dcc5adea669d5277ac">¶</a><p></p> </p> </li> <li><p id="change-0.3.7-4"><span class="target" id="change-007141aca01632f5db21be3524e7e4b1"><strong>[orm] </strong></span><p>fix to using distinct() or distinct=True in combination with join() and similar</p> <a class="changeset-link headerlink reference internal" href="#change-007141aca01632f5db21be3524e7e4b1">¶</a><p></p> </p> </li> <li><p id="change-0.3.7-5"><span class="target" id="change-cc8527d248fb3499b4a18f6718a08f7c"><strong>[orm] </strong></span><p>corresponding to label/bindparam name generation, eager loaders generate deterministic names for the aliases they create using md5 hashes.</p> <a class="changeset-link headerlink reference internal" href="#change-cc8527d248fb3499b4a18f6718a08f7c">¶</a><p></p> </p> </li> <li><p id="change-0.3.7-6"><span class="target" id="change-5519681da8ec6c0511745ace0e07a5e5"><strong>[orm] </strong></span><p>improved/fixed custom collection classes when giving it “set”/ “sets.Set” classes or subclasses (was still looking for append() methods on them during lazy loads)</p> <a class="changeset-link headerlink reference internal" href="#change-5519681da8ec6c0511745ace0e07a5e5">¶</a><p></p> </p> </li> <li><p id="change-0.3.7-7"><span class="target" id="change-2352eeb7d6a38352d971f1ff1053808f"><strong>[orm] </strong></span><p>restored old “column_property()” ORM function (used to be called “column()”) to force any column expression to be added as a property on a mapper, particularly those that aren’t present in the mapped selectable. this allows “scalar expressions” of any kind to be added as relations (though they have issues with eager loads).</p> <a class="changeset-link headerlink reference internal" href="#change-2352eeb7d6a38352d971f1ff1053808f">¶</a><p></p> </p> </li> <li><p id="change-0.3.7-8"><span class="target" id="change-af6355eefc1aad1a89924b3f68f75920"><strong>[orm] </strong></span><p>fix to many-to-many relationships targeting polymorphic mappers</p> <a class="changeset-link headerlink reference internal" href="#change-af6355eefc1aad1a89924b3f68f75920">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/533">#533</a></p> </p> </li> <li><p id="change-0.3.7-9"><span class="target" id="change-9f1f52abb6da3c56fff913386ceb7882"><strong>[orm] </strong></span><p>making progress with session.merge() as well as combining its usage with entity_name</p> <a class="changeset-link headerlink reference internal" href="#change-9f1f52abb6da3c56fff913386ceb7882">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/543">#543</a></p> </p> </li> <li><p id="change-0.3.7-10"><span class="target" id="change-065b2f4a27d4207c1c01b7aaade4db8a"><strong>[orm] </strong></span><p>the usual adjustments to relationships between inheriting mappers, in this case establishing relation()s to subclass mappers where the join conditions come from the superclass’ table</p> <a class="changeset-link headerlink reference internal" href="#change-065b2f4a27d4207c1c01b7aaade4db8a">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.7-sql"> <h3>sql<a class="headerlink" href="#change-0.3.7-sql" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.7-11"><span class="target" id="change-73d7e6b1e7916be07e30cac965961ce9"><strong>[sql] </strong></span><p>keys() of result set columns are not lowercased, come back exactly as they’re expressed in cursor.description. note this causes colnames to be all caps in oracle.</p> <a class="changeset-link headerlink reference internal" href="#change-73d7e6b1e7916be07e30cac965961ce9">¶</a><p></p> </p> </li> <li><p id="change-0.3.7-12"><span class="target" id="change-c37360d8b51c05ae857e5b9716bddbcb"><strong>[sql] </strong></span><p>preliminary support for unicode table names, column names and SQL statements added, for databases which can support them. Works with sqlite and postgres so far. MySQL <em>mostly</em> works except the has_table() function does not work. Reflection works too.</p> <a class="changeset-link headerlink reference internal" href="#change-c37360d8b51c05ae857e5b9716bddbcb">¶</a><p></p> </p> </li> <li><p id="change-0.3.7-13"><span class="target" id="change-fffe5705a0f33aa08fa8f28f1ec39a83"><strong>[sql] </strong></span><p>the Unicode type is now a direct subclass of String, which now contains all the “convert_unicode” logic. This helps the variety of unicode situations that occur in db’s such as MS-SQL to be better handled and allows subclassing of the Unicode datatype.</p> <a class="changeset-link headerlink reference internal" href="#change-fffe5705a0f33aa08fa8f28f1ec39a83">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/522">#522</a></p> </p> </li> <li><p id="change-0.3.7-14"><span class="target" id="change-801d06dffa1b17f7712f296ca71f5a79"><strong>[sql] </strong></span><p>ClauseElements can be used in in_() clauses now, such as bind parameters, etc. #476</p> <a class="changeset-link headerlink reference internal" href="#change-801d06dffa1b17f7712f296ca71f5a79">¶</a><p></p> </p> </li> <li><p id="change-0.3.7-15"><span class="target" id="change-2fdb206fa85f07e5f47bba08e0c06013"><strong>[sql] </strong></span><p>reverse operators implemented for <cite>CompareMixin</cite> elements, allows expressions like “5 + somecolumn” etc. #474</p> <a class="changeset-link headerlink reference internal" href="#change-2fdb206fa85f07e5f47bba08e0c06013">¶</a><p></p> </p> </li> <li><p id="change-0.3.7-16"><span class="target" id="change-ff895df76dd194eb810e5ca68bd903dd"><strong>[sql] </strong></span><p>the “where” criterion of an update() and delete() now correlates embedded select() statements against the table being updated or deleted. this works the same as nested select() statement correlation, and can be disabled via the correlate=False flag on the embedded select().</p> <a class="changeset-link headerlink reference internal" href="#change-ff895df76dd194eb810e5ca68bd903dd">¶</a><p></p> </p> </li> <li><p id="change-0.3.7-17"><span class="target" id="change-88d7569964a508ab2262f1926b13c92d"><strong>[sql] </strong></span><p>column labels are now generated in the compilation phase, which means their lengths are dialect-dependent. So on oracle a label that gets truncated to 30 chars will go out to 63 characters on postgres. Also, the true labelname is always attached as the accessor on the parent Selectable so there’s no need to be aware of the “truncated” label names.</p> <a class="changeset-link headerlink reference internal" href="#change-88d7569964a508ab2262f1926b13c92d">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/512">#512</a></p> </p> </li> <li><p id="change-0.3.7-18"><span class="target" id="change-3a29e9cb61a8969eac7d12324eb44f91"><strong>[sql] </strong></span><p>column label and bind param “truncation” also generate deterministic names now, based on their ordering within the full statement being compiled. this means the same statement will produce the same string across application restarts and allowing DB query plan caching to work better.</p> <a class="changeset-link headerlink reference internal" href="#change-3a29e9cb61a8969eac7d12324eb44f91">¶</a><p></p> </p> </li> <li><p id="change-0.3.7-19"><span class="target" id="change-07643dfce558c48c88fcd3c0dbbc207c"><strong>[sql] </strong></span><p>the “mini” column labels generated when using subqueries, which are to work around glitchy SQLite behavior that doesn’t understand “foo.id” as equivalent to “id”, are now only generated in the case that those named columns are selected from (part of)</p> <a class="changeset-link headerlink reference internal" href="#change-07643dfce558c48c88fcd3c0dbbc207c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/513">#513</a></p> </p> </li> <li><p id="change-0.3.7-20"><span class="target" id="change-6db4c8aa79f09bcab6c7161873c65f93"><strong>[sql] </strong></span><p>the label() method on ColumnElement will properly propagate the TypeEngine of the base element out to the label, including a label() created from a scalar=True select() statement.</p> <a class="changeset-link headerlink reference internal" href="#change-6db4c8aa79f09bcab6c7161873c65f93">¶</a><p></p> </p> </li> <li><p id="change-0.3.7-21"><span class="target" id="change-c987bd1aeea789b13f68c82c9c4a4ff7"><strong>[sql] </strong></span><p>MS-SQL better detects when a query is a subquery and knows not to generate ORDER BY phrases for those</p> <a class="changeset-link headerlink reference internal" href="#change-c987bd1aeea789b13f68c82c9c4a4ff7">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/513">#513</a></p> </p> </li> <li><p id="change-0.3.7-22"><span class="target" id="change-6f431b2f1da5df6d8744478e753a48e3"><strong>[sql] </strong></span><p>fix for fetchmany() “size” argument being positional in most dbapis</p> <a class="changeset-link headerlink reference internal" href="#change-6f431b2f1da5df6d8744478e753a48e3">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/505">#505</a></p> </p> </li> <li><p id="change-0.3.7-23"><span class="target" id="change-62f64e15e5caee27d5fdb304138a3d64"><strong>[sql] </strong></span><p>sending None as an argument to func.<something> will produce an argument of NULL</p> <a class="changeset-link headerlink reference internal" href="#change-62f64e15e5caee27d5fdb304138a3d64">¶</a><p></p> </p> </li> <li><p id="change-0.3.7-24"><span class="target" id="change-8406340520cd47aabf06707f06d707e7"><strong>[sql] </strong></span><p>query strings in unicode URLs get keys encoded to ascii for **kwargs compat</p> <a class="changeset-link headerlink reference internal" href="#change-8406340520cd47aabf06707f06d707e7">¶</a><p></p> </p> </li> <li><p id="change-0.3.7-25"><span class="target" id="change-d6bccf2e2942ba9e7fc42b6359f5e1c5"><strong>[sql] </strong></span><p>slight tweak to raw execute() change to also support tuples for positional parameters, not just lists</p> <a class="changeset-link headerlink reference internal" href="#change-d6bccf2e2942ba9e7fc42b6359f5e1c5">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/523">#523</a></p> </p> </li> <li><p id="change-0.3.7-26"><span class="target" id="change-e896659511f05a46c43f0bbb4a6ce393"><strong>[sql] </strong></span><p>fix to case() construct to propagate the type of the first WHEN condition as the return type of the case statement</p> <a class="changeset-link headerlink reference internal" href="#change-e896659511f05a46c43f0bbb4a6ce393">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.7-mysql"> <h3>mysql<a class="headerlink" href="#change-0.3.7-mysql" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.7-27"><span class="target" id="change-ea9d36d40ea288b0955dc117004baab9"><strong>[mysql] </strong></span><p>support for SSL arguments given as inline within URL query string, prefixed with “ssl_”, courtesy <a class="reference external" href="mailto:terjeros%40gmail.com">terjeros<span>@</span>gmail<span>.</span>com</a>.</p> <a class="changeset-link headerlink reference internal" href="#change-ea9d36d40ea288b0955dc117004baab9">¶</a><p></p> </p> </li> <li><p id="change-0.3.7-28"><span class="target" id="change-a9940cb8e01661bf109d581f56990859"><strong>[mysql] [<schemaname>] </strong></span><p>mysql uses “DESCRIBE.<tablename>”, catching exceptions if table doesn’t exist, in order to determine if a table exists. this supports unicode table names as well as schema names. tested with MySQL5 but should work with 4.1 series as well. (#557)</p> <a class="changeset-link headerlink reference internal" href="#change-a9940cb8e01661bf109d581f56990859">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.7-sqlite"> <h3>sqlite<a class="headerlink" href="#change-0.3.7-sqlite" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.7-29"><span class="target" id="change-cf170dcbc751945cb3050b2aba47a7fc"><strong>[sqlite] </strong></span><p>removed silly behavior where sqlite would reflect UNIQUE indexes as part of the primary key (?!)</p> <a class="changeset-link headerlink reference internal" href="#change-cf170dcbc751945cb3050b2aba47a7fc">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.7-mssql"> <h3>mssql<a class="headerlink" href="#change-0.3.7-mssql" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.7-30"><span class="target" id="change-cd069bfe49e81ecb1723ce2f455629d9"><strong>[mssql] </strong></span><p>pyodbc is now the preferred DB-API for MSSQL, and if no module is specifically requested, will be loaded first on a module probe.</p> <a class="changeset-link headerlink reference internal" href="#change-cd069bfe49e81ecb1723ce2f455629d9">¶</a><p></p> </p> </li> <li><p id="change-0.3.7-31"><span class="target" id="change-98f166632883a1f0f0e9b5551435f1e4"><strong>[mssql] </strong></span><p>The @@SCOPE_IDENTITY is now used instead of @@IDENTITY. This behavior may be overridden with the engine_connect “use_scope_identity” keyword parameter, which may also be specified in the dburi.</p> <a class="changeset-link headerlink reference internal" href="#change-98f166632883a1f0f0e9b5551435f1e4">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.7-oracle"> <h3>oracle<a class="headerlink" href="#change-0.3.7-oracle" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.7-32"><span class="target" id="change-00f079e3efc304a332a86ad53163494c"><strong>[oracle] </strong></span><p>small fix to allow successive compiles of the same SELECT object which features LIMIT/OFFSET. oracle dialect needs to modify the object to have ROW_NUMBER OVER and wasn’t performing the full series of steps on successive compiles.</p> <a class="changeset-link headerlink reference internal" href="#change-00f079e3efc304a332a86ad53163494c">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.7-misc"> <h3>misc<a class="headerlink" href="#change-0.3.7-misc" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.7-33"><span class="target" id="change-5769c29329bd92d3e0d54145d3c84967"><strong>[engines] </strong></span><p>warnings module used for issuing warnings (instead of logging)</p> <a class="changeset-link headerlink reference internal" href="#change-5769c29329bd92d3e0d54145d3c84967">¶</a><p></p> </p> </li> <li><p id="change-0.3.7-34"><span class="target" id="change-7d24501b7c507a99a005fca1ced19d34"><strong>[engines] </strong></span><p>cleanup of DBAPI import strategies across all engines</p> <a class="changeset-link headerlink reference internal" href="#change-7d24501b7c507a99a005fca1ced19d34">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/480">#480</a></p> </p> </li> <li><p id="change-0.3.7-35"><span class="target" id="change-093f6563bc1d6302a6c65091f189c417"><strong>[engines] </strong></span><p>refactoring of engine internals which reduces complexity, number of codepaths; places more state inside of ExecutionContext to allow more dialect control of cursor handling, result sets. ResultProxy totally refactored and also has two versions of “buffered” result sets used for different purposes.</p> <a class="changeset-link headerlink reference internal" href="#change-093f6563bc1d6302a6c65091f189c417">¶</a><p></p> </p> </li> <li><p id="change-0.3.7-36"><span class="target" id="change-7563427af9a2dbabdc41b671f9119253"><strong>[engines] </strong></span><p>server side cursor support fully functional in postgres.</p> <a class="changeset-link headerlink reference internal" href="#change-7563427af9a2dbabdc41b671f9119253">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/514">#514</a></p> </p> </li> <li><p id="change-0.3.7-37"><span class="target" id="change-de2734d32f9f75ca5bf6decc1c56eb11"><strong>[engines] </strong></span><p>improved framework for auto-invalidation of connections that have lost their underlying database, via dialect-specific detection of exceptions corresponding to that database’s disconnect related error messages. Additionally, when a “connection no longer open” condition is detected, the entire connection pool is discarded and replaced with a new instance. #516</p> <a class="changeset-link headerlink reference internal" href="#change-de2734d32f9f75ca5bf6decc1c56eb11">¶</a><p></p> </p> </li> <li><p id="change-0.3.7-38"><span class="target" id="change-f7455a9f34d7db0039194c7cdeef8441"><strong>[engines] </strong></span><p>the dialects within sqlalchemy.databases become a setuptools entry points. loading the built-in database dialects works the same as always, but if none found will fall back to trying pkg_resources to load an external module</p> <a class="changeset-link headerlink reference internal" href="#change-f7455a9f34d7db0039194c7cdeef8441">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/521">#521</a></p> </p> </li> <li><p id="change-0.3.7-39"><span class="target" id="change-b231bc2f156428e9dc2d3013d285ace8"><strong>[engines] </strong></span><p>Engine contains a “url” attribute referencing the url.URL object used by create_engine().</p> <a class="changeset-link headerlink reference internal" href="#change-b231bc2f156428e9dc2d3013d285ace8">¶</a><p></p> </p> </li> <li><p id="change-0.3.7-40"><span class="target" id="change-ad45e2908330aaa751332d0c9d866f98"><strong>[informix] </strong></span><p>informix support added ! courtesy James Zhang, who put a ton of effort in.</p> <a class="changeset-link headerlink reference internal" href="#change-ad45e2908330aaa751332d0c9d866f98">¶</a><p></p> </p> </li> <li><p id="change-0.3.7-41"><span class="target" id="change-a5ce4383d5826666ad4659e0d0d1b1f0"><strong>[extensions] </strong></span><p>big fix to AssociationProxy so that multiple AssociationProxy objects can be associated with a single association collection.</p> <a class="changeset-link headerlink reference internal" href="#change-a5ce4383d5826666ad4659e0d0d1b1f0">¶</a><p></p> </p> </li> <li><p id="change-0.3.7-42"><span class="target" id="change-7d3dab36a8f8dd803d9be9c4c038dd9e"><strong>[extensions] </strong></span><p>assign_mapper names methods according to their keys (i.e. __name__) #551</p> <a class="changeset-link headerlink reference internal" href="#change-7d3dab36a8f8dd803d9be9c4c038dd9e">¶</a><p></p> </p> </li> </ul> </div> </div> <div class="section" id="change-0.3.6"> <h2>0.3.6<a class="headerlink" href="#change-0.3.6" title="Permalink to this headline">¶</a></h2> Released: Fri Mar 23 2007<div class="section" id="change-0.3.6-orm"> <h3>orm<a class="headerlink" href="#change-0.3.6-orm" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.6-0"><span class="target" id="change-7ab6dfcb95c397cb1aaadd385c779659"><strong>[orm] </strong></span><p>the full featureset of the SelectResults extension has been merged into a new set of methods available off of Query. These methods all provide “generative” behavior, whereby the Query is copied and a new one returned with additional criterion added. The new methods include:</p> <blockquote> <div><ul> <li><p>filter() - applies select criterion to the query</p></li> <li><p>filter_by() - applies “by”-style criterion to the query</p></li> <li><p>avg() - return the avg() function on the given column</p></li> <li><p>join() - join to a property (or across a list of properties)</p></li> <li><p>outerjoin() - like join() but uses LEFT OUTER JOIN</p></li> <li><p>limit()/offset() - apply LIMIT/OFFSET range-based access which applies limit/offset: session.query(Foo)[3:5]</p></li> <li><p>distinct() - apply DISTINCT</p></li> <li><p>list() - evaluate the criterion and return results</p></li> </ul> </div></blockquote> <p>no incompatible changes have been made to Query’s API and no methods have been deprecated. Existing methods like select(), select_by(), get(), get_by() all execute the query at once and return results like they always did. join_to()/join_via() are still there although the generative join()/outerjoin() methods are easier to use.</p> <a class="changeset-link headerlink reference internal" href="#change-7ab6dfcb95c397cb1aaadd385c779659">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-1"><span class="target" id="change-346e841422c49f67aa893590d3f7a8e9"><strong>[orm] </strong></span><p>the return value for multiple mappers used with instances() now returns a cartesian product of the requested list of mappers, represented as a list of tuples. this corresponds to the documented behavior. So that instances match up properly, the “uniquing” is disabled when this feature is used.</p> <a class="changeset-link headerlink reference internal" href="#change-346e841422c49f67aa893590d3f7a8e9">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-2"><span class="target" id="change-2795377646e93c3cb6cd134003d5dbe1"><strong>[orm] </strong></span><p>Query has add_entity() and add_column() generative methods. these will add the given mapper/class or ColumnElement to the query at compile time, and apply them to the instances() method. the user is responsible for constructing reasonable join conditions (otherwise you can get full cartesian products). result set is the list of tuples, non-uniqued.</p> <a class="changeset-link headerlink reference internal" href="#change-2795377646e93c3cb6cd134003d5dbe1">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-3"><span class="target" id="change-9d692f0426fa9d69b169b9e1078dae86"><strong>[orm] </strong></span><p>strings and columns can also be sent to the *args of instances() where those exact result columns will be part of the result tuples.</p> <a class="changeset-link headerlink reference internal" href="#change-9d692f0426fa9d69b169b9e1078dae86">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-4"><span class="target" id="change-1dc867b13e1759c636e371363f6ce297"><strong>[orm] </strong></span><p>a full select() construct can be passed to query.select() (which worked anyway), but also query.selectfirst(), query.selectone() which will be used as is (i.e. no query is compiled). works similarly to sending the results to instances().</p> <a class="changeset-link headerlink reference internal" href="#change-1dc867b13e1759c636e371363f6ce297">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-5"><span class="target" id="change-074438c0a67e60bc48e5420c5f490210"><strong>[orm] </strong></span><p>eager loading will not “aliasize” “order by” clauses that were placed in the select statement by something other than the eager loader itself, to fix possibility of dupe columns as illustrated in. however, this means you have to be more careful with the columns placed in the “order by” of Query.select(), that you have explicitly named them in your criterion (i.e. you cant rely on the eager loader adding them in for you)</p> <a class="changeset-link headerlink reference internal" href="#change-074438c0a67e60bc48e5420c5f490210">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/495">#495</a></p> </p> </li> <li><p id="change-0.3.6-6"><span class="target" id="change-8b4f380caf9d0a368e04cc060655abf0"><strong>[orm] </strong></span><p>added a handy multi-use “identity_key()” method to Session, allowing the generation of identity keys for primary key values, instances, and rows, courtesy Daniel Miller</p> <a class="changeset-link headerlink reference internal" href="#change-8b4f380caf9d0a368e04cc060655abf0">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-7"><span class="target" id="change-87bb32d802de386360e5e46f791cdc52"><strong>[orm] </strong></span><p>many-to-many table will be properly handled even for operations that occur on the “backref” side of the operation</p> <a class="changeset-link headerlink reference internal" href="#change-87bb32d802de386360e5e46f791cdc52">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/249">#249</a></p> </p> </li> <li><p id="change-0.3.6-8"><span class="target" id="change-f1fbd06064c54bcac62f1348d7009f7a"><strong>[orm] </strong></span><p>added “refresh-expire” cascade. allows refresh() and expire() calls to propagate along relationships.</p> <a class="changeset-link headerlink reference internal" href="#change-f1fbd06064c54bcac62f1348d7009f7a">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/492">#492</a></p> </p> </li> <li><p id="change-0.3.6-9"><span class="target" id="change-a975d6c5aa852fe9f1abe18ab4632941"><strong>[orm] </strong></span><p>more fixes to polymorphic relations, involving proper lazy-clause generation on many-to-one relationships to polymorphic mappers. also fixes to detection of “direction”, more specific targeting of columns that belong to the polymorphic union vs. those that don’t.</p> <a class="changeset-link headerlink reference internal" href="#change-a975d6c5aa852fe9f1abe18ab4632941">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/493">#493</a></p> </p> </li> <li><p id="change-0.3.6-10"><span class="target" id="change-e60d7d1fb1e21d20e22cc7ee0a48e8cd"><strong>[orm] </strong></span><p>some fixes to relationship calcs when using “viewonly=True” to pull in other tables into the join condition which aren’t parent of the relationship’s parent/child mappings</p> <a class="changeset-link headerlink reference internal" href="#change-e60d7d1fb1e21d20e22cc7ee0a48e8cd">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-11"><span class="target" id="change-0799b08072f174223f5a177a14fe3f19"><strong>[orm] </strong></span><p>flush fixes on cyclical-referential relationships that contain references to other instances outside of the cyclical chain, when some of the objects in the cycle are not actually part of the flush</p> <a class="changeset-link headerlink reference internal" href="#change-0799b08072f174223f5a177a14fe3f19">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-12"><span class="target" id="change-2dd0c0ba2f51627186f0e3ca255e8679"><strong>[orm] </strong></span><p>put an aggressive check for “flushing object A with a collection of B’s, but you put a C in the collection” error condition - <strong>even if C is a subclass of B</strong>, unless B’s mapper loads polymorphically. Otherwise, the collection will later load a “B” which should be a “C” (since its not polymorphic) which breaks in bi-directional relationships (i.e. C has its A, but A’s backref will lazyload it as a different instance of type “B”) This check is going to bite some of you who do this without issues, so the error message will also document a flag “enable_typechecks=False” to disable this checking. But be aware that bi-directional relationships in particular become fragile without this check.</p> <a class="changeset-link headerlink reference internal" href="#change-2dd0c0ba2f51627186f0e3ca255e8679">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/500">#500</a></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.6-sql"> <h3>sql<a class="headerlink" href="#change-0.3.6-sql" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.6-13"><span class="target" id="change-44ab18885b5fa9a7f599390ae9397c22"><strong>[sql] </strong></span><p>bindparam() names are now repeatable! specify two distinct bindparam()s with the same name in a single statement, and the key will be shared. proper positional/named args translate at compile time. for the old behavior of “aliasing” bind parameters with conflicting names, specify “unique=True” - this option is still used internally for all the auto-generated (value-based) bind parameters.</p> <a class="changeset-link headerlink reference internal" href="#change-44ab18885b5fa9a7f599390ae9397c22">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-14"><span class="target" id="change-32d223314680c88fa9ba080f5f3ce580"><strong>[sql] </strong></span><p>slightly better support for bind params as column clauses, either via bindparam() or via literal(), i.e. select([literal(‘foo’)])</p> <a class="changeset-link headerlink reference internal" href="#change-32d223314680c88fa9ba080f5f3ce580">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-15"><span class="target" id="change-cb1ef430a2696531f4258c7a228b6cd8"><strong>[sql] </strong></span><p>MetaData can bind to an engine either via “url” or “engine” kwargs to constructor, or by using connect() method. BoundMetaData is identical to MetaData except engine_or_url param is required. DynamicMetaData is the same and provides thread-local connections be default.</p> <a class="changeset-link headerlink reference internal" href="#change-cb1ef430a2696531f4258c7a228b6cd8">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-16"><span class="target" id="change-ff3d112668eb0765f0cea567cbea6a17"><strong>[sql] </strong></span><p>exists() becomes useable as a standalone selectable, not just in a WHERE clause, i.e. exists([columns], criterion).select()</p> <a class="changeset-link headerlink reference internal" href="#change-ff3d112668eb0765f0cea567cbea6a17">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-17"><span class="target" id="change-f69f079d1a2ab1a6dcbf3d7ad218bba7"><strong>[sql] </strong></span><p>correlated subqueries work inside of ORDER BY, GROUP BY</p> <a class="changeset-link headerlink reference internal" href="#change-f69f079d1a2ab1a6dcbf3d7ad218bba7">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-18"><span class="target" id="change-2d6765ed8f52d6039f3ff327871651fe"><strong>[sql] </strong></span><p>fixed function execution with explicit connections, i.e. conn.execute(func.dosomething())</p> <a class="changeset-link headerlink reference internal" href="#change-2d6765ed8f52d6039f3ff327871651fe">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-19"><span class="target" id="change-a317e39c8ef05de7ec3007795cc6461d"><strong>[sql] </strong></span><p>use_labels flag on select() wont auto-create labels for literal text column elements, since we can make no assumptions about the text. to create labels for literal columns, you can say “somecol AS somelabel”, or use literal_column(“somecol”).label(“somelabel”)</p> <a class="changeset-link headerlink reference internal" href="#change-a317e39c8ef05de7ec3007795cc6461d">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-20"><span class="target" id="change-e3edeb29a5666be8fcc4ca01511c4215"><strong>[sql] </strong></span><p>quoting wont occur for literal columns when they are “proxied” into the column collection for their selectable (is_literal flag is propagated). literal columns are specified via literal_column(“somestring”).</p> <a class="changeset-link headerlink reference internal" href="#change-e3edeb29a5666be8fcc4ca01511c4215">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-21"><span class="target" id="change-f7c741c099c30418beeb3e590e129726"><strong>[sql] </strong></span><p>added “fold_equivalents” boolean argument to Join.select(), which removes ‘duplicate’ columns from the resulting column clause that are known to be equivalent based on the join condition. this is of great usage when constructing subqueries of joins which Postgres complains about if duplicate column names are present.</p> <a class="changeset-link headerlink reference internal" href="#change-f7c741c099c30418beeb3e590e129726">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-22"><span class="target" id="change-1b52c0cfb8178249dbfa27198e657e37"><strong>[sql] </strong></span><p>fixed use_alter flag on ForeignKeyConstraint</p> <a class="changeset-link headerlink reference internal" href="#change-1b52c0cfb8178249dbfa27198e657e37">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/503">#503</a></p> </p> </li> <li><p id="change-0.3.6-23"><span class="target" id="change-d6c64a3f6d7c0271de26273d1888c095"><strong>[sql] </strong></span><p>fixed usage of 2.4-only “reversed” in topological.py</p> <a class="changeset-link headerlink reference internal" href="#change-d6c64a3f6d7c0271de26273d1888c095">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/506">#506</a></p> </p> </li> <li><p id="change-0.3.6-24"><span class="target" id="change-11779379f1cac1ecc01fc15ac543b303"><strong>[sql] </strong></span><p>for hackers, refactored the “visitor” system of ClauseElement and SchemaItem so that the traversal of items is controlled by the ClauseVisitor itself, using the method visitor.traverse(item). accept_visitor() methods can still be called directly but will not do any traversal of child items. ClauseElement/SchemaItem now have a configurable get_children() method to return the collection of child elements for each parent object. This allows the full traversal of items to be clear and unambiguous (as well as loggable), with an easy method of limiting a traversal (just pass flags which are picked up by appropriate get_children() methods).</p> <a class="changeset-link headerlink reference internal" href="#change-11779379f1cac1ecc01fc15ac543b303">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/501">#501</a></p> </p> </li> <li><p id="change-0.3.6-25"><span class="target" id="change-d3cf951f12ffc0a70ad1ada85b66a0a6"><strong>[sql] </strong></span><p>the “else_” parameter to the case statement now properly works when set to zero.</p> <a class="changeset-link headerlink reference internal" href="#change-d3cf951f12ffc0a70ad1ada85b66a0a6">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.6-mysql"> <h3>mysql<a class="headerlink" href="#change-0.3.6-mysql" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.6-26"><span class="target" id="change-f0982bef56faed4137f772fe21cd4c31"><strong>[mysql] </strong></span><p>added a catchall **kwargs to MSString, to help reflection of obscure types (like “varchar() binary” in MS 4.0)</p> <a class="changeset-link headerlink reference internal" href="#change-f0982bef56faed4137f772fe21cd4c31">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-27"><span class="target" id="change-1af85a8922781c43c7653e350c30801f"><strong>[mysql] </strong></span><p>added explicit MSTimeStamp type which takes effect when using types.TIMESTAMP.</p> <a class="changeset-link headerlink reference internal" href="#change-1af85a8922781c43c7653e350c30801f">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.6-oracle"> <h3>oracle<a class="headerlink" href="#change-0.3.6-oracle" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.6-28"><span class="target" id="change-1de005425b678cd46ecc85ed5837c9c7"><strong>[oracle] </strong></span><p>got binary working for any size input ! cx_oracle works fine, it was my fault as BINARY was being passed and not BLOB for setinputsizes (also unit tests weren’t even setting input sizes).</p> <a class="changeset-link headerlink reference internal" href="#change-1de005425b678cd46ecc85ed5837c9c7">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-29"><span class="target" id="change-12bd1d4f70a00eb5aa27999038a0d684"><strong>[oracle] </strong></span><p>also fixed CLOB read/write on a separate changeset.</p> <a class="changeset-link headerlink reference internal" href="#change-12bd1d4f70a00eb5aa27999038a0d684">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-30"><span class="target" id="change-22b00f0def3ec2ee49bb7d7a5b878466"><strong>[oracle] </strong></span><p>auto_setinputsizes defaults to True for Oracle, fixed cases where it improperly propagated bad types.</p> <a class="changeset-link headerlink reference internal" href="#change-22b00f0def3ec2ee49bb7d7a5b878466">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.6-misc"> <h3>misc<a class="headerlink" href="#change-0.3.6-misc" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.6-31"><span class="target" id="change-898f3d31d769657a997316a0a2a1b0ac"><strong>[extensions] </strong></span><p>options() method on SelectResults now implemented “generatively” like the rest of the SelectResults methods. But you’re going to just use Query now anyway.</p> <a class="changeset-link headerlink reference internal" href="#change-898f3d31d769657a997316a0a2a1b0ac">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/472">#472</a></p> </p> </li> <li><p id="change-0.3.6-32"><span class="target" id="change-1eab2a69f89dd1f24faab811e0b58da3"><strong>[extensions] </strong></span><p>query() method is added by assignmapper. this helps with navigating to all the new generative methods on Query.</p> <a class="changeset-link headerlink reference internal" href="#change-1eab2a69f89dd1f24faab811e0b58da3">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-33"><span class="target" id="change-b87c523c857426c8d8b677b3058f15b5"><strong>[ms-sql] </strong></span><dl class="simple"> <dt>removed seconds input on DATE column types (probably</dt><dd><p>should remove the time altogether)</p> </dd> </dl> <a class="changeset-link headerlink reference internal" href="#change-b87c523c857426c8d8b677b3058f15b5">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-34"><span class="target" id="change-77ff33ca3510c4330712ef7ecea18a8d"><strong>[ms-sql] </strong></span><p>null values in float fields no longer raise errors</p> <a class="changeset-link headerlink reference internal" href="#change-77ff33ca3510c4330712ef7ecea18a8d">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-35"><span class="target" id="change-542131c8c49c9372085c52a8c0cb56db"><strong>[ms-sql] </strong></span><p>LIMIT with OFFSET now raises an error (MS-SQL has no OFFSET support)</p> <a class="changeset-link headerlink reference internal" href="#change-542131c8c49c9372085c52a8c0cb56db">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-36"><span class="target" id="change-92fb4300cf566200775defe777003a51"><strong>[ms-sql] </strong></span><p>added an facility to use the MSSQL type VARCHAR(max) instead of TEXT for large unsized string fields. Use the new “text_as_varchar” to turn it on.</p> <a class="changeset-link headerlink reference internal" href="#change-92fb4300cf566200775defe777003a51">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/509">#509</a></p> </p> </li> <li><p id="change-0.3.6-37"><span class="target" id="change-91f921f0eaffcbb7dcbb4e655c3787de"><strong>[ms-sql] </strong></span><p>ORDER BY clauses without a LIMIT are now stripped in subqueries, as MS-SQL forbids this usage</p> <a class="changeset-link headerlink reference internal" href="#change-91f921f0eaffcbb7dcbb4e655c3787de">¶</a><p></p> </p> </li> <li><p id="change-0.3.6-38"><span class="target" id="change-4ac23e6c9087d3b35a82c00543826730"><strong>[ms-sql] </strong></span><p>cleanup of module importing code; specifiable DB-API module; more explicit ordering of module preferences.</p> <a class="changeset-link headerlink reference internal" href="#change-4ac23e6c9087d3b35a82c00543826730">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/480">#480</a></p> </p> </li> </ul> </div> </div> <div class="section" id="change-0.3.5"> <h2>0.3.5<a class="headerlink" href="#change-0.3.5" title="Permalink to this headline">¶</a></h2> Released: Thu Feb 22 2007<div class="section" id="change-0.3.5-orm"> <h3>orm<a class="headerlink" href="#change-0.3.5-orm" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.5-0"><span class="target" id="change-8632b00faff5848753f92a330f517c03"><strong>[orm] [bugs] </strong></span><p>another refactoring to relationship calculation. Allows more accurate ORM behavior with relationships from/to/between mappers, particularly polymorphic mappers, also their usage with Query, SelectResults. tickets include,,.</p> <a class="changeset-link headerlink reference internal" href="#change-8632b00faff5848753f92a330f517c03">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/439">#439</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/441">#441</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/448">#448</a></p> </p> </li> <li><p id="change-0.3.5-1"><span class="target" id="change-420a8dde82328a1c84d68b07f0f008e2"><strong>[orm] [bugs] </strong></span><p>removed deprecated method of specifying custom collections on classes; you must now use the “collection_class” option. the old way was beginning to produce conflicts when people used assign_mapper(), which now patches an “options” method, in conjunction with a relationship named “options”. (relationships take precedence over monkeypatched assign_mapper methods).</p> <a class="changeset-link headerlink reference internal" href="#change-420a8dde82328a1c84d68b07f0f008e2">¶</a><p></p> </p> </li> <li><p id="change-0.3.5-2"><span class="target" id="change-b4ea85a697ce2e8a5476e0447b77ccf5"><strong>[orm] [bugs] </strong></span><p>extension() query option propagates to Mapper._instance() method so that all loading-related methods get called</p> <a class="changeset-link headerlink reference internal" href="#change-b4ea85a697ce2e8a5476e0447b77ccf5">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/454">#454</a></p> </p> </li> <li><p id="change-0.3.5-3"><span class="target" id="change-a75844e9e51b998af08e42d79b17d007"><strong>[orm] [bugs] </strong></span><p>eager relation to an inheriting mapper wont fail if no rows returned for the relationship.</p> <a class="changeset-link headerlink reference internal" href="#change-a75844e9e51b998af08e42d79b17d007">¶</a><p></p> </p> </li> <li><p id="change-0.3.5-4"><span class="target" id="change-ac80398579a4fcbae21783cc62160e08"><strong>[orm] [bugs] </strong></span><p>eager relation loading bug fixed for eager relation on multiple descendant classes</p> <a class="changeset-link headerlink reference internal" href="#change-ac80398579a4fcbae21783cc62160e08">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/486">#486</a></p> </p> </li> <li><p id="change-0.3.5-5"><span class="target" id="change-c165d9646437c3f933401899647483cb"><strong>[orm] [bugs] </strong></span><p>fix for very large topological sorts, courtesy ants.aasma at gmail</p> <a class="changeset-link headerlink reference internal" href="#change-c165d9646437c3f933401899647483cb">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/423">#423</a></p> </p> </li> <li><p id="change-0.3.5-6"><span class="target" id="change-39ce034d909d6179f0e57da79c888648"><strong>[orm] [bugs] </strong></span><p>eager loading is slightly more strict about detecting “self-referential” relationships, specifically between polymorphic mappers. this results in an “eager degrade” to lazy loading.</p> <a class="changeset-link headerlink reference internal" href="#change-39ce034d909d6179f0e57da79c888648">¶</a><p></p> </p> </li> <li><p id="change-0.3.5-7"><span class="target" id="change-77cfca11a557e706eafddf5289843a1a"><strong>[orm] [bugs] </strong></span><p>improved support for complex queries embedded into “where” criterion for query.select()</p> <a class="changeset-link headerlink reference internal" href="#change-77cfca11a557e706eafddf5289843a1a">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/449">#449</a></p> </p> </li> <li><p id="change-0.3.5-8"><span class="target" id="change-a86a3aad19cf61adc26984764ce96a8b"><strong>[orm] [bugs] </strong></span><p>mapper options like eagerload(), lazyload(), deferred(), will work for “synonym()” relationships</p> <a class="changeset-link headerlink reference internal" href="#change-a86a3aad19cf61adc26984764ce96a8b">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/485">#485</a></p> </p> </li> <li><p id="change-0.3.5-9"><span class="target" id="change-b8e4711961e2f380e6a7714230498042"><strong>[orm] [bugs] </strong></span><p>fixed bug where cascade operations incorrectly included deleted collection items in the cascade</p> <a class="changeset-link headerlink reference internal" href="#change-b8e4711961e2f380e6a7714230498042">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/445">#445</a></p> </p> </li> <li><p id="change-0.3.5-10"><span class="target" id="change-22e5b7ae7b767a70ea7e0f53ad7e8248"><strong>[orm] [bugs] </strong></span><p>fixed relationship deletion error when one-to-many child item is moved to a new parent in a single unit of work</p> <a class="changeset-link headerlink reference internal" href="#change-22e5b7ae7b767a70ea7e0f53ad7e8248">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/478">#478</a></p> </p> </li> <li><p id="change-0.3.5-11"><span class="target" id="change-226133d12414c7bceb0d870564d2db9e"><strong>[orm] [bugs] </strong></span><p>fixed relationship deletion error where parent/child with a single column as PK/FK on the child would raise a “blank out the primary key” error, if manually deleted or “delete” cascade without “delete-orphan” was used</p> <a class="changeset-link headerlink reference internal" href="#change-226133d12414c7bceb0d870564d2db9e">¶</a><p></p> </p> </li> <li><p id="change-0.3.5-12"><span class="target" id="change-559fd083469a062e02481918053495a7"><strong>[orm] [bugs] </strong></span><p>fix to deferred so that load operation doesn’t mistakenly occur when only PK col attributes are set</p> <a class="changeset-link headerlink reference internal" href="#change-559fd083469a062e02481918053495a7">¶</a><p></p> </p> </li> <li><p id="change-0.3.5-13"><span class="target" id="change-6c4ac23619895aa1814ccc031d40da8a"><strong>[orm] [enhancements] </strong></span><p>implemented foreign_keys argument to mapper. use in conjunction with primaryjoin/secondaryjoin arguments to specify/override foreign keys defined on the Table instance.</p> <a class="changeset-link headerlink reference internal" href="#change-6c4ac23619895aa1814ccc031d40da8a">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/385">#385</a></p> </p> </li> <li><p id="change-0.3.5-14"><span class="target" id="change-0755a972913cdf4f3d3ea28113aad132"><strong>[orm] [enhancements] </strong></span><p>contains_eager(‘foo’) automatically implies eagerload(‘foo’)</p> <a class="changeset-link headerlink reference internal" href="#change-0755a972913cdf4f3d3ea28113aad132">¶</a><p></p> </p> </li> <li><p id="change-0.3.5-15"><span class="target" id="change-9559eca8c71abf14afd98ee3ccfd4f01"><strong>[orm] [enhancements] </strong></span><p>added “alias” argument to contains_eager(). use it to specify the string name or Alias instance of an alias used in the query for the eagerly loaded child items. easier to use than “decorator”</p> <a class="changeset-link headerlink reference internal" href="#change-9559eca8c71abf14afd98ee3ccfd4f01">¶</a><p></p> </p> </li> <li><p id="change-0.3.5-16"><span class="target" id="change-290a67bd31b7240bb829d5f3a1a8b913"><strong>[orm] [enhancements] </strong></span><p>added “contains_alias()” option for result set mapping to an alias of the mapped table</p> <a class="changeset-link headerlink reference internal" href="#change-290a67bd31b7240bb829d5f3a1a8b913">¶</a><p></p> </p> </li> <li><p id="change-0.3.5-17"><span class="target" id="change-4df85d62086609340f9ec07957b97137"><strong>[orm] [enhancements] </strong></span><p>added support for py2.5 “with” statement with SessionTransaction</p> <a class="changeset-link headerlink reference internal" href="#change-4df85d62086609340f9ec07957b97137">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/468">#468</a></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.5-sql"> <h3>sql<a class="headerlink" href="#change-0.3.5-sql" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.5-18"><span class="target" id="change-0fe6675045936336cf076722fc9f4258"><strong>[sql] </strong></span><p>the value of “case_sensitive” defaults to True now, regardless of the casing of the identifier, unless specifically set to False. this is because the object might be label’ed as something else which does contain mixed case, and propagating “case_sensitive=False” breaks that. Other fixes to quoting when using labels and “fake” column objects</p> <a class="changeset-link headerlink reference internal" href="#change-0fe6675045936336cf076722fc9f4258">¶</a><p></p> </p> </li> <li><p id="change-0.3.5-19"><span class="target" id="change-6c984550b02caf3742ce38d0ea98e80f"><strong>[sql] </strong></span><p>added a “supports_execution()” method to ClauseElement, so that individual kinds of clauses can express if they are appropriate for executing…such as, you can execute a “select”, but not a “Table” or a “Join”.</p> <a class="changeset-link headerlink reference internal" href="#change-6c984550b02caf3742ce38d0ea98e80f">¶</a><p></p> </p> </li> <li><p id="change-0.3.5-20"><span class="target" id="change-468f50da50e57a2dec8feb5e1ee1d75f"><strong>[sql] </strong></span><p>fixed argument passing to straight textual execute() on engine, connection. can handle *args or a list instance for positional, **kwargs or a dict instance for named args, or a list of list or dicts to invoke executemany()</p> <a class="changeset-link headerlink reference internal" href="#change-468f50da50e57a2dec8feb5e1ee1d75f">¶</a><p></p> </p> </li> <li><p id="change-0.3.5-21"><span class="target" id="change-799305b1c45d8b2c0b35daf24d651579"><strong>[sql] </strong></span><p>small fix to BoundMetaData to accept unicode or string URLs</p> <a class="changeset-link headerlink reference internal" href="#change-799305b1c45d8b2c0b35daf24d651579">¶</a><p></p> </p> </li> <li><p id="change-0.3.5-22"><span class="target" id="change-098b0d8af7d1d8c4ac68ce0f0d1ab760"><strong>[sql] </strong></span><p>fixed named PrimaryKeyConstraint generation courtesy andrija at gmail</p> <a class="changeset-link headerlink reference internal" href="#change-098b0d8af7d1d8c4ac68ce0f0d1ab760">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/466">#466</a></p> </p> </li> <li><p id="change-0.3.5-23"><span class="target" id="change-70b974d0c4113b161566331bfc78053f"><strong>[sql] </strong></span><p>fixed generation of CHECK constraints on columns</p> <a class="changeset-link headerlink reference internal" href="#change-70b974d0c4113b161566331bfc78053f">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/464">#464</a></p> </p> </li> <li><p id="change-0.3.5-24"><span class="target" id="change-d49ca559d4c734d1aaa61ba5a98e8a44"><strong>[sql] </strong></span><p>fixes to tometadata() operation to propagate Constraints at column and table level</p> <a class="changeset-link headerlink reference internal" href="#change-d49ca559d4c734d1aaa61ba5a98e8a44">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.5-mysql"> <h3>mysql<a class="headerlink" href="#change-0.3.5-mysql" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.5-25"><span class="target" id="change-23cbc502382175b57e3d21030a2373c2"><strong>[mysql] </strong></span><p>fix to reflection on older DB’s that might return array() type for “show variables like” statements</p> <a class="changeset-link headerlink reference internal" href="#change-23cbc502382175b57e3d21030a2373c2">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.5-mssql"> <h3>mssql<a class="headerlink" href="#change-0.3.5-mssql" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.5-26"><span class="target" id="change-2c2ff52404aa9423f3b197ef8d064c57"><strong>[mssql] </strong></span><p>preliminary support for pyodbc (Yay!)</p> <a class="changeset-link headerlink reference internal" href="#change-2c2ff52404aa9423f3b197ef8d064c57">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/419">#419</a></p> </p> </li> <li><p id="change-0.3.5-27"><span class="target" id="change-7e0d0b6aa2b56dd8a2643a2a996c1ce6"><strong>[mssql] </strong></span><p>better support for NVARCHAR types added</p> <a class="changeset-link headerlink reference internal" href="#change-7e0d0b6aa2b56dd8a2643a2a996c1ce6">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/298">#298</a></p> </p> </li> <li><p id="change-0.3.5-28"><span class="target" id="change-5456de0e05ace2611637223ef9c3b1a3"><strong>[mssql] </strong></span><p>fix for commit logic on pymssql</p> <a class="changeset-link headerlink reference internal" href="#change-5456de0e05ace2611637223ef9c3b1a3">¶</a><p></p> </p> </li> <li><p id="change-0.3.5-29"><span class="target" id="change-dd705f65a8f579d9f21e357b630ce0e1"><strong>[mssql] </strong></span><p>fix for query.get() with schema</p> <a class="changeset-link headerlink reference internal" href="#change-dd705f65a8f579d9f21e357b630ce0e1">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/456">#456</a></p> </p> </li> <li><p id="change-0.3.5-30"><span class="target" id="change-911cdebc2d34a378435f400bf0cf630e"><strong>[mssql] </strong></span><p>fix for non-integer relationships</p> <a class="changeset-link headerlink reference internal" href="#change-911cdebc2d34a378435f400bf0cf630e">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/473">#473</a></p> </p> </li> <li><p id="change-0.3.5-31"><span class="target" id="change-539d4ad681f7456880dabe1620b68588"><strong>[mssql] </strong></span><p>DB-API module now selectable at run-time</p> <a class="changeset-link headerlink reference internal" href="#change-539d4ad681f7456880dabe1620b68588">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/419">#419</a></p> </p> </li> <li><p id="change-0.3.5-32"><span class="target" id="change-59dc7293d796646a217909587ba56fb7"><strong>[mssql] [415] [481] [tickets:422] </strong></span><p>now passes many more unit tests</p> <a class="changeset-link headerlink reference internal" href="#change-59dc7293d796646a217909587ba56fb7">¶</a><p></p> </p> </li> <li><p id="change-0.3.5-33"><span class="target" id="change-9f0b045815840276afd66940cbba759c"><strong>[mssql] </strong></span><p>better unittest compatibility with ANSI functions</p> <a class="changeset-link headerlink reference internal" href="#change-9f0b045815840276afd66940cbba759c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/479">#479</a></p> </p> </li> <li><p id="change-0.3.5-34"><span class="target" id="change-381a1076dd1ae05a9d9d968cdf1c5bc9"><strong>[mssql] </strong></span><p>improved support for implicit sequence PK columns with auto-insert</p> <a class="changeset-link headerlink reference internal" href="#change-381a1076dd1ae05a9d9d968cdf1c5bc9">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/415">#415</a></p> </p> </li> <li><p id="change-0.3.5-35"><span class="target" id="change-dcdda808c45d24c958d8be769f83003f"><strong>[mssql] </strong></span><p>fix for blank password in adodbapi</p> <a class="changeset-link headerlink reference internal" href="#change-dcdda808c45d24c958d8be769f83003f">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/371">#371</a></p> </p> </li> <li><p id="change-0.3.5-36"><span class="target" id="change-1075fe6db448bd584e19ab492e5f8c5c"><strong>[mssql] </strong></span><p>fixes to get unit tests working with pyodbc</p> <a class="changeset-link headerlink reference internal" href="#change-1075fe6db448bd584e19ab492e5f8c5c">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/481">#481</a></p> </p> </li> <li><p id="change-0.3.5-37"><span class="target" id="change-5bdb627a7d2ed7ec5bc84c7ebf111216"><strong>[mssql] </strong></span><p>fix to auto_identity_insert on db-url query</p> <a class="changeset-link headerlink reference internal" href="#change-5bdb627a7d2ed7ec5bc84c7ebf111216">¶</a><p></p> </p> </li> <li><p id="change-0.3.5-38"><span class="target" id="change-b8f7e80d560caa5ae3aec32c6e922ef6"><strong>[mssql] </strong></span><p>added query_timeout to db-url query parms. currently works only for pymssql</p> <a class="changeset-link headerlink reference internal" href="#change-b8f7e80d560caa5ae3aec32c6e922ef6">¶</a><p></p> </p> </li> <li><p id="change-0.3.5-39"><span class="target" id="change-2cea7ef341a84d5cc0ea53fd071ce1af"><strong>[mssql] </strong></span><p>tested with pymssql 0.8.0 (which is now LGPL)</p> <a class="changeset-link headerlink reference internal" href="#change-2cea7ef341a84d5cc0ea53fd071ce1af">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.5-oracle"> <h3>oracle<a class="headerlink" href="#change-0.3.5-oracle" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.5-40"><span class="target" id="change-f2964e13050167fa913d5346579ed93a"><strong>[oracle] </strong></span><p>when returning “rowid” as the ORDER BY column or in use with ROW_NUMBER OVER, oracle dialect checks the selectable its being applied to and will switch to table PK if not applicable, i.e. for a UNION. checking for DISTINCT, GROUP BY (other places that rowid is invalid) still a TODO. allows polymorphic mappings to function.</p> <a class="changeset-link headerlink reference internal" href="#change-f2964e13050167fa913d5346579ed93a">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/436">#436</a></p> </p> </li> <li><p id="change-0.3.5-41"><span class="target" id="change-997cdb0c8e4db76469d84ce1e36ff870"><strong>[oracle] </strong></span><p>sequences on a non-pk column will properly fire off on INSERT</p> <a class="changeset-link headerlink reference internal" href="#change-997cdb0c8e4db76469d84ce1e36ff870">¶</a><p></p> </p> </li> <li><p id="change-0.3.5-42"><span class="target" id="change-41b33afb60cf82b8b6a4a0bb859562bf"><strong>[oracle] </strong></span><p>added PrefetchingResultProxy support to pre-fetch LOB columns when they are known to be present, fixes</p> <a class="changeset-link headerlink reference internal" href="#change-41b33afb60cf82b8b6a4a0bb859562bf">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/435">#435</a></p> </p> </li> <li><p id="change-0.3.5-43"><span class="target" id="change-a87a4c61e30aa01276449a37779f7083"><strong>[oracle] </strong></span><p>implemented reflection of tables based on synonyms, including across dblinks</p> <a class="changeset-link headerlink reference internal" href="#change-a87a4c61e30aa01276449a37779f7083">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/379">#379</a></p> </p> </li> <li><p id="change-0.3.5-44"><span class="target" id="change-b8639b7a31e537e7f11dcd8f241550b6"><strong>[oracle] </strong></span><p>issues a log warning when a related table cant be reflected due to certain permission errors</p> <a class="changeset-link headerlink reference internal" href="#change-b8639b7a31e537e7f11dcd8f241550b6">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/363">#363</a></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.5-misc"> <h3>misc<a class="headerlink" href="#change-0.3.5-misc" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.5-45"><span class="target" id="change-cc97a0bde59a0e25d2d0180cee1209a0"><strong>[postgres] </strong></span><p>better reflection of sequences for alternate-schema Tables</p> <a class="changeset-link headerlink reference internal" href="#change-cc97a0bde59a0e25d2d0180cee1209a0">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/442">#442</a></p> </p> </li> <li><p id="change-0.3.5-46"><span class="target" id="change-997cdb0c8e4db76469d84ce1e36ff870"><strong>[postgres] </strong></span><p>sequences on a non-pk column will properly fire off on INSERT</p> <a class="changeset-link headerlink reference internal" href="#change-997cdb0c8e4db76469d84ce1e36ff870">¶</a><p></p> </p> </li> <li><p id="change-0.3.5-47"><span class="target" id="change-848a61af4172ae1b5f0fc0247de36987"><strong>[postgres] </strong></span><p>added PGInterval type, PGInet type</p> <a class="changeset-link headerlink reference internal" href="#change-848a61af4172ae1b5f0fc0247de36987">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/444">#444</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/460">#460</a></p> </p> </li> <li><p id="change-0.3.5-48"><span class="target" id="change-bd2bb531eaffdeab9654a4cd07ef2c2b"><strong>[extensions] </strong></span><p>added distinct() method to SelectResults. generally should only make a difference when using count().</p> <a class="changeset-link headerlink reference internal" href="#change-bd2bb531eaffdeab9654a4cd07ef2c2b">¶</a><p></p> </p> </li> <li><p id="change-0.3.5-49"><span class="target" id="change-e49cd2a7ca945f2421ae6902f52f8f37"><strong>[extensions] </strong></span><p>added options() method to SelectResults, equivalent to query.options()</p> <a class="changeset-link headerlink reference internal" href="#change-e49cd2a7ca945f2421ae6902f52f8f37">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/472">#472</a></p> </p> </li> <li><p id="change-0.3.5-50"><span class="target" id="change-cdde06072236d420f2b8e3603362354e"><strong>[extensions] </strong></span><p>added optional __table_opts__ dictionary to ActiveMapper, will send kw options to Table objects</p> <a class="changeset-link headerlink reference internal" href="#change-cdde06072236d420f2b8e3603362354e">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/462">#462</a></p> </p> </li> <li><p id="change-0.3.5-51"><span class="target" id="change-a43a8ee036b96770b37d4e02ab37b4c0"><strong>[extensions] </strong></span><p>added selectfirst(), selectfirst_by() to assign_mapper</p> <a class="changeset-link headerlink reference internal" href="#change-a43a8ee036b96770b37d4e02ab37b4c0">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/467">#467</a></p> </p> </li> </ul> </div> </div> <div class="section" id="change-0.3.4"> <h2>0.3.4<a class="headerlink" href="#change-0.3.4" title="Permalink to this headline">¶</a></h2> Released: Tue Jan 23 2007<div class="section" id="change-0.3.4-general"> <h3>general<a class="headerlink" href="#change-0.3.4-general" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.4-0"><span class="target" id="change-ea7ee482db28ede59ac4bcfe7508bb68"><strong>[general] </strong></span><p>global “insure”->”ensure” change. in US english “insure” is actually largely interchangeable with “ensure” (so says the dictionary), so I’m not completely illiterate, but its definitely sub-optimal to “ensure” which is non-ambiguous.</p> <a class="changeset-link headerlink reference internal" href="#change-ea7ee482db28ede59ac4bcfe7508bb68">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.4-orm"> <h3>orm<a class="headerlink" href="#change-0.3.4-orm" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.4-1"><span class="target" id="change-3d028e23313c343b88f683148079f6d8"><strong>[orm] </strong></span><p>poked the first hole in the can of worms: saying query.select_by(somerelationname=someinstance) will create the join of the primary key columns represented by “somerelationname“‘s mapper to the actual primary key in “someinstance”.</p> <a class="changeset-link headerlink reference internal" href="#change-3d028e23313c343b88f683148079f6d8">¶</a><p></p> </p> </li> <li><p id="change-0.3.4-2"><span class="target" id="change-5601e1cae87763b3397a1dff4dc3479c"><strong>[orm] </strong></span><p>reworked how relations interact with “polymorphic” mappers, i.e. mappers that have a select_table as well as polymorphic flags. better determination of proper join conditions, interaction with user- defined join conditions, and support for self-referential polymorphic mappers.</p> <a class="changeset-link headerlink reference internal" href="#change-5601e1cae87763b3397a1dff4dc3479c">¶</a><p></p> </p> </li> <li><p id="change-0.3.4-3"><span class="target" id="change-77a27e5fc8a0403c05553cd6268b57ce"><strong>[orm] </strong></span><p>related to polymorphic mapping relations, some deeper error checking when compiling relations, to detect an ambiguous “primaryjoin” in the case that both sides of the relationship have foreign key references in the primary join condition. also tightened down conditions used to locate “relation direction”, associating the “foreignkey” of the relationship with the “primaryjoin”</p> <a class="changeset-link headerlink reference internal" href="#change-77a27e5fc8a0403c05553cd6268b57ce">¶</a><p></p> </p> </li> <li><p id="change-0.3.4-4"><span class="target" id="change-b68e439ba854a97afc57d071074809ec"><strong>[orm] </strong></span><p>a little bit of improvement to the concept of a “concrete” inheritance mapping, though that concept is not well fleshed out yet (added test case to support concrete mappers on top of a polymorphic base).</p> <a class="changeset-link headerlink reference internal" href="#change-b68e439ba854a97afc57d071074809ec">¶</a><p></p> </p> </li> <li><p id="change-0.3.4-5"><span class="target" id="change-fc43ebe81ca938a541f0089c23bfb7a8"><strong>[orm] </strong></span><p>fix to “proxy=True” behavior on synonym()</p> <a class="changeset-link headerlink reference internal" href="#change-fc43ebe81ca938a541f0089c23bfb7a8">¶</a><p></p> </p> </li> <li><p id="change-0.3.4-6"><span class="target" id="change-351dd3d3f2b53af4c434ce66c226cef5"><strong>[orm] </strong></span><p>fixed bug where delete-orphan basically didn’t work with many-to-many relationships, backref presence generally hid the symptom</p> <a class="changeset-link headerlink reference internal" href="#change-351dd3d3f2b53af4c434ce66c226cef5">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/427">#427</a></p> </p> </li> <li><p id="change-0.3.4-7"><span class="target" id="change-231c94f2c6414edd8ef94f7de383d349"><strong>[orm] </strong></span><p>added a mutex to the mapper compilation step. ive been reluctant to add any kind of threading anything to SA but this is one spot that its really needed since mappers are typically “global”, and while their state does not change during normal operation, the initial compilation step does modify internal state significantly, and this step usually occurs not at module-level initialization time (unless you call compile()) but at first-request time</p> <a class="changeset-link headerlink reference internal" href="#change-231c94f2c6414edd8ef94f7de383d349">¶</a><p></p> </p> </li> <li><p id="change-0.3.4-8"><span class="target" id="change-40191965cf8a1fffbd5f3f7c476c442e"><strong>[orm] </strong></span><p>basic idea of “session.merge()” actually implemented. needs more testing.</p> <a class="changeset-link headerlink reference internal" href="#change-40191965cf8a1fffbd5f3f7c476c442e">¶</a><p></p> </p> </li> <li><p id="change-0.3.4-9"><span class="target" id="change-1fcc21636195b3b7a6c4751ded7aacc7"><strong>[orm] </strong></span><p>added “compile_mappers()” function as a shortcut to compiling all mappers</p> <a class="changeset-link headerlink reference internal" href="#change-1fcc21636195b3b7a6c4751ded7aacc7">¶</a><p></p> </p> </li> <li><p id="change-0.3.4-10"><span class="target" id="change-a564633ea1853007aeaac37573a81ee6"><strong>[orm] </strong></span><p>fix to MapperExtension create_instance so that entity_name properly associated with new instance</p> <a class="changeset-link headerlink reference internal" href="#change-a564633ea1853007aeaac37573a81ee6">¶</a><p></p> </p> </li> <li><p id="change-0.3.4-11"><span class="target" id="change-9eccc99856ce597d36eae3266f7614b6"><strong>[orm] </strong></span><p>speed enhancements to ORM object instantiation, eager loading of rows</p> <a class="changeset-link headerlink reference internal" href="#change-9eccc99856ce597d36eae3266f7614b6">¶</a><p></p> </p> </li> <li><p id="change-0.3.4-12"><span class="target" id="change-dd4031a82befed9119e377543328f8c0"><strong>[orm] </strong></span><p>invalid options sent to ‘cascade’ string will raise an exception</p> <a class="changeset-link headerlink reference internal" href="#change-dd4031a82befed9119e377543328f8c0">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/406">#406</a></p> </p> </li> <li><p id="change-0.3.4-13"><span class="target" id="change-32423083b9cdff2c1cfd63c406fe3d93"><strong>[orm] </strong></span><p>fixed bug in mapper refresh/expire whereby eager loaders didn’t properly re-populate item lists</p> <a class="changeset-link headerlink reference internal" href="#change-32423083b9cdff2c1cfd63c406fe3d93">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/407">#407</a></p> </p> </li> <li><p id="change-0.3.4-14"><span class="target" id="change-4c9bf70f421052228204cfd54e3196b0"><strong>[orm] </strong></span><p>fix to post_update to ensure rows are updated even for non insert/delete scenarios</p> <a class="changeset-link headerlink reference internal" href="#change-4c9bf70f421052228204cfd54e3196b0">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/413">#413</a></p> </p> </li> <li><p id="change-0.3.4-15"><span class="target" id="change-003b8a29b4cd8dc41607198658523317"><strong>[orm] </strong></span><p>added an error message if you actually try to modify primary key values on an entity and then flush it</p> <a class="changeset-link headerlink reference internal" href="#change-003b8a29b4cd8dc41607198658523317">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/412">#412</a></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.4-sql"> <h3>sql<a class="headerlink" href="#change-0.3.4-sql" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.4-16"><span class="target" id="change-e485ef1aa25a4c1e54a8d7a9afa8749e"><strong>[sql] </strong></span><p>added “fetchmany()” support to ResultProxy</p> <a class="changeset-link headerlink reference internal" href="#change-e485ef1aa25a4c1e54a8d7a9afa8749e">¶</a><p></p> </p> </li> <li><p id="change-0.3.4-17"><span class="target" id="change-594afe1f5a9a758e9428229d6e156f32"><strong>[sql] </strong></span><p>added support for column “key” attribute to be useable in row[<key>]/row.<key></p> <a class="changeset-link headerlink reference internal" href="#change-594afe1f5a9a758e9428229d6e156f32">¶</a><p></p> </p> </li> <li><p id="change-0.3.4-18"><span class="target" id="change-36de194453369736e2c6d36951589a57"><strong>[sql] </strong></span><p>changed “BooleanExpression” to subclass from “BinaryExpression”, so that boolean expressions can also follow column-clause behaviors (i.e. label(), etc).</p> <a class="changeset-link headerlink reference internal" href="#change-36de194453369736e2c6d36951589a57">¶</a><p></p> </p> </li> <li><p id="change-0.3.4-19"><span class="target" id="change-fd647f39d01615d6a2c872791f220b3d"><strong>[sql] </strong></span><p>trailing underscores are trimmed from func.<xxx> calls, such as func.if_()</p> <a class="changeset-link headerlink reference internal" href="#change-fd647f39d01615d6a2c872791f220b3d">¶</a><p></p> </p> </li> <li><p id="change-0.3.4-20"><span class="target" id="change-7c82a8fe27927597ae6beb2b46eaaa4e"><strong>[sql] </strong></span><p>fix to correlation of subqueries when the column list of the select statement is constructed with individual calls to append_column(); this fixes an ORM bug whereby nested select statements were not getting correlated with the main select generated by the Query object.</p> <a class="changeset-link headerlink reference internal" href="#change-7c82a8fe27927597ae6beb2b46eaaa4e">¶</a><p></p> </p> </li> <li><p id="change-0.3.4-21"><span class="target" id="change-9e9c62f87ee18fefb379e8a4754ae2f8"><strong>[sql] </strong></span><p>another fix to subquery correlation so that a subquery which has only one FROM element will <em>not</em> correlate that single element, since at least one FROM element is required in a query.</p> <a class="changeset-link headerlink reference internal" href="#change-9e9c62f87ee18fefb379e8a4754ae2f8">¶</a><p></p> </p> </li> <li><p id="change-0.3.4-22"><span class="target" id="change-5f52342a7f4ca2f210861d452dec505a"><strong>[sql] </strong></span><p>default “timezone” setting is now False. this corresponds to Python’s datetime behavior as well as Postgres’ timestamp/time types (which is the only timezone-sensitive dialect at the moment)</p> <a class="changeset-link headerlink reference internal" href="#change-5f52342a7f4ca2f210861d452dec505a">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/414">#414</a></p> </p> </li> <li><p id="change-0.3.4-23"><span class="target" id="change-66229214f0f9e03fc7dee45d95c8e67c"><strong>[sql] </strong></span><p>the “op()” function is now treated as an “operation”, rather than a “comparison”. the difference is, an operation produces a BinaryExpression from which further operations can occur whereas comparison produces the more restrictive BooleanExpression</p> <a class="changeset-link headerlink reference internal" href="#change-66229214f0f9e03fc7dee45d95c8e67c">¶</a><p></p> </p> </li> <li><p id="change-0.3.4-24"><span class="target" id="change-d41715babcf6b70d6f88adf677313ea8"><strong>[sql] </strong></span><p>trying to redefine a reflected primary key column as non-primary key raises an error</p> <a class="changeset-link headerlink reference internal" href="#change-d41715babcf6b70d6f88adf677313ea8">¶</a><p></p> </p> </li> <li><p id="change-0.3.4-25"><span class="target" id="change-a8e520f2f077ca90381491c36493fe9d"><strong>[sql] </strong></span><p>type system slightly modified to support TypeDecorators that can be overridden by the dialect (ok, that’s not very clear, it allows the mssql tweak below to be possible)</p> <a class="changeset-link headerlink reference internal" href="#change-a8e520f2f077ca90381491c36493fe9d">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.4-mysql"> <h3>mysql<a class="headerlink" href="#change-0.3.4-mysql" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.4-26"><span class="target" id="change-5398fcc75e1c898762a840d5476e9802"><strong>[mysql] </strong></span><p>mysql is inconsistent with what kinds of quotes it uses in foreign keys during a SHOW CREATE TABLE, reflection updated to accommodate for all three styles</p> <a class="changeset-link headerlink reference internal" href="#change-5398fcc75e1c898762a840d5476e9802">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/420">#420</a></p> </p> </li> <li><p id="change-0.3.4-27"><span class="target" id="change-93636efc4d02d5b5e25f763da5f6dbb6"><strong>[mysql] </strong></span><p>mysql table create options work on a generic passthru now, i.e. Table(…, mysql_engine=’InnoDB’, mysql_collate=”latin1_german2_ci”, mysql_auto_increment=”5”, mysql_<somearg>…), helps</p> <a class="changeset-link headerlink reference internal" href="#change-93636efc4d02d5b5e25f763da5f6dbb6">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/418">#418</a></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.4-mssql"> <h3>mssql<a class="headerlink" href="#change-0.3.4-mssql" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.4-28"><span class="target" id="change-71800340e8b8eaf7f5bbfeb1bb7fa8fa"><strong>[mssql] </strong></span><p>added an NVarchar type (produces NVARCHAR), also MSUnicode which provides Unicode-translation for the NVarchar regardless of dialect convert_unicode setting.</p> <a class="changeset-link headerlink reference internal" href="#change-71800340e8b8eaf7f5bbfeb1bb7fa8fa">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.4-oracle"> <h3>oracle<a class="headerlink" href="#change-0.3.4-oracle" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.4-29"><span class="target" id="change-7e37b511a75dea4c081f6e861d2577d9"><strong>[oracle] </strong></span><p><em>slight</em> support for binary, but still need to figure out how to insert reasonably large values (over 4K). requires auto_setinputsizes=True sent to create_engine(), rows must be fully fetched individually, etc.</p> <a class="changeset-link headerlink reference internal" href="#change-7e37b511a75dea4c081f6e861d2577d9">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.4-firebird"> <h3>firebird<a class="headerlink" href="#change-0.3.4-firebird" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.4-30"><span class="target" id="change-f5553b26f95beaede1e3993d72351403"><strong>[firebird] </strong></span><p>order of constraint creation puts primary key first before all other constraints; required for firebird, not a bad idea for others</p> <a class="changeset-link headerlink reference internal" href="#change-f5553b26f95beaede1e3993d72351403">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/408">#408</a></p> </p> </li> <li><p id="change-0.3.4-31"><span class="target" id="change-7d0941d7be1eff286a79a26140dbec40"><strong>[firebird] </strong></span><p>Firebird fix to autoload multifield foreign keys</p> <a class="changeset-link headerlink reference internal" href="#change-7d0941d7be1eff286a79a26140dbec40">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/409">#409</a></p> </p> </li> <li><p id="change-0.3.4-32"><span class="target" id="change-1dd0655cdeb215bba70f97a6144d2d79"><strong>[firebird] </strong></span><p>Firebird NUMERIC type properly handles a type without precision</p> <a class="changeset-link headerlink reference internal" href="#change-1dd0655cdeb215bba70f97a6144d2d79">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/409">#409</a></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.4-misc"> <h3>misc<a class="headerlink" href="#change-0.3.4-misc" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.4-33"><span class="target" id="change-fa53dae6bfd7b7e8b384d216ee8ba515"><strong>[postgres] </strong></span><p>fix to the initial checkfirst for tables to take current schema into account</p> <a class="changeset-link headerlink reference internal" href="#change-fa53dae6bfd7b7e8b384d216ee8ba515">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/424">#424</a></p> </p> </li> <li><p id="change-0.3.4-34"><span class="target" id="change-1cd224ad7dc6c4a22f02a844273d939f"><strong>[postgres] </strong></span><p>postgres has an optional “server_side_cursors=True” flag which will utilize server side cursors. these are appropriate for fetching only partial results and are necessary for working with very large unbounded result sets. While we’d like this to be the default behavior, different environments seem to have different results and the causes have not been isolated so we are leaving the feature off by default for now. Uses an apparently undocumented psycopg2 behavior recently discovered on the psycopg mailing list.</p> <a class="changeset-link headerlink reference internal" href="#change-1cd224ad7dc6c4a22f02a844273d939f">¶</a><p></p> </p> </li> <li><p id="change-0.3.4-35"><span class="target" id="change-6f6b781d6e5399b6526088cc619cd843"><strong>[postgres] </strong></span><p>added “BIGSERIAL” support for postgres table with PGBigInteger/autoincrement</p> <a class="changeset-link headerlink reference internal" href="#change-6f6b781d6e5399b6526088cc619cd843">¶</a><p></p> </p> </li> <li><p id="change-0.3.4-36"><span class="target" id="change-61cfe585aaae9ecddaff0f20996405f7"><strong>[postgres] </strong></span><p>fixes to postgres reflection to better handle when schema names are present; thanks to jason (at) ncsmags.com</p> <a class="changeset-link headerlink reference internal" href="#change-61cfe585aaae9ecddaff0f20996405f7">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/402">#402</a></p> </p> </li> <li><p id="change-0.3.4-37"><span class="target" id="change-d06299a138c88ba57c7c327e826b3f81"><strong>[extensions] </strong></span><p>added “validate=False” argument to assign_mapper, if True will ensure that only mapped attributes are named</p> <a class="changeset-link headerlink reference internal" href="#change-d06299a138c88ba57c7c327e826b3f81">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/426">#426</a></p> </p> </li> <li><p id="change-0.3.4-38"><span class="target" id="change-7e48f7fba0d3f1b5bad84893f66dc9f4"><strong>[extensions] </strong></span><p>assign_mapper gets “options”, “instances” functions added (i.e. MyClass.instances())</p> <a class="changeset-link headerlink reference internal" href="#change-7e48f7fba0d3f1b5bad84893f66dc9f4">¶</a><p></p> </p> </li> </ul> </div> </div> <div class="section" id="change-0.3.3"> <h2>0.3.3<a class="headerlink" href="#change-0.3.3" title="Permalink to this headline">¶</a></h2> Released: Fri Dec 15 2006<ul class="simple"> <li><p id="change-0.3.3-0"><span class="target" id="change-5032f5e367ae143bbec87043ab8fcf11"></span><p>string-based FROM clauses fixed, i.e. select(…, from_obj=[“sometext”])</p> <a class="changeset-link headerlink reference internal" href="#change-5032f5e367ae143bbec87043ab8fcf11">¶</a><p></p> </p> </li> <li><p id="change-0.3.3-1"><span class="target" id="change-a496d8fae942c14d4523057bd979019c"></span><p>fixes to passive_deletes flag, lazy=None (noload) flag</p> <a class="changeset-link headerlink reference internal" href="#change-a496d8fae942c14d4523057bd979019c">¶</a><p></p> </p> </li> <li><p id="change-0.3.3-2"><span class="target" id="change-30a2c69a9decacc368b9a7b6779980ec"></span><p>added example/docs for dealing with large collections</p> <a class="changeset-link headerlink reference internal" href="#change-30a2c69a9decacc368b9a7b6779980ec">¶</a><p></p> </p> </li> <li><p id="change-0.3.3-3"><span class="target" id="change-cc99c5f52ba79f63b5f7b50754788b0a"></span><p>added object_session() method to sqlalchemy namespace</p> <a class="changeset-link headerlink reference internal" href="#change-cc99c5f52ba79f63b5f7b50754788b0a">¶</a><p></p> </p> </li> <li><p id="change-0.3.3-4"><span class="target" id="change-80533f7c200e079d90597f6266ff66d5"></span><p>fixed QueuePool bug whereby its better able to reconnect to a database that was not reachable (thanks to Sébastien Lelong), also fixed dispose() method</p> <a class="changeset-link headerlink reference internal" href="#change-80533f7c200e079d90597f6266ff66d5">¶</a><p></p> </p> </li> <li><p id="change-0.3.3-5"><span class="target" id="change-d1570d0ab054957641111d7e277d03b4"></span><p>patch that makes MySQL rowcount work correctly!</p> <a class="changeset-link headerlink reference internal" href="#change-d1570d0ab054957641111d7e277d03b4">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/396">#396</a></p> </p> </li> <li><p id="change-0.3.3-6"><span class="target" id="change-2cadf5490827d447b1d4830a90b41caf"></span><p>fix to MySQL catch of 2006/2014 errors to properly re-raise OperationalError exception</p> <a class="changeset-link headerlink reference internal" href="#change-2cadf5490827d447b1d4830a90b41caf">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.2"> <h2>0.3.2<a class="headerlink" href="#change-0.3.2" title="Permalink to this headline">¶</a></h2> Released: Sun Dec 10 2006<ul class="simple"> <li><p id="change-0.3.2-0"><span class="target" id="change-19098e0e6eed7c931125d7e25d812756"></span><p>major connection pool bug fixed. fixes MySQL out of sync errors, will also prevent transactions getting rolled back accidentally in all DBs</p> <a class="changeset-link headerlink reference internal" href="#change-19098e0e6eed7c931125d7e25d812756">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/387">#387</a></p> </p> </li> <li><p id="change-0.3.2-1"><span class="target" id="change-278ff1b4865a34c36458359bdba8e20e"></span><p>major speed enhancements vs. 0.3.1, to bring speed back to 0.2.8 levels</p> <a class="changeset-link headerlink reference internal" href="#change-278ff1b4865a34c36458359bdba8e20e">¶</a><p></p> </p> </li> <li><p id="change-0.3.2-2"><span class="target" id="change-da5c4522ae9018928c5a69dbe99fa7f3"></span><p>made conditional dozens of debug log calls that were time-intensive to generate log messages</p> <a class="changeset-link headerlink reference internal" href="#change-da5c4522ae9018928c5a69dbe99fa7f3">¶</a><p></p> </p> </li> <li><p id="change-0.3.2-3"><span class="target" id="change-47d47dccb2480566207c5fe438fcf435"></span><p>fixed bug in cascade rules whereby the entire object graph could be unnecessarily cascaded on the save/update cascade</p> <a class="changeset-link headerlink reference internal" href="#change-47d47dccb2480566207c5fe438fcf435">¶</a><p></p> </p> </li> <li><p id="change-0.3.2-4"><span class="target" id="change-d1b12f9efbb4d033df0a742d87c94ec6"></span><p>various speedups in attributes module</p> <a class="changeset-link headerlink reference internal" href="#change-d1b12f9efbb4d033df0a742d87c94ec6">¶</a><p></p> </p> </li> <li><p id="change-0.3.2-5"><span class="target" id="change-3c38a41db88ddb08db4d6f9d55194829"></span><p>identity map in Session is by default <em>no longer weak referencing</em>. to have it be weak referencing, use create_session(weak_identity_map=True) fixes</p> <a class="changeset-link headerlink reference internal" href="#change-3c38a41db88ddb08db4d6f9d55194829">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/388">#388</a></p> </p> </li> <li><p id="change-0.3.2-6"><span class="target" id="change-79647e60f1175354aca8ce75bc921e74"></span><p>MySQL detects errors 2006 (server has gone away) and 2014 (commands out of sync) and invalidates the connection on which it occurred.</p> <a class="changeset-link headerlink reference internal" href="#change-79647e60f1175354aca8ce75bc921e74">¶</a><p></p> </p> </li> <li><p id="change-0.3.2-7"><span class="target" id="change-35fdc30fd93b0c3e1b37402908f76fd2"></span><p>MySQL bool type fix:</p> <a class="changeset-link headerlink reference internal" href="#change-35fdc30fd93b0c3e1b37402908f76fd2">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/307">#307</a></p> </p> </li> <li><p id="change-0.3.2-8"><span class="target" id="change-1ee7b209987629c6f339a0dcc1d703a0"></span><p>postgres reflection fixes:</p> <a class="changeset-link headerlink reference internal" href="#change-1ee7b209987629c6f339a0dcc1d703a0">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/349">#349</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/382">#382</a></p> </p> </li> <li><p id="change-0.3.2-9"><span class="target" id="change-fd7e2e948165b16a849ce49011d87d21"></span><p>added keywords for EXCEPT, INTERSECT, EXCEPT ALL, INTERSECT ALL</p> <a class="changeset-link headerlink reference internal" href="#change-fd7e2e948165b16a849ce49011d87d21">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/247">#247</a></p> </p> </li> <li><p id="change-0.3.2-10"><span class="target" id="change-c52f4bfa0a28896df33156b19ff3ca89"></span><p>assign_mapper in assignmapper extension returns the created mapper</p> <a class="changeset-link headerlink reference internal" href="#change-c52f4bfa0a28896df33156b19ff3ca89">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2110">#2110</a></p> </p> </li> <li><p id="change-0.3.2-11"><span class="target" id="change-f6551d6f54899ff8108cbbbd26e5018c"></span><p>added label() function to Select class, when scalar=True is used to create a scalar subquery i.e. “select x, y, (select max(foo) from table) AS foomax from table”</p> <a class="changeset-link headerlink reference internal" href="#change-f6551d6f54899ff8108cbbbd26e5018c">¶</a><p></p> </p> </li> <li><p id="change-0.3.2-12"><span class="target" id="change-9f53e9bcf5cece6ce6d03fb58eda20ad"></span><p>added onupdate and ondelete keyword arguments to ForeignKey; propagate to underlying ForeignKeyConstraint if present. (don’t propagate in the other direction, however)</p> <a class="changeset-link headerlink reference internal" href="#change-9f53e9bcf5cece6ce6d03fb58eda20ad">¶</a><p></p> </p> </li> <li><p id="change-0.3.2-13"><span class="target" id="change-8372c4057499c22e46cf0bcc739b695d"></span><p>fix to session.update() to preserve “dirty” status of incoming object</p> <a class="changeset-link headerlink reference internal" href="#change-8372c4057499c22e46cf0bcc739b695d">¶</a><p></p> </p> </li> <li><p id="change-0.3.2-14"><span class="target" id="change-a1e2bb60c3cd464a48cdfbff5d33f9c2"></span><p>sending a selectable to an IN via the in_() function no longer creates a “union” out of multiple selects; only one selectable to a the in_() function is allowed now (make a union yourself if union is needed)</p> <a class="changeset-link headerlink reference internal" href="#change-a1e2bb60c3cd464a48cdfbff5d33f9c2">¶</a><p></p> </p> </li> <li><p id="change-0.3.2-15"><span class="target" id="change-e009ef228c4e1a8a3e92bc728fbc438a"></span><p>improved support for disabling save-update cascade via cascade=”none” etc.</p> <a class="changeset-link headerlink reference internal" href="#change-e009ef228c4e1a8a3e92bc728fbc438a">¶</a><p></p> </p> </li> <li><p id="change-0.3.2-16"><span class="target" id="change-dcd5c21c1c376d26e9907a451ceb1ad7"></span><p>added “remote_side” argument to relation(), used only with self-referential mappers to force the direction of the parent/child relationship. replaces the usage of the “foreignkey” parameter for “switching” the direction. “foreignkey” argument is deprecated for all uses and will eventually be replaced by an argument dedicated to ForeignKey specification on mappers.</p> <a class="changeset-link headerlink reference internal" href="#change-dcd5c21c1c376d26e9907a451ceb1ad7">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.1"> <h2>0.3.1<a class="headerlink" href="#change-0.3.1" title="Permalink to this headline">¶</a></h2> Released: Mon Nov 13 2006<div class="section" id="change-0.3.1-orm"> <h3>orm<a class="headerlink" href="#change-0.3.1-orm" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.1-0"><span class="target" id="change-0af98bf52dddbf728106569a225ffa27"><strong>[orm] </strong></span><p>the “delete” cascade will load in all child objects, if they were not loaded already. this can be turned off (i.e. the old behavior) by setting passive_deletes=True on a relation().</p> <a class="changeset-link headerlink reference internal" href="#change-0af98bf52dddbf728106569a225ffa27">¶</a><p></p> </p> </li> <li><p id="change-0.3.1-1"><span class="target" id="change-a23f03ece2ae82e1264ecacd54d01e12"><strong>[orm] </strong></span><p>adjustments to reworked eager query generation to not fail on circular eager-loaded relationships (like backrefs)</p> <a class="changeset-link headerlink reference internal" href="#change-a23f03ece2ae82e1264ecacd54d01e12">¶</a><p></p> </p> </li> <li><p id="change-0.3.1-2"><span class="target" id="change-201da868406f1523d1d4d0051049fbb3"><strong>[orm] </strong></span><p>fixed bug where eagerload() (nor lazyload()) option didn’t properly instruct the Query whether or not to use “nesting” when producing a LIMIT query.</p> <a class="changeset-link headerlink reference internal" href="#change-201da868406f1523d1d4d0051049fbb3">¶</a><p></p> </p> </li> <li><p id="change-0.3.1-3"><span class="target" id="change-ed4601755ccc028c0cda37fd8bc2343f"><strong>[orm] </strong></span><p>fixed bug in circular dependency sorting at flush time; if object A contained a cyclical many-to-one relationship to object B, and object B was just attached to object A, <em>but</em> object B itself wasn’t changed, the many-to-one synchronize of B’s primary key attribute to A’s foreign key attribute wouldn’t occur.</p> <a class="changeset-link headerlink reference internal" href="#change-ed4601755ccc028c0cda37fd8bc2343f">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/360">#360</a></p> </p> </li> <li><p id="change-0.3.1-4"><span class="target" id="change-443db0da68194af1c486a31424626acc"><strong>[orm] </strong></span><p>implemented from_obj argument for query.count, improves count function on selectresults</p> <a class="changeset-link headerlink reference internal" href="#change-443db0da68194af1c486a31424626acc">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/325">#325</a></p> </p> </li> <li><p id="change-0.3.1-5"><span class="target" id="change-6c3fe5348af079926eefaa5fe198132a"><strong>[orm] </strong></span><p>added an assertion within the “cascade” step of ORM relationships to check that the class of object attached to a parent object is appropriate (i.e. if A.items stores B objects, raise an error if a C is appended to A.items)</p> <a class="changeset-link headerlink reference internal" href="#change-6c3fe5348af079926eefaa5fe198132a">¶</a><p></p> </p> </li> <li><p id="change-0.3.1-6"><span class="target" id="change-3c54016dd3eb6240c61bdf6630fb6ba2"><strong>[orm] </strong></span><p>new extension sqlalchemy.ext.associationproxy, provides transparent “association object” mappings. new example examples/association/proxied_association.py illustrates.</p> <a class="changeset-link headerlink reference internal" href="#change-3c54016dd3eb6240c61bdf6630fb6ba2">¶</a><p></p> </p> </li> <li><p id="change-0.3.1-7"><span class="target" id="change-2352347ba67e763e63b5ab5fee615fd0"><strong>[orm] </strong></span><p>improvement to single table inheritance to load full hierarchies beneath the target class</p> <a class="changeset-link headerlink reference internal" href="#change-2352347ba67e763e63b5ab5fee615fd0">¶</a><p></p> </p> </li> <li><p id="change-0.3.1-8"><span class="target" id="change-7c2c83368bc653695d50bf41a32ba122"><strong>[orm] </strong></span><p>fix to subtle condition in topological sort where a node could appear twice, for</p> <a class="changeset-link headerlink reference internal" href="#change-7c2c83368bc653695d50bf41a32ba122">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/362">#362</a></p> </p> </li> <li><p id="change-0.3.1-9"><span class="target" id="change-21099b0b4cfd087d7544c0d5b29f20ad"><strong>[orm] </strong></span><p>additional rework to topological sort, refactoring, for</p> <a class="changeset-link headerlink reference internal" href="#change-21099b0b4cfd087d7544c0d5b29f20ad">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/365">#365</a></p> </p> </li> <li><p id="change-0.3.1-10"><span class="target" id="change-c31972da5ddfab970d95b975b0de0f13"><strong>[orm] </strong></span><p>“delete-orphan” for a certain type can be set on more than one parent class; the instance is an “orphan” only if its not attached to <em>any</em> of those parents</p> <a class="changeset-link headerlink reference internal" href="#change-c31972da5ddfab970d95b975b0de0f13">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.1-misc"> <h3>misc<a class="headerlink" href="#change-0.3.1-misc" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.1-11"><span class="target" id="change-ae1c652969370d12b5391b3c25bc311b"><strong>[engine/pool] </strong></span><p>some new Pool utility classes, updated docs</p> <a class="changeset-link headerlink reference internal" href="#change-ae1c652969370d12b5391b3c25bc311b">¶</a><p></p> </p> </li> <li><p id="change-0.3.1-12"><span class="target" id="change-40bd8ced1a542293a3bee2e4e993b319"><strong>[engine/pool] </strong></span><p>“use_threadlocal” on Pool defaults to False (same as create_engine)</p> <a class="changeset-link headerlink reference internal" href="#change-40bd8ced1a542293a3bee2e4e993b319">¶</a><p></p> </p> </li> <li><p id="change-0.3.1-13"><span class="target" id="change-d05d5b0d7cbdb72d11dda30dba80e253"><strong>[engine/pool] </strong></span><p>fixed direct execution of Compiled objects</p> <a class="changeset-link headerlink reference internal" href="#change-d05d5b0d7cbdb72d11dda30dba80e253">¶</a><p></p> </p> </li> <li><p id="change-0.3.1-14"><span class="target" id="change-c6dec82e7a9a007a628f587642c8adc7"><strong>[engine/pool] </strong></span><p>create_engine() reworked to be strict about incoming **kwargs. all keyword arguments must be consumed by one of the dialect, connection pool, and engine constructors, else a TypeError is thrown which describes the full set of invalid kwargs in relation to the selected dialect/pool/engine configuration.</p> <a class="changeset-link headerlink reference internal" href="#change-c6dec82e7a9a007a628f587642c8adc7">¶</a><p></p> </p> </li> <li><p id="change-0.3.1-15"><span class="target" id="change-95a6b3fd67d1f8a92d5fc7d3c4a72cd3"><strong>[databases/types] </strong></span><p>MySQL catches exception on “describe” and reports as NoSuchTableError</p> <a class="changeset-link headerlink reference internal" href="#change-95a6b3fd67d1f8a92d5fc7d3c4a72cd3">¶</a><p></p> </p> </li> <li><p id="change-0.3.1-16"><span class="target" id="change-01a55d6e648e86ae237b8c9014765637"><strong>[databases/types] </strong></span><p>further fixes to sqlite booleans, weren’t working as defaults</p> <a class="changeset-link headerlink reference internal" href="#change-01a55d6e648e86ae237b8c9014765637">¶</a><p></p> </p> </li> <li><p id="change-0.3.1-17"><span class="target" id="change-4990b03a3ffa7973be6eaf89b54a64c2"><strong>[databases/types] </strong></span><p>fix to postgres sequence quoting when using schemas</p> <a class="changeset-link headerlink reference internal" href="#change-4990b03a3ffa7973be6eaf89b54a64c2">¶</a><p></p> </p> </li> </ul> </div> </div> <div class="section" id="change-0.3.0"> <h2>0.3.0<a class="headerlink" href="#change-0.3.0" title="Permalink to this headline">¶</a></h2> Released: Sun Oct 22 2006<div class="section" id="change-0.3.0-general"> <h3>general<a class="headerlink" href="#change-0.3.0-general" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.0-0"><span class="target" id="change-af1703046aac222edc8054620ba72d5b"><strong>[general] </strong></span><p>logging is now implemented via standard python “logging” module. “echo” keyword parameters are still functional but set/unset log levels for their respective classes/instances. all logging can be controlled directly through the Python API by setting INFO and DEBUG levels for loggers in the “sqlalchemy” namespace. class-level logging is under “sqlalchemy.<module>.<classname>”, instance-level logging under “sqlalchemy.<module>.<classname>.0x..<00-FF>”. Test suite includes “–log-info” and “–log-debug” arguments which work independently of –verbose/–quiet. Logging added to orm to allow tracking of mapper configurations, row iteration.</p> <a class="changeset-link headerlink reference internal" href="#change-af1703046aac222edc8054620ba72d5b">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-1"><span class="target" id="change-5becb5a90dce00b288e48c42b5b11c91"><strong>[general] </strong></span><p>the documentation-generation system has been overhauled to be much simpler in design and more integrated with Markdown</p> <a class="changeset-link headerlink reference internal" href="#change-5becb5a90dce00b288e48c42b5b11c91">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.0-orm"> <h3>orm<a class="headerlink" href="#change-0.3.0-orm" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.0-2"><span class="target" id="change-4d0f18a84af312791a640dd1de2ac5aa"><strong>[orm] </strong></span><p>attribute tracking modified to be more intelligent about detecting changes, particularly with mutable types. TypeEngine objects now take a greater role in defining how to compare two scalar instances, including the addition of a MutableType mixin which is implemented by PickleType. unit-of-work now tracks the “dirty” list as an expression of all persistent objects where the attribute manager detects changes. The basic issue that’s fixed is detecting changes on PickleType objects, but also generalizes type handling and “modified” object checking to be more complete and extensible.</p> <a class="changeset-link headerlink reference internal" href="#change-4d0f18a84af312791a640dd1de2ac5aa">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-3"><span class="target" id="change-b455e30f2020397a52b52dee6104b5c3"><strong>[orm] </strong></span><p>a wide refactoring to “attribute loader” and “options” architectures. ColumnProperty and PropertyLoader define their loading behavior via switchable “strategies”, and MapperOptions no longer use mapper/property copying in order to function; they are instead propagated via QueryContext and SelectionContext objects at query/instances time. All of the internal copying of mappers and properties that was used to handle inheritance as well as options() has been removed; the structure of mappers and properties is much simpler than before and is clearly laid out in the new ‘interfaces’ module.</p> <a class="changeset-link headerlink reference internal" href="#change-b455e30f2020397a52b52dee6104b5c3">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-4"><span class="target" id="change-1119b49161e5498c6ab5268241c9bc68"><strong>[orm] </strong></span><p>related to the mapper/property overhaul, internal refactoring to mapper instances() method to use a SelectionContext object to track state during the operation. SLIGHT API BREAKAGE: the append_result() and populate_instances() methods on MapperExtension have a slightly different method signature now as a result of the change; hoping that these methods are not in widespread use as of yet.</p> <a class="changeset-link headerlink reference internal" href="#change-1119b49161e5498c6ab5268241c9bc68">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-5"><span class="target" id="change-b9edae4ebe585fc03a2663daead0be3c"><strong>[orm] </strong></span><p>instances() method moved to Query now, backwards-compatible version remains on Mapper.</p> <a class="changeset-link headerlink reference internal" href="#change-b9edae4ebe585fc03a2663daead0be3c">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-6"><span class="target" id="change-35f311fe6deb6c511ce9e34f3aba4864"><strong>[orm] </strong></span><p>added contains_eager() MapperOption, used in conjunction with instances() to specify properties that should be eagerly loaded from the result set, using their plain column names by default, or translated given an custom row-translation function.</p> <a class="changeset-link headerlink reference internal" href="#change-35f311fe6deb6c511ce9e34f3aba4864">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-7"><span class="target" id="change-50bbbc3588a69af8445ccb96ccd2e5ce"><strong>[orm] </strong></span><p>more rearrangements of unit-of-work commit scheme to better allow dependencies within circular flushes to work properly…updated task traversal/logging implementation</p> <a class="changeset-link headerlink reference internal" href="#change-50bbbc3588a69af8445ccb96ccd2e5ce">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-8"><span class="target" id="change-cc6b22ffd1c978ed11157bf9e14e6394"><strong>[orm] </strong></span><p>polymorphic mappers (i.e. using inheritance) now produces INSERT statements in order of tables across all inherited classes</p> <a class="changeset-link headerlink reference internal" href="#change-cc6b22ffd1c978ed11157bf9e14e6394">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/321">#321</a></p> </p> </li> <li><p id="change-0.3.0-9"><span class="target" id="change-69a48fb25de0e1cd620693a836968e3d"><strong>[orm] </strong></span><p>added an automatic “row switch” feature to mapping, which will detect a pending instance/deleted instance pair with the same identity key and convert the INSERT/DELETE to a single UPDATE</p> <a class="changeset-link headerlink reference internal" href="#change-69a48fb25de0e1cd620693a836968e3d">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-10"><span class="target" id="change-9741ba8323c434593dbd85ae32233bba"><strong>[orm] </strong></span><p>“association” mappings simplified to take advantage of automatic “row switch” feature</p> <a class="changeset-link headerlink reference internal" href="#change-9741ba8323c434593dbd85ae32233bba">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-11"><span class="target" id="change-f970db37c47df342ea626e5d34c33557"><strong>[orm] </strong></span><p>“custom list classes” is now implemented via the “collection_class” keyword argument to relation(). the old way still works but is deprecated</p> <a class="changeset-link headerlink reference internal" href="#change-f970db37c47df342ea626e5d34c33557">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/212">#212</a></p> </p> </li> <li><p id="change-0.3.0-12"><span class="target" id="change-0b4f7934178b19d2f4198f972fa48af0"><strong>[orm] </strong></span><p>added “viewonly” flag to relation(), allows construction of relations that have no effect on the flush() process.</p> <a class="changeset-link headerlink reference internal" href="#change-0b4f7934178b19d2f4198f972fa48af0">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-13"><span class="target" id="change-89e8bd4b5f78c821a2184eda9d0b4596"><strong>[orm] </strong></span><p>added “lockmode” argument to base Query select/get functions, including “with_lockmode” function to get a Query copy that has a default locking mode. Will translate “read”/”update” arguments into a for_update argument on the select side.</p> <a class="changeset-link headerlink reference internal" href="#change-89e8bd4b5f78c821a2184eda9d0b4596">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/292">#292</a></p> </p> </li> <li><p id="change-0.3.0-14"><span class="target" id="change-0e58e5ab6f48202b49a15d78dac03244"><strong>[orm] </strong></span><p>implemented “version check” logic in Query/Mapper, used when version_id_col is in effect and query.with_lockmode() is used to get() an instance that’s already loaded</p> <a class="changeset-link headerlink reference internal" href="#change-0e58e5ab6f48202b49a15d78dac03244">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-15"><span class="target" id="change-db567762bd8f003f9bf446dc80e93356"><strong>[orm] </strong></span><p>post_update behavior improved; does a better job at not updating too many rows, updates only required columns</p> <a class="changeset-link headerlink reference internal" href="#change-db567762bd8f003f9bf446dc80e93356">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/208">#208</a></p> </p> </li> <li><p id="change-0.3.0-16"><span class="target" id="change-ed17766eeb0f7e0ffae4b5a8d65e19ba"><strong>[orm] </strong></span><p>adjustments to eager loading so that its “eager chain” is kept separate from the normal mapper setup, thereby preventing conflicts with lazy loader operation, fixes</p> <a class="changeset-link headerlink reference internal" href="#change-ed17766eeb0f7e0ffae4b5a8d65e19ba">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/308">#308</a></p> </p> </li> <li><p id="change-0.3.0-17"><span class="target" id="change-49870ec4b2e0423340358dea26b3babf"><strong>[orm] </strong></span><p>fix to deferred group loading</p> <a class="changeset-link headerlink reference internal" href="#change-49870ec4b2e0423340358dea26b3babf">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-18"><span class="target" id="change-9b6964ae2926bcd79206eacf3b9f3cfd"><strong>[orm] </strong></span><p>session.flush() wont close a connection it opened</p> <a class="changeset-link headerlink reference internal" href="#change-9b6964ae2926bcd79206eacf3b9f3cfd">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/346">#346</a></p> </p> </li> <li><p id="change-0.3.0-19"><span class="target" id="change-805e0f356e88803a0f83d386731283b0"><strong>[orm] </strong></span><p>added “batch=True” flag to mapper; if False, save_obj will fully save one object at a time including calls to before_XXXX and after_XXXX</p> <a class="changeset-link headerlink reference internal" href="#change-805e0f356e88803a0f83d386731283b0">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-20"><span class="target" id="change-f2876d14278453a3a9e07c35b3fc23d6"><strong>[orm] </strong></span><p>added “column_prefix=None” argument to mapper; prepends the given string (typically ‘_’) to column-based attributes automatically set up from the mapper’s Table</p> <a class="changeset-link headerlink reference internal" href="#change-f2876d14278453a3a9e07c35b3fc23d6">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-21"><span class="target" id="change-84a0aa83db4fbe7fa685c9586be1c4ec"><strong>[orm] </strong></span><p>specifying joins in the from_obj argument of query.select() will replace the main table of the query, if the table is somewhere within the given from_obj. this makes it possible to produce custom joins and outerjoins in queries without the main table getting added twice.</p> <a class="changeset-link headerlink reference internal" href="#change-84a0aa83db4fbe7fa685c9586be1c4ec">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/315">#315</a></p> </p> </li> <li><p id="change-0.3.0-22"><span class="target" id="change-ccb145193bd44d06f18079179309f197"><strong>[orm] </strong></span><p>eagerloading is adjusted to more thoughtfully attach its LEFT OUTER JOINs to the given query, looking for custom “FROM” clauses that may have already been set up.</p> <a class="changeset-link headerlink reference internal" href="#change-ccb145193bd44d06f18079179309f197">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-23"><span class="target" id="change-63a7d34aabebf51b4547b9939aee9ea7"><strong>[orm] </strong></span><p>added join_to and outerjoin_to transformative methods to SelectResults, to build up join/outerjoin conditions based on property names. also added select_from to explicitly set from_obj parameter.</p> <a class="changeset-link headerlink reference internal" href="#change-63a7d34aabebf51b4547b9939aee9ea7">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-24"><span class="target" id="change-c1c88b8cfd3e533c3299e6380b4c2363"><strong>[orm] </strong></span><p>removed “is_primary” flag from mapper.</p> <a class="changeset-link headerlink reference internal" href="#change-c1c88b8cfd3e533c3299e6380b4c2363">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.0-sql"> <h3>sql<a class="headerlink" href="#change-0.3.0-sql" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.0-25"><span class="target" id="change-e5f40f680103943b465258a215ef6f9e"><strong>[sql] [construction] </strong></span><p>changed “for_update” parameter to accept False/True/”nowait” and “read”, the latter two of which are interpreted only by Oracle and MySQL</p> <a class="changeset-link headerlink reference internal" href="#change-e5f40f680103943b465258a215ef6f9e">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/292">#292</a></p> </p> </li> <li><p id="change-0.3.0-26"><span class="target" id="change-3abbda64974ee3c2264a57b840bd8421"><strong>[sql] [construction] </strong></span><p>added extract() function to sql dialect (SELECT extract(field FROM expr))</p> <a class="changeset-link headerlink reference internal" href="#change-3abbda64974ee3c2264a57b840bd8421">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-27"><span class="target" id="change-121c9f650291edb4ca7b8ffa8139c66b"><strong>[sql] [construction] </strong></span><p>BooleanExpression includes new “negate” argument to specify the appropriate negation operator if one is available.</p> <a class="changeset-link headerlink reference internal" href="#change-121c9f650291edb4ca7b8ffa8139c66b">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-28"><span class="target" id="change-9350ceaebf6175edafc4765a8f79bd9b"><strong>[sql] [construction] </strong></span><p>calling a negation on an “IN” or “IS” clause will result in “NOT IN”, “IS NOT” (as opposed to NOT (x IN y)).</p> <a class="changeset-link headerlink reference internal" href="#change-9350ceaebf6175edafc4765a8f79bd9b">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-29"><span class="target" id="change-22c4e15de46bb1d96abbdf555f8dc4a7"><strong>[sql] [construction] </strong></span><p>Function objects know what to do in a FROM clause now. their behavior should be the same, except now you can also do things like select([‘*’], from_obj=[func.my_function()]) to get multiple columns from the result, or even use sql.column() constructs to name the return columns</p> <a class="changeset-link headerlink reference internal" href="#change-22c4e15de46bb1d96abbdf555f8dc4a7">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/172">#172</a></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.0-schema"> <h3>schema<a class="headerlink" href="#change-0.3.0-schema" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.0-30"><span class="target" id="change-4df510b9c3361af772c20d1ad5825ea4"><strong>[schema] </strong></span><p>a fair amount of cleanup to the schema package, removal of ambiguous methods, methods that are no longer needed. slightly more constrained usage, greater emphasis on explicitness</p> <a class="changeset-link headerlink reference internal" href="#change-4df510b9c3361af772c20d1ad5825ea4">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-31"><span class="target" id="change-7e3d79a0f25e4a5cfff24316d2cf0887"><strong>[schema] </strong></span><p>the “primary_key” attribute of Table and other selectables becomes a setlike ColumnCollection object; is ordered but not numerically indexed. a comparison clause between two pks that are derived from the same underlying tables (i.e. such as two Alias objects) can be generated via table1.primary_key==table2.primary_key</p> <a class="changeset-link headerlink reference internal" href="#change-7e3d79a0f25e4a5cfff24316d2cf0887">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-32"><span class="target" id="change-1f5f61d9a455f45e8e7957b4a802259c"><strong>[schema] </strong></span><p>ForeignKey(Constraint) supports “use_alter=True”, to create/drop a foreign key via ALTER. this allows circular foreign key relationships to be set up.</p> <a class="changeset-link headerlink reference internal" href="#change-1f5f61d9a455f45e8e7957b4a802259c">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-33"><span class="target" id="change-07dabb3b17789490c2f1f3c1325d7f94"><strong>[schema] </strong></span><p>append_item() methods removed from Table and Column; preferably construct Table/Column/related objects inline, but if needed use append_column(), append_foreign_key(), append_constraint(), etc.</p> <a class="changeset-link headerlink reference internal" href="#change-07dabb3b17789490c2f1f3c1325d7f94">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-34"><span class="target" id="change-9297cc5781aef837ddcf8a66d489adac"><strong>[schema] </strong></span><p>table.create() no longer returns the Table object, instead has no return value. the usual case is that tables are created via metadata, which is preferable since it will handle table dependencies.</p> <a class="changeset-link headerlink reference internal" href="#change-9297cc5781aef837ddcf8a66d489adac">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-35"><span class="target" id="change-96cef28bc60b163b11d7748202f7927d"><strong>[schema] </strong></span><p>added UniqueConstraint (goes at Table level), CheckConstraint (goes at Table or Column level).</p> <a class="changeset-link headerlink reference internal" href="#change-96cef28bc60b163b11d7748202f7927d">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-36"><span class="target" id="change-f11c7c40de054e42f985d34823335728"><strong>[schema] </strong></span><p>index=False/unique=True on Column now creates a UniqueConstraint, index=True/unique=False creates a plain Index, index=True/unique=True on Column creates a unique Index. ‘index’ and ‘unique’ keyword arguments to column are now boolean only; for explicit names and groupings of indexes or unique constraints, use the UniqueConstraint/Index constructs explicitly.</p> <a class="changeset-link headerlink reference internal" href="#change-f11c7c40de054e42f985d34823335728">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-37"><span class="target" id="change-504cbc530860d0c4286f50b29cc1df63"><strong>[schema] </strong></span><p>added autoincrement=True to Column; will disable schema generation of SERIAL/AUTO_INCREMENT/identity seq for postgres/mysql/mssql if explicitly set to False</p> <a class="changeset-link headerlink reference internal" href="#change-504cbc530860d0c4286f50b29cc1df63">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-38"><span class="target" id="change-c835aa697ef27bc1779955d5c07a05f1"><strong>[schema] </strong></span><p>TypeEngine objects now have methods to deal with copying and comparing values of their specific type. Currently used by the ORM, see below.</p> <a class="changeset-link headerlink reference internal" href="#change-c835aa697ef27bc1779955d5c07a05f1">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-39"><span class="target" id="change-d18bcbe2ddc4d315b2804e80e2ade534"><strong>[schema] </strong></span><p>fixed condition that occurred during reflection when a primary key column was explicitly overridden, where the PrimaryKeyConstraint would get both the reflected and the programmatic column doubled up</p> <a class="changeset-link headerlink reference internal" href="#change-d18bcbe2ddc4d315b2804e80e2ade534">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-40"><span class="target" id="change-fed9bf9740d5a682cebb46515151e5c0"><strong>[schema] </strong></span><p>the “foreign_key” attribute on Column and ColumnElement in general is deprecated, in favor of the “foreign_keys” list/set-based attribute, which takes into account multiple foreign keys on one column. “foreign_key” will return the first element in the “foreign_keys” list/set or None if the list is empty.</p> <a class="changeset-link headerlink reference internal" href="#change-fed9bf9740d5a682cebb46515151e5c0">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.0-sqlite"> <h3>sqlite<a class="headerlink" href="#change-0.3.0-sqlite" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.0-41"><span class="target" id="change-73aea24b040bca4e9965ccbb6e349046"><strong>[sqlite] </strong></span><p>sqlite boolean datatype converts False/True to 0/1 by default</p> <a class="changeset-link headerlink reference internal" href="#change-73aea24b040bca4e9965ccbb6e349046">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-42"><span class="target" id="change-2f2f6303c04b763ae32a23ad61552cf4"><strong>[sqlite] </strong></span><p>fixes to Date/Time (SLDate/SLTime) types; works as good as postgres now</p> <a class="changeset-link headerlink reference internal" href="#change-2f2f6303c04b763ae32a23ad61552cf4">¶</a><p>References: <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/335">#335</a></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.0-oracle"> <h3>oracle<a class="headerlink" href="#change-0.3.0-oracle" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.0-43"><span class="target" id="change-2a9e63a93ef8e8feadccbfb766be4727"><strong>[oracle] </strong></span><p>Oracle has experimental support for cx_Oracle.TIMESTAMP, which requires a setinputsizes() call on the cursor that is now enabled via the ‘auto_setinputsizes’ flag to the oracle dialect.</p> <a class="changeset-link headerlink reference internal" href="#change-2a9e63a93ef8e8feadccbfb766be4727">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.0-firebird"> <h3>firebird<a class="headerlink" href="#change-0.3.0-firebird" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.0-44"><span class="target" id="change-a1b63a91c9fe5f9b5cae296b49617e99"><strong>[firebird] </strong></span><p>aliases do not use “AS”</p> <a class="changeset-link headerlink reference internal" href="#change-a1b63a91c9fe5f9b5cae296b49617e99">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-45"><span class="target" id="change-d6929c3d1968bd8c70fc395ea5abac4e"><strong>[firebird] </strong></span><p>correctly raises NoSuchTableError when reflecting non-existent table</p> <a class="changeset-link headerlink reference internal" href="#change-d6929c3d1968bd8c70fc395ea5abac4e">¶</a><p></p> </p> </li> </ul> </div> <div class="section" id="change-0.3.0-misc"> <h3>misc<a class="headerlink" href="#change-0.3.0-misc" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p id="change-0.3.0-46"><span class="target" id="change-fce7c38172fd247996365a12bbad8a3c"><strong>[ms-sql] </strong></span><p>fixes bug 261 (table reflection broken for MS-SQL case-sensitive databases)</p> <a class="changeset-link headerlink reference internal" href="#change-fce7c38172fd247996365a12bbad8a3c">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-47"><span class="target" id="change-5c03c1b73b7683cc5c95d8f6dcbff900"><strong>[ms-sql] </strong></span><p>can now specify port for pymssql</p> <a class="changeset-link headerlink reference internal" href="#change-5c03c1b73b7683cc5c95d8f6dcbff900">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-48"><span class="target" id="change-d61a87077e1d1c9fa96868d8e8805a87"><strong>[ms-sql] </strong></span><p>introduces new “auto_identity_insert” option for auto-switching between “SET IDENTITY_INSERT” mode when values specified for IDENTITY columns</p> <a class="changeset-link headerlink reference internal" href="#change-d61a87077e1d1c9fa96868d8e8805a87">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-49"><span class="target" id="change-b7bc176c6d0fced17db9766f866ca8d9"><strong>[ms-sql] </strong></span><p>now supports multi-column foreign keys</p> <a class="changeset-link headerlink reference internal" href="#change-b7bc176c6d0fced17db9766f866ca8d9">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-50"><span class="target" id="change-f2463d5087105bc305f2098f3a932ea4"><strong>[ms-sql] </strong></span><p>fix to reflecting date/datetime columns</p> <a class="changeset-link headerlink reference internal" href="#change-f2463d5087105bc305f2098f3a932ea4">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-51"><span class="target" id="change-b0212da21088f78c1fb2b5c69f08802a"><strong>[ms-sql] </strong></span><p>NCHAR and NVARCHAR type support added</p> <a class="changeset-link headerlink reference internal" href="#change-b0212da21088f78c1fb2b5c69f08802a">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-52"><span class="target" id="change-784d08fb847e35d6d1df60cc5b77a74c"><strong>[connections/pooling/execution] </strong></span><p>connection pool tracks open cursors and automatically closes them if connection is returned to pool with cursors still opened. Can be affected by options which cause it to raise an error instead, or to do nothing. fixes issues with MySQL, others</p> <a class="changeset-link headerlink reference internal" href="#change-784d08fb847e35d6d1df60cc5b77a74c">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-53"><span class="target" id="change-f6cf03213eb3b88352eb7887cc9cfe0e"><strong>[connections/pooling/execution] </strong></span><p>fixed bug where Connection wouldn’t lose its Transaction after commit/rollback</p> <a class="changeset-link headerlink reference internal" href="#change-f6cf03213eb3b88352eb7887cc9cfe0e">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-54"><span class="target" id="change-f646180e65ac4eacb62bc3ff6b69286e"><strong>[connections/pooling/execution] </strong></span><p>added scalar() method to ComposedSQLEngine, ResultProxy</p> <a class="changeset-link headerlink reference internal" href="#change-f646180e65ac4eacb62bc3ff6b69286e">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-55"><span class="target" id="change-1753263c929a352b09f567f6469bcbe3"><strong>[connections/pooling/execution] </strong></span><p>ResultProxy will close() the underlying cursor when the ResultProxy itself is closed. this will auto-close cursors for ResultProxy objects that have had all their rows fetched (or had scalar() called).</p> <a class="changeset-link headerlink reference internal" href="#change-1753263c929a352b09f567f6469bcbe3">¶</a><p></p> </p> </li> <li><p id="change-0.3.0-56"><span class="target" id="change-8b8beaee4be0988cd69dfbdb5a8603e0"><strong>[connections/pooling/execution] </strong></span><p>ResultProxy.fetchall() internally uses DBAPI fetchall() for better efficiency, added to mapper iteration as well (courtesy Michael Twomey)</p> <a class="changeset-link headerlink reference internal" href="#change-8b8beaee4be0988cd69dfbdb5a8603e0">¶</a><p></p> </p> </li> </ul> </div> </div> </div> </div> </div> <div id="docs-bottom-navigation" class="docs-navigation-links, withsidebar"> Previous: <a href="changelog_04.html" title="previous chapter">0.4 Changelog</a> Next: <a href="changelog_02.html" title="next chapter">0.2 Changelog</a> <div id="docs-copyright"> © <a href="../copyright.html">Copyright</a> 2007-2019, the SQLAlchemy authors and contributors. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 2.0.1. </div> </div> </div> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../', VERSION: '1.2.19', COLLAPSE_MODINDEX: false, FILE_SUFFIX: '.html' }; </script> <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></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> <script type="text/javascript" src="../_static/language_data.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> </body> </html>