]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
14 years ago- merge mapper simpler compile branch, [ticket:1966]
Mike Bayer [Fri, 26 Nov 2010 21:28:41 +0000 (16:28 -0500)] 
- merge mapper simpler compile branch, [ticket:1966]

14 years ago- fixes for PG, mysql, twophase
Mike Bayer [Sat, 20 Nov 2010 22:57:30 +0000 (17:57 -0500)] 
- fixes for PG, mysql, twophase
- added "pool_events" arg to create_engine(), "events" to pool, allowing
establishment of listeners which fire before those of the dialect

14 years ago- logging has been overhauled such that engines no longer need to encode the
Mike Bayer [Sat, 20 Nov 2010 21:28:39 +0000 (16:28 -0500)] 
- logging has been overhauled such that engines no longer need to encode the
"hex id" string in their logging name in order to maintain separate loggers
per engine. thanks to Vinay Sajip for assistance.  merge of [ticket:1926]

14 years ago- the column assigned to polymorphic_on now behaves like any other
Mike Bayer [Sat, 20 Nov 2010 21:25:12 +0000 (16:25 -0500)] 
- the column assigned to polymorphic_on now behaves like any other
mapped attribute, in that it can be assigned to, mapped to multiple
columns.  It is also populated immediately upon object construction
with its class-based value, so the attribute can be read before
any flush occurs.  [ticket:1895]

14 years ago- bindparam() gets a new option "callable", which is a lambda or def
Mike Bayer [Sat, 20 Nov 2010 20:43:12 +0000 (15:43 -0500)] 
- bindparam() gets a new option "callable", which is a lambda or def
evaluated at execution time to determine the value.  This replaces
the implicit recognition of callables sent as the primary value
of bindparam(), which was an undocumented behavior used by the ORM.
The argument is separated now so that values can be passed to
bindparams that are also callables without ambiguity, such
as user defined objects that include a __call__() method.
[ticket:1950]

14 years ago- merge FromObj cleanup, immutable .c attribute patch, [ticket:1917]
Mike Bayer [Sat, 20 Nov 2010 20:35:43 +0000 (15:35 -0500)] 
- merge FromObj cleanup, immutable .c attribute patch, [ticket:1917]

14 years ago- merge metadata/schema/declarative branch, [ticket:1893]
Mike Bayer [Sat, 20 Nov 2010 20:30:12 +0000 (15:30 -0500)] 
- merge metadata/schema/declarative branch, [ticket:1893]

14 years ago- add distinct tests for mapping to join with "exclude" prop versus "explicit",
Mike Bayer [Sat, 20 Nov 2010 20:28:18 +0000 (15:28 -0500)] 
- add distinct tests for mapping to join with "exclude" prop versus "explicit",
should be the last thing needed for [ticket:1896], related to [ticket:1892]

14 years ago- merge no-save-cascade collection flushes branch, [ticket:1973]
Mike Bayer [Sat, 20 Nov 2010 20:11:12 +0000 (15:11 -0500)] 
- merge no-save-cascade collection flushes branch, [ticket:1973]

14 years agoone more orphan test
Mike Bayer [Sat, 20 Nov 2010 19:56:27 +0000 (14:56 -0500)] 
one more orphan test

14 years ago- the in-flush check for "pending orphan being flushed" has been removed.
Mike Bayer [Sat, 20 Nov 2010 19:52:21 +0000 (14:52 -0500)] 
- the in-flush check for "pending orphan being flushed" has been removed.
It's now possible to issue INSERT for an object that would otherwise
be an orphan due to no parent object specified, along a relationship
that specifies "delete-orphan" cascade.  The detection of this condition
as an error should now be accomplished via NOT NULL foreign keys.
[ticket:1912]

14 years ago- merge reverse inheriting col order, [ticket:1892]
Mike Bayer [Sat, 20 Nov 2010 18:49:17 +0000 (13:49 -0500)] 
- merge reverse inheriting col order, [ticket:1892]

