]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
12 years agoFixed indirect regression regarding :func:`.has_inherited_table`,
Mike Bayer [Tue, 9 Apr 2013 18:21:40 +0000 (14:21 -0400)] 
Fixed indirect regression regarding :func:`.has_inherited_table`,
where since it considers the current class' ``__table__``, was
sensitive to when it was called.  This is 0.7's behavior also,
but in 0.7 things tended to "work out" within events like
``__mapper_args__()``.  :func:`.has_inherited_table` now only
considers superclasses, so should return the same answer
regarding the current class no matter when it's called
(obviously assuming the state of the superclass).
[ticket:2656]

12 years ago0.7 changelog
Mike Bayer [Tue, 9 Apr 2013 16:01:31 +0000 (12:01 -0400)] 
0.7 changelog

12 years agoFixed bug when a query of the form:
Mike Bayer [Tue, 9 Apr 2013 15:52:21 +0000 (11:52 -0400)] 
Fixed bug when a query of the form:
``query(SubClass).options(subqueryload(Baseclass.attrname))``,
where ``SubClass`` is a joined inh of ``BaseClass``,
would fail to apply the ``JOIN`` inside the subquery
on the attribute load, producing a cartesian product.
The populated results still tended to be correct as additional
rows are just ignored, so this issue may be present as a
performance degradation in applications that are
otherwise working correctly. [ticket:2699]

12 years ago- reinstate insert returning back into test_insert.py; defaultdialect
Mike Bayer [Mon, 1 Apr 2013 19:41:57 +0000 (15:41 -0400)] 
- reinstate insert returning back into test_insert.py; defaultdialect
needs to be explicit here since tablestest sticks testing.db onto metadata.bind

12 years agomerge default
Mike Bayer [Mon, 1 Apr 2013 17:57:44 +0000 (13:57 -0400)] 
merge default

12 years ago- Fixed bug in unit of work whereby a joined-inheritance
Mike Bayer [Mon, 1 Apr 2013 17:37:35 +0000 (13:37 -0400)] 
- Fixed bug in unit of work whereby a joined-inheritance
  subclass could insert the row for the "sub" table
  before the parent table, if the two tables had no
  ForeignKey constraints set up between them.
  Also in 0.7.11. [ticket:2689]
- fix a glitch in the assertsql.CompiledSQL fixture regarding
when a multiparam compiledSQL is used within an AllOf
- add a new utility function randomize_unitofwork() which
does the function of --reversetop

12 years agomoving insert returning test back into CRUD test class until I figure out why moving...
Diana Clarke [Sat, 30 Mar 2013 13:30:58 +0000 (09:30 -0400)] 
moving insert returning test back into CRUD test class until I figure out why moving it broke the oracle/postgres builds

12 years agowhitespace
Diana Clarke [Sat, 30 Mar 2013 05:39:40 +0000 (01:39 -0400)] 
whitespace

