]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fixed HAVING/ORDER BY order, 0.1.7 prep
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 5 May 2006 00:42:42 +0000 (00:42 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 5 May 2006 00:42:42 +0000 (00:42 +0000)
CHANGES
lib/sqlalchemy/ansisql.py
setup.py

diff --git a/CHANGES b/CHANGES
index 99eb0bc10f6c3651622e7f999a7a2bd53554d173..ee22d6ce9a9ef5d249d2fd262c9b1622aadbf615 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,30 @@
-next
+0.1.7
 - some fixes to topological sort algorithm
+- added DISTINCT ON support to Postgres (just supply distinct=[col1,col2..])
+- "order_by" mapper property inherited from inheriting mapper
+- fix to column type used when mapper UPDATES/DELETEs
+- with convert_unicode=True, reflection was failing, has been fixed
+- types types types!  still werent working....have to use TypeDecorator again :(
+- mysql binary type converts array output to buffer, fixes PickleType
+- fixed the attributes.py memory leak once and for all
+- unittests are qualified based on the databases that support each one
+- fixed bug where column defaults would clobber VALUES clause of insert objects
+- fixed bug where table def w/ schema name would force engine connection
+- fix for parenthesis to work correctly with subqueries in INSERT/UPDATE
+- HistoryArraySet gets extend() method
+- fixed lazyload support for other comparison operators besides =
+- lazyload fix where two comparisons in the join condition point to the 
+samem column
+- added "construct_new" flag to mapper, will use __new__ to create instances
+instead of __init__ (standard in 0.2)
+- added selectresults.py to SVN, missed it last time
+- tweak to allow a many-to-many relationship from a table to itself via
+an association table
+- small fix to "translate_row" function used by polymorphic example
+- create_engine uses cgi.parse_qsl to read query string (out the window in 0.2)
+- tweaks to CAST operator
+- fixed function names LOCAL_TIME/LOCAL_TIMESTAMP -> LOCALTIME/LOCALTIMESTAMP
+- fixed order of ORDER BY/HAVING in compile
 
 0.1.6
 - support for MS-SQL added courtesy Rick Morrison, Runar Petursson
index a344e017c77bdc2a59e6c52584d787f5c3b3edc9..602da58eef973414b34dbf605ee6821c71f90e68 100644 (file)
@@ -371,14 +371,14 @@ class ANSICompiler(sql.Compiled):
         if group_by:
             text += " GROUP BY " + group_by
 
-        order_by = self.get_str(select.order_by_clause)
-        if order_by:
-            text += " ORDER BY " + order_by
-
         if select.having is not None:
             t = self.get_str(select.having)
             if t:
                 text += " \nHAVING " + t
+
+        order_by = self.get_str(select.order_by_clause)
+        if order_by:
+            text += " ORDER BY " + order_by
                 
         text += self.visit_select_postclauses(select)
  
index 690c945e45d7464145b847c94e49e4a732ebb8fd..ac069f8a06520892f550125874f32c7a30c01dae 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ use_setuptools()
 from setuptools import setup, find_packages
 
 setup(name = "SQLAlchemy",
-    version = "0.1.6",
+    version = "0.1.7",
     description = "Database Abstraction Library",
     author = "Mike Bayer",
     author_email = "mike_mp@zzzcomputing.com",