]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
14 years agodoc edits
Mike Bayer [Thu, 23 Sep 2010 03:48:17 +0000 (23:48 -0400)] 
doc edits

14 years ago- in depth docs about some merge() tips
Mike Bayer [Wed, 22 Sep 2010 18:22:16 +0000 (14:22 -0400)] 
- in depth docs about some merge() tips
- docs about backref cascade
- Another new flag on relationship(), cascade_backrefs,
disables the "save-update" cascade when the event was
initiated on the "reverse" side of a bidirectional
relationship.   This is a cleaner behavior so that
many-to-ones can be set on a transient object without
it getting sucked into the child object's session,
while still allowing the forward collection to
cascade.   We *might* default this to False in 0.7.

14 years ago- Query.select_from() has been beefed up to help
Mike Bayer [Tue, 21 Sep 2010 22:09:29 +0000 (18:09 -0400)] 
- Query.select_from() has been beefed up to help
ensure that a subsequent call to query.join()
will use the select_from() entity, assuming it's
a mapped entity and not a plain selectable,
as the default "left" side, not the first entity
in the Query object's list of entities.

14 years agouse default dialect for compile tests
Mike Bayer [Tue, 21 Sep 2010 15:12:33 +0000 (11:12 -0400)] 
use default dialect for compile tests

14 years ago- the logging message emitted by the engine when
Mike Bayer [Tue, 21 Sep 2010 15:10:07 +0000 (11:10 -0400)] 
- the logging message emitted by the engine when
a connection is first used is now "BEGIN (implicit)"
to emphasize that DBAPI has no explicit begin().

14 years ago- Patched a case where query.join() would adapt the
Mike Bayer [Tue, 21 Sep 2010 14:11:10 +0000 (10:11 -0400)] 
- Patched a case where query.join() would adapt the
right side to the right side of the left's join
inappropriately [ticket:1925]

14 years ago- scoped_session emits a warning when configure() is
Mike Bayer [Tue, 21 Sep 2010 13:33:30 +0000 (09:33 -0400)] 
- scoped_session emits a warning when configure() is
called if a Session is already present (checks only the
current thread) [ticket:1924]

14 years ago- @classproperty (soon/now @mapperproperty) takes effect for
Mike Bayer [Mon, 20 Sep 2010 16:00:14 +0000 (12:00 -0400)] 
- @classproperty (soon/now @mapperproperty) takes effect for
__mapper_args__, __table_args__, __tablename__ on
a base class that is not a mixin, as well as mixins.
[ticket:1922]

14 years ago- as_scalar(), label() can be called on a selectable
Mike Bayer [Sat, 18 Sep 2010 17:34:04 +0000 (13:34 -0400)] 
- as_scalar(), label() can be called on a selectable
which contains a Column that is not yet named.
[ticket:1862]

14 years ago- An informative error message is raised if a Column
Mike Bayer [Sat, 18 Sep 2010 17:18:44 +0000 (13:18 -0400)] 
- An informative error message is raised if a Column
which has not yet been assigned a name, i.e. as in
declarative, is used in a context where it is
exported to the columns collection of an enclosing
select() construct, or if any construct involving
that column is compiled before its name is
assigned.  [ticket:1862]

14 years ago- add pk instructions for oracle
Mike Bayer [Sat, 18 Sep 2010 16:38:27 +0000 (12:38 -0400)] 
- add pk instructions for oracle

14 years agoadd oursql to has lastrowid
Mike Bayer [Sat, 18 Sep 2010 16:35:25 +0000 (12:35 -0400)] 
add oursql to has lastrowid

14 years ago- use "key in dict" rather than KeyError if the usual case
Mike Bayer [Sat, 18 Sep 2010 15:40:25 +0000 (11:40 -0400)] 
- use "key in dict" rather than KeyError if the usual case
is that the key is not present.
- don't need to uniquify Index schemes, just don't copy Indexes
that were known to be generated from the index=True flag
- user facing changes go in CHANGES
- Table.c allows string lookup

14 years agod.uh
Chris Withers [Fri, 17 Sep 2010 11:26:49 +0000 (12:26 +0100)] 
d.uh

