]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
14 years ago - Fixed bug in the mutable extension whereby
Mike Bayer [Fri, 1 Jul 2011 15:32:07 +0000 (11:32 -0400)] 
  - Fixed bug in the mutable extension whereby
    if None or a non-corresponding type were set,
    an error would be raised.  None is now accepted
    which assigns None to all attributes,
    illegal values raise ValueError.

14 years ago- Fixed bug where "autoincrement" detection on
Mike Bayer [Thu, 30 Jun 2011 22:48:01 +0000 (18:48 -0400)] 
- Fixed bug where "autoincrement" detection on
Table would fail if the type had no "affinity"
value, in particular this would occur when using
the UUID example on the site that uses TypeEngine
as the "impl".

14 years ago - Fixed bug in the mutable extension whereby
Mike Bayer [Thu, 30 Jun 2011 14:43:53 +0000 (10:43 -0400)] 
  - Fixed bug in the mutable extension whereby
    if the same type were used twice in one
    mapping, the attributes beyond the first
    would not get instrumented.

14 years ago - Fixed bug whereby adaptation of old append_ddl_listener()
Mike Bayer [Thu, 30 Jun 2011 14:27:52 +0000 (10:27 -0400)] 
  - Fixed bug whereby adaptation of old append_ddl_listener()
    function was passing unexpected **kw through
    to the Table event.   Table gets no kws, the MetaData
    event in 0.6 would get "tables=somecollection",
    this behavior is preserved.  [ticket:2206]

14 years ago- add a mention of attributeevents in the validates doc
Mike Bayer [Thu, 30 Jun 2011 14:18:37 +0000 (10:18 -0400)] 
- add a mention of attributeevents in the validates doc

14 years ago- document that pysqlite does not share temporary tables
Mike Bayer [Wed, 29 Jun 2011 04:49:57 +0000 (00:49 -0400)] 
- document that pysqlite does not share temporary tables
across multiple connections therefore a non-standard
pool should be used [ticket:2203]

14 years ago- Fixed subtle bug that caused SQL to blow
Mike Bayer [Mon, 27 Jun 2011 23:25:35 +0000 (19:25 -0400)] 
- Fixed subtle bug that caused SQL to blow
up if: column_property() against subquery +
joinedload + LIMIT + order by the column
property() occurred.  [ticket:2188].
Also in 0.6.9

14 years ago - Fixed a subtle bug involving column
Mike Bayer [Mon, 27 Jun 2011 22:54:02 +0000 (18:54 -0400)] 
  - Fixed a subtle bug involving column
    correspondence in a selectable with the
    same column repeated.   Affects [ticket:2188].

14 years agoif python 2.4, have DontWrapException be old style
Mike Bayer [Sun, 26 Jun 2011 23:50:31 +0000 (19:50 -0400)] 
if python 2.4, have DontWrapException be old style

14 years agotime for a better arch diagram
Mike Bayer [Sun, 26 Jun 2011 17:19:03 +0000 (13:19 -0400)] 
time for a better arch diagram

14 years ago - Fixed the attribute shard example to check
Mike Bayer [Sun, 26 Jun 2011 17:00:58 +0000 (13:00 -0400)] 
  - Fixed the attribute shard example to check
    for bind param callable correctly in 0.7
    style.

14 years ago- new section on backrefs
Mike Bayer [Sat, 25 Jun 2011 19:48:57 +0000 (15:48 -0400)] 
- new section on backrefs
- new section on m2m self referential
- start illustrating things more in terms of declarative primarily

14 years ago- the "cascade" section of the session doc was totally screwed up, mappings
Mike Bayer [Thu, 23 Jun 2011 23:54:50 +0000 (19:54 -0400)] 
- the "cascade" section of the session doc was totally screwed up, mappings
used the wrong form, example for cascade_backref used the wrong names.
- rewrite relationship cascade_backrefs doc

14 years ago- add docs about not using text() with session.execute()
Mike Bayer [Thu, 23 Jun 2011 21:30:07 +0000 (17:30 -0400)] 
- add docs about not using text() with session.execute()
- rewrite connection.execute() documentation.

14 years ago- rename EagerLoader to JoinedLoader
Mike Bayer [Thu, 23 Jun 2011 16:57:02 +0000 (12:57 -0400)] 
- rename EagerLoader to JoinedLoader

