]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
10 years ago- Fixed bugs in ORM object comparisons where comparison of
Mike Bayer [Fri, 20 Feb 2015 20:14:08 +0000 (15:14 -0500)] 
- Fixed bugs in ORM object comparisons where comparison of
many-to-one ``!= None`` would fail if the source were an aliased
class, or if the query needed to apply special aliasing to the
expression due to aliased joins or polymorphic querying; also fixed
bug in the case where comparing a many-to-one to an object state
would fail if the query needed to apply special aliasing
due to aliased joins or polymorphic querying.
fixes #3310

10 years ago- remove the need for a recursive call here
Mike Bayer [Fri, 20 Feb 2015 05:11:48 +0000 (00:11 -0500)] 
- remove the need for a recursive call here

10 years ago- Fixed bug where internal assertion would fail in the case where
Mike Bayer [Fri, 20 Feb 2015 05:01:19 +0000 (00:01 -0500)] 
- Fixed bug where internal assertion would fail in the case where
an ``after_rollback()`` handler for a :class:`.Session` incorrectly
adds state to that :class:`.Session` within the handler, and the task
to warn and remove this state (established by :ticket:`2389`) attempts
to proceed.
fixes #3309

10 years ago- expect_warnings was not expecting and neither was assert_warnings
Mike Bayer [Thu, 19 Feb 2015 17:01:48 +0000 (12:01 -0500)] 
- expect_warnings was not expecting and neither was assert_warnings
asserting.

10 years ago- repair merge failure
Mike Bayer [Thu, 19 Feb 2015 17:01:22 +0000 (12:01 -0500)] 
- repair merge failure

10 years ago- autopep8
Mike Bayer [Thu, 19 Feb 2015 16:37:44 +0000 (11:37 -0500)] 
- autopep8

10 years ago- Mapped state internals have been reworked to allow for a 50% reduction
Mike Bayer [Wed, 18 Feb 2015 21:08:19 +0000 (16:08 -0500)] 
- Mapped state internals have been reworked to allow for a 50% reduction
in callcounts specific to the "expiration" of objects, as in
the "auto expire" feature of :meth:`.Session.commit` and
for :meth:`.Session.expire_all`, as well as in the "cleanup" step
which occurs when object states are garbage collected.
fixes #3307

10 years ago- add the test_expire_lots test for comparison
Mike Bayer [Wed, 18 Feb 2015 20:50:37 +0000 (15:50 -0500)] 
- add the test_expire_lots test for comparison

10 years ago- add a new section regarding multiprocessing
Mike Bayer [Tue, 17 Feb 2015 18:43:48 +0000 (13:43 -0500)] 
- add a new section regarding multiprocessing

10 years ago- additional mysql cast-related test fixes
Mike Bayer [Tue, 10 Feb 2015 01:49:19 +0000 (20:49 -0500)] 
- additional mysql cast-related test fixes

10 years ago- The MySQL dialect now supports CAST on types that are constructed
Mike Bayer [Tue, 10 Feb 2015 01:43:28 +0000 (20:43 -0500)] 
- The MySQL dialect now supports CAST on types that are constructed
as :class:`.TypeDecorator` objects.

10 years ago- add a fix to MySQL re: #3074 tests, make sure we check table is present
Mike Bayer [Tue, 10 Feb 2015 01:32:53 +0000 (20:32 -0500)] 
- add a fix to MySQL re: #3074 tests, make sure we check table is present

10 years ago- test skips for MySQL w new cast warning
Mike Bayer [Tue, 10 Feb 2015 01:32:06 +0000 (20:32 -0500)] 
- test skips for MySQL w new cast warning

10 years ago- A warning is emitted when :func:`.cast` is used with the MySQL
Mike Bayer [Mon, 9 Feb 2015 20:29:14 +0000 (15:29 -0500)] 
- A warning is emitted when :func:`.cast` is used with the MySQL
dialect on a type where MySQL does not support CAST; MySQL only
supports CAST on a subset of datatypes.   SQLAlchemy has for a long
time just omitted the CAST for unsupported types in the case of
MySQL.  While we don't want to change this now, we emit a warning
to show that it's taken place.   A warning is also emitted when
a CAST is used with an older MySQL version (< 4) that doesn't support
CAST at all, it's skipped in this case as well.
fixes #3237

