]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
18 years agoReworked & stripped.
Jason Kirtland [Sat, 10 May 2008 01:59:07 +0000 (01:59 +0000)] 
Reworked & stripped.

18 years agoorder by doc
Mike Bayer [Sat, 10 May 2008 00:54:17 +0000 (00:54 +0000)] 
order by doc

18 years agoedits
Mike Bayer [Sat, 10 May 2008 00:31:35 +0000 (00:31 +0000)] 
edits

18 years agoremoved deprecated plugins docs
Mike Bayer [Sat, 10 May 2008 00:31:09 +0000 (00:31 +0000)] 
removed deprecated plugins docs

18 years agobackref() function uses primaryjoin/secondaryjoin of the parent relation() if not...
Mike Bayer [Sat, 10 May 2008 00:26:28 +0000 (00:26 +0000)] 
backref() function uses primaryjoin/secondaryjoin of the parent relation() if not otherwise specified, removing the frequently annoying need to specify primaryjoin twice.

18 years agoChipping away at remaining cruft.
Jason Kirtland [Sat, 10 May 2008 00:05:03 +0000 (00:05 +0000)] 
Chipping away at remaining cruft.

18 years ago- fixed a fairly critical bug in clause adaption/corresponding column in conjunction...
Mike Bayer [Fri, 9 May 2008 23:58:30 +0000 (23:58 +0000)] 
- fixed a fairly critical bug in clause adaption/corresponding column in conjunction with annotations
- implicit order by is removed, modified many tests to explicitly set ordering, probably many more to go
once it hits the buildbot.

18 years agoadd target_fullname as a public property for _get_colspec
Gaëtan de Menten [Fri, 9 May 2008 20:49:32 +0000 (20:49 +0000)] 
add target_fullname as a public property for _get_colspec

18 years agoTest suite modernization in progress. Big changes:
Jason Kirtland [Fri, 9 May 2008 20:26:09 +0000 (20:26 +0000)] 
Test suite modernization in progress.  Big changes:
 - @unsupported now only accepts a single target and demands a reason
   for not running the test.
 - @exclude also demands an exclusion reason
 - Greatly expanded @testing.requires.<feature>, eliminating many
   decorators in the suite and signficantly easing integration of
   multi-driver support.
 - New ORM test base class, and a featureful base for mapped tests
 - Usage of 'global' for shared setup going away, * imports as well

18 years agomore order bys...
Mike Bayer [Fri, 9 May 2008 20:04:29 +0000 (20:04 +0000)] 
more order bys...

18 years agosome tweaks to help MySQL
Mike Bayer [Fri, 9 May 2008 19:42:32 +0000 (19:42 +0000)] 
some tweaks to help MySQL

18 years ago- more portable tests for eager/inheritance joins
Mike Bayer [Fri, 9 May 2008 19:20:49 +0000 (19:20 +0000)] 
- more portable tests for eager/inheritance joins
- bumped 2.4 call count for profile test_select
- don't need initialize_properties() during reentrant compile() call (for now)

18 years agoMSText no longer implicitly creates TEXT for string with no length
Mike Bayer [Fri, 9 May 2008 19:00:55 +0000 (19:00 +0000)] 
MSText no longer implicitly creates TEXT for string with no length
(this actually allows CAST (foo, VARCHAR) to render too)

18 years agoadded query.subquery() as shorthand for query.statement.alias()
Mike Bayer [Fri, 9 May 2008 18:57:40 +0000 (18:57 +0000)] 
added query.subquery() as shorthand for query.statement.alias()

18 years agoidentified case where pending upon commit() is needed; since attribute rollback funct...
Mike Bayer [Fri, 9 May 2008 18:43:05 +0000 (18:43 +0000)] 
identified case where pending upon commit() is needed; since attribute rollback functionality is gone its safe to revert to this

18 years agomove the definition of sessions public methods closer to the source
Ants Aasma [Fri, 9 May 2008 17:50:38 +0000 (17:50 +0000)] 
move the definition of sessions public methods closer to the source