14 years ago- the ordering of columns in a multi-column property now is in
Mike Bayer [Sat, 20 Nov 2010 18:44:03 +0000 (13:44 -0500)] 
- the ordering of columns in a multi-column property now is in
  reverse order of which they were added to the property. A
  typical effect of this is that the ".id" attribute on a
  joined-inheritance subclass, where both parent/child tables
  name the PK column ".id", will reference the ".id" column of
  the child table, not the parent, thus allowing join conditions
  and such to be constructed more intuitively. This is a
  behavior change for some joined-table inheritance queries.
  [ticket:1892]
- it's now an error condition to map to a join where multiple
  same-named columns from each table combine themselves
  implicitly. An explicit mention in the "properties" dictionary
  should be specified, using a list of columns, or
  column_property(*cols) with declarative. [ticket:1892]

14 years ago- merge limit/offset as binds branch, [ticket:805]
Mike Bayer [Sat, 20 Nov 2010 17:57:51 +0000 (12:57 -0500)] 
- merge limit/offset as binds branch, [ticket:805]

14 years ago- merge hybrid attributes branch, [ticket:1903]
Mike Bayer [Sat, 20 Nov 2010 17:55:46 +0000 (12:55 -0500)] 
- merge hybrid attributes branch, [ticket:1903]

14 years ago- merge events branch, [ticket:1902]
Mike Bayer [Sat, 20 Nov 2010 16:39:44 +0000 (11:39 -0500)] 
- merge events branch, [ticket:1902]

14 years ago- repair remaining tests
Mike Bayer [Sat, 20 Nov 2010 16:35:16 +0000 (11:35 -0500)] 
- repair remaining tests

14 years ago- modernize MutableTypesTest, add tests for expired/deferred to establish 0.6 behavior
Mike Bayer [Fri, 19 Nov 2010 23:49:06 +0000 (18:49 -0500)] 
- modernize MutableTypesTest, add tests for expired/deferred to establish 0.6 behavior
regarding [ticket:1976]

14 years ago- active_history flag also added to composite().
Mike Bayer [Fri, 19 Nov 2010 23:44:09 +0000 (18:44 -0500)] 
- active_history flag also added to composite().
The flag has no effect in 0.6, but is instead
a placeholder flag for forwards compatibility,
as it will be needed in 0.7 for composites.
[ticket:1976]

14 years agoskip on 2.4
Mike Bayer [Fri, 19 Nov 2010 01:12:24 +0000 (20:12 -0500)] 
skip on 2.4

14 years ago- remove really old, redundant test
Mike Bayer [Fri, 19 Nov 2010 00:21:37 +0000 (19:21 -0500)] 
- remove really old, redundant test

14 years agomerge tip
Mike Bayer [Fri, 19 Nov 2010 00:01:42 +0000 (19:01 -0500)] 
merge tip

14 years agomerge tip
Mike Bayer [Fri, 19 Nov 2010 00:01:17 +0000 (19:01 -0500)] 
merge tip

14 years agomerge tip
Mike Bayer [Thu, 18 Nov 2010 23:54:48 +0000 (18:54 -0500)] 
merge tip

14 years agomerge tip
Mike Bayer [Thu, 18 Nov 2010 23:53:46 +0000 (18:53 -0500)] 
merge tip

14 years agomerge tip
Mike Bayer [Thu, 18 Nov 2010 23:53:29 +0000 (18:53 -0500)] 
merge tip

14 years agomerge tip
Mike Bayer [Thu, 18 Nov 2010 23:52:51 +0000 (18:52 -0500)] 
merge tip

14 years agomerge tip
Mike Bayer [Thu, 18 Nov 2010 23:50:24 +0000 (18:50 -0500)] 
merge tip

14 years agomerge tip
Mike Bayer [Thu, 18 Nov 2010 23:49:42 +0000 (18:49 -0500)] 
merge tip

14 years ago- Added as_uuid=True flag to the UUID type, will receive
Mike Bayer [Thu, 18 Nov 2010 23:44:35 +0000 (18:44 -0500)] 
- Added as_uuid=True flag to the UUID type, will receive
and return values as Python UUID() objects rather than
strings.  Currently, the UUID type is only known to
work with psycopg2.  [ticket:1956]