14 years agofix docstring
Mike Bayer [Thu, 23 Jun 2011 15:15:39 +0000 (11:15 -0400)] 
fix docstring

14 years ago- add doc example for column_property() on an association table per [ticket:1481]
Mike Bayer [Wed, 22 Jun 2011 21:18:41 +0000 (17:18 -0400)] 
- add doc example for column_property() on an association table per [ticket:1481]

14 years agotry to get py3k to pass here
Mike Bayer [Wed, 22 Jun 2011 18:03:20 +0000 (14:03 -0400)] 
try to get py3k to pass here

14 years agofix test
Mike Bayer [Wed, 22 Jun 2011 16:09:39 +0000 (12:09 -0400)] 
fix test

14 years ago - Added ORA-00028 to disconnect codes, use
Mike Bayer [Wed, 22 Jun 2011 16:02:48 +0000 (12:02 -0400)] 
  - Added ORA-00028 to disconnect codes, use
    cx_oracle _Error.code to get at the code,
    [ticket:2200].  Also in 0.6.9.

14 years ago- Added mixin class sqlalchemy.ext.DontWrapMixin.
Mike Bayer [Wed, 22 Jun 2011 15:45:28 +0000 (11:45 -0400)] 
- Added mixin class sqlalchemy.ext.DontWrapMixin.
User-defined exceptions of this type are never
wrapped in StatementException when they
occur in the context of a statement
execution.

- StatementException wrapping will display the
original exception class in the message.

14 years ago- Use urllib.parse_qsl() in Python 2.6 and above,
Mike Bayer [Tue, 21 Jun 2011 22:34:14 +0000 (18:34 -0400)] 
- Use urllib.parse_qsl() in Python 2.6 and above,
no deprecation warning about cgi.parse_qsl()
[ticket:1682]

14 years ago- Repaired the "no statement condition"
Mike Bayer [Tue, 21 Jun 2011 14:01:46 +0000 (10:01 -0400)] 
- Repaired the "no statement condition"
assertion in Query which would attempt
to raise if a generative method were called
after from_statement() were called.
[ticket:2199].  Also in 0.6.9.

14 years agosqlite :memory: works across threads now hooray !
Mike Bayer [Mon, 20 Jun 2011 15:56:19 +0000 (11:56 -0400)] 
sqlite :memory: works across threads now hooray !

14 years ago- Repaired the examples/versioning test runner
Mike Bayer [Thu, 16 Jun 2011 16:09:45 +0000 (12:09 -0400)] 
- Repaired the examples/versioning test runner
to not rely upon SQLAlchemy test libs,
nosetests must be run from within
examples/versioning to get around setup.cfg
breaking it.

- Tweak to examples/versioning to pick the
correct foreign key in a multi-level
inheritance situation.

14 years ago- remove NamingConventions as an example here since it doesn't apply
Mike Bayer [Tue, 14 Jun 2011 23:57:21 +0000 (19:57 -0400)] 
- remove NamingConventions as an example here since it doesn't apply
- add link to the concrete declarative thing

14 years ago- Fixed declarative bug where a class inheriting
Mike Bayer [Tue, 14 Jun 2011 14:08:34 +0000 (10:08 -0400)] 
- Fixed declarative bug where a class inheriting
from a superclass of the same name would fail
due to an unnecessary lookup of the name
in the _decl_class_registry. [ticket:2194]

14 years ago- Fixed bug whereby comparison of column
Mike Bayer [Mon, 13 Jun 2011 00:35:37 +0000 (20:35 -0400)] 
- Fixed bug whereby comparison of column
expression to a Query() would not call
as_scalar() on the underlying SELECT
statement to produce a scalar subquery,
in the way that occurs if you called
it on Query().subquery(). [ticket:2190]
- some cleanup to test.orm.test_query

14 years agoadd an autoincrement here
Mike Bayer [Wed, 8 Jun 2011 21:56:00 +0000 (17:56 -0400)] 
add an autoincrement here

14 years ago- Added the same "columns-only" check to
Mike Bayer [Wed, 8 Jun 2011 21:37:42 +0000 (17:37 -0400)] 
- Added the same "columns-only" check to
mapper.polymorphic_on as used in
relationship.order_by, foreign_keys,
remote_side, etc.

