]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
12 years agomerge default
Mike Bayer [Sat, 9 Mar 2013 18:25:03 +0000 (13:25 -0500)] 
merge default

12 years agoA meaningful :attr:`.QueryableAttribute.info` attribute is
Mike Bayer [Sat, 9 Mar 2013 18:24:54 +0000 (13:24 -0500)] 
A meaningful :attr:`.QueryableAttribute.info` attribute is
added, which proxies down to the ``.info`` attribute on either
the :class:`.schema.Column` object if directly present, or
the :class:`.MapperProperty` otherwise.  The full behavior
is documented and ensured by tests to remain stable.
[ticket:2675]

12 years agomerge default
Mike Bayer [Sat, 9 Mar 2013 17:49:52 +0000 (12:49 -0500)] 
merge default

12 years agochangelog
Mike Bayer [Sat, 9 Mar 2013 17:49:35 +0000 (12:49 -0500)] 
changelog

12 years ago- clean up entity correlation tests in test_query
Mike Bayer [Sat, 9 Mar 2013 17:28:18 +0000 (12:28 -0500)] 
- clean up entity correlation tests in test_query

12 years ago- the base correlate tests in test_compiler cover the ones that were here
Mike Bayer [Sat, 9 Mar 2013 17:12:01 +0000 (12:12 -0500)] 
- the base correlate tests in test_compiler cover the ones that were here
for now
- fix up adaptation tests to still try to exercise the correlation argument

12 years ago- since correlation is now always at least semi-automatic, remove the
Mike Bayer [Sat, 9 Mar 2013 16:46:44 +0000 (11:46 -0500)] 
- since correlation is now always at least semi-automatic, remove the
ability for correlation to have any effect for a SELECT that's stated
in the FROM.
- add a new exhaustive test suite for correlation to test_compiler

12 years agogo back to the original form, then break out this test into individuals
Mike Bayer [Sat, 9 Mar 2013 00:00:13 +0000 (19:00 -0500)] 
go back to the original form, then break out this test into individuals
so it can be managed more easily

12 years agoChanged behavior of Select.correlate() to ignore correlations to froms that don't...
Luke Cyca [Thu, 7 Mar 2013 19:56:11 +0000 (11:56 -0800)] 
Changed behavior of Select.correlate() to ignore correlations to froms that don't exist in the superquery.

12 years agomerge default
Mike Bayer [Thu, 7 Mar 2013 17:44:28 +0000 (12:44 -0500)] 
merge default

12 years agochangelog
Mike Bayer [Thu, 7 Mar 2013 17:38:10 +0000 (12:38 -0500)] 
changelog