14 years agomerge
Chris Withers [Thu, 16 Sep 2010 20:11:32 +0000 (21:11 +0100)] 
merge

14 years agoadd warning about dodgy use of tometadata
Chris Withers [Thu, 16 Sep 2010 20:10:17 +0000 (21:10 +0100)] 
add warning about dodgy use of tometadata

14 years agotometadata now copies indexes as well
Chris Withers [Thu, 16 Sep 2010 19:58:15 +0000 (20:58 +0100)] 
tometadata now copies indexes as well

14 years agomake sure kwargs are copied by tometadata
Chris Withers [Thu, 16 Sep 2010 19:03:18 +0000 (20:03 +0100)] 
make sure kwargs are copied by tometadata

14 years ago- Fixed a regression in 0.6.4 whereby the change that
Mike Bayer [Thu, 16 Sep 2010 15:29:01 +0000 (11:29 -0400)] 
- Fixed a regression in 0.6.4 whereby the change that
allowed cursor errors to be raised consistently broke
the result.lastrowid accessor.   Test coverage has
been added for result.lastrowid.   Note that lastrowid
is only supported by Pysqlite and some MySQL drivers,
so isn't super-useful in the general case.

14 years agohey lets pep-8 the setup.py file.
Mike Bayer [Thu, 16 Sep 2010 02:30:31 +0000 (22:30 -0400)] 
hey lets pep-8 the setup.py file.