10 years ago- flake8
Mike Bayer [Mon, 9 Feb 2015 20:08:52 +0000 (15:08 -0500)] 
- flake8

10 years ago- Literal values within a :class:`.DefaultClause`, which is invoked
Mike Bayer [Mon, 9 Feb 2015 19:58:26 +0000 (14:58 -0500)] 
- Literal values within a :class:`.DefaultClause`, which is invoked
when using the :paramref:`.Column.server_default` parameter, will
now be rendered using the "inline" compiler, so that they are rendered
as-is, rather than as bound parameters.
fixes #3087

10 years ago- remove meaningless assignment
Mike Bayer [Mon, 9 Feb 2015 01:14:37 +0000 (20:14 -0500)] 
- remove meaningless assignment

10 years ago- test + changelog
Mike Bayer [Mon, 9 Feb 2015 00:58:34 +0000 (19:58 -0500)] 
- test + changelog

10 years agoMerge remote-tracking branch 'origin/pr/147' into pr147
Mike Bayer [Mon, 9 Feb 2015 00:50:41 +0000 (19:50 -0500)] 
Merge remote-tracking branch 'origin/pr/147' into pr147

Conflicts:
lib/sqlalchemy/orm/query.py

10 years ago- add versionadded for service_name
Mike Bayer [Mon, 9 Feb 2015 00:13:21 +0000 (19:13 -0500)] 
- add versionadded for service_name

10 years agoIt's the 'kwargs' which are iterable, not 'keys'
Malthe Borch [Thu, 30 Oct 2014 09:49:37 +0000 (10:49 +0100)] 
It's the 'kwargs' which are iterable, not 'keys'

10 years ago- added new backend for pysqlcipher, as we will probably get
Mike Bayer [Wed, 29 Oct 2014 18:55:42 +0000 (14:55 -0400)] 
- added new backend for pysqlcipher, as we will probably get
requests for it soon.

10 years agochangelog
Mike Bayer [Sun, 26 Oct 2014 20:49:44 +0000 (16:49 -0400)] 
changelog

10 years agochanged connnection to connection
jlgoldb2 [Sun, 26 Oct 2014 07:01:42 +0000 (00:01 -0700)] 
changed connnection to connection

10 years agotypo
Mike Bayer [Thu, 23 Oct 2014 06:10:01 +0000 (02:10 -0400)] 
typo

10 years agomove this into behavioral changes
Mike Bayer [Thu, 23 Oct 2014 06:00:42 +0000 (02:00 -0400)] 
move this into behavioral changes

10 years ago- Fixed bug in single table inheritance where a chain of joins
Mike Bayer [Thu, 23 Oct 2014 05:54:10 +0000 (01:54 -0400)] 
- Fixed bug in single table inheritance where a chain of joins
that included the same single inh entity more than once
(normally this should raise an error) could, in some cases
depending on what was being joined "from", implicitly alias the
second case of the single inh entity, producing
a query that "worked".   But as this implicit aliasing is not
intended in the case of single table inheritance, it didn't
really "work" fully and was very misleading, since it wouldn't
always appear.
fixes #3233

10 years ago- Fixed bug where the ON clause for :meth:`.Query.join`,
Mike Bayer [Thu, 23 Oct 2014 04:40:29 +0000 (00:40 -0400)] 
- Fixed bug where the ON clause for :meth:`.Query.join`,
and :meth:`.Query.outerjoin` to a single-inheritance subclass
using ``of_type()`` would not render the "single table criteria" in
the ON clause if the ``from_joinpoint=True`` flag were set.
fixes #3232

10 years ago- changelog for pullreq github:139
Mike Bayer [Tue, 21 Oct 2014 21:58:51 +0000 (17:58 -0400)] 
- changelog for pullreq github:139
- add support for self-referential foreign keys to move over as well when
the table name is changed.