18 years agoadded "add", "add_all", "expire_all" to SS
Mike Bayer [Fri, 9 May 2008 17:42:24 +0000 (17:42 +0000)] 
added "add", "add_all", "expire_all" to SS

18 years agotweak
Mike Bayer [Fri, 9 May 2008 17:28:43 +0000 (17:28 +0000)] 
tweak

18 years agoneed delete-orphan
Mike Bayer [Fri, 9 May 2008 17:21:10 +0000 (17:21 +0000)] 
need delete-orphan

18 years ago- warnings about Query invalid operations become InvalidRequestErrors
Mike Bayer [Fri, 9 May 2008 17:05:13 +0000 (17:05 +0000)] 
- warnings about Query invalid operations become InvalidRequestErrors
- __no_criterion() checks for more pre-existing conditions
- helpful note in 0.5 svn readme

18 years agor4695 merged to trunk; trunk now becomes 0.5.
Mike Bayer [Fri, 9 May 2008 16:34:10 +0000 (16:34 +0000)] 
r4695 merged to trunk; trunk now becomes 0.5.
0.4 development continues at /sqlalchemy/branches/rel_0_4

18 years agodoc update on quote
Mike Bayer [Thu, 8 May 2008 21:29:07 +0000 (21:29 +0000)] 
doc update on quote

18 years agoremove **kwargs from execute(), scalar(), connection(), and get_bind(). document...
Mike Bayer [Thu, 8 May 2008 00:47:23 +0000 (00:47 +0000)] 
remove **kwargs from execute(), scalar(), connection(), and get_bind().  document all args, [ticket:1028]

18 years ago- backported 0.5's contains_eager() behavior such that rendering of eager clauses...
Mike Bayer [Thu, 8 May 2008 00:19:06 +0000 (00:19 +0000)] 
- backported 0.5's contains_eager() behavior such that rendering of eager clauses are disabled.  workaround here is compatible with 0.5 but not compatible with the little-known "decorator" argument to contains_eager() (which was also removed in 0.5).  Doesn't remove any existing 0.4 functionality.

18 years ago- added an example dynamic_dict/dynamic_dict.py, illustrating
Mike Bayer [Wed, 7 May 2008 14:48:04 +0000 (14:48 +0000)] 
- added an example dynamic_dict/dynamic_dict.py, illustrating
a simple way to place dictionary behavior on top of
a dynamic_loader.

18 years ago- Fixed "concatenate tuple" bug which could occur with
Mike Bayer [Wed, 7 May 2008 03:48:14 +0000 (03:48 +0000)] 
- Fixed "concatenate tuple" bug which could occur with
Query.order_by() if clause adaption had taken place.
[ticket:1027]

18 years agoQuery.select() wont call filter() if arg is None
Mike Bayer [Tue, 6 May 2008 19:06:43 +0000 (19:06 +0000)] 
Query.select() wont call filter() if arg is None

18 years agofix foreign_keys example
Mike Bayer [Tue, 6 May 2008 16:06:22 +0000 (16:06 +0000)] 
fix foreign_keys example

18 years agoAdded missing argument check on CheckConstraint
Jason Kirtland [Tue, 6 May 2008 14:40:24 +0000 (14:40 +0000)] 
Added missing argument check on CheckConstraint

18 years ago- _Label adds itself to the proxy collection so that it works in correspoinding colum...
Mike Bayer [Tue, 6 May 2008 00:55:49 +0000 (00:55 +0000)] 
- _Label adds itself to the proxy collection so that it works in correspoinding column.  fixes some eager load with column_property bugs.
- this partially fixes some issues in [ticket:1022] but leaving the "unlabeled" fix for 0.5 for now

18 years ago- added "after_begin()" hook to Session
Mike Bayer [Tue, 6 May 2008 00:47:36 +0000 (00:47 +0000)] 
- added "after_begin()" hook to Session
- Session.rollback() will rollback on a prepared session