14 years ago- Ensured every numeric, float, int code, scalar + array,
Mike Bayer [Thu, 18 Nov 2010 23:10:03 +0000 (18:10 -0500)] 
- Ensured every numeric, float, int code, scalar + array,
are recognized by psycopg2 and pg8000's "numeric"
base type. [ticket:1955]

14 years ago- fix test specification for oracle euro test
Mike Bayer [Thu, 18 Nov 2010 20:03:25 +0000 (15:03 -0500)] 
- fix test specification for oracle euro test

14 years ago- Added active_history flag to relationship()
Mike Bayer [Thu, 18 Nov 2010 19:55:19 +0000 (14:55 -0500)] 
- Added active_history flag to relationship()
and column_property(), forces attribute events to
always load the "old" value, so that it's available to
attributes.get_history(). [ticket:1961]
- modernize test_relationship, give test classes meaningful names

14 years ago- The mapper argument "primary_key" can be passed as a
Mike Bayer [Thu, 18 Nov 2010 17:33:25 +0000 (12:33 -0500)] 
- The mapper argument "primary_key" can be passed as a
single column as well as a list or tuple.  [ticket:1971]

14 years ago- The cx_oracle "decimal detection" logic, which takes place
Mike Bayer [Thu, 18 Nov 2010 17:19:31 +0000 (12:19 -0500)] 
- The cx_oracle "decimal detection" logic, which takes place
for for result set columns with ambiguous numeric characteristics,
now uses the decimal point character determined by the locale/
NLS_LANG setting, using an on-first-connect detection of
this character.  cx_oracle 5.0.3 or greater is also required
when using a non-period-decimal-point NLS_LANG setting.
[ticket:1953].

14 years ago- establish a consistent pattern of behavior along o2m, m2m, and m2o relationships
Mike Bayer [Thu, 18 Nov 2010 00:34:47 +0000 (19:34 -0500)] 
- establish a consistent pattern of behavior along o2m, m2m, and m2o relationships
when "save-update" cascade is disabled, or the target object is otherwise not
present in the session, and collection/scalar changes have taken place.  A warning
is emitted describing the type of operation, the target reference, and the relationship
description, stating that the operation will not take place.  The operation then doesn't
take place.   [ticket:1973]
- clean up test_cascade a little bit, remove cruft

14 years ago- initial patch for [ticket:1926]
Mike Bayer [Wed, 17 Nov 2010 22:54:52 +0000 (17:54 -0500)] 
- initial patch for [ticket:1926]

14 years ago- An error is raised if __table_args__ is not in tuple
Mike Bayer [Wed, 17 Nov 2010 15:55:10 +0000 (10:55 -0500)] 
- An error is raised if __table_args__ is not in tuple
or dict format, and is not None.  [ticket:1972]

14 years ago- primary_key arg to mapper() is a list
Mike Bayer [Tue, 16 Nov 2010 22:42:18 +0000 (17:42 -0500)] 
- primary_key arg to mapper() is a list
- other modernizations to mapper() doc

14 years ago- adapt initial patch from [ticket:1917] to current tip
Mike Bayer [Tue, 16 Nov 2010 20:53:14 +0000 (15:53 -0500)] 
- adapt initial patch from [ticket:1917] to current tip
- raise TypeError for immutability

14 years ago[ticket:1893] implementation
Mike Bayer [Tue, 16 Nov 2010 00:05:48 +0000 (19:05 -0500)] 
[ticket:1893] implementation

14 years ago[ticket:1966] implementation
Mike Bayer [Tue, 16 Nov 2010 00:05:23 +0000 (19:05 -0500)] 
[ticket:1966] implementation

14 years ago- Added a bind processor for booleans which coerces
Mike Bayer [Mon, 15 Nov 2010 17:40:55 +0000 (12:40 -0500)] 
- Added a bind processor for booleans which coerces
to int, for DBAPIs such as pymssql that naively call
str() on values.

