]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
11 years ago- A warning is emitted if the ``isolation_level`` parameter is used
Mike Bayer [Wed, 4 Feb 2015 22:07:15 +0000 (17:07 -0500)] 
- A warning is emitted if the ``isolation_level`` parameter is used
with :meth:`.Connection.execution_options` when a :class:`.Transaction`
is in play; DBAPIs and/or SQLAlchemy dialects such as psycopg2,
MySQLdb may implicitly rollback or commit the transaction, or
not change the setting til next transaction, so this is never safe.
- Added new parameter :paramref:`.Session.connection.execution_options`
which may be used to set up execution options on a :class:`.Connection`
when it is first checked out, before the transaction has begun.
This is used to set up options such as isolation level on the
connection before the transaction starts.
- added new documentation section
detailing best practices for setting transaction isolation with
sessions.
fixes #3296

(cherry picked from commit 9cbe235810b7c0c24d2556b4bb581b0207812e2d)

Conflicts:
test/orm/test_bind.py

11 years ago- Fixed bug in lazy loading SQL construction whereby a complex
Mike Bayer [Tue, 3 Feb 2015 00:46:13 +0000 (19:46 -0500)] 
- Fixed bug in lazy loading SQL construction whereby a complex
primaryjoin that referred to the same "local" column multiple
times in the "column that points to itself" style of self-referential
join would not be substituted in all cases.   The logic to determine
substitutions here has been reworked to be more open-ended.
fixes #3300

Conflicts:
test/orm/test_relationships.py

11 years ago- Repaired support for Postgresql UUID types in conjunction with
Mike Bayer [Mon, 2 Feb 2015 00:00:07 +0000 (19:00 -0500)] 
- Repaired support for Postgresql UUID types in conjunction with
the ARRAY type when using psycopg2.  The psycopg2 dialect now
employs use of the psycopg2.extras.register_uuid() hook
so that UUID values are always passed to/from the DBAPI as
UUID() objects.   The :paramref:`.UUID.as_uuid` flag is still
honored, except with psycopg2 we need to convert returned
UUID objects back into strings when this is disabled.
fixes #2940

(cherry picked from commit b2189da65019ed2f44e77933a122619489319c5a)

11 years agoAdd unit test for UUID arrays in PostgreSQL.
Kevin Deldycke [Thu, 6 Feb 2014 10:44:52 +0000 (11:44 +0100)] 
Add unit test for UUID arrays in PostgreSQL.

(cherry picked from commit cf4e421248e3175b97170d0c6930b360ff326c06)

11 years ago- Added support for the :class:`postgresql.JSONB` datatype when
Mike Bayer [Sun, 1 Feb 2015 00:04:54 +0000 (19:04 -0500)] 
- Added support for the :class:`postgresql.JSONB` datatype when
using psycopg2 2.5.4 or greater, which features native conversion
of JSONB data so that SQLAlchemy's converters must be disabled;
additionally, the newly added psycopg2 extension
``extras.register_default_jsonb`` is used to establish a JSON
deserializer passed to the dialect via the ``json_deserializer``
argument.  Also repaired the Postgresql integration tests which
weren't actually round-tripping the JSONB type as opposed to the
JSON type.  Pull request courtesy Mateusz Susik.

- Repaired the use of the "array_oid" flag when registering the
HSTORE type with older psycopg2 versions < 2.4.3, which does not
support this flag, as well as use of the native json serializer
hook "register_default_json" with user-defined ``json_deserializer``
on psycopg2 versions < 2.5, which does not include native json.

(cherry picked from commit bf70f556b382dc376783efbcb598e0fab71ee235)

11 years agoPsycopg2 JSONB support.
Mateusz Susik [Fri, 24 Oct 2014 11:27:29 +0000 (13:27 +0200)] 
Psycopg2 JSONB support.

(cherry picked from commit e7d61d594b8a89535696436a667a526bd2999fb2)