10 years agoMerge remote-tracking branch 'origin/pr/139' into pr139
Mike Bayer [Tue, 21 Oct 2014 21:29:40 +0000 (17:29 -0400)] 
Merge remote-tracking branch 'origin/pr/139' into pr139

10 years ago- changelog
Mike Bayer [Tue, 21 Oct 2014 21:27:37 +0000 (17:27 -0400)] 
- changelog

10 years agoMerge remote-tracking branch 'origin/pr/137' into pr137
Mike Bayer [Tue, 21 Oct 2014 21:24:14 +0000 (17:24 -0400)] 
Merge remote-tracking branch 'origin/pr/137' into pr137

10 years ago- Reversing a change that was made in 0.9, the "singleton" nature
Mike Bayer [Sun, 19 Oct 2014 22:26:14 +0000 (18:26 -0400)] 
- Reversing a change that was made in 0.9, the "singleton" nature
of the "constants" :func:`.null`, :func:`.true`, and :func:`.false`
has been reverted.   These functions returning a "singleton" object
had the effect that different instances would be treated as the
same regardless of lexical use, which in particular would impact
the rendering of the columns clause of a SELECT statement.
fixes #3170

10 years ago- Fixed bug where :meth:`.Session.expunge` would not fully detach
Mike Bayer [Sun, 19 Oct 2014 20:53:45 +0000 (16:53 -0400)] 
- Fixed bug where :meth:`.Session.expunge` would not fully detach
the given object if the object had been subject to a delete
operation that was flushed, but not committed.  This would also
affect related operations like :func:`.make_transient`.
fixes #3139

10 years ago- control the module name of the exception here for py3k compat
Mike Bayer [Sun, 19 Oct 2014 17:37:48 +0000 (13:37 -0400)] 
- control the module name of the exception here for py3k compat

10 years ago- for #3230, scale back the check to only look at columns that
Mike Bayer [Sun, 19 Oct 2014 10:43:53 +0000 (06:43 -0400)] 
- for #3230, scale back the check to only look at columns that
already have more than one ForeignKeyConstraint referring to them.
This limits the check to what we hope is the most common case,
but we benefit that the memory and config-time impact is scaled back
dramatically.

10 years ago- A warning is emitted in the case of multiple relationships that
Mike Bayer [Sat, 18 Oct 2014 21:56:13 +0000 (17:56 -0400)] 
- A warning is emitted in the case of multiple relationships that
ultimately will populate a foreign key column in conflict with
another, where the relationships are attempting to copy values
from different source columns.  This occurs in the case where
composite foreign keys with overlapping columns are mapped to
relationships that each refer to a different referenced column.
A new documentation section illustrates the example as well as how
to overcome the issue by specifying "foreign" columns specifically
on a per-relationship basis.
fixes #3230

10 years ago- flake8
Mike Bayer [Sun, 19 Oct 2014 02:32:07 +0000 (22:32 -0400)] 
- flake8

10 years ago- Exception messages have been spiffed up a bit. The SQL statement
Mike Bayer [Fri, 17 Oct 2014 23:37:45 +0000 (19:37 -0400)] 
- Exception messages have been spiffed up a bit.  The SQL statement
and parameters are not displayed if None, reducing confusion for
error messages that weren't related to a statement.  The full
module and classname for the DBAPI-level exception is displayed,
making it clear that this is a wrapped DBAPI exception.  The
statement and parameters themselves are bounded within a bracketed
sections to better isolate them from the error message and from
each other.
fixes #3172

10 years agopep8
Mike Bayer [Fri, 17 Oct 2014 23:29:32 +0000 (19:29 -0400)] 
pep8

10 years ago- The :meth:`.Query.update` method will now convert string key
Mike Bayer [Thu, 16 Oct 2014 18:36:56 +0000 (14:36 -0400)] 
- The :meth:`.Query.update` method will now convert string key
names in the given dictionary of values into mapped attribute names
against the mapped class being updated.  Previously, string names
were taken in directly and passed to the core update statement without
any means to resolve against the mapped entity.  Support for synonyms
and hybrid attributes as the subject attributes of
:meth:`.Query.update` are also supported.
fixes #3228

