]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
10 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

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

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

10 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

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

10 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

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

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

(cherry picked from commit 95cd2003bbe1b5da2d3c78ac845855126e03de2f)

10 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

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

(cherry picked from commit 6e53e866dea4eba630128e856573ca1076b91611)

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

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

(cherry picked from commit a88be57fb7ef96e914d8a7fb90de375ec7f0befd)

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

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

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

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

10 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

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

11 years ago- mako_layout isn't used, remove it
Mike Bayer [Sun, 7 Sep 2014 22:10:40 +0000 (18:10 -0400)] 
- mako_layout isn't used, remove it
- to check for epub look at "builder"

11 years agoDocs: use the base layout when mako_layout=='epub'
hiaselhans [Sat, 6 Sep 2014 11:32:58 +0000 (13:32 +0200)] 
Docs: use the base layout when mako_layout=='epub'

  - https://readthedocs.org/projects/sqlalchemy/downloads/epub/latest/ renders with the full template which is unreadable on e-readers
  - in the makefile the template-variable mako_layout is set for target: epub which makes mako use only the base layout.
  - this is the more elegant solution as proposed to #133

11 years ago- set flavor to "index" here as MySQL is sending None
Mike Bayer [Fri, 5 Sep 2014 21:03:43 +0000 (17:03 -0400)] 
- set flavor to "index" here as MySQL is sending None

11 years ago- An adjustment to table/index reflection such that if an index
Mike Bayer [Tue, 2 Sep 2014 18:21:10 +0000 (14:21 -0400)] 
- An adjustment to table/index reflection such that if an index
reports a column that isn't found to be present in the table,
a warning is emitted and the column is skipped.  This can occur
for some special system column situations as has been observed
with Oracle. fixes #3180

11 years ago- backport the expects_warning() context manager from 1.0
Mike Bayer [Tue, 2 Sep 2014 18:22:28 +0000 (14:22 -0400)] 
- backport the expects_warning() context manager from 1.0

11 years ago- more updates to text docs, literal_column, column etc. in prep
Mike Bayer [Mon, 1 Sep 2014 21:20:49 +0000 (17:20 -0400)] 
- more updates to text docs, literal_column, column etc.  in prep
for ticket 2992.

11 years ago- walk back these literal SQL lectures into something much more succinct.
Mike Bayer [Mon, 1 Sep 2014 00:26:40 +0000 (20:26 -0400)] 
- walk back these literal SQL lectures into something much more succinct.
the ORM one in particular was really long winded and I don't really care if people
use text() anyway, they'll figure it out ;)

11 years ago- improve from_statement() doc
Mike Bayer [Sun, 31 Aug 2014 22:05:17 +0000 (18:05 -0400)] 
- improve from_statement() doc

11 years ago- start encouraging the use of text() for injection of string-based SQL
Mike Bayer [Sun, 31 Aug 2014 15:44:51 +0000 (11:44 -0400)] 
- start encouraging the use of text() for injection of string-based SQL
rather than straight strings.  reference #2992

11 years ago- add a test to events within load to verify something we want
Mike Bayer [Fri, 29 Aug 2014 18:23:36 +0000 (14:23 -0400)] 
- add a test to events within load to verify something we want
to ensure stays the same on 1.0

11 years ago- add some more docs to yield_per
Mike Bayer [Fri, 29 Aug 2014 17:35:03 +0000 (13:35 -0400)] 
- add some more docs to yield_per

11 years ago- changelog for pr bitbucket:28
Mike Bayer [Mon, 25 Aug 2014 23:14:47 +0000 (19:14 -0400)] 
- changelog for pr bitbucket:28

11 years agoadd update() support to MutableDict
Matt Chisholm [Sun, 27 Jul 2014 10:15:51 +0000 (12:15 +0200)] 
add update() support to MutableDict

11 years ago- changelog for pr bitbucket:27
Mike Bayer [Mon, 25 Aug 2014 23:13:25 +0000 (19:13 -0400)] 
- changelog for pr bitbucket:27

11 years agofix MutableDict.coerce
Matt Chisholm [Sun, 27 Jul 2014 10:15:36 +0000 (12:15 +0200)] 
fix MutableDict.coerce

If a class inherited from MutableDict (say, for instance, to add an update() method), coerce() would give back an instance of MutableDict instead of an instance of the derived class.

11 years ago- mention that FOUND_ROWS is hardcoded; fixes #3146
Mike Bayer [Mon, 25 Aug 2014 21:06:28 +0000 (17:06 -0400)] 
- mention that FOUND_ROWS is hardcoded; fixes #3146

11 years ago- deprecation note regarding resurrect, reference #3171
Mike Bayer [Mon, 25 Aug 2014 21:01:51 +0000 (17:01 -0400)] 
- deprecation note regarding resurrect, reference #3171

11 years agoAdd note on begin_nested requiring rollback/commit
Gunnlaugur Þór Briem [Thu, 21 Aug 2014 18:42:08 +0000 (18:42 +0000)] 
Add note on begin_nested requiring rollback/commit

Avoid confusion about rollback/commit "must be issued" after
``session.begin_nested()`` --- this might be taken to mean call must be
*added*, but that's only true if not using the return value as a context
manager.

11 years agoMerge branch 'rel_0_9' of bitbucket.org:zzzeek/sqlalchemy into rel_0_9
Mike Bayer [Thu, 21 Aug 2014 21:37:09 +0000 (17:37 -0400)] 
Merge branch 'rel_0_9' of bitbucket.org:zzzeek/sqlalchemy into rel_0_9