14 years ago- Fixed indexing of Query objects by -1. It was erroneously
Mike Bayer [Mon, 15 Nov 2010 14:55:43 +0000 (09:55 -0500)] 
- Fixed indexing of Query objects by -1. It was erroneously
transformed to the empty slice -1:0 that resulted in
IndexError. [ticket:1968]

14 years ago- add a few choice TypeDecorator recipes
Mike Bayer [Mon, 15 Nov 2010 14:12:45 +0000 (09:12 -0500)] 
- add a few choice TypeDecorator recipes

14 years agomerge tip
Mike Bayer [Sun, 14 Nov 2010 23:25:13 +0000 (18:25 -0500)] 
merge tip

14 years agomerge tip
Mike Bayer [Sun, 14 Nov 2010 22:54:47 +0000 (17:54 -0500)] 
merge tip

14 years agomerge tip
Mike Bayer [Sun, 14 Nov 2010 22:53:57 +0000 (17:53 -0500)] 
merge tip

14 years ago- SessionEvents is on board and the event model is done, can start building 0.7 tip...
Mike Bayer [Sun, 14 Nov 2010 22:51:54 +0000 (17:51 -0500)] 
- SessionEvents is on board and the event model is done, can start building 0.7 tip soon

14 years ago- event documentation bonanza
Mike Bayer [Sun, 14 Nov 2010 20:54:37 +0000 (15:54 -0500)] 
- event documentation bonanza

14 years ago- add helpstring for site-mako
Mike Bayer [Sun, 14 Nov 2010 19:02:11 +0000 (14:02 -0500)] 
- add helpstring for site-mako

14 years ago- pool event tests that don't depend on deprecated listener system,
Mike Bayer [Sun, 14 Nov 2010 18:59:03 +0000 (13:59 -0500)] 
- pool event tests that don't depend on deprecated listener system,
attempting "test just one thing" style
- reorganize fixtures to come primarily from the base test class

14 years ago- The 'info' attribute of Column is copied during
Mike Bayer [Sun, 14 Nov 2010 17:42:34 +0000 (12:42 -0500)] 
- The 'info' attribute of Column is copied during
Column.copy(), i.e. as occurs when using columns
in declarative mixins.  [ticket:1967]

14 years agomerge tip
Mike Bayer [Sat, 13 Nov 2010 20:53:32 +0000 (15:53 -0500)] 
merge tip

14 years ago- move inline "import" statements to use new "util.importlater()" construct. cuts
Mike Bayer [Sat, 13 Nov 2010 18:19:36 +0000 (13:19 -0500)] 
- move inline "import" statements to use new "util.importlater()" construct.  cuts
down on clutter, timeit says there's a teeny performance gain, at least where
the access is compared against attr.subattr.  these aren't super-critical
calls anyway
- slight inlining in _class_to_mapper

14 years ago- additional fix for [ticket:1964]
Mike Bayer [Sat, 13 Nov 2010 17:05:13 +0000 (12:05 -0500)] 
- additional fix for [ticket:1964]
- [ticket:1965] is invalid

14 years ago- nose3 seems to support "addplugins" now
Mike Bayer [Sat, 13 Nov 2010 16:26:05 +0000 (11:26 -0500)] 
- nose3 seems to support "addplugins" now
- add a note about sqla_nose.py

14 years agocomment
Mike Bayer [Sat, 13 Nov 2010 16:18:18 +0000 (11:18 -0500)] 
comment

14 years ago- On the same theme, the REFERENCES clause in a CREATE TABLE
Mike Bayer [Fri, 12 Nov 2010 15:49:17 +0000 (10:49 -0500)] 
- On the same theme, the REFERENCES clause in a CREATE TABLE
that includes a remote schema to a *different* schema
than that of the parent table doesn't render at all,
as cross-schema references do not appear to be supported.

14 years ago- The REFERENCES clause in a CREATE TABLE that includes
Mike Bayer [Fri, 12 Nov 2010 15:36:03 +0000 (10:36 -0500)] 
- The REFERENCES clause in a CREATE TABLE that includes
a remote schema name now renders the remote name without
the schema clause, as required by SQLite.  [ticket:1851]