11 years ago- Fixed bug in 0.9's foreign key setup system, such that
Mike Bayer [Wed, 28 Jan 2015 16:48:20 +0000 (11:48 -0500)] 
- Fixed bug in 0.9's foreign key setup system, such that
the logic used to link a :class:`.ForeignKey` to its parent could fail
when the foreign key used "link_to_name=True" in conjunction with
a target :class:`.Table` that would not receive its parent column until
later, such as within a reflection + "useexisting" scenario,
if the target column in fact had a key value different from its name,
as would occur in reflection if column reflect events were used to
alter the .key of reflected :class:`.Column` objects so that the
link_to_name becomes significant.  Also repaired support for column
type via FK transmission in a similar way when target columns had a
different key and were referenced using link_to_name.
fixes #3298

(cherry picked from commit 3712e35c329cc3b5106f026be90e04f65412586d)

11 years ago- fix link to non_primary flag
Mike Bayer [Tue, 27 Jan 2015 05:34:10 +0000 (00:34 -0500)] 
- fix link to non_primary flag
- rewrite the multiple mappers section

11 years ago- Added new user-space accessors for viewing transaction isolation
Mike Bayer [Tue, 20 Jan 2015 16:37:13 +0000 (11:37 -0500)] 
- Added new user-space accessors for viewing transaction isolation
levels; :meth:`.Connection.get_isolation_level`,
:attr:`.Connection.default_isolation_level`.
- enhance documentation inter-linkage between new accessors,
existing isolation_level parameters, as well as in
the dialect-level methods which should be fully covered
by Engine/Connection level APIs now.

(cherry picked from commit c3d898e8d06c7e549bb273fc8654f5d24fab2204)

11 years ago- enhance detail here regarding the difference between
Mike Bayer [Tue, 20 Jan 2015 16:36:14 +0000 (11:36 -0500)] 
- enhance detail here regarding the difference between
Connection.connection and engine.raw_connection()

(cherry picked from commit 4032aaf097a9268bc331e4b4815d77b19ba3febb)

11 years agoformatting
Mike Bayer [Tue, 20 Jan 2015 16:03:02 +0000 (11:03 -0500)] 
formatting

(cherry picked from commit 10dd5fe81062347905492ef66e6f0453479cc03b)

11 years ago- add an exclusion here that helps with the case of 3rd party
Mike Bayer [Sat, 17 Jan 2015 17:46:20 +0000 (12:46 -0500)] 
- add an exclusion here that helps with the case of 3rd party
test suite redefining an existing test in test_suite

Conflicts:
lib/sqlalchemy/testing/plugin/pytestplugin.py

11 years ago- Fixed bug where Postgresql dialect would fail to render an
Mike Bayer [Fri, 16 Jan 2015 23:03:45 +0000 (18:03 -0500)] 
- Fixed bug where Postgresql dialect would fail to render an
expression in an :class:`.Index` that did not correspond directly
to a table-bound column; typically when a :func:`.text` construct
was one of the expressions within the index; or could misinterpret the
list of expressions if one or more of them were such an expression.
fixes #3174

(cherry picked from commit 79fa69f1f37fdbc0dfec6bdea1e07f52bfe18f7b)

11 years ago- add new section to ORM referring to runtime inspection API,
Mike Bayer [Wed, 14 Jan 2015 17:02:41 +0000 (12:02 -0500)] 
- add new section to ORM referring to runtime inspection API,
more links, attempt to fix #3290

11 years ago- The "wildcard" loader options, in particular the one set up by
Mike Bayer [Tue, 13 Jan 2015 22:04:35 +0000 (17:04 -0500)] 
- The "wildcard" loader options, in particular the one set up by
the :func:`.orm.load_only` option to cover all attributes not
explicitly mentioned, now takes into account the superclasses
of a given entity, if that entity is mapped with inheritance mapping,
so that attribute names within the superclasses are also omitted
from the load.  Additionally, the polymorphic discriminator column
is unconditionally included in the list, just in the same way that
primary key columns are, so that even with load_only() set up,
polymorphic loading of subtypes continues to function correctly.
fixes #3287

