| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
dialect for 0.6, courtesy Florian Apolloner.
[ticket:1906]
|
| |
|
|
|
|
| |
expiration would fail if the column expression key was
a class attribute with a different keyname as the
actual column name. [ticket:1935]
|
| |
|
|
|
|
|
|
|
| |
prop.columns.append(col)
logic when columns are present in a joined subclass with an attribute name different
than the column name itself [ticket:1931]
- add coverage to verify that we need to check (obj.name or name) when
deciding if a Column from a mixin should be added to the mapped table
|
| |
|
|
|
| |
cut down method calls by about 9% in some circumstances.
[ticket:1932]
|
| | |
|
| | |
|
| |
|
|
|
|
| |
members, which are the set of elements involved in
one or more cycles, and the set of edges as 2-tuples.
[ticket:1890]
|
| |
|
|
|
|
|
| |
correctly to a single-table inheritance scheme where
the attribute name is different than that of the column.
[ticket:1930]. Note [ticket:1931] which is the same
issue for joined inh, not yet resolved.
|
| | |
|
| |
|
|
|
|
|
| |
with declarative is sqlalchemy.ext.declarative.mapperproperty.
Same thing, but moving there since it is more of a
"marker" that's specific to declararative,
not just an attribute technique. [ticket:1915]
|
| |
|
|
|
| |
with two expressions both of type "NullType", but
not the singleton NULLTYPE instance. [ticket:1907]
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
a connection is first used is now "BEGIN (implicit)"
to emphasize that DBAPI has no explicit begin().
|
| |
|
|
|
| |
right side to the right side of the left's join
inappropriately [ticket:1925]
|
| |
|
|
|
| |
called if a Session is already present (checks only the
current thread) [ticket:1924]
|
| |
|
|
|
|
| |
__mapper_args__, __table_args__, __tablename__ on
a base class that is not a mixin, as well as mixins.
[ticket:1922]
|
| |
|
|
|
| |
which contains a Column that is not yet named.
[ticket:1862]
|
| |
|
|
|
|
|
|
|
| |
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]
|
| | |
|
| |
|
|
|
|
|
|
| |
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
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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".
|
| | |
| |
| |
| |
| | |
passed an empty list to "include_properties" on
mapper() [ticket:1918]
|
| | |
| |
| |
| | |
load the collection being validated. [ticket:1916]
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | | |
|
| | | |
|
| |/ |
|
| |
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
- 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.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
basic Informix functionality up again. We
rely upon end-user testing to ensure that
Informix is working to some degree.
|
| |
|
|
|
|
|
|
| |
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]
|
| | |
|
| |
|
|
| |
reflect if the "default" keyword were lower case.
|
| | |
|
| | |
|