18 years agoTidy.
Jason Kirtland [Tue, 6 May 2008 00:46:00 +0000 (00:46 +0000)] 
Tidy.

18 years agoFix typo
Lele Gaifax [Mon, 5 May 2008 23:08:11 +0000 (23:08 +0000)] 
Fix typo

18 years agoAdjusted inplace-binops on set-based collections and association proxies to
Jason Kirtland [Mon, 5 May 2008 21:33:29 +0000 (21:33 +0000)] 
Adjusted inplace-binops on set-based collections and association proxies to
more closely follow builtin (2.4+) set semantics.  Formerly any set duck-type
was accepted, now only types or subtypes of set, frozenset or the collection
type itself are accepted.

18 years agofailing case
Mike Bayer [Mon, 5 May 2008 17:50:19 +0000 (17:50 +0000)] 
failing case

18 years agoFixed duplicate append event emission on repeated instrumented set.add() operations.
Jason Kirtland [Mon, 5 May 2008 17:08:00 +0000 (17:08 +0000)] 
Fixed duplicate append event emission on repeated instrumented set.add() operations.

18 years agoUpdate for r4643
Jason Kirtland [Mon, 5 May 2008 16:53:39 +0000 (16:53 +0000)] 
Update for r4643

18 years agoRenamed rollback_returned to reset_on_return. Future, dialect-aware pools can do...
Jason Kirtland [Mon, 5 May 2008 16:50:58 +0000 (16:50 +0000)] 
Renamed rollback_returned to reset_on_return.  Future, dialect-aware pools can do better than rollback for this function.

18 years ago - same as [ticket:1019] but repaired the non-labeled use case
Mike Bayer [Mon, 5 May 2008 16:46:24 +0000 (16:46 +0000)] 
- same as [ticket:1019] but repaired the non-labeled use case
      [ticket:1022]

18 years ago - added "rollback_returned" option to Pool which will
Mike Bayer [Mon, 5 May 2008 15:52:09 +0000 (15:52 +0000)] 
- added "rollback_returned" option to Pool which will
      disable the rollback() issued when connections are
      returned.  This flag is only safe to use with a database
      which does not support transactions (i.e. MySQL/MyISAM).

18 years ago - Column.copy() respects the value of "autoincrement",
Mike Bayer [Mon, 5 May 2008 14:59:07 +0000 (14:59 +0000)] 
  - Column.copy() respects the value of "autoincrement",
      fixes usage with Migrate [ticket:1021]