10 years ago- fix imports
Mike Bayer [Thu, 16 Oct 2014 17:30:39 +0000 (13:30 -0400)] 
- fix imports
- pep8

10 years agoFixed typo
mozillazg [Wed, 15 Oct 2014 13:40:19 +0000 (21:40 +0800)] 
Fixed typo

10 years ago- Improvements to the mechanism used by :class:`.Session` to locate
Mike Bayer [Tue, 14 Oct 2014 18:04:17 +0000 (14:04 -0400)] 
- Improvements to the mechanism used by :class:`.Session` to locate
"binds" (e.g. engines to use), such engines can be associated with
mixin classes, concrete subclasses, as well as a wider variety
of table metadata such as joined inheritance tables.
fixes #3035

10 years ago- move BindTest into orm/test_binds
Mike Bayer [Tue, 14 Oct 2014 16:07:38 +0000 (12:07 -0400)] 
- move BindTest into orm/test_binds

10 years ago- The ``__module__`` attribute is now set for all those SQL and
Mike Bayer [Tue, 14 Oct 2014 15:59:48 +0000 (11:59 -0400)] 
- The ``__module__`` attribute is now set for all those SQL and
ORM functions that are derived as "public factory" symbols, which
should assist with documentation tools being able to report on the
target module.
fixes #3218

10 years ago- merge 0.9.8 release date
Mike Bayer [Mon, 13 Oct 2014 17:17:24 +0000 (13:17 -0400)] 
- merge 0.9.8 release date

10 years ago- additional issues fixed in mysqlconnector 2.0.1
Mike Bayer [Mon, 13 Oct 2014 16:37:29 +0000 (12:37 -0400)] 
- additional issues fixed in mysqlconnector 2.0.1

10 years ago- this test passes now in more recent mysqlconnector
Mike Bayer [Mon, 13 Oct 2014 16:34:41 +0000 (12:34 -0400)] 
- this test passes now in more recent mysqlconnector

10 years ago- Mysqlconnector as of version 2.0, probably as a side effect of
Mike Bayer [Mon, 13 Oct 2014 00:14:32 +0000 (20:14 -0400)] 
- Mysqlconnector as of version 2.0, probably as a side effect of
the  python 3 merge, now does not expect percent signs (e.g.
as used as the modulus operator and others) to be doubled,
even when using the "pyformat" bound parameter format (this
change is not documented by Mysqlconnector).  The dialect now
checks for py2k and for mysqlconnector less than version 2.0
when detecting if the modulus operator should be rendered as
``%%`` or ``%``.
- Unicode SQL is now passed for MySQLconnector version 2.0 and above;
for Py2k and MySQL < 2.0, strings are encoded.  Note that mysqlconnector
as of 2.0.1 appears to have a bug with unicode DDL on py2k, so the tests here
are skipping until we observe it's fixed.
- take out profiling on mysqlconnector, callcounts vary too much with
its current development speed

10 years ago- the test_except test was doing an unnecessary workaround of some kind,
Mike Bayer [Sun, 12 Oct 2014 23:37:14 +0000 (19:37 -0400)] 
- the test_except test was doing an unnecessary workaround of some kind,
take that out, restore the better exception logic in exc

10 years ago- roll back part of pr 140 to get exception wrapping working again
Mike Bayer [Sun, 12 Oct 2014 13:54:44 +0000 (09:54 -0400)] 
- roll back part of pr 140 to get exception wrapping working again

10 years agoMerge remote-tracking branch 'origin/pr/140' into pr140
Mike Bayer [Sun, 12 Oct 2014 00:08:27 +0000 (20:08 -0400)] 
Merge remote-tracking branch 'origin/pr/140' into pr140

10 years agoadd more order by here
Mike Bayer [Sat, 11 Oct 2014 23:02:32 +0000 (19:02 -0400)] 
add more order by here

10 years ago- embedding an existing predicate into a new one only
Mike Bayer [Sat, 11 Oct 2014 22:35:12 +0000 (18:35 -0400)] 
- embedding an existing predicate into a new one only
seems to be used by test_oracle->test_coerce_to_unicode().  The
predicate here should treat as a lambda based on enabled_for_config.
not sure why this test is not failing on jenkins