12 years agomove the update tests from CRUDTest into sql/test_update.py (see #2630)
Diana Clarke [Sat, 30 Mar 2013 05:38:17 +0000 (01:38 -0400)] 
move the update tests from CRUDTest into sql/test_update.py (see #2630)

12 years agofixing tests for --db=mysql: VARCHAR requires a length on dialect mysql
Diana Clarke [Sat, 30 Mar 2013 05:01:59 +0000 (01:01 -0400)] 
fixing tests for --db=mysql: VARCHAR requires a length on dialect mysql

12 years agostarting on the update tests next, pep8 pass first (see #2630)
Diana Clarke [Sat, 30 Mar 2013 04:33:07 +0000 (00:33 -0400)] 
starting on the update tests next, pep8 pass first (see #2630)

12 years agomove the insert tests from CRUDTest into sql/test_insert.py (see #2630)
Diana Clarke [Fri, 29 Mar 2013 23:10:01 +0000 (19:10 -0400)] 
move the insert tests from CRUDTest into sql/test_insert.py (see #2630)

12 years agomove the delete tests from CRUDTest into sql/test_delete.py (see #2630)
Diana Clarke [Fri, 29 Mar 2013 21:25:39 +0000 (17:25 -0400)] 
move the delete tests from CRUDTest into sql/test_delete.py (see #2630)

12 years ago- test all pymssql messages here
Mike Bayer [Fri, 29 Mar 2013 16:09:11 +0000 (12:09 -0400)] 
- test all pymssql messages here
- changelog

12 years agoMerged in sontek/sqlalchemy/add_better_disconnect_checks (pull request #47)
Mike Bayer [Fri, 29 Mar 2013 16:03:17 +0000 (12:03 -0400)] 
Merged in sontek/sqlalchemy/add_better_disconnect_checks (pull request #47)

Add disconnect check on timeouts

12 years ago- add a nose runner that erases out argv, otherwise
Mike Bayer [Mon, 25 Mar 2013 20:59:27 +0000 (16:59 -0400)] 
- add a nose runner that erases out argv, otherwise
you get "import test" as what it tries to run with
setup.py test

12 years ago- limit some of these on views, indexes, pk constraints being available
Mike Bayer [Sun, 24 Mar 2013 22:24:21 +0000 (18:24 -0400)] 
- limit some of these on views, indexes, pk constraints being available

12 years agomerge default
Mike Bayer [Sun, 24 Mar 2013 18:32:50 +0000 (14:32 -0400)] 
merge default

12 years agoMerged in msabramo/sqlalchemy (pull request #48)
Mike Bayer [Sun, 24 Mar 2013 18:32:19 +0000 (14:32 -0400)] 
Merged in msabramo/sqlalchemy (pull request #48)

Make MonkeyPatchedBinaryTest only run when using mssql. Prevents failed

12 years ago- add an event to testing so that other dialects can intercept "test_needs_autoincrement"
Mike Bayer [Sun, 24 Mar 2013 18:31:48 +0000 (14:31 -0400)] 
- add an event to testing so that other dialects can intercept "test_needs_autoincrement"
- get the assumption of "1" for "first sequence item" to be dialect configured

12 years agoLoosened the check on dialect-specific argument names
Mike Bayer [Sun, 24 Mar 2013 17:50:56 +0000 (13:50 -0400)] 
Loosened the check on dialect-specific argument names
passed to Table(); since we want to support external dialects
and also want to support args without a certain dialect
being installed, it only checks the format of the arg now,
rather than looking for that dialect in sqlalchemy.dialects.

12 years agofix syntax error
Mike Bayer [Sun, 24 Mar 2013 17:45:37 +0000 (13:45 -0400)] 
fix syntax error

12 years agoFixed bug whereby a DBAPI that can return "0"
Mike Bayer [Sat, 23 Mar 2013 23:00:11 +0000 (19:00 -0400)] 
Fixed bug whereby a DBAPI that can return "0"
for cursor.lastrowid would not function correctly
in conjunction with :attr:`.ResultProxy.inserted_primary_key`.

12 years agoMerged in tshepang/sqlalchemy/grammar (pull request #51)
Mike Bayer [Sat, 23 Mar 2013 15:30:28 +0000 (11:30 -0400)] 
Merged in tshepang/sqlalchemy/grammar (pull request #51)

fix grammar

12 years agoMerged in tshepang/sqlalchemy/typos (pull request #52)
Mike Bayer [Sat, 23 Mar 2013 15:22:42 +0000 (11:22 -0400)] 
Merged in tshepang/sqlalchemy/typos (pull request #52)

remove mistakenly-repeated words

12 years agofix grammar
Tshepang Lekhonkhobe [Sat, 23 Mar 2013 11:58:16 +0000 (13:58 +0200)] 
fix grammar

12 years agoremove mistakenly-repeated words
Tshepang Lekhonkhobe [Sat, 23 Mar 2013 11:42:10 +0000 (13:42 +0200)] 
remove mistakenly-repeated words

12 years agoMake MonkeyPatchedBinaryTest not fail on Python 2.5 (which doesn't have
Marc Abramowitz [Thu, 21 Mar 2013 05:37:05 +0000 (22:37 -0700)] 
Make MonkeyPatchedBinaryTest not fail on Python 2.5 (which doesn't have
the `b` notation for byte string literals)

12 years agoMake MonkeyPatchedBinaryTest only run when using mssql. Prevents failed
Marc Abramowitz [Mon, 18 Mar 2013 22:29:54 +0000 (15:29 -0700)] 
Make MonkeyPatchedBinaryTest only run when using mssql. Prevents failed
tests when using a different dialect.

12 years agocleaned up errors, only check for connection timeout for now
John Anderson [Mon, 18 Mar 2013 22:04:30 +0000 (15:04 -0700)] 
cleaned up errors, only check for connection timeout for now

12 years agoAdded disconnect checks for timeout, unable to read, and unable to write
John Anderson [Mon, 18 Mar 2013 21:49:28 +0000 (14:49 -0700)] 
Added disconnect checks for timeout, unable to read, and unable to write

12 years agochangelog
Mike Bayer [Mon, 18 Mar 2013 21:20:28 +0000 (14:20 -0700)] 
changelog

12 years agoMerged in msabramo/sqlalchemy/trac_ticket_2683 (pull request #46)
Mike Bayer [Mon, 18 Mar 2013 21:18:38 +0000 (14:18 -0700)] 
Merged in msabramo/sqlalchemy/trac_ticket_2683 (pull request #46)

dialects/mssql/pymssql.py: Modify module.Binary to work properly with byte strings in Python 3

12 years agodialects/mssql/pymssql.py: Modify module.Binary to work properly with
Marc Abramowitz [Mon, 18 Mar 2013 20:43:46 +0000 (13:43 -0700)] 
dialects/mssql/pymssql.py: Modify module.Binary to work properly with
byte strings in Python 3

Fixes http://www.sqlalchemy.org/trac/ticket/2683

12 years agoAdd a test for http://www.sqlalchemy.org/trac/ticket/2683
Marc Abramowitz [Mon, 18 Mar 2013 20:38:54 +0000 (13:38 -0700)] 
Add a test for http://www.sqlalchemy.org/trac/ticket/2683

This test currently passes in Python 2 but fails in Python 3.

12 years ago0.8.1 bump + test, changelog for hstore fix [ticket:2680]
Mike Bayer [Mon, 18 Mar 2013 19:55:56 +0000 (12:55 -0700)] 
0.8.1 bump + test, changelog for hstore fix [ticket:2680]

12 years agoCorrected silly circular import introduced by original "fix".
Ben Trofatter [Mon, 18 Mar 2013 19:40:40 +0000 (12:40 -0700)] 
Corrected silly circular import introduced by original "fix".

12 years agoAdded HSTORE to ischema_names in dialects/postgresql/base.py
Ben Trofatter [Mon, 18 Mar 2013 19:20:37 +0000 (12:20 -0700)] 
Added HSTORE to ischema_names in dialects/postgresql/base.py

12 years agomerge plus fix the test spelling too
Mike Bayer [Mon, 18 Mar 2013 18:00:47 +0000 (11:00 -0700)] 
merge plus fix the test spelling too

12 years agoFix typo.
Richard Mitchell [Mon, 18 Mar 2013 17:40:23 +0000 (17:40 +0000)] 
Fix typo.

12 years agono need to use getattr() here
Mike Bayer [Mon, 18 Mar 2013 06:29:24 +0000 (23:29 -0700)] 
no need to use getattr() here

12 years agosome profiles
Mike Bayer [Mon, 18 Mar 2013 06:29:16 +0000 (23:29 -0700)] 
some profiles

12 years agodoc updates
Mike Bayer [Mon, 11 Mar 2013 21:52:41 +0000 (17:52 -0400)] 
doc updates

12 years ago- repair doctest for SQL expression tutorial
Mike Bayer [Mon, 11 Mar 2013 18:44:26 +0000 (14:44 -0400)] 
- repair doctest for SQL expression tutorial
- remove most use of "whereclause" and "from_obj", not done yet,
part of [ticket:2679]
- add links to method chained versions for all Select.append_XYZ()
calls
- add "method chaining" and "generative" to glossary

12 years agomerge 0.8
Mike Bayer [Sun, 10 Mar 2013 01:43:36 +0000 (20:43 -0500)] 
merge 0.8

12 years agoAdded tag rel_0_8_0 for changeset 2a20fd85d7f1c836c290975ea6c623420a83675d
Mike Bayer [Sun, 10 Mar 2013 01:43:06 +0000 (20:43 -0500)] 
Added tag rel_0_8_0 for changeset 2a20fd85d7f1c836c290975ea6c623420a83675d

12 years ago- add pgp identity rel_0_8_0
Mike Bayer [Sun, 10 Mar 2013 01:40:17 +0000 (20:40 -0500)] 
- add pgp identity

12 years ago0.8.0
Mike Bayer [Sun, 10 Mar 2013 01:23:12 +0000 (20:23 -0500)] 
0.8.0

12 years agomerge default
Mike Bayer [Sun, 10 Mar 2013 00:43:01 +0000 (19:43 -0500)] 
merge default

12 years agoadd ibm_db_sa
Mike Bayer [Sun, 10 Mar 2013 00:42:49 +0000 (19:42 -0500)] 
add ibm_db_sa

12 years agomerge default
Mike Bayer [Sat, 9 Mar 2013 23:22:25 +0000 (18:22 -0500)] 
merge default

12 years agolinting
Mike Bayer [Sat, 9 Mar 2013 23:22:14 +0000 (18:22 -0500)] 
linting

12 years agosome tests that were never turned on...
Mike Bayer [Sat, 9 Mar 2013 23:17:13 +0000 (18:17 -0500)] 
some tests that were never turned on...

12 years ago- auto-append for CheckConstraint should skip table if the expression is against
Mike Bayer [Sat, 9 Mar 2013 23:05:21 +0000 (18:05 -0500)] 
- auto-append for CheckConstraint should skip table if the expression is against
a lower-case-t table

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

12 years agoAdded support for Postgresql's traditional SUBSTRING
Mike Bayer [Sat, 9 Mar 2013 22:40:06 +0000 (17:40 -0500)] 
Added support for Postgresql's traditional SUBSTRING
function syntax, renders as "SUBSTRING(x FROM y FOR z)"
when regular ``func.substring()`` is used.
Also in 0.7.11.  Courtesy Gunnlaugur Por Briem.
[ticket:2676]

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

12 years ago- remove all compat items that are pre-2.5 (hooray)
Mike Bayer [Sat, 9 Mar 2013 22:26:16 +0000 (17:26 -0500)] 
- remove all compat items that are pre-2.5 (hooray)
- other cleanup
- don't need compat.decimal, that approach never panned out. hopefully
outside libs aren't pulling it in, they shouldn't be

12 years ago- this test is ridiculous, executemany() + returning not supported
Mike Bayer [Sat, 9 Mar 2013 19:42:34 +0000 (14:42 -0500)] 
- this test is ridiculous, executemany() + returning not supported

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