(cherry picked from commit b63aae2c232f980a47aa2a635c35dfa45390f451)

Conflicts:
lib/sqlalchemy/orm/mapper.py

11 years ago- this will be 0.9.9
Mike Bayer [Mon, 12 Jan 2015 18:31:22 +0000 (13:31 -0500)] 
- this will be 0.9.9

11 years ago- changelog for pr 41
Mike Bayer [Mon, 12 Jan 2015 18:24:11 +0000 (13:24 -0500)] 
- changelog for pr 41

(cherry picked from commit 5f1d34c4c86263684d5a79c8d8f9db8d1e3afccb)

11 years agoAdd native_enum flag to Enum's repr() result
Dimitris Theodorou [Mon, 12 Jan 2015 01:40:50 +0000 (02:40 +0100)] 
Add native_enum flag to Enum's repr() result

Needed for alembic autogenerate rendering.

(cherry picked from commit f4b7b02e31e6b49195c21da7221bcbda0bad02b9)

Conflicts:
test/sql/test_types.py

11 years ago- add a close here
Mike Bayer [Tue, 6 Jan 2015 16:34:52 +0000 (11:34 -0500)] 
- add a close here

11 years ago- Fixed bug where if an exception were thrown at the start of a
Mike Bayer [Tue, 6 Jan 2015 02:38:19 +0000 (21:38 -0500)] 
- Fixed bug where if an exception were thrown at the start of a
:class:`.Query` before it fetched results, particularly when
row processors can't be formed, the cursor would stay open with
results pending and not actually be closed.  This is typically only
an issue on an interpreter like Pypy where the cursor isn't
immediately GC'ed, and can in some circumstances lead to transactions/
locks being open longer than is desirable.
fixes #3285

Conflicts:
lib/sqlalchemy/orm/loading.py

11 years ago- make a new page that introduces mapping a little better for the
Mike Bayer [Mon, 5 Jan 2015 19:20:03 +0000 (14:20 -0500)] 
- make a new page that introduces mapping a little better for the
"mapping" section, contrasts declarative and classical some more

Conflicts:
doc/build/orm/mapper_config.rst

11 years ago- fix some RST whitespace syntactical issues in toctrees
Mike Bayer [Tue, 30 Dec 2014 01:01:21 +0000 (20:01 -0500)] 
- fix some RST whitespace syntactical issues in toctrees
- have the topmost toctree only include page names
- add glossary to toctree, remove search by itself

(cherry picked from commit 87a1af4efe5bb515d9e687e2f7dfc84dfb8ee522)

Conflicts:
doc/build/changelog/index.rst

11 years ago- see if we can get RTD to use this for now
Mike Bayer [Sun, 28 Dec 2014 22:11:36 +0000 (17:11 -0500)] 
- see if we can get RTD to use this for now

11 years agobump
Mike Bayer [Sun, 28 Dec 2014 16:06:47 +0000 (11:06 -0500)] 
bump

(cherry picked from commit 1cb24b37421d413045daccfc819d9fa0e61dd4c4)

11 years agobump
Mike Bayer [Sun, 28 Dec 2014 15:43:39 +0000 (10:43 -0500)] 
bump

(cherry picked from commit 60368fdd9f278492099f7c8108456ecbb44c76ef)

11 years ago- fix links for loading, add a redirect page
Mike Bayer [Sun, 28 Dec 2014 00:05:08 +0000 (19:05 -0500)] 
- fix links for loading, add a redirect page

bump

foo

(cherry picked from commit 0bd632804eae635d793175a959294f49f3538806)

11 years ago- another bump
Mike Bayer [Sat, 27 Dec 2014 22:56:40 +0000 (17:56 -0500)] 
- another bump

(cherry picked from commit d11c7a197e556eda873b267d20a03e317477e510)

11 years ago- remove private superclasses from docs in favor of fixing
Mike Bayer [Sat, 27 Dec 2014 22:45:58 +0000 (17:45 -0500)] 
- remove private superclasses from docs in favor of fixing
zzzeeksphinx to omit these from warning