10 years ago- Fixed long-standing bug in Oracle dialect where bound parameter
Mike Bayer [Sat, 11 Oct 2014 22:25:21 +0000 (18:25 -0400)] 
- Fixed long-standing bug in Oracle dialect where bound parameter
names that started with numbers would not be quoted, as Oracle
doesn't like numerics in bound parameter names.
fixes #2138

10 years ago- change this literal so that the bound name doesn't have a numeric
Mike Bayer [Sat, 11 Oct 2014 21:33:44 +0000 (17:33 -0400)] 
- change this literal so that the bound name doesn't have a numeric
name, this is sort of a bug for oracle

10 years ago- :meth:`.Insert.from_select` now includes Python and SQL-expression
Mike Bayer [Fri, 10 Oct 2014 21:15:19 +0000 (17:15 -0400)] 
- :meth:`.Insert.from_select` now includes Python and SQL-expression
defaults if otherwise unspecified; the limitation where non-
server column defaults aren't included in an INSERT FROM
SELECT is now lifted and these expressions are rendered as
constants into the SELECT statement.

10 years ago- apply patches to correct for + sign in with_hint() docs,
Mike Bayer [Fri, 10 Oct 2014 19:31:07 +0000 (15:31 -0400)] 
- apply patches to correct for + sign in with_hint() docs,
fixes #3036

10 years ago- add a migration note for ref #3222
Mike Bayer [Fri, 10 Oct 2014 00:54:19 +0000 (20:54 -0400)] 
- add a migration note for ref #3222

10 years ago- The ON clause rendered when using :meth:`.Query.join`,
Mike Bayer [Fri, 10 Oct 2014 00:40:35 +0000 (20:40 -0400)] 
- The ON clause rendered when using :meth:`.Query.join`,
:meth:`.Query.outerjoin`, or the standalone :func:`.orm.join` /
:func:`.orm.outerjoin` functions to a single-inheritance subclass will
now include the "single table criteria" in the ON clause even
if the ON clause is otherwise hand-rolled; it is now added to the
criteria using AND, the same way as if joining to a single-table
target using relationship or similar.
fixes #3222

10 years ago- Fixed bug where a fair number of SQL elements within
Mike Bayer [Thu, 9 Oct 2014 21:20:30 +0000 (17:20 -0400)] 
- Fixed bug where a fair number of SQL elements within
the sql package would fail to ``__repr__()`` successfully,
due to a missing ``description`` attribute that would then invoke
a recursion overflow when an internal AttributeError would then
re-invoke ``__repr__()``.
fixes #3195

10 years ago- clean up unicode docs and clarify that client_encoding
Mike Bayer [Tue, 7 Oct 2014 18:06:46 +0000 (14:06 -0400)] 
- clean up unicode docs and clarify that client_encoding
at the engine level is not the same thing as at the connect args
level.

10 years ago- adjustment for ref #3200 as we need an immutabledict() here so
Mike Bayer [Tue, 7 Oct 2014 16:43:27 +0000 (12:43 -0400)] 
- adjustment for ref #3200 as we need an immutabledict() here so
that union() can be called, in the case of a dialect that uses
execution options inside of initialize() (e.g. oursql)

10 years ago- Fixed "'NoneType' object has no attribute 'concrete'" error
Mike Bayer [Mon, 6 Oct 2014 22:33:05 +0000 (18:33 -0400)] 
- Fixed "'NoneType' object has no attribute 'concrete'" error
when using :class:`.AbstractConcreteBase` in conjunction with
a subclass that declares ``__abstract__``.
fixes #3185

10 years ago- The execution options passed to an :class:`.Engine` either via
Mike Bayer [Mon, 6 Oct 2014 22:23:42 +0000 (18:23 -0400)] 
- The execution options passed to an :class:`.Engine` either via
:paramref:`.create_engine.execution_options` or
:meth:`.Engine.update_execution_options` are not passed to the
special :class:`.Connection` used to initialize the dialect
within the "first connect" event; dialects will usually
perform their own queries in this phase, and none of the
current available  options should be applied here.  In
particular, the "autocommit" option was causing an attempt to
autocommit within this initial connect which would fail with
an AttributeError due to the non-standard state of the
:class:`.Connection`.
fixes #3200

