]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
12 years agoyikes, print statement !
Mike Bayer [Mon, 4 Mar 2013 00:25:49 +0000 (19:25 -0500)] 
yikes, print statement !

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

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

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

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

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

12 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()

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

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

12 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

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

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

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

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

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

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

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

12 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

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

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

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

12 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

12 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

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

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

12 years agofix incorrect quoting in mysql indexes
Mike Bayer [Thu, 17 Jan 2013 15:19:54 +0000 (10:19 -0500)] 
fix incorrect quoting in mysql indexes

12 years agomerge default
Mike Bayer [Thu, 17 Jan 2013 15:13:25 +0000 (10:13 -0500)] 
merge default

12 years ago- fix a format issue in the create index
Mike Bayer [Thu, 17 Jan 2013 15:13:08 +0000 (10:13 -0500)] 
- fix a format issue in the create index

12 years agoMutableDict.__delitem__ should require only 'key' argument
Audrius Kažukauskas [Thu, 17 Jan 2013 10:35:51 +0000 (12:35 +0200)] 
MutableDict.__delitem__ should require only 'key' argument

12 years ago- "postgres_where" has been removed
Mike Bayer [Thu, 17 Jan 2013 04:53:00 +0000 (23:53 -0500)] 
- "postgres_where" has been removed

12 years ago:class:`.Index` now supports arbitrary SQL expressions and/or
Mike Bayer [Thu, 17 Jan 2013 02:04:32 +0000 (21:04 -0500)] 
:class:`.Index` now supports arbitrary SQL expressions and/or
functions, in addition to straight columns.   Common modifiers
include using ``somecolumn.desc()`` for a descending index and
``func.lower(somecolumn)`` for a case-insensitive index, depending on the
capabilities of the target backend.
[ticket:695]

12 years ago- preparing for #695, modernize constraint/index tests
Mike Bayer [Thu, 17 Jan 2013 01:10:55 +0000 (20:10 -0500)] 
- preparing for #695, modernize constraint/index tests

12 years agoFix the collection.link decorator
Luca Wehrstedt [Wed, 16 Jan 2013 15:26:15 +0000 (16:26 +0100)] 
Fix the collection.link decorator

12 years agoAdd mssql_include option for mssql dialect
Derek Harland [Mon, 14 Jan 2013 04:03:38 +0000 (17:03 +1300)] 
Add mssql_include option for mssql dialect

12 years agoAdd mssql_ordering option for mssql dialect
Derek Harland [Mon, 14 Jan 2013 04:02:20 +0000 (17:02 +1300)] 
Add mssql_ordering option for mssql dialect

12 years agoAdd mssql_clustered option for mssql dialect
Derek Harland [Mon, 14 Jan 2013 04:00:37 +0000 (17:00 +1300)] 
Add mssql_clustered option for mssql dialect

12 years agoAdded a py3K conditional around unnecessary .decode()
Mike Bayer [Sun, 13 Jan 2013 00:51:13 +0000 (19:51 -0500)] 
Added a py3K conditional around unnecessary .decode()
call in mssql information schema, fixes reflection
in Py3K. Also in 0.7.10. [ticket:2638]

12 years agomerge default
Mike Bayer [Sat, 12 Jan 2013 22:44:25 +0000 (17:44 -0500)] 
merge default