11 years agoFix doc typo 'conjunection'
Gunnlaugur Þór Briem [Thu, 31 Jul 2014 23:26:18 +0000 (23:26 +0000)] 
Fix doc typo 'conjunection'

11 years agoFix copy-paste error in Delete doc
Gunnlaugur Þór Briem [Thu, 31 Jul 2014 23:23:56 +0000 (23:23 +0000)] 
Fix copy-paste error in Delete doc

11 years ago- doc corrections for inline=True
Mike Bayer [Thu, 21 Aug 2014 14:29:15 +0000 (10:29 -0400)] 
- doc corrections for inline=True

11 years ago- upgrade the note about inline=True to a warning, and make it clear that
Mike Bayer [Thu, 21 Aug 2014 00:18:30 +0000 (20:18 -0400)] 
- upgrade the note about inline=True to a warning, and make it clear that
this flag should really be set all the time. ref #3169

11 years ago- Fixed bug in connection pool logging where the "connection checked out"
Mike Bayer [Wed, 20 Aug 2014 16:01:20 +0000 (12:01 -0400)] 
- Fixed bug in connection pool logging where the "connection checked out"
debug logging message would not emit if the logging were set up using
``logging.setLevel()``, rather than using the ``echo_pool`` flag.
Tests to assert this logging have been added.  This is a
regression that was introduced in 0.9.0.
fixes #3168

11 years ago- pep8 cleanup
Mike Bayer [Wed, 20 Aug 2014 13:08:59 +0000 (09:08 -0400)] 
- pep8 cleanup

11 years ago- changelog for pullreq github:125
Mike Bayer [Sat, 16 Aug 2014 17:57:46 +0000 (13:57 -0400)] 
- changelog for pullreq github:125
- add pg8000 version detection for the "sane multi rowcount" feature

11 years agopg8000 now supports sane_multi_rowcount
Tony Locke [Sat, 2 Aug 2014 15:19:46 +0000 (16:19 +0100)] 
pg8000 now supports sane_multi_rowcount

From pg8000-1.9.14 sane_multi_rowcount is supported so this commit
updates the dialect accordingly.

11 years ago- mutablemapping adds compiler overhead, so screw it
Mike Bayer [Fri, 15 Aug 2014 22:39:26 +0000 (18:39 -0400)] 
- mutablemapping adds compiler overhead, so screw it

11 years ago- TIL that dict.keys() in py3K is not an iterator, it is an iterable
Mike Bayer [Fri, 15 Aug 2014 18:57:29 +0000 (14:57 -0400)] 
- TIL that dict.keys() in py3K is not an iterator, it is an iterable
view.  So copy collections.OrderedDict and use MutableMapping to set up
keys, items, values on our own OrderedDict.

11 years ago- The string keys that are used to determine the columns impacted
Mike Bayer [Fri, 15 Aug 2014 00:00:35 +0000 (20:00 -0400)] 
- The string keys that are used to determine the columns impacted
for an INSERT or UPDATE are now sorted when they contribute towards
the "compiled cache" cache key.   These keys were previously not
deterministically ordered, meaning the same statement could be
cached multiple times on equivalent keys, costing both in terms of
memory as well as performance.
fixes #3165

11 years ago- rework documentation for reflection flags, backport from
Mike Bayer [Sat, 9 Aug 2014 22:14:45 +0000 (18:14 -0400)] 
- rework documentation for reflection flags, backport from
1.0

11 years ago- add tests for the savepoint recipe
Mike Bayer [Sat, 9 Aug 2014 18:03:17 +0000 (14:03 -0400)] 
- add tests for the savepoint recipe

11 years ago- rewrite all the sqlite/pysqlite transaction isolation docs
Mike Bayer [Sat, 9 Aug 2014 17:53:21 +0000 (13:53 -0400)] 
- rewrite all the sqlite/pysqlite transaction isolation docs

11 years ago- turn off the testing reaper here, that's the source of the leaks
Mike Bayer [Fri, 8 Aug 2014 17:06:41 +0000 (13:06 -0400)] 
- turn off the testing reaper here, that's the source of the leaks
when we are running with pydist, and even when we are running without it
in fact...

Conflicts:
test/aaa_profiling/test_memusage.py

11 years ago- take out the iterator approach here as it does not support concurrent access
Mike Bayer [Thu, 7 Aug 2014 16:36:50 +0000 (12:36 -0400)] 
- take out the iterator approach here as it does not support concurrent access

11 years ago-Fixed bug where Postgresql JSON type was not able to persist or
Mike Bayer [Thu, 7 Aug 2014 14:43:55 +0000 (10:43 -0400)] 
-Fixed bug where Postgresql JSON type was not able to persist or
otherwise render a SQL NULL column value, rather than a JSON-encoded
``'null'``.  To support this case, changes are as follows:

* The value :func:`.null` can now be specified, which will always
  result in a NULL value resulting in the statement.

* A new parameter :paramref:`.JSON.none_as_null` is added, which
  when True indicates that the Python ``None`` value should be
  peristed as SQL NULL, rather than JSON-encoded ``'null'``.

Retrival of NULL as None is also repaired for DBAPIs other than
psycopg2, namely pg8000.

fixes #3159

11 years ago- clarify docs that contains_eager() is included in the of_type() system,
Mike Bayer [Thu, 7 Aug 2014 13:59:59 +0000 (09:59 -0400)] 
- clarify docs that contains_eager() is included in the of_type() system,
fix #2438