14 years ago- fix test_single test to use default dialect
Mike Bayer [Thu, 16 Sep 2010 02:20:01 +0000 (22:20 -0400)] 
- fix test_single test to use default dialect
- The exception raised by Session when it is used
subsequent to a subtransaction rollback (which is what
happens when a flush fails in autocommit=False mode) has
now been reworded (this is the "inactive due to a
rollback in a subtransaction" message). In particular,
if the rollback was due to an exception during flush(),
the message states this is the case, and reiterates the
string form of the original exception that occurred
during flush. If the session is closed due to explicit
usage of subtransactions (not very common), the message
just states this is the case.

- The exception raised by Mapper when repeated requests to
its initialization are made after initialization already
failed no longer assumes the "hasattr" case, since
there's other scenarios in which this message gets
emitted, and the message also does not compound onto
itself multiple times - you get the same message for
each attempt at usage. The misnomer "compiles" is being
traded out for "initialize".

14 years agoder, 0.6.4
Mike Bayer [Wed, 15 Sep 2010 23:18:31 +0000 (19:18 -0400)] 
der, 0.6.4

14 years ago- Fixed a regression in 0.6.5 which occurred if you
Mike Bayer [Wed, 15 Sep 2010 23:17:14 +0000 (19:17 -0400)] 
- Fixed a regression in 0.6.5 which occurred if you
passed an empty list to "include_properties" on
mapper() [ticket:1918]

14 years agomerge tip
Mike Bayer [Wed, 15 Sep 2010 21:42:38 +0000 (17:42 -0400)] 
merge tip

14 years ago- add message to documentation stating that collection validators cannot
Mike Bayer [Wed, 15 Sep 2010 21:42:16 +0000 (17:42 -0400)] 
- add message to documentation stating that collection validators cannot
load the collection being validated. [ticket:1916]

14 years agoremove the quick select from 0.6
Mike Bayer [Wed, 15 Sep 2010 16:03:18 +0000 (12:03 -0400)] 
remove the quick select from 0.6

14 years agomerge tip
Mike Bayer [Tue, 14 Sep 2010 02:56:13 +0000 (22:56 -0400)] 
merge tip

14 years ago - Fixed bug that would prevent "subqueryload" from
Mike Bayer [Tue, 14 Sep 2010 02:55:54 +0000 (22:55 -0400)] 
  - Fixed bug that would prevent "subqueryload" from
    working correctly with single table inheritance
    for a relationship from a subclass - the "where
    type in (x, y, z)" only gets placed on the inside,
    instead of repeatedly.

  - When using from_self() with single table inheritance,
    the "where type in (x, y, z)" is placed on the outside
    of the query only, instead of repeatedly.   May make
    some more adjustments to this.

14 years agofix typo
Chris Withers [Mon, 13 Sep 2010 16:11:53 +0000 (17:11 +0100)] 
fix typo

14 years ago- adjustments for test success on postgresql, mysql
Mike Bayer [Mon, 13 Sep 2010 06:39:39 +0000 (02:39 -0400)] 
- adjustments for test success on postgresql, mysql

14 years ago- Fixed recursion bug which could occur when moving
Mike Bayer [Mon, 13 Sep 2010 06:09:38 +0000 (02:09 -0400)] 
- Fixed recursion bug which could occur when moving
an object from one reference to another, with
backrefs involved, where the initiating parent
was a subclass (with its own mapper) of the
previous parent.

14 years agomore docs on this
Mike Bayer [Sun, 12 Sep 2010 23:52:41 +0000 (19:52 -0400)] 
more docs on this

14 years agoneed this too
Mike Bayer [Sun, 12 Sep 2010 23:25:19 +0000 (19:25 -0400)] 
need this too

14 years agoturn this test back to what it was
Mike Bayer [Sun, 12 Sep 2010 23:24:40 +0000 (19:24 -0400)] 
turn this test back to what it was

14 years agomerge tip
Mike Bayer [Sun, 12 Sep 2010 23:18:29 +0000 (19:18 -0400)] 
merge tip

14 years ago- lazy loads for relationship attributes now use
Mike Bayer [Sun, 12 Sep 2010 23:18:08 +0000 (19:18 -0400)] 
- lazy loads for relationship attributes now use
the current state, not the "committed" state,
of foreign and primary key attributes
when issuing SQL, if a flush is not in process.
Previously, only the database-committed state would
be used.  In particular, this would cause a many-to-one
get()-on-lazyload operation to fail, as autoflush
is not triggered on these loads when the attributes are
determined and the "committed" state may not be
available.  [ticket:1910]

- A new flag on relationship(), load_on_pending, allows
the lazy loader to fire off on pending objects without a
flush taking place, as well as a transient object that's
been manually "attached" to the session. Note that this
flag blocks attribute events from taking place when an
object is loaded, so backrefs aren't available until
after a flush. The flag is only intended for very
specific use cases.

14 years ago- user-contributed .sty file now works with the latest sphinx, [ticket:1911]
Mike Bayer [Sun, 12 Sep 2010 16:49:30 +0000 (12:49 -0400)] 
- user-contributed .sty file now works with the latest sphinx, [ticket:1911]

14 years agomerge tip
Mike Bayer [Sun, 12 Sep 2010 16:38:15 +0000 (12:38 -0400)] 
merge tip

14 years ago - Slight improvement to the behavior of "passive_updates=False"
Mike Bayer [Sun, 12 Sep 2010 16:37:43 +0000 (12:37 -0400)] 
  - Slight improvement to the behavior of "passive_updates=False"
    when placed only on the many-to-one side of a
    relationship; documentation has been clarified
    that passive_updates=False should really be on the
    one-to-many side.

  - Placing passive_deletes=True on a many-to-one emits
    a warning, since you probably intended to put it on
    the one-to-many side.

14 years agotypo #2
Mike Bayer [Fri, 10 Sep 2010 00:08:47 +0000 (20:08 -0400)] 
typo #2

14 years agotypo
Mike Bayer [Fri, 10 Sep 2010 00:07:05 +0000 (20:07 -0400)] 
typo

14 years ago- collection docs
Mike Bayer [Thu, 9 Sep 2010 23:21:23 +0000 (19:21 -0400)] 
- collection docs
- Added an assertion during flush which ensures
that no NULL-holding identity keys were generated
on "newly persistent" objects.
This can occur when user defined code inadvertently
triggers flushes on not-fully-loaded objects.

14 years ago- add doc pages for exceptions
Mike Bayer [Thu, 9 Sep 2010 13:24:55 +0000 (09:24 -0400)] 
- add doc pages for exceptions

14 years agodoc edits
Mike Bayer [Thu, 9 Sep 2010 03:06:40 +0000 (23:06 -0400)] 
doc edits

14 years agoyou'll all miss the last of the ASCII art
Mike Bayer [Thu, 9 Sep 2010 02:39:11 +0000 (22:39 -0400)] 
you'll all miss the last of the ASCII art

14 years agoedits
Mike Bayer [Wed, 8 Sep 2010 19:43:24 +0000 (15:43 -0400)] 
edits

14 years agoarg, put the informix log in the wrong version
Mike Bayer [Tue, 7 Sep 2010 17:31:45 +0000 (13:31 -0400)] 
arg, put the informix log in the wrong version

14 years agoAdded tag rel_0_6_4 for changeset 992dd2c055dcff75953695d20813f43d858997d9
Mike Bayer [Tue, 7 Sep 2010 17:22:49 +0000 (13:22 -0400)] 
Added tag rel_0_6_4 for changeset 992dd2c055dcff75953695d20813f43d858997d9

14 years ago- Applied patches from [ticket:1904] to get rel_0_6_4
Mike Bayer [Tue, 7 Sep 2010 16:37:43 +0000 (12:37 -0400)] 
- Applied patches from [ticket:1904] to get
basic Informix functionality up again.  We
rely upon end-user testing to ensure that
Informix is working to some degree.

14 years ago- Added a mutex to the identity map which mutexes
Mike Bayer [Tue, 7 Sep 2010 16:16:29 +0000 (12:16 -0400)] 
- Added a mutex to the identity map which mutexes
remove operations against iteration methods,
which now pre-buffer before returning an
iterable.   This because asyncrhonous gc
can remove items via the gc thread at any time.
[ticket:1891]

14 years agoedits
Mike Bayer [Tue, 7 Sep 2010 16:04:50 +0000 (12:04 -0400)] 
edits

14 years ago- pending deprecation in 0.7 for the execute/scalar on clauseelement
Mike Bayer [Tue, 7 Sep 2010 15:57:19 +0000 (11:57 -0400)] 
- pending deprecation in 0.7 for the execute/scalar on clauseelement

14 years ago- Fixed FB bug whereby a column default would fail to
Mike Bayer [Mon, 6 Sep 2010 17:41:59 +0000 (13:41 -0400)] 
- Fixed FB bug whereby a column default would fail to
reflect if the "default" keyword were lower case.

14 years agounify query.with_parent, util.with_parent, fix docs some more
Mike Bayer [Mon, 6 Sep 2010 16:24:28 +0000 (12:24 -0400)] 
unify query.with_parent, util.with_parent, fix docs some more

14 years agodoc updates
Mike Bayer [Mon, 6 Sep 2010 15:48:22 +0000 (11:48 -0400)] 
doc updates

14 years agomerge doc fixes from tip
Mike Bayer [Mon, 6 Sep 2010 14:56:19 +0000 (10:56 -0400)] 
merge doc fixes from tip

14 years ago- query.with_parent() now accepts transient objects
Mike Bayer [Mon, 6 Sep 2010 14:55:53 +0000 (10:55 -0400)] 
- query.with_parent() now accepts transient objects
and will use the non-persistent values of their pk/fk
attributes in order to formulate the criterion.
Docs are also clarified as to the purpose of with_parent().
- fix for PG test executing an alias()

14 years agomake the pooling docs less sucky
Mike Bayer [Mon, 6 Sep 2010 06:19:35 +0000 (02:19 -0400)] 
make the pooling docs less sucky

14 years agofixes
Mike Bayer [Sun, 5 Sep 2010 21:52:33 +0000 (17:52 -0400)] 
fixes

14 years agomerge whatever
Mike Bayer [Sun, 5 Sep 2010 21:26:38 +0000 (17:26 -0400)] 
merge whatever

14 years agonot sure why chrisw changed this but would like to have the copyright link
Mike Bayer [Sun, 5 Sep 2010 21:23:23 +0000 (17:23 -0400)] 
not sure why chrisw changed this but would like to have the copyright link

14 years agodont need this
Mike Bayer [Sun, 5 Sep 2010 20:11:08 +0000 (16:11 -0400)] 
dont need this

14 years agomerge tip
Mike Bayer [Sun, 5 Sep 2010 20:07:40 +0000 (16:07 -0400)] 
merge tip

14 years agofixup
Mike Bayer [Sun, 5 Sep 2010 20:06:39 +0000 (16:06 -0400)] 
fixup

14 years ago - the versioning example works correctly now
Mike Bayer [Sun, 5 Sep 2010 18:51:00 +0000 (14:51 -0400)] 
  - the versioning example works correctly now
    if versioning on a col that was formerly
    NULL.

14 years ago- rewrote the "connections" section
Mike Bayer [Sun, 5 Sep 2010 18:44:58 +0000 (14:44 -0400)] 
- rewrote the "connections" section
- improved pool docs
- typos etc.
- ClauseElement.execute() and scalar() make no sense - these are depreacted.
The official home is Executable.
- alias() is not executable, allowing it is sloppy so this goes under
the deprecated umbrella

14 years ago- mapper _get_col_to_prop private method used
Mike Bayer [Sun, 5 Sep 2010 15:28:43 +0000 (11:28 -0400)] 
- mapper _get_col_to_prop private method used
by the versioning example is deprecated;
now use mapper.get_property_by_column() which
will remain the public method for this.
- turned TODO in the history example into an assertion
with a descriptive reason

14 years agoroughly the finished product.
Mike Bayer [Sun, 5 Sep 2010 01:02:35 +0000 (21:02 -0400)] 
roughly the finished product.

14 years agoalmost through.
Mike Bayer [Sat, 4 Sep 2010 23:59:21 +0000 (19:59 -0400)] 
almost through.

14 years agocontinued...
Mike Bayer [Sat, 4 Sep 2010 20:00:25 +0000 (16:00 -0400)] 
continued...

14 years agoexperiment with removing the API section and putting docstrings inline.
Mike Bayer [Sat, 4 Sep 2010 17:25:13 +0000 (13:25 -0400)] 
experiment with removing the API section and putting docstrings inline.
new outline section is provided with a new flow.

14 years agopython 2.4
Mike Bayer [Fri, 3 Sep 2010 19:55:09 +0000 (15:55 -0400)] 
python 2.4

14 years agoreduce callcounts
Mike Bayer [Fri, 3 Sep 2010 19:29:32 +0000 (15:29 -0400)] 
reduce callcounts

14 years agoApply more memoization to Mapper attributes & subject to group expiry.
Jason Kirtland [Fri, 3 Sep 2010 19:05:24 +0000 (12:05 -0700)] 
Apply more memoization to Mapper attributes & subject to group expiry.

14 years ago- AbstractType.__str__() produces the string version of the type with default dialect
Mike Bayer [Fri, 3 Sep 2010 18:35:22 +0000 (14:35 -0400)] 
- AbstractType.__str__() produces the string version of the type with default dialect
- 79 chars

14 years ago- a large hill to climb. Added declarative examples to all the
Mike Bayer [Tue, 31 Aug 2010 00:10:03 +0000 (20:10 -0400)] 
- a large hill to climb.  Added declarative examples to all the
"basic relationship" examples, cleaned up the examples and added
some more explicitness.  Also renamed "treenodes" to "nodes" and
added self-referential declarative example.
- Added info/examples on how to join tables directly when querying with
joined table inheritance.
-  Starting to talk about hybrids in the main mapper docs some more.
introducoed the idea that synonyms are on their way out.
- SQL expressions as mapped attributes also gets better verbiage,
alternative approaches to them, including hybrids.
- modernized the hybrid example.
- object_session() as a standalone function wasn't documented ?!

14 years ago- The include_properties and exclude_properties arguments
Mike Bayer [Mon, 30 Aug 2010 21:41:47 +0000 (17:41 -0400)] 
- The include_properties and exclude_properties arguments
to mapper() now accept Column objects as members in
addition to strings.  This so that same-named Column
objects, such as those within a join(), can be
disambiguated.

- A warning is now emitted if a mapper is created against a
join or other single selectable that includes multiple
columns with the same name in its .c. collection,
and those columns aren't explictly named as part of
the same or separate attributes (or excluded).
In 0.7 this warning will be an exception.   Note that
this warning is not emitted when the combination occurs
as a result of inheritance, so that attributes
still allow being overridden naturally.
[ticket:1896].  In 0.7 this will be improved further.

- The primary_key argument to mapper() can now specify
a series of columns that are only a subset of
the calculated "primary key" columns of the mapped
selectable, without an error being raised.  This
helps for situations where a selectable's effective
primary key is simpler than the number of columns
in the selectable that are actually marked as
"primary_key", such as a join against two
tables on their primary key columns [ticket:1896].

14 years agodoc tweak
Mike Bayer [Sun, 29 Aug 2010 22:13:44 +0000 (18:13 -0400)] 
doc tweak

14 years ago- The Session class is now present in sqlalchemy.orm.*.
Mike Bayer [Sun, 29 Aug 2010 22:13:18 +0000 (18:13 -0400)] 
- The Session class is now present in sqlalchemy.orm.*.
We're moving away from the usage of create_session(),
which has non-standard defaults, for those situations
where a one-step Session constructor is desired. Most
users should stick with sessionmaker() for general use,
however.

14 years ago- Oracle reflection of indexes has been tuned so
Mike Bayer [Sun, 29 Aug 2010 21:06:05 +0000 (17:06 -0400)] 
- Oracle reflection of indexes has been tuned so
that indexes which include some or all primary
key columns, but not the same set of columns
as that of the primary key, are reflected.
Indexes which contain the identical columns
as that of the primary key are skipped within
reflection, as the index in that case is assumed
to be the auto-generated primary key index.
Previously, any index with PK columns present
would be skipped.  Thanks to Kent Bower
for the patch.  [ticket:1867]

- Oracle now reflects the names of primary key
constraints - also thanks to Kent Bower.
[ticket:1868]

14 years agodocstring for query.correlate, [ticket:1889]
Mike Bayer [Sun, 29 Aug 2010 19:30:43 +0000 (15:30 -0400)] 
docstring for query.correlate, [ticket:1889]

14 years ago- Added ROWID type to the Oracle dialect, for those
Mike Bayer [Sun, 29 Aug 2010 19:16:02 +0000 (15:16 -0400)] 
- Added ROWID type to the Oracle dialect, for those
cases where an explicit CAST might be needed.
[ticket:1879]

14 years ago- put a link to the wiki table config example
Mike Bayer [Fri, 27 Aug 2010 16:57:18 +0000 (12:57 -0400)] 
- put a link to the wiki table config example

14 years ago- An object that's been deleted now gets a flag
Mike Bayer [Thu, 26 Aug 2010 15:32:50 +0000 (11:32 -0400)] 
- An object that's been deleted now gets a flag
'deleted', which prohibits the object from
being re-add()ed to the session, as previously
the object would live in the identity map
silently until its attributes were accessed.
The make_transient() function now resets this
flag along with the "key" flag.

- make_transient() can be safely called on an
already transient instance.

14 years ago- remove repr() from exception assertion, so that py3k's different repr(type(str...
Mike Bayer [Thu, 26 Aug 2010 05:40:20 +0000 (01:40 -0400)] 
- remove repr() from exception assertion, so that py3k's different repr(type(str)) format passes

14 years ago- replaced all self.__connection.is_valid with
Mike Bayer [Thu, 26 Aug 2010 05:33:51 +0000 (01:33 -0400)] 
- replaced all self.__connection.is_valid with
"safe" self._connection_is_valid.
- Fixed bug in Connection whereby if a "disconnect"
event occurred in the "initialize" phase of the
first connection pool connect, an AttributeError
would be raised when the Connection would attempt
to invalidate the DBAPI connection.  [ticket:1894]
- Connection.invalidate() can be called more than
once and subsequent calls do nothing.

14 years agomerge changes from alternate branch
Mike Bayer [Wed, 25 Aug 2010 15:01:46 +0000 (11:01 -0400)] 
merge changes from alternate branch

14 years agoadd a note
Mike Bayer [Wed, 25 Aug 2010 15:00:35 +0000 (11:00 -0400)] 
add a note

14 years agomerge tip
Mike Bayer [Tue, 24 Aug 2010 05:01:34 +0000 (01:01 -0400)] 
merge tip

14 years agosome doc updates
Mike Bayer [Tue, 24 Aug 2010 05:01:04 +0000 (01:01 -0400)] 
some doc updates

14 years ago- the history_meta versioning recipe sets "unique=False"
Mike Bayer [Mon, 23 Aug 2010 22:17:31 +0000 (18:17 -0400)] 
- the history_meta versioning recipe sets "unique=False"
when copying columns, so that the versioning
table handles multiple rows with repeating values.
[ticket:1887]

14 years ago- Similarly, for relationship(), foreign_keys,
Mike Bayer [Sat, 21 Aug 2010 23:38:28 +0000 (19:38 -0400)] 
- Similarly, for relationship(), foreign_keys,
remote_side, order_by - all column-based
expressions are enforced - lists of strings
are explicitly disallowed since this is a
very common error

14 years ago- object_session() raises the proper
Mike Bayer [Wed, 18 Aug 2010 14:54:40 +0000 (10:54 -0400)] 
- object_session() raises the proper
UnmappedInstanceError when presented with an
unmapped instance.  [ticket:1881]

14 years ago- 79 chars for expression
Mike Bayer [Sun, 15 Aug 2010 00:51:37 +0000 (20:51 -0400)] 
- 79 chars for expression
- fix typo in test

14 years ago- Another pass through the series of error messages
Mike Bayer [Sat, 14 Aug 2010 18:52:18 +0000 (14:52 -0400)] 
- Another pass through the series of error messages
emitted when relationship() is configured with
ambiguous arguments.   The "foreign_keys"
setting is no longer mentioned, as it is almost
never needed and it is preferable users set up
correct ForeignKey metadata, which is now the
recommendation.  If 'foreign_keys'
is used and is incorrect, the message suggests
the attribute is probably unnecessary.  Docs
for the attribute are beefed up.  This
because all confused relationship() users on the
ML appear to be attempting to use foreign_keys
due to the message, which only confuses them
further since Table metadata is much clearer.

- If the "secondary" table has no ForeignKey metadata
and no foreign_keys is set, even though the
user is passing screwed up information, it is assumed
that primary/secondaryjoin expressions should
consider only and all cols in "secondary" to be
foreign.  It's not possible with "secondary" for
the foreign keys to be elsewhere in any case.
A warning is now emitted instead of an error,
and the mapping succeeds. [ticket:1877]

- fixed incorrect "Alternate Collection Mappings" reference
in the docs, not sure if someone wants to reference
"Rows that Point to Themselves" function
- "Collection Mapping" is "Advanced Collection Mapping", this
section is troublesome since nobody really needs it but it
is public API

14 years ago- Added basic math expression coercion for
Mike Bayer [Fri, 13 Aug 2010 18:25:58 +0000 (14:25 -0400)] 
- Added basic math expression coercion for
Numeric->Integer,
so that resulting type is Numeric regardless
of the direction of the expression.

14 years ago- added much more verbiage about transactions and expire_all
Mike Bayer [Thu, 12 Aug 2010 14:47:07 +0000 (10:47 -0400)] 
- added much more verbiage about transactions and expire_all

14 years agospelling arg
Mike Bayer [Wed, 11 Aug 2010 16:01:52 +0000 (12:01 -0400)] 
spelling arg

14 years ago- a warning is emitted in mapper() if the polymorphic_on
Mike Bayer [Wed, 11 Aug 2010 15:57:56 +0000 (11:57 -0400)] 
- a warning is emitted in mapper() if the polymorphic_on
column is not present either in direct or derived
form in the mapped selectable or in the
with_polymorphic selectable, instead of silently
ignoring it.  Look for this to become an
exception in 0.7.

14 years ago- Fixed the psycopg2 dialect to use its
Mike Bayer [Tue, 10 Aug 2010 14:24:02 +0000 (10:24 -0400)] 
- Fixed the psycopg2 dialect to use its
set_isolation_level() method instead of relying
upon the base "SET SESSION ISOLATION" command,
as psycopg2 resets the isolation level on each new
transaction otherwise.