11 years agoremove pipe...
Mike Bayer [Sat, 27 Dec 2014 22:17:05 +0000 (17:17 -0500)] 
remove pipe...

(cherry picked from commit 3ccae267894804b104171f2fee9355cd292e0dbf)

11 years agono hassuffixes in 0.9
Mike Bayer [Sat, 27 Dec 2014 22:16:07 +0000 (17:16 -0500)] 
no hassuffixes in 0.9

11 years agocorrections
Mike Bayer [Sat, 27 Dec 2014 21:54:32 +0000 (16:54 -0500)] 
corrections

(cherry picked from commit 5343d24fee5219de002a8efba8bc882f8b3d4b5b)

11 years ago- corrections
Mike Bayer [Sat, 27 Dec 2014 20:55:30 +0000 (15:55 -0500)] 
- corrections
- attempt to add a script to semi-automate the fixing of links

(cherry picked from commit 544e72bcb6af1ca657b1762f105634372eca3bc0)

11 years ago- squash-merge the improve_toc branch, which moves all the Sphinx styling
Mike Bayer [Wed, 17 Dec 2014 22:24:23 +0000 (17:24 -0500)] 
- squash-merge the improve_toc branch, which moves all the Sphinx styling
and extensions into an external library, and also reorganizes most large documentation
pages into many small areas to reduce scrolling and better present the context
into a more fine-grained hierarchy.

(cherry picked from commit 9561321d0328df270c4ff0360dc7a035db627949)

- manually port previous differences between 0.9 and 1.0 docs to the
cherry-pick.

11 years ago- typo fixes #3269
Mike Bayer [Sat, 27 Dec 2014 17:47:57 +0000 (12:47 -0500)] 
- typo fixes #3269

(cherry picked from commit ef6dc0cf2ef581e7cb53dcb4840f678aa1fa5ba6)

11 years ago- ouch, this needs to be in dbapi, not module level!
Mike Bayer [Fri, 19 Dec 2014 23:20:11 +0000 (18:20 -0500)] 
- ouch, this needs to be in dbapi, not module level!

11 years ago- make the google deprecation messages more specific, use full URL
Mike Bayer [Fri, 19 Dec 2014 19:15:56 +0000 (14:15 -0500)] 
- make the google deprecation messages more specific, use full URL
format
- add an extra doc to MySQLdb
- changelog

(cherry picked from commit 182553b7409cfa6673483d03f29bc4c462336577)

11 years agoUpdate gaerdbms to highlight improved connection method
Rob Berry [Thu, 18 Dec 2014 13:17:11 +0000 (13:17 +0000)] 
Update gaerdbms to highlight improved connection method

(cherry picked from commit 0d15791a6e3ec35e3c2e297026d8396742e30a34)

11 years agoMaul the evaulate & friends typo
Priit Laes [Fri, 19 Dec 2014 16:46:16 +0000 (18:46 +0200)] 
Maul the evaulate & friends typo

(cherry picked from commit 8ae47dc6e0a98b359247040236be0810b9086f40)

Conflicts:
doc/build/changelog/changelog_10.rst
doc/build/changelog/migration_10.rst
lib/sqlalchemy/ext/declarative/base.py

11 years ago- Fixed bug where using a :class:`.TypeDecorator` that implemented
Mike Bayer [Fri, 19 Dec 2014 17:14:52 +0000 (12:14 -0500)] 
- Fixed bug where using a :class:`.TypeDecorator` that implemented
a type that was also a :class:`.TypeDecorator` would fail with
Python's "Cannot create a consistent method resolution order (MRO)"
error, when any kind of SQL comparison expression were used against
an object using this type.

(cherry picked from commit d1ac6cb33af3b105db7cdb51411e10ac3bafff1f)

11 years ago- Added a version check to the MySQLdb dialect surrounding the
Mike Bayer [Tue, 16 Dec 2014 22:02:48 +0000 (17:02 -0500)] 
- Added a version check to the MySQLdb dialect surrounding the
check for 'utf8_bin' collation, as this fails on MySQL server < 5.0.
fixes #3274