10 years ago- move some things that are features to the features
Mike Bayer [Sat, 4 Oct 2014 23:10:23 +0000 (19:10 -0400)] 
- move some things that are features to the features

10 years ago- use provide_metadata for new unique constraint / index tests
Mike Bayer [Sat, 4 Oct 2014 22:57:01 +0000 (18:57 -0400)] 
- use provide_metadata for new unique constraint / index tests
- add a test for PG reflection of unique index without any unique
constraint
- for PG, don't include 'duplicates_constraint' in the entry
if the index does not actually mirror a constraint
- use a distinct method for unique constraint reflection within table
- catch unique constraint not implemented condition; this may
be within some dialects and also is expected to be supported by
Alembic tests
- migration + changelogs for #3184
- add individual doc notes as well to MySQL, Postgreql
fixes #3184

10 years agoMerge branch 'reflect-unique-constraints' of https://bitbucket.org/jerdfelt/sqlalchem...
Mike Bayer [Sat, 4 Oct 2014 21:47:53 +0000 (17:47 -0400)] 
Merge branch 'reflect-unique-constraints' of https://bitbucket.org/jerdfelt/sqlalchemy into pr30

10 years ago- changelog, migration for pr github:134
Mike Bayer [Sat, 4 Oct 2014 16:18:20 +0000 (12:18 -0400)] 
- changelog, migration for pr github:134

10 years agoMerge remote-tracking branch 'origin/pr/134' into pr134
Mike Bayer [Sat, 4 Oct 2014 15:51:52 +0000 (11:51 -0400)] 
Merge remote-tracking branch 'origin/pr/134' into pr134

10 years agoadd simple tests for new name argument for Table.tometadata()
ndparker [Fri, 3 Oct 2014 22:51:01 +0000 (00:51 +0200)] 
add simple tests for new name argument for Table.tometadata()

10 years agocleanup exception handling - use new exception hierarchy (since python 2.5)
ndparker [Thu, 2 Oct 2014 20:00:31 +0000 (22:00 +0200)] 
cleanup exception handling - use new exception hierarchy (since python 2.5)

10 years ago- rework tests for attached databases into individual tests,
Mike Bayer [Mon, 29 Sep 2014 22:09:25 +0000 (18:09 -0400)] 
- rework tests for attached databases into individual tests,
test both memory and file-based
- When selecting from a UNION using an attached database file,
the pysqlite driver reports column names in cursor.description
as 'dbname.tablename.colname', instead of 'tablename.colname' as
it normally does for a UNION (note that it's supposed to just be
'colname' for both, but we work around it).  The column translation
logic here has been adjusted to retrieve the rightmost token, rather
than the second token, so it works in both cases.   Workaround
courtesy Tony Roberts.
fixes #3211

10 years ago- A revisit to this issue first patched in 0.9.5, apparently
Mike Bayer [Mon, 29 Sep 2014 21:33:53 +0000 (17:33 -0400)] 
- A revisit to this issue first patched in 0.9.5, apparently
psycopg2's ``.closed`` accessor is not as reliable as we assumed,
so we have added an explicit check for the exception messages
"SSL SYSCALL error: Bad file descriptor" and
"SSL SYSCALL error: EOF detected" when detecting an
is-disconnect scenario.   We will continue to consult psycopg2's
connection.closed as a first check.
fixes #3021

10 years ago- cyclomatic complexity; break up visit_select, goes from F to D
Mike Bayer [Sat, 27 Sep 2014 22:13:50 +0000 (18:13 -0400)] 
- cyclomatic complexity; break up visit_select, goes from F to D

10 years ago- cyclomatic complexity: _get_colparams() becomes sql.crud._get_crud_params,
Mike Bayer [Sat, 27 Sep 2014 21:59:05 +0000 (17:59 -0400)] 
- cyclomatic complexity: _get_colparams() becomes sql.crud._get_crud_params,
CC goes from F to D