14 years agowhoopsie
Mike Bayer [Fri, 12 Nov 2010 00:27:35 +0000 (19:27 -0500)] 
whoopsie

14 years ago- Fixed bug regarding "subqueryload" strategy whereby
Mike Bayer [Fri, 12 Nov 2010 00:15:26 +0000 (19:15 -0500)] 
- Fixed bug regarding "subqueryload" strategy whereby
strategy would fail if the entity was an aliased()
construct.  [ticket:1964]

14 years agomore docs
Mike Bayer [Thu, 11 Nov 2010 00:19:53 +0000 (19:19 -0500)] 
more docs

14 years ago- move deprecated interfaces down to bottom of TOC, update verbiage
Mike Bayer [Thu, 11 Nov 2010 00:00:28 +0000 (19:00 -0500)] 
- move deprecated interfaces down to bottom of TOC, update verbiage
- more docs for engine, pool, DDL events
- update DDL sequences documentation to use events
- update DDL() docstring to refer to execute_if()
- document parameters for DDLElement.execute_if()
- add retval=True flag to Engine.on_before_execute(), on_before_cursor_execute().
wrap the function if retval=False, check for appropriate usage of the flag, add
tests.
- remove ScopedSession.mapper and tests entirely
- remove ExtensionCarrier and tests
- change remaining tests that use MapperExtension to use MapperEvents

14 years ago- basic docs
Mike Bayer [Tue, 9 Nov 2010 22:35:24 +0000 (17:35 -0500)] 
- basic docs
- poolevent accepts Engine as a target

14 years ago- adapted MapperExtensionTest into MapperEventsTest
Mike Bayer [Tue, 9 Nov 2010 21:06:34 +0000 (16:06 -0500)] 
- adapted MapperExtensionTest into MapperEventsTest

14 years agostupid tab got committed
Mike Bayer [Tue, 9 Nov 2010 17:19:11 +0000 (12:19 -0500)] 
stupid tab got committed

14 years agoadd a note to use column_property with declarative map to a join
Mike Bayer [Tue, 9 Nov 2010 17:09:41 +0000 (12:09 -0500)] 
add a note to use column_property with declarative map to a join

14 years ago- and fix everything from the last checkin that breaks on py 2.4, 2.5
Mike Bayer [Tue, 9 Nov 2010 16:46:52 +0000 (11:46 -0500)] 
- and fix everything from the last checkin that breaks on py 2.4, 2.5

14 years ago- Implemented sequence check capability for the C
Mike Bayer [Tue, 9 Nov 2010 16:40:23 +0000 (11:40 -0500)] 
- Implemented sequence check capability for the C
version of RowProxy, as well as 2.7 style
"collections.Sequence" registration for RowProxy.
[ticket:1871]

14 years agoding
Mike Bayer [Sun, 7 Nov 2010 17:54:54 +0000 (12:54 -0500)] 
ding

14 years ago- propagate flag on event.listen() results in the listener being placed
Mike Bayer [Sun, 7 Nov 2010 17:49:48 +0000 (12:49 -0500)] 
- propagate flag on event.listen() results in the listener being placed
in a separate collection.  this collection also propagates during update()
- ClassManager now handles bases, subclasses collections.
- ClassManager looks at __bases__ instead of __mro__ for superclasses.
It's assumed ClassManagers are in an unbroken chain upwards through __mro__.
- trying to get a clear() that makes sense on cls.dispatch
- implemented propagate for attribute events, plus permutation-based test
- implemented propagate for mapper / instance events with rudimentary test
- some pool events tests are failing for some reason

14 years ago- attempting system of propagation. getting stuck on attempting to use instance...
Mike Bayer [Sat, 6 Nov 2010 21:34:54 +0000 (17:34 -0400)] 
- attempting system of propagation.   getting stuck on attempting to use instance methods as listeners.

14 years agoa little cleanup, but we probably need a generalized "propagate" mechanism
Mike Bayer [Sat, 6 Nov 2010 21:19:08 +0000 (17:19 -0400)] 
a little cleanup, but we probably need a generalized "propagate" mechanism