(cherry picked from commit 00aaaa4bd4aa150ff9964bf2c00b1404d2e8a140)

11 years ago- automap isn't new anymore
Mike Bayer [Sun, 14 Dec 2014 21:21:40 +0000 (16:21 -0500)] 
- automap isn't new anymore

11 years ago- Added new method :meth:`.Session.invalidate`, functions similarly
Mike Bayer [Sat, 13 Dec 2014 00:59:11 +0000 (19:59 -0500)] 
- Added new method :meth:`.Session.invalidate`, functions similarly
to :meth:`.Session.close`, except also calls
:meth:`.Connection.invalidate`
on all connections, guaranteeing that they will not be returned to
the connection pool.  This is useful in situations e.g. dealing
with gevent timeouts when it is not safe to use the connection further,
even for rollbacks.
references #3258

(cherry picked from commit cf7981f60d485f17465f44c6ff651ae283ade377)

11 years ago- fix up query update /delete documentation, make warnings
Mike Bayer [Wed, 10 Dec 2014 18:08:53 +0000 (13:08 -0500)] 
- fix up query update /delete documentation, make warnings
a lot clearer, partial fixes for #3252

(cherry picked from commit 3c70f609507ccc6775495cc533265aeb645528cd)

Conflicts:
lib/sqlalchemy/orm/query.py

11 years agoRemoving unneeded space.
Yuval Langer [Tue, 9 Dec 2014 02:19:18 +0000 (04:19 +0200)] 
Removing unneeded space.
(cherry picked from commit c86c593ec3b913361999a1970efae3e6f3d831fa)

11 years agopep8
Mike Bayer [Sat, 6 Dec 2014 17:39:18 +0000 (12:39 -0500)] 
pep8

(cherry picked from commit 95cd2003bbe1b5da2d3c78ac845855126e03de2f)

11 years ago- pep8
Mike Bayer [Fri, 5 Dec 2014 19:19:36 +0000 (14:19 -0500)] 
- pep8

(cherry picked from commit ec6214457ed71f0ae87d83076e084214650aae5d)

Conflicts:
test/dialect/test_sqlite.py

11 years ago- pep8 cleanup
Mike Bayer [Fri, 5 Dec 2014 16:35:42 +0000 (11:35 -0500)] 
- pep8 cleanup

(cherry picked from commit 6e53e866dea4eba630128e856573ca1076b91611)

11 years ago- Updated the :ref:`examples_versioned_history` example such that
Mike Bayer [Wed, 26 Nov 2014 19:58:44 +0000 (14:58 -0500)] 
- Updated the :ref:`examples_versioned_history` example such that
mapped columns are re-mapped to
match column names as well as grouping of columns; in particular,
this allows columns that are explicitly grouped in a same-column-named
joined inheritance scenario to be mapped in the same way in the
history mappings, avoiding warnings added in the 0.9 series
regarding this pattern and allowing the same view of attribute
keys.

(cherry picked from commit de62497b03274c860ea2554dfbacb3064ce02c19)

11 years ago- formatting
Mike Bayer [Wed, 26 Nov 2014 19:58:32 +0000 (14:58 -0500)] 
- formatting

(cherry picked from commit a88be57fb7ef96e914d8a7fb90de375ec7f0befd)

11 years ago- fix minor spelling error
Jon Nelson [Sat, 15 Nov 2014 04:19:26 +0000 (22:19 -0600)] 
- fix minor spelling error

(cherry picked from commit 5fd779df0c958dc1ec2766f55d80b3090d2427eb)

11 years agoadded docs to clarify that sql statement is already in a dialect
jonathan vanasco [Fri, 17 Oct 2014 23:35:29 +0000 (19:35 -0400)] 
added docs to clarify that sql statement is already in a dialect

(cherry picked from commit 0f5a400b77862d2ae8f5d1a326fe9571da8fc0cb)

11 years ago- add an order_by here
Mike Bayer [Wed, 26 Nov 2014 15:34:46 +0000 (10:34 -0500)] 
- add an order_by here