10 years ago- cyclomatic complexity: _join_condition goes from E to a B
Mike Bayer [Sat, 27 Sep 2014 20:46:23 +0000 (16:46 -0400)] 
- cyclomatic complexity: _join_condition goes from E to a B

10 years ago- cyclomatic complexity: instrument_class goes from E to an A
Mike Bayer [Sat, 27 Sep 2014 20:35:32 +0000 (16:35 -0400)] 
- cyclomatic complexity: instrument_class goes from E to an A

10 years ago- cyclomatic complexity; break up reflecttable(), goes from E to B
Mike Bayer [Sat, 27 Sep 2014 20:12:04 +0000 (16:12 -0400)] 
- cyclomatic complexity; break up reflecttable(), goes from E to B

10 years ago- repair autorollback for branches
Mike Bayer [Sat, 27 Sep 2014 01:41:15 +0000 (21:41 -0400)] 
- repair autorollback for branches

10 years ago- Fixed bug where a "branched" connection, that is the kind you get
Mike Bayer [Fri, 26 Sep 2014 20:25:26 +0000 (16:25 -0400)] 
- Fixed bug where a "branched" connection, that is the kind you get
when you call :meth:`.Connection.connect`, would not share transaction
status with the parent.  The architecture of branching has been tweaked
a bit so that the branched connection defers to the parent for
all transactional status and operations.
fixes #3190

10 years ago- Fixed bug where a "branched" connection, that is the kind you get
Mike Bayer [Fri, 26 Sep 2014 18:55:36 +0000 (14:55 -0400)] 
- Fixed bug where a "branched" connection, that is the kind you get
when you call :meth:`.Connection.connect`, would not share invalidation
status with the parent.  The architecture of branching has been tweaked
a bit so that the branched connection defers to the parent for
all invalidation status and operations.
fixes #3215

10 years ago- add explicit warning re: polymorphic_on, cascading is not supported
Mike Bayer [Fri, 26 Sep 2014 16:50:18 +0000 (12:50 -0400)] 
- add explicit warning re: polymorphic_on, cascading is not supported
at this time.  ref #3214

10 years agocomments
Mike Bayer [Fri, 26 Sep 2014 14:59:39 +0000 (10:59 -0400)] 
comments

10 years ago- "column already assigned" message has been updated in 7f82c55f
Mike Bayer [Fri, 26 Sep 2014 01:16:13 +0000 (21:16 -0400)] 
- "column already assigned" message has been updated in 7f82c55f

10 years ago- refactor of declarative, break up into indiviudal methods
Mike Bayer [Fri, 26 Sep 2014 01:08:17 +0000 (21:08 -0400)] 
- refactor of declarative, break up into indiviudal methods
that are now affixed to _MapperConfig
- declarative now creates column copies ahead of time
so that they are ready to go for a declared_attr
- overhaul of declared_attr; memoization, cascading modifier
- A relationship set up with :class:`.declared_attr` on
a :class:`.AbstractConcreteBase` base class will now be configured
on the abstract base mapping automatically, in addition to being
set up on descendant concrete classes as usual.
fixes #2670
- The :class:`.declared_attr` construct has newly improved
behaviors and features in conjunction with declarative.  The
decorated function will now have access to the final column
copies present on the local mixin when invoked, and will also
be invoked exactly once for each mapped class, the returned result
being memoized.   A new modifier :attr:`.declared_attr.cascading`
is added as well. fixes #3150
- the original plan for #3150 has been scaled back; by copying
mixin columns up front and memoizing, we don't actually need
the "map properties later" thing.
- full docs + migration notes

10 years ago- convert to spaces
Mike Bayer [Fri, 26 Sep 2014 01:07:15 +0000 (21:07 -0400)] 
- convert to spaces

10 years ago- clarify documentation on exists() that it is preferred to be in the
Mike Bayer [Wed, 24 Sep 2014 18:49:30 +0000 (14:49 -0400)] 
- clarify documentation on exists() that it is preferred to be in the
WHERE clause.  fixes #3212

10 years agoimprove exception vs. exit handling
ndparker [Tue, 23 Sep 2014 21:28:11 +0000 (23:28 +0200)] 
improve exception vs. exit handling