14 years ago- most tests passing on adapted MapperExtension
Mike Bayer [Sat, 6 Nov 2010 20:43:48 +0000 (16:43 -0400)] 
- most tests passing on adapted MapperExtension

14 years ago- nearly complete implementation of MapperEvents, tests still failing and optimizatio...
Mike Bayer [Sat, 6 Nov 2010 18:30:15 +0000 (14:30 -0400)] 
- nearly complete implementation of MapperEvents, tests still failing and optimizations needed

14 years ago- merge tip
Mike Bayer [Sat, 6 Nov 2010 15:49:45 +0000 (11:49 -0400)] 
- merge tip

14 years ago- "innerjoin" flag doesn't take effect along the chain
Mike Bayer [Fri, 5 Nov 2010 05:02:48 +0000 (01:02 -0400)] 
- "innerjoin" flag doesn't take effect along the chain
of joinedload() joins if a previous join in that chain
is an outer join, thus allowing primary rows without
a referenced child row to be correctly returned
in results.  [ticket:1954]

14 years ago- mysql
Mike Bayer [Wed, 3 Nov 2010 19:45:21 +0000 (15:45 -0400)] 
- mysql
  - Fixed error handling for Jython + zxjdbc, such that
    has_table() property works again.  Regression from
    0.6.3 (we don't have a Jython buildbot, sorry)
    [ticket:1960]

14 years agofurther edits
Mike Bayer [Mon, 1 Nov 2010 20:07:47 +0000 (16:07 -0400)] 
further edits

14 years ago- write a new section describing the "subtransactions=True" flag in full detail
Mike Bayer [Mon, 1 Nov 2010 19:59:53 +0000 (15:59 -0400)] 
- write a new section describing the "subtransactions=True" flag in full detail

14 years ago- Fixed bug whereby a non-"mutable" attribute modified event
Mike Bayer [Tue, 26 Oct 2010 20:12:04 +0000 (16:12 -0400)] 
- Fixed bug whereby a non-"mutable" attribute modified event
which occurred on an object that was clean except for
preceding mutable attribute changes would fail to strongly
reference itself in the identity map. This would cause the
object to be garbage collected, losing track of any changes
that weren't previously saved in the "mutable changes"
dictionary.

14 years ago- engine status updates
Mike Bayer [Sun, 24 Oct 2010 20:08:14 +0000 (16:08 -0400)] 
- engine status updates

14 years agoAdded tag rel_0_6_5 for changeset b96e6232a42918692e95b32b7dd3723cd4a242bb
Mike Bayer [Sun, 24 Oct 2010 17:39:11 +0000 (13:39 -0400)] 
Added tag rel_0_6_5 for changeset b96e6232a42918692e95b32b7dd3723cd4a242bb

14 years agocleanup most egregiously long lines rel_0_6_5
Mike Bayer [Sun, 24 Oct 2010 17:26:34 +0000 (13:26 -0400)] 
cleanup most egregiously long lines

14 years ago- remove remaining create_session() calls from examples, replace with Session
Mike Bayer [Sun, 24 Oct 2010 16:42:47 +0000 (12:42 -0400)] 
- remove remaining create_session() calls from examples, replace with Session
- replace all flush()/expunge_all() with commit()

14 years ago- mssql+pymssql dialect now honors the "port" portion
Mike Bayer [Sun, 24 Oct 2010 16:00:58 +0000 (12:00 -0400)] 
- mssql+pymssql dialect now honors the "port" portion
of the URL instead of discarding it.  [ticket:1952]
- testing.only_on() accepts db specs optionally as a list

14 years ago- Rewrote the reflection of indexes to use sys.
Mike Bayer [Sat, 23 Oct 2010 22:09:36 +0000 (18:09 -0400)] 
- Rewrote the reflection of indexes to use sys.
catalogs, so that column names of any configuration
(spaces, embedded commas, etc.) can be reflected.
Note that reflection of indexes requires SQL
Server 2005 or greater.  [ticket:1770]

14 years ago- make a futile attempt to combat the needless usage of clear_mappers() in the wild,
Mike Bayer [Sat, 23 Oct 2010 21:09:53 +0000 (17:09 -0400)] 
- make a futile attempt to combat the needless usage of clear_mappers() in the wild,
[ticket:1861]

14 years ago- Added type_coerce(expr, type_) expression element.
Mike Bayer [Sat, 23 Oct 2010 20:40:39 +0000 (16:40 -0400)] 
- Added type_coerce(expr, type_) expression element.
Treats the given expression as the given type when evaluating
expressions and processing result rows, but does not
affect the generation of SQL, other than an anonymous label.

14 years ago- Oracle - the implicit_retunring argument to create_engine()
Mike Bayer [Sat, 23 Oct 2010 19:27:21 +0000 (15:27 -0400)] 
- Oracle - the implicit_retunring argument to create_engine()
is now honored regardless of detected version of
Oracle.  Previously, the flag would be forced
to False if server version info was < 10.
[ticket:1878]

14 years agofix typo
Mike Bayer [Sat, 23 Oct 2010 17:43:39 +0000 (13:43 -0400)] 
fix typo

14 years ago- New Query methods: query.label(name), query.as_scalar(),
Mike Bayer [Sat, 23 Oct 2010 17:07:56 +0000 (13:07 -0400)] 
- New Query methods: query.label(name), query.as_scalar(),
return the query's statement as a scalar subquery
with /without label [ticket:1920];
query.with_entities(*ent), replaces the SELECT list of
the query with new entities.
Roughly equivalent to a generative form of query.values()
which accepts mapped entities as well as column
expressions.

14 years ago- A mixin can now specify a column that overrides
Mike Bayer [Thu, 21 Oct 2010 20:54:39 +0000 (16:54 -0400)] 
- A mixin can now specify a column that overrides
a column of the same name associated with a superclass.
Thanks to Oystein Haaland.

14 years ago- Fixed bug in TypeDecorator whereby the dialect-specific
Mike Bayer [Thu, 21 Oct 2010 20:42:32 +0000 (16:42 -0400)] 
- Fixed bug in TypeDecorator whereby the dialect-specific
type was getting pulled in to generate the DDL for a
given type, which didn't always return the correct result.

- TypeDecorator can now have a fully constructed type
specified as its "impl", in addition to a type class.

- TypeDecorator will now place itself as the resulting
type for a binary expression where the type coercion
rules would normally return its impl type - previously,
a copy of the impl type would be returned which would
have the TypeDecorator embedded into it as the "dialect"
impl, this was probably an unintentional way of achieving
the desired effect.

- TypeDecorator.load_dialect_impl() returns "self.impl" by
default, i.e. not the dialect implementation type of
"self.impl".   This to support compilation correctly.
Behavior can be user-overridden in exactly the same way
as before to the same effect.

14 years ago- document is_modified() caveats including that the "old" value isn't always
Mike Bayer [Wed, 20 Oct 2010 21:58:35 +0000 (17:58 -0400)] 
- document is_modified() caveats including that the "old" value isn't always
present, and that this results in a positive response for "changed"
[ticket:1928]

14 years ago- Fixed mysql bug involving reflection of CURRENT_TIMESTAMP
Mike Bayer [Wed, 20 Oct 2010 21:44:35 +0000 (17:44 -0400)] 
- Fixed mysql bug involving reflection of CURRENT_TIMESTAMP
default used with ON UPDATE clause, thanks to
Taavi Burns [ticket:1940]

14 years ago- Fixed bug which prevented "domain" built from a
Mike Bayer [Wed, 20 Oct 2010 21:28:08 +0000 (17:28 -0400)] 
- Fixed bug which prevented "domain" built from a
custom type such as "enum" from being reflected.
[ticket:1933]

14 years agomerge tip
Mike Bayer [Wed, 20 Oct 2010 20:22:30 +0000 (16:22 -0400)] 
merge tip

14 years ago- Added "as_tuple" flag to pg ARRAY type, returns results
Mike Bayer [Wed, 20 Oct 2010 20:17:17 +0000 (16:17 -0400)] 
- Added "as_tuple" flag to pg ARRAY type, returns results
as tuples instead of lists to allow hashing.