(cherry picked from commit fb06fa9d6e6f6da8eee5b7dfc196c3e12761da61)

11 years ago- Fixed a bug in the examples/generic_assocaitions/discriminator_on_association.py
Mike Bayer [Mon, 24 Nov 2014 17:33:56 +0000 (12:33 -0500)] 
- Fixed a bug in the examples/generic_assocaitions/discriminator_on_association.py
example, where the subclasses of AddressAssociation were not being
mapped as "single table inheritance", leading to problems when trying
to use the mappings further.

(cherry picked from commit 2098001ad3e0a40aa909a347ec91c12fab04a657)

11 years ago- Fixed a leak which would occur in the unsupported and highly
Mike Bayer [Thu, 13 Nov 2014 18:17:38 +0000 (13:17 -0500)] 
- Fixed a leak which would occur in the unsupported and highly
non-recommended use case of replacing a relationship on a fixed
mapped class many times, referring to an arbitrarily growing number of
target mappers.  A warning is emitted when the old relationship is
replaced, however if the mapping were already used for querying, the
old relationship would still be referenced within some registries.
fixes #3251

11 years ago- Fixed issue where the columns from a SELECT embedded in an
Mike Bayer [Tue, 11 Nov 2014 17:34:00 +0000 (12:34 -0500)] 
- Fixed issue where the columns from a SELECT embedded in an
INSERT, either through the values clause or as a "from select",
would pollute the column types used in the result set produced by
the RETURNING clause when columns from both statements shared the
same name, leading to potential errors or mis-adaptation when
retrieving the returning rows.
fixes #3248

11 years ago- we aren't changing .key behavior yet here, this is just documentation
Mike Bayer [Mon, 10 Nov 2014 23:02:14 +0000 (18:02 -0500)] 
- we aren't changing .key behavior yet here, this is just documentation

11 years ago- in lieu of adding a new system of translating bound parameter names
Mike Bayer [Mon, 10 Nov 2014 22:58:09 +0000 (17:58 -0500)] 
- in lieu of adding a new system of translating bound parameter names
for psycopg2 and others, encourage users to take advantage of positional
styles by documenting "paramstyle".   A section is added to psycopg2
specifically as this is a pretty common spot for named parameters
that may be unusually named.  fixes #3246.

11 years ago- edits to the subqueryload ordering merge
Mike Bayer [Wed, 5 Nov 2014 20:11:13 +0000 (15:11 -0500)] 
- edits to the subqueryload ordering merge

11 years agoAdded documentation about interaction between `subqueryload` and LIMIT/OFFSET.
Jack Zhou [Tue, 29 Jul 2014 18:49:52 +0000 (11:49 -0700)] 
Added documentation about interaction between `subqueryload` and LIMIT/OFFSET.

11 years ago- missing import
Mike Bayer [Wed, 5 Nov 2014 17:28:42 +0000 (12:28 -0500)] 
- missing import

11 years ago- Fixed bug regarding expression mutations which could express
Mike Bayer [Wed, 5 Nov 2014 09:22:30 +0000 (04:22 -0500)] 
- Fixed bug regarding expression mutations which could express
itself as a "Could not locate column" error when using
:class:`.Query` to  select from multiple, anonymous column
entities when querying against SQLite, as a side effect of the
"join rewriting" feature used by the SQLite dialect.
fixes #3241

11 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.

11 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

Conflicts:
test/orm/inheritance/test_single.py

11 years ago- repair documenation for object_session(), returns None if no
Mike Bayer [Sun, 19 Oct 2014 20:56:18 +0000 (16:56 -0400)] 
- repair documenation for object_session(), returns None if no
session, and refer to InstanceState.session.  Add note about
objects that are deleted within an ongoing transaction.

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

Conflicts:
test/orm/test_relationships.py

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

11 years ago0.9.8 rel_0_9_8
Mike Bayer [Mon, 13 Oct 2014 17:10:15 +0000 (13:10 -0400)] 
0.9.8

11 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

11 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

11 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