10 years agoallow Table.tometadata changing the table name
ndparker [Tue, 23 Sep 2014 20:52:14 +0000 (22:52 +0200)] 
allow Table.tometadata changing the table name

10 years ago- flake8 all of test/ext/declarative
Mike Bayer [Tue, 23 Sep 2014 17:25:22 +0000 (13:25 -0400)] 
- flake8 all of test/ext/declarative

10 years ago- The :mod:`sqlalchemy.ext.automap` extension will now set
Mike Bayer [Tue, 23 Sep 2014 03:00:45 +0000 (23:00 -0400)] 
- The :mod:`sqlalchemy.ext.automap` extension will now set
``cascade="all, delete-orphan"`` automatically on a one-to-many
relationship/backref where the foreign key is detected as containing
one or more non-nullable columns.  This argument is present in the
keywords passed to :func:`.automap.generate_relationship` in this
case and can still be overridden.  Additionally, if the
:class:`.ForeignKeyConstraint` specifies ``ondelete="CASCADE"``
for a non-nullable or ``ondelete="SET NULL"`` for a nullable set
of columns, the argument ``passive_deletes=True`` is also added to the
relationship.  Note that not all backends support reflection of
ondelete, but backends that do include Postgresql and MySQL.
fixes #3210

10 years agopep8/flake8
Mike Bayer [Tue, 23 Sep 2014 02:22:09 +0000 (22:22 -0400)] 
pep8/flake8

10 years ago- these tests don't test anything in SQLAlchemy - from our perpsective,
Mike Bayer [Fri, 19 Sep 2014 16:39:34 +0000 (12:39 -0400)] 
- these tests don't test anything in SQLAlchemy - from our perpsective,
we need to be in transactions (tested elsewhere) and we need to
emit the correct FOR UPDATE strings (tested elsewhere).  There's nothing
in SQLA to be tested as far as validating that for update causes exceptions
or not, and these tests frequently fail as they are timing sensitive.

10 years ago- Fixed bug that affected generally the same classes of event
Mike Bayer [Thu, 18 Sep 2014 21:49:07 +0000 (17:49 -0400)] 
- Fixed bug that affected generally the same classes of event
as that of :ticket:`3199`, when the ``named=True`` parameter
would be used.  Some events would fail to register, and others
would not invoke the event arguments correctly, generally in the
case of when an event was "wrapped" for adaption in some other way.
The "named" mechanics have been rearranged to not interfere with
the argument signature expected by internal wrapper functions.
fixes #3197

10 years agofix test
Mike Bayer [Thu, 18 Sep 2014 20:28:54 +0000 (16:28 -0400)] 
fix test

10 years ago- Fixed an unlikely race condition observed in some exotic end-user
Mike Bayer [Thu, 18 Sep 2014 19:42:27 +0000 (15:42 -0400)] 
- Fixed an unlikely race condition observed in some exotic end-user
setups, where the attempt to check for "duplicate class name" in
declarative would hit upon a not-totally-cleaned-up weak reference
related to some other class being removed; the check here now ensures
the weakref still references an object before calling upon it further.
fixes #3208

10 years ago- Fixed bug that affected many classes of event, particularly
Mike Bayer [Thu, 18 Sep 2014 19:24:40 +0000 (15:24 -0400)] 
- Fixed bug that affected many classes of event, particularly
ORM events but also engine events, where the usual logic of
"de duplicating" a redundant call to :func:`.event.listen`
with the same arguments would fail, for those events where the
listener function is wrapped.  An assertion would be hit within
registry.py.  This assertion has now been integrated into the
deduplication check, with the added bonus of a simpler means
of checking deduplication across the board.
fixes #3199

10 years ago- Added new method :meth:`.Select.with_statement_hint` and ORM
Mike Bayer [Thu, 18 Sep 2014 15:44:48 +0000 (11:44 -0400)] 
- Added new method :meth:`.Select.with_statement_hint` and ORM
method :meth:`.Query.with_statement_hint` to support statement-level
hints that are not specific to a table.
fixes #3206