18 years ago- fixes to the "exists" function involving inheritance (any(), has(),
Mike Bayer [Fri, 2 May 2008 19:23:58 +0000 (19:23 +0000)] 
- fixes to the "exists" function involving inheritance (any(), has(),
~contains()); the full target join will be rendered into the
EXISTS clause for relations that link to subclasses.

18 years ago- The collection instrumentation sweep now skips over descriptors that raise Attribut...
Jason Kirtland [Fri, 2 May 2008 18:47:05 +0000 (18:47 +0000)] 
- The collection instrumentation sweep now skips over descriptors that raise AttributeError.

18 years ago- fixed reentrant mapper compile hang when
Mike Bayer [Fri, 2 May 2008 18:23:16 +0000 (18:23 +0000)] 
- fixed reentrant mapper compile hang when
a declared attribute is used within ForeignKey,
ie. ForeignKey(MyOtherClass.someattribute)

18 years ago- Backported attribute sweep removal (instrumentation) and r4493 from 0.5
Jason Kirtland [Fri, 2 May 2008 17:46:44 +0000 (17:46 +0000)] 
- Backported attribute sweep removal (instrumentation) and r4493 from 0.5

18 years agoone-off workaround for mssql + odbc options, user patch
Rick Morrison [Fri, 2 May 2008 17:26:38 +0000 (17:26 +0000)] 
one-off workaround for mssql + odbc options, user patch

18 years ago- an unfortunate naming conflict
Mike Bayer [Fri, 2 May 2008 01:15:26 +0000 (01:15 +0000)] 
- an unfortunate naming conflict
- needed sql import on and()

18 years ago- factored out the logic used by Join to create its join condition
Mike Bayer [Fri, 2 May 2008 01:02:23 +0000 (01:02 +0000)] 
- factored out the logic used by Join to create its join condition
- With declarative, joined table inheritance mappers use a slightly relaxed
function to create the "inherit condition" to the parent
table, so that other foreign keys to not-yet-declared
Table objects don't trigger an error.

18 years agoadded some reference tests for the any() situation
Mike Bayer [Thu, 1 May 2008 15:17:07 +0000 (15:17 +0000)] 
added some reference tests for the any() situation

18 years ago- Fix 2.3 regression from 4598
Jason Kirtland [Wed, 30 Apr 2008 02:52:14 +0000 (02:52 +0000)] 
- Fix 2.3 regression from 4598

18 years ago- added a feature to eager loading whereby subqueries set
Mike Bayer [Wed, 30 Apr 2008 01:16:05 +0000 (01:16 +0000)] 
- added a feature to eager loading whereby subqueries set
as column_property() with explicit label names (which is not
necessary, btw) will have the label anonymized when
the instance is part of the eager join, to prevent
conflicts with a subquery or column of the same name
on the parent object.  [ticket:1019]

18 years agoAnd a copy.copy() test for the proxy cache.
Jason Kirtland [Tue, 29 Apr 2008 18:28:36 +0000 (18:28 +0000)] 
And a copy.copy() test for the proxy cache.

18 years ago- Refresh the cached proxy if the cache was built for a different instance.
Jason Kirtland [Tue, 29 Apr 2008 18:22:23 +0000 (18:22 +0000)] 
- Refresh the cached proxy if the cache was built for a different instance.

18 years agoadded multi-level concrete inheritance test (testing with_polymorphic mapper argument)
Gaëtan de Menten [Tue, 29 Apr 2008 13:35:59 +0000 (13:35 +0000)] 
added multi-level concrete inheritance test (testing with_polymorphic mapper argument)

18 years agomore declarative doc updates
Mike Bayer [Mon, 28 Apr 2008 00:04:05 +0000 (00:04 +0000)] 
more declarative doc updates

18 years agofix docs for declarative
Mike Bayer [Sun, 27 Apr 2008 23:37:02 +0000 (23:37 +0000)] 
fix docs for declarative

18 years agoSavepoints are supported under Firebird
Lele Gaifax [Sun, 27 Apr 2008 08:54:36 +0000 (08:54 +0000)] 
Savepoints are supported under Firebird

18 years agofix order by for MySQL environment
Mike Bayer [Sat, 26 Apr 2008 20:18:31 +0000 (20:18 +0000)] 
fix order by for MySQL environment

18 years ago- improved behavior of text() expressions when used as
Mike Bayer [Sat, 26 Apr 2008 16:34:14 +0000 (16:34 +0000)] 
- improved behavior of text() expressions when used as
FROM clauses, such as select().select_from(text("sometext"))
[ticket:1014]
- removed _TextFromClause; _TextClause just adds necessary FromClause descriptors
at the class level

18 years ago- refined mapper._save_obj() which was unnecessarily calling
Mike Bayer [Sat, 26 Apr 2008 16:13:49 +0000 (16:13 +0000)] 
- refined mapper._save_obj() which was unnecessarily calling
__ne__() on scalar values during flush [ticket:1015]

18 years agoExpanded --noncomparable to cover all comparision ops
Jason Kirtland [Fri, 25 Apr 2008 20:44:02 +0000 (20:44 +0000)] 
Expanded --noncomparable to cover all comparision ops

18 years agotypo
Gaëtan de Menten [Fri, 25 Apr 2008 12:31:47 +0000 (12:31 +0000)] 
typo

18 years agoUpdate docstring [ticket:873]
Jason Kirtland [Tue, 22 Apr 2008 20:04:51 +0000 (20:04 +0000)] 
Update docstring [ticket:873]

18 years agoExplicit test of .autoflush(False) to avoid issues with save_on_init=True [ticket...
Jason Kirtland [Tue, 22 Apr 2008 19:57:13 +0000 (19:57 +0000)] 
Explicit test of .autoflush(False) to avoid issues with save_on_init=True [ticket:869]

18 years agoflush(objects=[]) is a no-op [ticket:928]
Jason Kirtland [Tue, 22 Apr 2008 19:29:56 +0000 (19:29 +0000)] 
flush(objects=[]) is a no-op [ticket:928]

18 years ago - fixed Class.collection==None for m2m relationships
Mike Bayer [Tue, 22 Apr 2008 15:05:10 +0000 (15:05 +0000)] 
- fixed Class.collection==None for m2m relationships
      [ticket:4213]

18 years ago- restored usage of append_result() extension method for primary
Mike Bayer [Fri, 18 Apr 2008 14:49:21 +0000 (14:49 +0000)] 
- restored usage of append_result() extension method for primary
query rows, when the extension is present and only a single-
entity result is being returned.

18 years agoAdded 'odbc_options' keyword to the MSSQL dialect. Allows a partial ODBC connection...
Rick Morrison [Thu, 17 Apr 2008 19:07:12 +0000 (19:07 +0000)] 
Added 'odbc_options' keyword to the MSSQL dialect. Allows a partial ODBC connection string to be passed through to the connection string generator.

18 years ago- Support for COLLATE: collate(expr, col) and expr.collate(col)
Jason Kirtland [Wed, 16 Apr 2008 00:53:21 +0000 (00:53 +0000)] 
- Support for COLLATE: collate(expr, col) and expr.collate(col)

18 years ago- simplified __create_lazy_clause to make better usage of the new local/remote pairs...
Mike Bayer [Mon, 14 Apr 2008 18:23:59 +0000 (18:23 +0000)] 
- simplified __create_lazy_clause to make better usage of the new local/remote pairs collection
- corrected the direction of local/remote pairs for manytoone
- added new tests which demonstrate lazyloading working when the bind param is embedded inside of a SQL function,
when _local_remote_pairs argument is used; fixes the viewonly version of [ticket:610]
- removed needless kwargs check from visitors.traverse

18 years agoadded info about _local_remote_pairs to error message
Mike Bayer [Mon, 14 Apr 2008 15:54:23 +0000 (15:54 +0000)] 
added info about _local_remote_pairs to error message

18 years ago- added experimental relation() flag to help with primaryjoins
Mike Bayer [Mon, 14 Apr 2008 15:49:39 +0000 (15:49 +0000)] 
- added experimental relation() flag to help with primaryjoins
across functions, etc., _local_remote_pairs=[tuples].
This complements a complex primaryjoin condition allowing
you to provide the individual column pairs which comprise
the relation's local and remote sides.

18 years agoPass connection to get_default_schema_name
Jason Kirtland [Sun, 13 Apr 2008 16:21:17 +0000 (16:21 +0000)] 
Pass connection to get_default_schema_name

18 years agoFirebird 2 has a SUBSTRING() builtin, expose it thru a function
Lele Gaifax [Fri, 11 Apr 2008 22:14:34 +0000 (22:14 +0000)] 
Firebird 2 has a SUBSTRING() builtin, expose it thru a function

18 years ago- re-established viewonly relation() configurations that
Mike Bayer [Fri, 11 Apr 2008 15:58:18 +0000 (15:58 +0000)] 
- re-established viewonly relation() configurations that
join across multiple tables.

18 years agoAdd a new 'odbc_autotranslate' engine/dburi kwd parm to the MSSQL pyodbc dialect...
Rick Morrison [Tue, 8 Apr 2008 19:09:33 +0000 (19:09 +0000)] 
Add a new 'odbc_autotranslate' engine/dburi kwd parm to the MSSQL pyodbc dialect; string kwd contents will be passed through to ODBC connection string.
[ticket:1005]

18 years agoremove monetdb typo
Matt Harrison [Mon, 7 Apr 2008 22:48:39 +0000 (22:48 +0000)] 
remove monetdb typo

18 years agorefactor of default_paramstyle, use paramstyle argument on Dialect to change
Matt Harrison [Mon, 7 Apr 2008 22:42:28 +0000 (22:42 +0000)] 
refactor of default_paramstyle, use paramstyle argument on Dialect to change

18 years ago- Avoid cProfile on 2.4 (available via lsprof?)
Jason Kirtland [Mon, 7 Apr 2008 22:17:42 +0000 (22:17 +0000)] 
- Avoid cProfile on 2.4 (available via lsprof?)

18 years agoremove unneeded compile assertion test, doesn't work on MySQL
Mike Bayer [Mon, 7 Apr 2008 21:53:13 +0000 (21:53 +0000)] 
remove unneeded compile assertion test, doesn't work on MySQL

18 years ago*headslap* those mutators cant mutate the collections except for never-generated...
Mike Bayer [Mon, 7 Apr 2008 20:44:39 +0000 (20:44 +0000)] 
*headslap* those mutators cant mutate the collections except for never-generated selectables; its not worth it

18 years ago- removed ancient assertion that mapped selectables require
Mike Bayer [Mon, 7 Apr 2008 19:49:41 +0000 (19:49 +0000)] 
- removed ancient assertion that mapped selectables require
"alias names" - the mapper creates its own alias now if
none is present.  Though in this case you need to use
the class, not the mapped selectable, as the source of
column attributes - so a warning is still issued.

18 years agosome fk fixes for PG
Mike Bayer [Mon, 7 Apr 2008 01:15:37 +0000 (01:15 +0000)] 
some fk fixes for PG

18 years ago- merged -r4458:4466 of query_columns branch
Mike Bayer [Mon, 7 Apr 2008 01:12:44 +0000 (01:12 +0000)] 
- merged -r4458:4466 of query_columns branch
- this branch changes query.values() to immediately return an iterator, adds a new "aliased" construct which will be the primary method to get at aliased columns when using values()
- tentative ORM versions of _join and _outerjoin are not yet public, would like to integrate with Query better (work continues in the branch)
- lots of fixes to expressions regarding cloning and correlation.  Some apparent ORM bug-workarounds removed.
- to fix a recursion issue with anonymous identifiers, bind parameters generated against columns now just use the name of the column instead of the tablename_columnname label (plus the unique integer counter).  this way expensive recursive schemes aren't needed for the anon identifier logic.   This, as usual, impacted a ton of compiler unit tests which needed a search-n-replace for the new bind names.

18 years agorefined "local_remote_pairs" a bit to account for the same columns repeated multiple...
Mike Bayer [Fri, 4 Apr 2008 20:21:03 +0000 (20:21 +0000)] 
refined "local_remote_pairs" a bit to account for the same columns repeated multiple times

18 years ago- Pool listeners may now be specified as a duck-type of PoolListener or a dict of...
Jason Kirtland [Fri, 4 Apr 2008 19:07:30 +0000 (19:07 +0000)] 
- Pool listeners may now be specified as a duck-type of PoolListener or a dict of callables, your choice.

18 years agofactored down exportable_columns/flatten_cols/proxy_column/oid_etc_yada down to a...
Mike Bayer [Fri, 4 Apr 2008 18:41:08 +0000 (18:41 +0000)] 
factored down exportable_columns/flatten_cols/proxy_column/oid_etc_yada down to a single, streamlined "_populate_column_collection" method called for all selectables

18 years agofixed union() bug whereby oid_column would not be available if no oid_column in embed...
Mike Bayer [Fri, 4 Apr 2008 16:06:58 +0000 (16:06 +0000)] 
fixed union() bug whereby oid_column would not be available if no oid_column in embedded selects

18 years agobump
Mike Bayer [Fri, 4 Apr 2008 02:11:56 +0000 (02:11 +0000)] 
bump

18 years agoYep. rel_0_4_5
Jason Kirtland [Fri, 4 Apr 2008 00:58:11 +0000 (00:58 +0000)] 
Yep.

18 years ago- ReST fixes
Mike Bayer [Fri, 4 Apr 2008 00:49:13 +0000 (00:49 +0000)] 
- ReST fixes
- reverted strange jeklike symbol syntax

18 years ago- changed the name to "local/remote pairs"
Mike Bayer [Fri, 4 Apr 2008 00:31:00 +0000 (00:31 +0000)] 
- changed the name to "local/remote pairs"
- added closing ' to symbol str()  (I'm assuming it's supposed to be that way)

18 years ago- merged sync_simplify branch
Mike Bayer [Fri, 4 Apr 2008 00:21:28 +0000 (00:21 +0000)] 
- merged sync_simplify branch
- The methodology behind "primaryjoin"/"secondaryjoin" has
been refactored.  Behavior should be slightly more
intelligent, primarily in terms of error messages which
have been pared down to be more readable.  In a slight
number of scenarios it can better resolve the correct
foreign key than before.
- moved collections unit test from relationships.py to collection.py
- PropertyLoader now has "synchronize_pairs" and "equated_pairs"
collections which allow easy access to the source/destination
parent/child relation between columns (might change names)
- factored out ClauseSynchronizer (finally)
- added many more tests for priamryjoin/secondaryjoin
error checks

18 years ago- microcleanup
Jason Kirtland [Thu, 3 Apr 2008 17:32:22 +0000 (17:32 +0000)] 
- microcleanup

18 years ago- Experimental: prefer cProfile over hotspot for 2.5+
Jason Kirtland [Thu, 3 Apr 2008 17:08:08 +0000 (17:08 +0000)] 
- Experimental: prefer cProfile over hotspot for 2.5+
- The latest skirmish in the battle against zoomark and sanity:
  3rd party code is factored out in the function call count canary tests

18 years agoA couple of usage examples for the case statement
Ants Aasma [Thu, 3 Apr 2008 16:54:26 +0000 (16:54 +0000)] 
A couple of usage examples for the case statement

18 years ago- case() interprets the "THEN" expressions
Mike Bayer [Thu, 3 Apr 2008 16:34:03 +0000 (16:34 +0000)] 
- case() interprets the "THEN" expressions
as values by default, meaning case([(x==y, "foo")]) will
interpret "foo" as a bound value, not a SQL expression.
use text(expr) for literal SQL expressions in this case.
For the criterion itself, these may be literal strings
only if the "value" keyword is present, otherwise SA
will force explicit usage of either text() or literal().

18 years agosome cleanup, some method privating, some pep8, fixed up _col_aggregate and merged
Mike Bayer [Thu, 3 Apr 2008 16:25:47 +0000 (16:25 +0000)] 
some cleanup, some method privating, some pep8, fixed up _col_aggregate and merged
its functionality with _count()

18 years agoThe case() function now also takes a dictionary as its whens parameter. But beware...
Ants Aasma [Thu, 3 Apr 2008 14:08:22 +0000 (14:08 +0000)] 
The case() function now also takes a dictionary as its whens parameter. But beware that it doesn't escape literals, use the literal construct for that.

18 years ago- Added some convenience descriptors to Query:
Mike Bayer [Thu, 3 Apr 2008 13:12:42 +0000 (13:12 +0000)] 
- Added some convenience descriptors to Query:
query.statement returns the full SELECT construct,
query.whereclause returns just the WHERE part of the
SELECT construct.