14 years agomerge
Mike Bayer [Tue, 7 Jun 2011 02:24:50 +0000 (22:24 -0400)] 
merge

14 years ago - Adjusted the pyodbc dialect such that bound
Mike Bayer [Tue, 7 Jun 2011 02:24:07 +0000 (22:24 -0400)] 
  - Adjusted the pyodbc dialect such that bound
    values are passed as bytes and not unicode
    if the "Easysoft" unix drivers are detected.
    This is the same behavior as occurs with
    FreeTDS.  Easysoft appears to segfault
    if Python unicodes are passed under
    certain circumstances.

14 years agoupdate for new table model
Mike Bayer [Mon, 6 Jun 2011 20:07:42 +0000 (16:07 -0400)] 
update for new table model

14 years agoAdded tag rel_0_7_1 for changeset 772ae63bdbfb82509bf2df20e56722b4cdc6186b
Mike Bayer [Sun, 5 Jun 2011 17:14:19 +0000 (13:14 -0400)] 
Added tag rel_0_7_1 for changeset 772ae63bdbfb82509bf2df20e56722b4cdc6186b

14 years agoadd test for [ticket:2159] rel_0_7_1
Mike Bayer [Sun, 5 Jun 2011 16:32:04 +0000 (12:32 -0400)] 
add test for [ticket:2159]

14 years ago- Fixed bug where transaction-level "deleted"
Mike Bayer [Sun, 5 Jun 2011 16:22:34 +0000 (12:22 -0400)] 
- Fixed bug where transaction-level "deleted"
collection wouldn't be cleared of expunged
states, raising an error if they later
became transient [ticket:2182].
Also in 0.6.8.

14 years ago- Added a workaround for Python bug 7511 where
Mike Bayer [Sun, 5 Jun 2011 15:58:26 +0000 (11:58 -0400)] 
- Added a workaround for Python bug 7511 where
failure of C extension build does not
raise an appropriate exception on Windows 64
bit + VC express [ticket:2184]

14 years agoput some variance on this as it's a difference between 9 and 60 calls
Mike Bayer [Sun, 5 Jun 2011 01:58:56 +0000 (21:58 -0400)] 
put some variance on this as it's a difference between 9 and 60 calls

14 years ago- Adjusted the __contains__() method of
Mike Bayer [Sun, 5 Jun 2011 00:52:30 +0000 (20:52 -0400)] 
- Adjusted the __contains__() method of
a RowProxy result row such that no exception
throw is generated internally;
NoSuchColumnError() also will generate its
message regardless of whether or not the column
construct can be coerced to a string.
[ticket:2178].  Also in 0.6.8.

14 years ago- Some unit test fixes regarding numeric arrays,
Mike Bayer [Sun, 5 Jun 2011 00:20:28 +0000 (20:20 -0400)] 
- Some unit test fixes regarding numeric arrays,
MATCH operator.   A potential floating-point
inaccuracy issue was fixed, and certain tests
of the MATCH operator only execute within an
EN-oriented locale for now.  [ticket:2175].
Also in 0.6.8.

14 years ago- Modify the text of the message which occurs
Mike Bayer [Sun, 5 Jun 2011 00:04:29 +0000 (20:04 -0400)] 
- Modify the text of the message which occurs
when the "identity" key isn't detected on
flush, to include the common cause that
the Column isn't set up to detect
auto-increment correctly; [ticket:2170].
Also in 0.6.8.

14 years ago- Accept None from SQLite cursor.fetchone() when
Mike Bayer [Sat, 4 Jun 2011 23:53:24 +0000 (19:53 -0400)] 
- Accept None from SQLite cursor.fetchone() when
"PRAGMA read_uncommitted" is called to determine
current isolation mode at connect time and
default to SERIALIZABLE; this to support SQLite
versions pre-3.3.0 that did not have this
feature.  [ticket:2173]

14 years ago- Repaired new "mutable" extension to propagate
Mike Bayer [Sat, 4 Jun 2011 23:43:39 +0000 (19:43 -0400)] 
- Repaired new "mutable" extension to propagate
events to subclasses correctly; don't
create multiple event listeners for
subclasses either.  [ticket:2180]