12 years agoMerged in nakagami/sqlalchemy/cymysql (pull request #42)
Mike Bayer [Thu, 7 Mar 2013 17:36:35 +0000 (12:36 -0500)] 
Merged in nakagami/sqlalchemy/cymysql (pull request #42)

cymysql support

12 years agomysql+cymysql test_types.py
Hajime Nakagami [Tue, 5 Mar 2013 15:21:54 +0000 (00:21 +0900)] 
mysql+cymysql test_types.py

12 years agomerge default
Mike Bayer [Mon, 4 Mar 2013 17:50:22 +0000 (12:50 -0500)] 
merge default

12 years ago- add some more transaction states so that we deliver a more accurate
Mike Bayer [Mon, 4 Mar 2013 17:50:11 +0000 (12:50 -0500)] 
- add some more transaction states so that we deliver a more accurate
message for [ticket:2662]; after_commit() is called within "committed"
state, not prepared, and no SQL can be emitted for prepared or committed
- consolidate state assertions in session transaction, use just one
method
- add more unit tests for these assertions

12 years agomerge default
Mike Bayer [Mon, 4 Mar 2013 00:26:36 +0000 (19:26 -0500)] 
merge default

12 years agoyikes, print statement !
Mike Bayer [Mon, 4 Mar 2013 00:25:49 +0000 (19:25 -0500)] 
yikes, print statement !

12 years agomerge default
Mike Bayer [Mon, 4 Mar 2013 00:22:54 +0000 (19:22 -0500)] 
merge default

12 years ago- this assertion moves out to configure_mappers() now
Mike Bayer [Mon, 4 Mar 2013 00:22:43 +0000 (19:22 -0500)] 
- this assertion moves out to configure_mappers() now

12 years agofix non2.5 compat @property usage
Mike Bayer [Mon, 4 Mar 2013 00:17:03 +0000 (19:17 -0500)] 
fix non2.5 compat @property usage

12 years agodont need this conditional here
Mike Bayer [Sun, 3 Mar 2013 19:02:54 +0000 (14:02 -0500)] 
dont need this conditional here

12 years agomerge default
Mike Bayer [Sun, 3 Mar 2013 18:59:25 +0000 (13:59 -0500)] 
merge default

12 years ago- Improved checking for an existing backref name conflict during
Mike Bayer [Sun, 3 Mar 2013 18:51:54 +0000 (13:51 -0500)] 
- Improved checking for an existing backref name conflict during
mapper configuration; will now test for name conflicts on
superclasses and subclasses, in addition to the current mapper,
as these conflicts break things just as much.  This is new for
0.8, but see below for a warning that will also be triggered
in 0.7.11.
- Improved the error message emitted when a "backref loop" is detected,
that is when an attribute event triggers a bidirectional
assignment between two other attributes with no end.
This condition can occur not just when an object of the wrong
type is assigned, but also when an attribute is mis-configured
to backref into an existing backref pair.  Also in 0.7.11.
- A warning is emitted when a MapperProperty is assigned to a mapper
that replaces an existing property, if the properties in question
aren't plain column-based properties.   Replacement of relationship
properties is rarely (ever?) what is intended and usually refers to a
mapper mis-configuration.   Also in 0.7.11.
[ticket:2674]

12 years agoCan set/change the "cascade" attribute on a :func:`.relationship`
Mike Bayer [Sun, 3 Mar 2013 01:27:53 +0000 (20:27 -0500)] 
Can set/change the "cascade" attribute on a :func:`.relationship`
construct after it's been constructed already.  This is not
a pattern for normal use but we like to change the setting
for demonstration purposes in tutorials.

12 years agoskip this test for PG, jenkins having failures only when the full suite is run
Mike Bayer [Sat, 2 Mar 2013 22:56:49 +0000 (17:56 -0500)] 
skip this test for PG, jenkins having failures only when the full suite is run

12 years agomerge default
Mike Bayer [Sat, 2 Mar 2013 22:48:49 +0000 (17:48 -0500)] 
merge default

12 years ago- add support for introductory notes following .. changelog:: directive
Mike Bayer [Sat, 2 Mar 2013 22:48:22 +0000 (17:48 -0500)] 
- add support for introductory notes following .. changelog:: directive

12 years ago- :meth:`.MetaData.create_all` and :meth:`.MetaData.drop_all` will
Mike Bayer [Sat, 2 Mar 2013 22:47:58 +0000 (17:47 -0500)] 
- :meth:`.MetaData.create_all` and :meth:`.MetaData.drop_all` will
now accommodate an empty list as an instruction to not create/drop
any items, rather than ignoring the collection. [ticket:2664].
This is a behavioral change and extra notes to the changelog
and migration document have been added.

- create a new test suite for exercising codepaths
in engine/ddl.py

12 years agocleanup
Mike Bayer [Sat, 2 Mar 2013 21:40:07 +0000 (16:40 -0500)] 
cleanup

12 years ago- some linter cleanup, though have disabled the newer linter rules which are just
Mike Bayer [Sat, 2 Mar 2013 21:37:58 +0000 (16:37 -0500)] 
- some linter cleanup, though have disabled the newer linter rules which are just
too much for now

12 years agomerge this
Mike Bayer [Sat, 2 Mar 2013 21:31:26 +0000 (16:31 -0500)] 
merge this

12 years agomerge 0.7 changelog
Mike Bayer [Sat, 2 Mar 2013 21:26:10 +0000 (16:26 -0500)] 
merge 0.7 changelog

12 years agomerge from 0.8
Mike Bayer [Sat, 2 Mar 2013 21:25:50 +0000 (16:25 -0500)] 
merge from 0.8

12 years ago- Fixed an import of "logging" in test_execute which was not
Mike Bayer [Sat, 2 Mar 2013 21:20:49 +0000 (16:20 -0500)] 
- Fixed an import of "logging" in test_execute which was not
working on some linux platforms.  Also in 0.7.11.
- only need "logging.handlers" here, "logging" comes in implicitly

12 years agomerge from default
Hajime Nakagami [Sat, 2 Mar 2013 14:34:11 +0000 (23:34 +0900)] 
merge from default

12 years agofix decorator position
Hajime Nakagami [Sat, 2 Mar 2013 06:30:43 +0000 (15:30 +0900)] 
fix decorator position

12 years agois_disconnect() in cymysql dialect
Hajime Nakagami [Sat, 2 Mar 2013 04:37:00 +0000 (13:37 +0900)] 
is_disconnect() in cymysql dialect

12 years agomodify _extract_error_code() at cymysql dialect
Hajime Nakagami [Fri, 1 Mar 2013 23:57:45 +0000 (08:57 +0900)] 
modify _extract_error_code() at cymysql dialect

12 years agonot return unicode string in cymysql dialect
Hajime Nakagami [Fri, 1 Mar 2013 17:13:05 +0000 (02:13 +0900)] 
not return unicode string in cymysql dialect

12 years agofix easy miss
Hajime Nakagami [Fri, 1 Mar 2013 14:58:28 +0000 (23:58 +0900)] 
fix easy miss

12 years agofix easy miss
Hajime Nakagami [Fri, 1 Mar 2013 14:45:02 +0000 (23:45 +0900)] 
fix easy miss

12 years agocython's result_processor()
Hajime Nakagami [Fri, 1 Mar 2013 14:27:39 +0000 (23:27 +0900)] 
cython's result_processor()

12 years agomymysql dialect
Hajime Nakagami [Thu, 28 Feb 2013 15:00:18 +0000 (00:00 +0900)] 
mymysql dialect

12 years agotest_execute: import logging.handlers to fix AttributeError
Mike Gilbert [Wed, 27 Feb 2013 20:01:37 +0000 (15:01 -0500)] 
test_execute: import logging.handlers to fix AttributeError

See also: https://bugs.gentoo.org/show_bug.cgi?id=458684

12 years agomerge default
Mike Bayer [Tue, 26 Feb 2013 17:39:38 +0000 (12:39 -0500)] 
merge default

12 years agotypo
Mike Bayer [Tue, 26 Feb 2013 17:39:26 +0000 (12:39 -0500)] 
typo

12 years agoreturn erro_code cymysql dialects
Hajime Nakagami [Tue, 26 Feb 2013 13:57:16 +0000 (22:57 +0900)] 
return erro_code cymysql dialects

12 years agomerge default
Mike Bayer [Tue, 26 Feb 2013 00:27:52 +0000 (19:27 -0500)] 
merge default

12 years ago- A clear error message is emitted if an event handler
Mike Bayer [Tue, 26 Feb 2013 00:27:07 +0000 (19:27 -0500)] 
- A clear error message is emitted if an event handler
attempts to emit SQL on a Session within the after_commit()
handler, where there is not a viable transaction in progress.
[ticket:2662]
- rework how SessionTransaction maintains state, using symbols
instead.
- add lots of notes and cross-linking for session events.
- add a link to :func:`.select()` within :meth:`.FromClause.select`.

12 years agoDetection of a primary key change within the process
Mike Bayer [Mon, 25 Feb 2013 23:55:09 +0000 (18:55 -0500)] 
Detection of a primary key change within the process
of cascading a natural primary key update will succeed
even if the key is composite and only some of the
attributes have changed.
[ticket:2665]

12 years agothis step is not needed
Mike Bayer [Mon, 25 Feb 2013 23:39:30 +0000 (18:39 -0500)] 
this step is not needed

12 years agofix cymysql's _extact_error_code() for py3
Hajime Nakagami [Mon, 25 Feb 2013 15:30:27 +0000 (00:30 +0900)] 
fix cymysql's _extact_error_code() for py3

12 years agocython's _extract_error_code()
Hajime Nakagami [Mon, 25 Feb 2013 14:42:11 +0000 (23:42 +0900)] 
cython's _extract_error_code()

12 years agomerge default
Mike Bayer [Sun, 24 Feb 2013 19:06:46 +0000 (14:06 -0500)] 
merge default

12 years ago- repair "map to selectable" example, place a caveat that this isn't
Mike Bayer [Sun, 24 Feb 2013 19:06:35 +0000 (14:06 -0500)] 
- repair "map to selectable" example, place a caveat that this isn't
something people should be pursuing

12 years agomove this test to have its own data, avoid FK violations
Mike Bayer [Thu, 21 Feb 2013 20:45:36 +0000 (15:45 -0500)] 
move this test to have its own data, avoid FK violations

12 years agoavoid drop table in mysql+cymysql test because of deadlock
Hajime Nakagami [Thu, 21 Feb 2013 16:29:43 +0000 (01:29 +0900)] 
avoid drop table in mysql+cymysql test because of deadlock

12 years agomerge from default
Hajime Nakagami [Thu, 21 Feb 2013 14:12:29 +0000 (23:12 +0900)] 
merge from default

12 years ago- Added new helper function :func:`.was_deleted`, returns True
Mike Bayer [Wed, 20 Feb 2013 23:24:46 +0000 (18:24 -0500)] 
- Added new helper function :func:`.was_deleted`, returns True
if the given object was the subject of a :meth:`.Session.delete`
operation.
- An object that's deleted from a session will be de-associated with
that session fully after the transaction is committed, that is
the :func:`.object_session` function will return None.
[ticket:2658]

12 years ago- pep8 cleanup
Mike Bayer [Wed, 20 Feb 2013 23:15:15 +0000 (18:15 -0500)] 
- pep8 cleanup
- some global cleanup

12 years agomerge default
Mike Bayer [Mon, 18 Feb 2013 23:49:20 +0000 (18:49 -0500)] 
merge default

12 years agolink to flushing
Mike Bayer [Mon, 18 Feb 2013 23:49:09 +0000 (18:49 -0500)] 
link to flushing

12 years agomerge default
Mike Bayer [Mon, 18 Feb 2013 21:31:32 +0000 (16:31 -0500)] 
merge default

12 years agoadd a link here
Mike Bayer [Mon, 18 Feb 2013 21:31:18 +0000 (16:31 -0500)] 
add a link here

12 years agotest for cymysql
Hajime Nakagami [Sun, 17 Feb 2013 06:07:19 +0000 (15:07 +0900)] 
test for cymysql

12 years agoadd cymysql dialect
Hajime Nakagami [Sun, 17 Feb 2013 03:38:15 +0000 (12:38 +0900)] 
add cymysql dialect

12 years ago- fix to PDF generation failing totally, latex tools here
Mike Bayer [Thu, 14 Feb 2013 20:58:11 +0000 (15:58 -0500)] 
- fix to PDF generation failing totally, latex tools here
are broken but will see if RTD produces a pdf

12 years agomerge default
Mike Bayer [Tue, 12 Feb 2013 02:11:08 +0000 (21:11 -0500)] 
merge default

12 years agosee also for session commit, rollback
Mike Bayer [Tue, 12 Feb 2013 02:10:55 +0000 (21:10 -0500)] 
see also for session commit, rollback

12 years agomerge default
Mike Bayer [Sat, 9 Feb 2013 19:35:46 +0000 (14:35 -0500)] 
merge default

12 years agoengines
Mike Bayer [Sat, 9 Feb 2013 19:35:36 +0000 (14:35 -0500)] 
engines

12 years agomerge default
Mike Bayer [Sat, 9 Feb 2013 19:34:06 +0000 (14:34 -0500)] 
merge default

12 years agostart putting "toplevel" back in as interphinx can't link to :doc:
Mike Bayer [Sat, 9 Feb 2013 19:33:52 +0000 (14:33 -0500)] 
start putting "toplevel" back in as interphinx can't link to :doc:

12 years agoThe cx_oracle dialect will no longer run the bind parameter names
Mike Bayer [Fri, 8 Feb 2013 17:42:36 +0000 (12:42 -0500)] 
The cx_oracle dialect will no longer run the bind parameter names
through ``encode()``, as this is not valid on Python 3, and prevented
statements from functioning correctly on Python 3.  We now
encode only if ``supports_unicode_binds`` is False, which is not
the case for cx_oracle when at least version 5 of cx_oracle is used.

12 years agoFixed bug whereby :meth:`.Query.yield_per` would set the execution
Mike Bayer [Fri, 8 Feb 2013 06:20:41 +0000 (01:20 -0500)] 
Fixed bug whereby :meth:`.Query.yield_per` would set the execution
options incorrectly, thereby breaking subsequent usage of the
:meth:`.Query.execution_options` method.  Courtesy Ryan Kelly.
[ticket:2661]

12 years ago- encourage requirements to be in the dialect module,
Mike Bayer [Fri, 8 Feb 2013 01:29:47 +0000 (20:29 -0500)] 
- encourage requirements to be in the dialect module,
document running SQLA main tests with external dialect

12 years agomerge default
Mike Bayer [Fri, 8 Feb 2013 01:06:36 +0000 (20:06 -0500)] 
merge default

12 years ago0.7.10 release date
Mike Bayer [Fri, 8 Feb 2013 01:06:20 +0000 (20:06 -0500)] 
0.7.10 release date

12 years ago- fix exclusion here
Mike Bayer [Thu, 7 Feb 2013 02:02:42 +0000 (21:02 -0500)] 
- fix exclusion here
- mysql doesn't reset table counter here so test differently

12 years agoport numeric tests to dialect suite
Mike Bayer [Thu, 7 Feb 2013 01:20:07 +0000 (20:20 -0500)] 
port numeric tests to dialect suite

12 years ago- adding in requirements
Mike Bayer [Thu, 7 Feb 2013 00:06:09 +0000 (19:06 -0500)] 
- adding in requirements
- get test_naturalpks to be more generalized

12 years ago- add support for pulling in an external requirements file
Mike Bayer [Wed, 6 Feb 2013 22:50:11 +0000 (17:50 -0500)] 
- add support for pulling in an external requirements file
- start filling in default versions of remaining requirements that are still only in test/

12 years ago- cleanup HasSequence and move it to test_sequences
Mike Bayer [Wed, 6 Feb 2013 21:36:35 +0000 (16:36 -0500)] 
- cleanup HasSequence and move it to test_sequences

12 years ago- add an explicit test for sequences "optional"
Mike Bayer [Wed, 6 Feb 2013 21:24:38 +0000 (16:24 -0500)] 
- add an explicit test for sequences "optional"

12 years ago- add an "empty_inserts" requirement target plus a suite test
Mike Bayer [Wed, 6 Feb 2013 20:49:32 +0000 (15:49 -0500)] 
- add an "empty_inserts" requirement target plus a suite test
- add suite tests for basic explicit Sequence support, result-row column access (tests that name_normalize is set correctly among many other things)

12 years ago- revert mistaken checkin
Mike Bayer [Wed, 6 Feb 2013 20:00:44 +0000 (15:00 -0500)] 
- revert mistaken checkin

12 years ago- need autoincrement here
Mike Bayer [Wed, 6 Feb 2013 17:52:37 +0000 (12:52 -0500)] 
- need autoincrement here

12 years agochangelog
Mike Bayer [Sun, 3 Feb 2013 02:04:08 +0000 (21:04 -0500)] 
changelog

12 years agoFixed the consideration of the ``between()`` operator
Mike Bayer [Sun, 3 Feb 2013 01:48:53 +0000 (20:48 -0500)] 
Fixed the consideration of the ``between()`` operator
so that it works correctly with the new relationship local/remote
system.
[ticket:1768]

12 years agoFixed a bug regarding column annotations which in particular
Mike Bayer [Sun, 3 Feb 2013 01:06:31 +0000 (20:06 -0500)] 
Fixed a bug regarding column annotations which in particular
could impact some usages of the new :func:`.orm.remote` and
:func:`.orm.local` annotation functions, where annotations
could be lost when the column were used in a subsequent
expression.
[ticket:2660]

12 years agocleanup and pep8
Mike Bayer [Sun, 3 Feb 2013 00:57:45 +0000 (19:57 -0500)] 
cleanup and pep8

12 years agomore egregious long lines
Mike Bayer [Sat, 2 Feb 2013 23:59:19 +0000 (18:59 -0500)] 
more egregious long lines

12 years agowhack more long lines in very old docstrings
Mike Bayer [Sat, 2 Feb 2013 23:54:54 +0000 (18:54 -0500)] 
whack more long lines in very old docstrings

12 years agoformatting
Mike Bayer [Sat, 2 Feb 2013 23:49:33 +0000 (18:49 -0500)] 
formatting

12 years agoAdded a conditional import to the ``gaerdbms`` dialect which attempts
Mike Bayer [Sat, 2 Feb 2013 23:40:56 +0000 (18:40 -0500)] 
Added a conditional import to the ``gaerdbms`` dialect which attempts
to import rdbms_apiproxy vs. rdbms_googleapi to work
on both dev and production platforms.  Also now honors the
``instance`` attribute.  Courtesy Sean Lynch.
[ticket:2649]

12 years agochangelog for 0.7
Mike Bayer [Sat, 2 Feb 2013 22:00:54 +0000 (17:00 -0500)] 
changelog for 0.7

12 years agomerge default
Mike Bayer [Sat, 2 Feb 2013 21:49:38 +0000 (16:49 -0500)] 
merge default

12 years agoclean up ordering list docs, [ticket:2557]
Mike Bayer [Sat, 2 Feb 2013 21:46:12 +0000 (16:46 -0500)] 
clean up ordering list docs, [ticket:2557]

12 years agofix markup
Mike Bayer [Sat, 2 Feb 2013 21:20:30 +0000 (16:20 -0500)] 
fix markup

12 years agoThe :meth:`.ColumnOperators.in_` operator will now coerce
Mike Bayer [Sat, 2 Feb 2013 21:17:58 +0000 (16:17 -0500)] 
The :meth:`.ColumnOperators.in_` operator will now coerce
values of ``None`` to :func:`.null`.
[ticket:2496]