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

13 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

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

13 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

13 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

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

13 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

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

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

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

13 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

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

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

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

13 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

13 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

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

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

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

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

13 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

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

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

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

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

13 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`.

13 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]

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

13 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

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

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

13 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

13 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

13 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

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

13 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]

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

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

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

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

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

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

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

13 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

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

13 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

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

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

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

13 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:

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

13 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]

13 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

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

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

13 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

13 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

13 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

13 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/

13 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

13 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"

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

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

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

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

13 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]

13 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]

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

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

13 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

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

13 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]

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

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

13 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]

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

13 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]

13 years agomerge default
Mike Bayer [Sat, 2 Feb 2013 01:48:40 +0000 (20:48 -0500)] 
merge default

13 years agoAdded a new argument to :class:`.Enum` and its base
Mike Bayer [Sat, 2 Feb 2013 01:47:02 +0000 (20:47 -0500)] 
Added a new argument to :class:`.Enum` and its base
:class:`.SchemaType` ``inherit_schema``.  When set to ``True``,
the type will set its ``schema`` attribute of that of the
:class:`.Table` to which it is associated.  This also occurs
during a :meth:`.Table.tometadata` operation; the :class:`.SchemaType`
is now copied in all cases when :meth:`.Table.tometadata` happens,
and if ``inherit_schema=True``, the type will take on the new
schema name passed to the method.   The ``schema`` is important
when used with the Postgresql backend, as the type results in
a ``CREATE TYPE`` statement. [ticket:2657]

13 years agoversion bump
Mike Bayer [Sat, 2 Feb 2013 01:45:29 +0000 (20:45 -0500)] 
version bump

13 years agomerge default
Mike Bayer [Mon, 28 Jan 2013 18:58:18 +0000 (13:58 -0500)] 
merge default

13 years ago- add full docs for like()/ilike()
Mike Bayer [Mon, 28 Jan 2013 18:58:01 +0000 (13:58 -0500)] 
- add full docs for like()/ilike()

13 years agoadd any/all to __all__
Mike Bayer [Mon, 28 Jan 2013 18:57:48 +0000 (13:57 -0500)] 
add any/all to __all__

13 years ago- documentation for any()/all()
Mike Bayer [Mon, 28 Jan 2013 18:49:18 +0000 (13:49 -0500)] 
- documentation for any()/all()

13 years agoAdd ANY/ALL construct support for PostgreSQL's ARRAY type
Audrius Kažukauskas [Mon, 28 Jan 2013 17:58:06 +0000 (19:58 +0200)] 
Add ANY/ALL construct support for PostgreSQL's ARRAY type

13 years ago- use SQL constructs here for databases that need to escape names like "data"
Mike Bayer [Sun, 27 Jan 2013 22:15:25 +0000 (17:15 -0500)] 
- use SQL constructs here for databases that need to escape names like "data"

13 years agoFixed bug where :meth:`.Table.tometadata` would fail if a
Mike Bayer [Sun, 27 Jan 2013 16:23:59 +0000 (11:23 -0500)] 
Fixed bug where :meth:`.Table.tometadata` would fail if a
:class:`.Column` had both a foreign key as well as an
alternate ".key" name for the column.   Also in 0.7.10.
[ticket:2643]

13 years agoFixing a code block in the PostgreSQL base dialect docstring.
Taavi Burns [Sat, 26 Jan 2013 03:48:34 +0000 (22:48 -0500)] 
Fixing a code block in the PostgreSQL base dialect docstring.

13 years ago#2629
Mike Bayer [Fri, 25 Jan 2013 17:57:59 +0000 (12:57 -0500)] 
#2629

insert().returning() raises an informative CompileError if attempted
to compile on a dialect that doesn't support RETURNING.

13 years agomerge default
Mike Bayer [Fri, 25 Jan 2013 02:31:37 +0000 (21:31 -0500)] 
merge default

13 years agothe consideration of a pending object as
Mike Bayer [Fri, 25 Jan 2013 02:31:23 +0000 (21:31 -0500)] 
the consideration of a pending object as
an "orphan" has been modified to more closely match the
behavior as that of persistent objects, which is that the object
is expunged from the :class:`.Session` as soon as it is
de-associated from any of its orphan-enabled parents.  Previously,
the pending object would be expunged only if de-associated
from all of its orphan-enabled parents.  The new flag ``legacy_is_orphan``
is added to :func:`.orm.mapper` which re-establishes the
legacy behavior. [ticket:2655]

13 years agoFixed the (most likely never used) "@collection.link" collection
Mike Bayer [Mon, 21 Jan 2013 23:17:10 +0000 (18:17 -0500)] 
Fixed the (most likely never used) "@collection.link" collection
method, which fires off each time the collection is associated
or de-associated with a mapped object - the decorator
was not tested or functional.  The decorator method
is now named :meth:`.collection.linker` though the name "link"
remains for backwards compatibility.  Courtesy Luca Wehrstedt.
[ticket:2653]

13 years agoMerged in lerks/sqlalchemy (pull request #36)
Mike Bayer [Mon, 21 Jan 2013 22:59:14 +0000 (17:59 -0500)] 
Merged in lerks/sqlalchemy (pull request #36)

Fix the collection.link decorator

13 years ago- Made some fixes to the system of producing custom instrumented
Mike Bayer [Mon, 21 Jan 2013 22:57:24 +0000 (17:57 -0500)] 
- Made some fixes to the system of producing custom instrumented
collections, mainly that the usage of the @collection decorators
will now honor the __mro__ of the given class, applying the
logic of the sub-most classes' version of a particular collection
method.   Previously, it wasn't predictable when subclassing
an existing instrumented class such as :class:`.MappedCollection`
whether or not custom methods would resolve correctly.
[ticket:2654]

- The undocumented (and hopefully unused) system of producing
custom collections using an ``__instrumentation__`` datastructure
associated with the collection has been removed, as this was a complex
and untested feature which was also essentially redundant versus the
decorator approach.   Other internal simplifcations to the
orm.collections module have been made as well.

13 years agoclean all pep8 warnings
Mike Bayer [Mon, 21 Jan 2013 21:16:57 +0000 (16:16 -0500)] 
clean all pep8 warnings

13 years agomerge default
Mike Bayer [Sun, 20 Jan 2013 17:44:07 +0000 (12:44 -0500)] 
merge default

13 years ago- replace mssql_ordering with generalized #695 solution
Mike Bayer [Sun, 20 Jan 2013 17:43:39 +0000 (12:43 -0500)] 
- replace mssql_ordering with generalized #695 solution
- documentation for mssql index options plus changelog and fixes

13 years agoMerged in dharland/sqlalchemy (pull request #35)
Mike Bayer [Sun, 20 Jan 2013 17:23:39 +0000 (12:23 -0500)] 
Merged in dharland/sqlalchemy (pull request #35)

Add extra mssql dialect options to Index

13 years agomerge default
Mike Bayer [Sat, 19 Jan 2013 00:58:44 +0000 (19:58 -0500)] 
merge default

13 years agoRemoves an errant space character that caused a newline break in the sphinx output.
Taavi Burns [Thu, 17 Jan 2013 22:31:07 +0000 (17:31 -0500)] 
Removes an errant space character that caused a newline break in the sphinx output.