14 years ago- "delete-orphan" cascade is now allowed on
Mike Bayer [Sat, 4 Jun 2011 23:01:52 +0000 (19:01 -0400)] 
- "delete-orphan" cascade is now allowed on
self-referential relationships - this since
SQLA 0.7 no longer enforces "parent with no
child" at the ORM level; this check is left
up to foreign key nullability.
Related to [ticket:1912]
- a lot of cleanup and refactoring on relationship()
init, clarification

14 years agohey this works. (don't need to re-calc fks collection)
Mike Bayer [Fri, 3 Jun 2011 06:24:06 +0000 (02:24 -0400)] 
hey this works.  (don't need to re-calc fks collection)

14 years agoARG
Mike Bayer [Fri, 3 Jun 2011 01:35:27 +0000 (21:35 -0400)] 
ARG

14 years ago- adjust further for unix-style casing, also this is mysql not just mysqldb
Mike Bayer [Fri, 3 Jun 2011 00:11:47 +0000 (20:11 -0400)] 
- adjust further for unix-style casing, also this is mysql not just mysqldb

14 years ago- Unit tests pass 100% on MySQL installed
Mike Bayer [Thu, 2 Jun 2011 23:52:26 +0000 (19:52 -0400)] 
- Unit tests pass 100% on MySQL installed
on windows, after aggressive exclusion of a wide variety
of tests.   Not clear to what degree the failures are related to
version 5.5 vs. the usage of windows, in particular the ON UPDATE CASCADE
immediately crashes the server.   The features being tested here are all
edge cases not likely to be used in typical MySQL environments.
- Removed the "adjust casing" step that would
fail when reflecting a table on MySQL
on windows with a mixed case name.  After some
experimenting with a windows MySQL server, it's
been determined that this step wasn't really
helping the situation much; MySQL does not return
FK names with proper casing on non-windows
platforms either, and removing the step at
least allows the reflection to act more like
it does on other OSes.   A warning here
has been considered but its difficult to
determine under what conditions such a warning
can be raised, so punted on that for now -
added some docs instead. [ticket:2181]

- supports_sane_rowcount will be set to False
if using MySQLdb and the DBAPI doesn't provide
the constants.CLIENT module.

14 years agoalleviate transaction confusion which may occur from reading just the "commit" doc
Mike Bayer [Thu, 2 Jun 2011 16:20:24 +0000 (12:20 -0400)] 
alleviate transaction confusion which may occur from reading just the "commit" doc

14 years agofix some tests
Mike Bayer [Thu, 2 Jun 2011 07:09:08 +0000 (03:09 -0400)] 
fix some tests

14 years ago- Deprecate schema/SQL-oriented methods on
Mike Bayer [Thu, 2 Jun 2011 06:52:40 +0000 (02:52 -0400)] 
- Deprecate schema/SQL-oriented methods on
Connection/Engine that were never well known
and are redundant:  reflecttable(), create(),
drop(), text(), engine.func
- lots of docstrings in engine

14 years agotake out a little cruft. Spend two hours trying to make things simpler,
Mike Bayer [Thu, 2 Jun 2011 00:25:33 +0000 (20:25 -0400)] 
take out a little cruft. Spend two hours trying to make things simpler,
maybe we dont need state.callables (nope we do), maybe we can move populate_state out
(nope we lose speed that way), things are the way they are...

14 years ago - Fixed bug whereby metadata.reflect(bind)
Mike Bayer [Wed, 1 Jun 2011 21:46:17 +0000 (17:46 -0400)] 
  - Fixed bug whereby metadata.reflect(bind)
    would close a Connection passed as a
    bind argument.  Regression from 0.6.

14 years agoexpress the check for 'filter' in terms of _MapperEntity being present or not.
Mike Bayer [Tue, 31 May 2011 22:29:16 +0000 (18:29 -0400)] 
express the check for 'filter' in terms of _MapperEntity being present or not.
move away slightly from the _mapper_entities collection.

14 years ago- dont actually need separate init(), but be conservative for now.
Mike Bayer [Tue, 31 May 2011 22:06:57 +0000 (18:06 -0400)] 
- dont actually need separate init(), but be conservative for now.

14 years ago- remove the old term 'selectcontext'
Mike Bayer [Tue, 31 May 2011 21:38:34 +0000 (17:38 -0400)] 
- remove the old term 'selectcontext'
- don't swing the GOF hammer so hard

14 years agoupdate out of date docstring
Mike Bayer [Tue, 31 May 2011 21:32:19 +0000 (17:32 -0400)] 
update out of date docstring

14 years agohey, we don't need this.
Mike Bayer [Mon, 30 May 2011 18:20:55 +0000 (14:20 -0400)] 
hey, we don't need this.

14 years agothe "property" argument here is not used
Mike Bayer [Mon, 30 May 2011 14:52:01 +0000 (10:52 -0400)] 
the "property" argument here is not used

14 years agouse default dialect here
Mike Bayer [Sun, 29 May 2011 17:50:41 +0000 (13:50 -0400)] 
use default dialect here

14 years ago- move Operators and ColumnOperators into sqlalchemy.sql.operators - since this
Mike Bayer [Sun, 29 May 2011 00:24:57 +0000 (20:24 -0400)] 
- move Operators and ColumnOperators into sqlalchemy.sql.operators - since this
is strictly a system of routing Python operators into functions.  Keep the
references available in expression.py for the near future.

14 years ago- Streamlined the process by which a Select
Mike Bayer [Sat, 28 May 2011 17:28:38 +0000 (13:28 -0400)] 
- Streamlined the process by which a Select
determines what's in it's '.c' collection.
Behaves identically, except that a
raw ClauseList() passed to select([])
(which is not a documented case anyway) will
now be expanded into its individual column
elements instead of being ignored.

14 years ago- add a comment regarding why __init__ has a return value
Mike Bayer [Sat, 28 May 2011 16:29:29 +0000 (12:29 -0400)] 
- add a comment regarding why __init__ has a return value

14 years ago- get all comparison operators to document with sphinx - column based, relationship...
Mike Bayer [Thu, 26 May 2011 17:30:26 +0000 (13:30 -0400)] 
- get all comparison operators to document with sphinx - column based, relationship based.
Should fix misunderstandings like [ticket:2177]

14 years agoclarify that attr_name is a string for [ticket:2176]
Mike Bayer [Wed, 25 May 2011 16:41:53 +0000 (12:41 -0400)] 
clarify that attr_name is a string for [ticket:2176]

14 years ago- document query_class on relationship
Mike Bayer [Wed, 25 May 2011 00:31:44 +0000 (20:31 -0400)] 
- document query_class on relationship
- note public constructors for RelationshipProperty, ColumnProperty

14 years agotypo
Mike Bayer [Sun, 22 May 2011 20:42:20 +0000 (16:42 -0400)] 
typo

14 years agogo a little further and introduce hybrid value
Mike Bayer [Sun, 22 May 2011 20:39:32 +0000 (16:39 -0400)] 
go a little further and introduce hybrid value

14 years ago- add some docs to hybrid comparators, operators/comparator logic at the base
Mike Bayer [Sun, 22 May 2011 19:54:17 +0000 (15:54 -0400)] 
- add some docs to hybrid comparators, operators/comparator logic at the base

14 years agoAdded tag rel_0_7_0 for changeset ef654af35ab2443172eb79e6f279792b72980539
Mike Bayer [Fri, 20 May 2011 22:09:29 +0000 (18:09 -0400)] 
Added tag rel_0_7_0 for changeset ef654af35ab2443172eb79e6f279792b72980539

14 years ago- Fixed bug affecting PG 9 whereby index reflection rel_0_7_0
Mike Bayer [Fri, 20 May 2011 21:53:13 +0000 (17:53 -0400)] 
- Fixed bug affecting PG 9 whereby index reflection
would fail if against a column whose name
had changed.  [ticket:2141].  Also in 0.6.8.

14 years agothis will also move back to prod/stable
Mike Bayer [Fri, 20 May 2011 19:15:03 +0000 (15:15 -0400)] 
this will also move back to prod/stable

14 years agomove version to 0.7.0
Mike Bayer [Fri, 20 May 2011 19:11:44 +0000 (15:11 -0400)] 
move version to 0.7.0

14 years agodont need the DEBUG here messing up the rest of the tests
Mike Bayer [Fri, 20 May 2011 18:50:15 +0000 (14:50 -0400)] 
dont need the DEBUG here messing up the rest of the tests

14 years ago- Fixed bug whereby mapper mapped to an anonymous
Mike Bayer [Fri, 20 May 2011 18:43:06 +0000 (14:43 -0400)] 
- Fixed bug whereby mapper mapped to an anonymous
alias would fail if logging were used, due to
unescaped % sign in the alias name.  [ticket:2171]
Also in 0.6.8.

14 years ago - Fixed bug in MSSQL dialect whereby the aliasing
Mike Bayer [Thu, 19 May 2011 16:00:47 +0000 (12:00 -0400)] 
  - Fixed bug in MSSQL dialect whereby the aliasing
    applied to a schema-qualified table would leak
    into enclosing select statements [ticket:2169].
    Also in 0.6.8.

14 years ago- Fixed bug whereby nesting a label of a select()
Mike Bayer [Wed, 18 May 2011 16:07:40 +0000 (12:07 -0400)] 
- Fixed bug whereby nesting a label of a select()
with another label in it would produce incorrect
exported columns.   Among other things this would
break an ORM column_property() mapping against
another column_property().  [ticket:2167].
Also in 0.6.8
- _Label() is always against a column or selectable.  remove
uncovered case of label against something else.
- start taking notes to clean up some of this labeling stuff,
which will be [ticket:2168]

14 years ago- use default dialect here
Mike Bayer [Sat, 14 May 2011 18:31:29 +0000 (14:31 -0400)] 
- use default dialect here

14 years agopy3k test fix
Mike Bayer [Sat, 14 May 2011 17:54:00 +0000 (13:54 -0400)] 
py3k test fix

14 years ago- make sure we definitely get every connection created
Mike Bayer [Sat, 14 May 2011 17:34:29 +0000 (13:34 -0400)] 
- make sure we definitely get every connection created
- ensure we lose self.conns, cx_oracle only closes on __del__
- fix reconnectingfixture to lose all connection references

14 years ago - Fixed bugs in sqlalchemy.ext.mutable extension where
Mike Bayer [Sat, 14 May 2011 14:23:12 +0000 (10:23 -0400)] 
  - Fixed bugs in sqlalchemy.ext.mutable extension where
    `None` was not appropriately handled, replacement
    events were not appropriately handled.
    [ticket:2143]

14 years ago - polymorphic_union() gets a "cast_nulls" option,
Mike Bayer [Thu, 12 May 2011 16:47:09 +0000 (12:47 -0400)] 
  - polymorphic_union() gets a "cast_nulls" option,
    disables the usage of CAST when it renders
    the labeled NULL columns.  [ticket:1502]

  - polymorphic_union() renders the columns in their
    original table order, as according to the first
    table/selectable in the list of polymorphic
    unions in which they appear.  (which is itself
    an unordered mapping unless you pass an OrderedDict).

14 years agowrap another StaleDataError detection in supports_sane_row_count
Philip Jenvey [Thu, 12 May 2011 01:58:11 +0000 (18:58 -0700)] 
wrap another StaleDataError detection in supports_sane_row_count

14 years agomark more postgresql+zxjdbc failures
Philip Jenvey [Thu, 12 May 2011 01:44:23 +0000 (18:44 -0700)] 
mark more postgresql+zxjdbc failures

14 years ago- query.count() emits "count(*)" instead of
Mike Bayer [Tue, 10 May 2011 19:45:37 +0000 (15:45 -0400)] 
- query.count() emits "count(*)" instead of
"count(1)".  [ticket:2162]
- another test that should be excluded from "low-connections"

14 years ago- given that Oracle's issue is not just open connections, but *closed* ones too,...
Mike Bayer [Tue, 10 May 2011 00:40:33 +0000 (20:40 -0400)] 
- given that Oracle's issue is not just open connections, but *closed* ones too, go really
heavy handed and start marking tests as "requires.ad_hoc_engines", add a flag --low-connections
that will switch the engine reaper mechanism to use as *few* distinct engines and connections
as possible, many engine tests that really need their own engines are just skipped.

14 years agoha - can't do this on 2.4
Mike Bayer [Sat, 7 May 2011 23:41:10 +0000 (19:41 -0400)] 
ha - can't do this on 2.4

14 years ago- Changed the handling in determination of join
Mike Bayer [Sat, 7 May 2011 16:52:25 +0000 (12:52 -0400)] 
- Changed the handling in determination of join
conditions such that foreign key errors are
only considered between the two given tables.
That is, t1.join(t2) will report FK errors
that involve 't1' or 't2', but anything
involving 't3' will be skipped.   This affects
join(), as well as ORM relationship and
inherit condition logic.  Will keep the more conservative
approach to [ticket:2153] in 0.6.

14 years ago- mapper() will ignore non-configured foreign keys
Mike Bayer [Sat, 7 May 2011 15:52:14 +0000 (11:52 -0400)] 
- mapper() will ignore non-configured foreign keys
to unrelated tables when determining inherit
condition between parent and child class.
This is equivalent to behavior already
applied to declarative.  [ticket:2153]
Also in 0.6.8.

14 years ago- Fixed bug where determination of "self referential"
Mike Bayer [Sat, 7 May 2011 15:26:00 +0000 (11:26 -0400)] 
- Fixed bug where determination of "self referential"
relationship would fail with no workaround
for joined-inh subclass related to itself,
or joined-inh subclass related to a subclass
of that with no cols in the sub-sub class
in the join condition.  [ticket:2149]
Also in 0.6.8.

14 years ago- Fixed the error message emitted for "can't
Mike Bayer [Sat, 7 May 2011 15:15:36 +0000 (11:15 -0400)] 
- Fixed the error message emitted for "can't
execute syncrule for destination column 'q';
mapper 'X' does not map this column" to
reference the correct mapper.  [ticket:2163].
Also in 0.6.8.
- test/orm/test_sync.py covers orm/sync.py 100%

14 years agorandom cleanup
Mike Bayer [Wed, 4 May 2011 23:06:01 +0000 (19:06 -0400)] 
random cleanup

14 years ago- split all SS tests into separate + engine per test + close_all() + dispose within...
Mike Bayer [Sun, 1 May 2011 04:45:39 +0000 (00:45 -0400)] 
- split all SS tests into separate + engine per test + close_all() + dispose within teardown

14 years agocomment out the rollback on after test since pg8000 can deadlock on this (and its...
Mike Bayer [Sat, 30 Apr 2011 19:38:27 +0000 (15:38 -0400)] 
comment out the rollback on after test since pg8000 can deadlock on this (and its clear why).
but then what about the pypy jython team.  ho hum.

14 years ago- rework of Query._adapt_clause to support [ticket:2155],
Mike Bayer [Sat, 30 Apr 2011 18:43:03 +0000 (14:43 -0400)] 
- rework of Query._adapt_clause to support [ticket:2155],
be clearer in its intent.
- Fine tuning of Query clause adaptation when
from_self(), union(), or other "select from
myself" operation, such that plain SQL expression
elements added to filter(), order_by() etc.
which are present in the nested "from myself"
query *will* be adapted in the same way an ORM
expression element will, since these
elements are otherwise not easily accessible.
[ticket:2155]

14 years agoupdate docs for generic associations
Mike Bayer [Thu, 28 Apr 2011 16:33:30 +0000 (12:33 -0400)] 
update docs for generic associations

14 years ago- Removed the usage of the "collections.MutableMapping"
Mike Bayer [Thu, 28 Apr 2011 16:10:24 +0000 (12:10 -0400)] 
- Removed the usage of the "collections.MutableMapping"
abc from the ext.mutable docs as it was being used
incorrectly and makes the example more difficult
to understand in any case.  [ticket:2152]

14 years ago- removed the ancient "polymorphic association"
Mike Bayer [Thu, 28 Apr 2011 02:33:37 +0000 (22:33 -0400)] 
- removed the ancient "polymorphic association"
examples and replaced with an updated set of
examples that use declarative mixins,
"generic_associations".   Each presents an alternative
table layout.

14 years ago- a non_primary mapper will inherit the _identity_class
Mike Bayer [Wed, 27 Apr 2011 16:54:15 +0000 (12:54 -0400)] 
- a non_primary mapper will inherit the _identity_class
of the primary mapper.  This so that a non_primary
established against a class that's normally in an
inheritance mapping will produce results that are
identity-map compatible with that of the primary
mapper [ticket:2151] (also in 0.6.8)

14 years ago- this helps oracle here since it has a panic attack otherwise
Mike Bayer [Tue, 26 Apr 2011 02:51:58 +0000 (22:51 -0400)] 
- this helps oracle here since it has a panic attack otherwise