Conflicts:
test/profiles.txt

11 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

11 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

11 years ago- fix the marker here so this page can be found
Mike Bayer [Fri, 10 Oct 2014 21:17:34 +0000 (17:17 -0400)] 
- fix the marker here so this page can be found
- clarify the note about the defaults, note that it's upcoming in 1.0

11 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

11 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

11 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.

11 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)

11 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

Conflicts:
test/ext/declarative/test_inheritance.py

11 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

11 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

11 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

11 years ago- flake8
Mike Bayer [Fri, 26 Sep 2014 18:36:55 +0000 (14:36 -0400)] 
- flake8

11 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

11 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

11 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

11 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.

11 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

Conflicts:
test/base/test_events.py
test/orm/test_attributes.py
test/orm/test_events.py

11 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

11 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

Conflicts:
lib/sqlalchemy/event/registry.py
test/base/test_events.py

11 years ago- not sure what this is testing but remove the self.l that might
Mike Bayer [Wed, 17 Sep 2014 19:40:09 +0000 (15:40 -0400)] 
- not sure what this is testing but remove the self.l that might
be contributing to pypy not cleaning up on this one

Conflicts:
test/orm/test_eager_relations.py

11 years ago- Fixed the version string detection in the pymssql dialect to
Mike Bayer [Tue, 16 Sep 2014 21:40:06 +0000 (17:40 -0400)] 
- Fixed the version string detection in the pymssql dialect to
work with Microsoft SQL Azure, which changes the word "SQL Server"
to "SQL Azure".
fixes #3151

11 years ago- raise from cause here to preserve stack trace
Mike Bayer [Tue, 16 Sep 2014 20:20:22 +0000 (16:20 -0400)] 
- raise from cause here to preserve stack trace

11 years agoAdded EXASolution dialect to documentation
Jan [Tue, 16 Sep 2014 18:54:27 +0000 (20:54 +0200)] 
Added EXASolution dialect to documentation

11 years ago- use compat.u for python3.2, fixes #3198
Mike Bayer [Mon, 15 Sep 2014 18:57:41 +0000 (14:57 -0400)] 
- use compat.u for python3.2, fixes #3198

11 years ago- fix issue where nose Failure object comes into play here
Mike Bayer [Mon, 15 Sep 2014 18:53:20 +0000 (14:53 -0400)] 
- fix issue where nose Failure object comes into play here

Conflicts:
lib/sqlalchemy/testing/plugin/noseplugin.py

11 years agoUpdated documenation for engines.rst
Jim Hokanson [Sun, 14 Sep 2014 04:25:41 +0000 (00:25 -0400)] 
Updated documenation for engines.rst

Clarified connecting to absolute path for sqlite using Windows.

11 years ago- Fixed warning that would emit when a complex self-referential
Mike Bayer [Thu, 11 Sep 2014 15:51:44 +0000 (11:51 -0400)] 
- Fixed warning that would emit when a complex self-referential
primaryjoin contained functions, while at the same time remote_side
was specified; the warning would suggest setting "remote side".
It now only emits if remote_side isn't present.
fixes #3194

11 years ago- Fixed bug in ordering list where the order of items would be
Mike Bayer [Wed, 10 Sep 2014 18:14:50 +0000 (14:14 -0400)] 
- Fixed bug in ordering list where the order of items would be
thrown off during a collection replace event, if the
reorder_on_append flag were set to True.  The fix ensures that the
ordering list only impacts the list that is explicitly associated
with the object.
fixes #3191

11 years ago- for whatever reason, Insert.values() with multi values wasn't
Mike Bayer [Tue, 9 Sep 2014 22:59:59 +0000 (18:59 -0400)] 
- for whatever reason, Insert.values() with multi values wasn't
in the 0.8 migration, so let's just add that

11 years ago- add in all the method-chained methods to the parameter descriptions
Mike Bayer [Tue, 9 Sep 2014 21:29:37 +0000 (17:29 -0400)] 
- add in all the method-chained methods to the parameter descriptions
on select().  improve some descriptions.