]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
12 years agofix tests here for 0.8
Mike Bayer [Sat, 15 Jun 2013 19:29:21 +0000 (15:29 -0400)] 
fix tests here for 0.8

12 years agoFixed bug in polymorphic SQL generation where multiple joined-inheritance
Mike Bayer [Sat, 15 Jun 2013 19:20:48 +0000 (15:20 -0400)] 
Fixed bug in polymorphic SQL generation where multiple joined-inheritance
entities against the same base class joined to each other as well
would not track columns on the base table independently of each other if
the string of joins were more than two entities long.  Also in 0.8.2.
[ticket:2759]

Conflicts:
doc/build/changelog/changelog_09.rst

12 years ago- skip this test for py3k. serializer kind of a bust
Mike Bayer [Fri, 14 Jun 2013 22:34:01 +0000 (18:34 -0400)] 
- skip this test for py3k.   serializer kind of a bust

Conflicts:
test/ext/test_serializer.py

12 years agochangelog
Mike Bayer [Mon, 10 Jun 2013 23:42:37 +0000 (19:42 -0400)] 
changelog

Conflicts:
doc/build/changelog/changelog_09.rst

12 years agoMerge pull request #6 from eevee/propagate-reset-on-return
mike bayer [Mon, 10 Jun 2013 23:38:48 +0000 (16:38 -0700)] 
Merge pull request #6 from eevee/propagate-reset-on-return

Preserve reset_on_return when recreating a Pool.

12 years agoFixed bug where sending a composite attribute into :meth:`.Query.order_by`
Mike Bayer [Mon, 10 Jun 2013 17:50:06 +0000 (13:50 -0400)] 
Fixed bug where sending a composite attribute into :meth:`.Query.order_by`
would produce a parenthesized expression not accepted by some databases.
[ticket:2754]

Conflicts:
doc/build/changelog/changelog_09.rst

12 years agoFixed the interaction between composite attributes and
Mike Bayer [Mon, 10 Jun 2013 17:45:19 +0000 (13:45 -0400)] 
Fixed the interaction between composite attributes and
the :func:`.aliased` function.  Previously, composite attributes
wouldn't work correctly in comparison operations when aliasing
was applied.  Also in 0.8.2. [ticket:2755]

Conflicts:
doc/build/changelog/changelog_09.rst

12 years agochangelog
Mike Bayer [Sat, 8 Jun 2013 19:13:39 +0000 (15:13 -0400)] 
changelog

Conflicts:
doc/build/changelog/changelog_09.rst

12 years agoMerge pull request #3 from bslatkin/master
mike bayer [Sat, 8 Jun 2013 19:11:25 +0000 (12:11 -0700)] 
Merge pull request #3 from bslatkin/master

Makes gaerdbms for App Engine use local MySQL server when running in dev_appserver2

12 years agomost of these dialect=mysql.dialect() calls are redundant
Mike Bayer [Sat, 8 Jun 2013 18:49:56 +0000 (14:49 -0400)] 
most of these dialect=mysql.dialect() calls are redundant

12 years ago- changelog for [ticket:2704]
Mike Bayer [Sat, 8 Jun 2013 18:47:04 +0000 (14:47 -0400)] 
- changelog for [ticket:2704]
- use an isinstance() check, concerned a TypeError might be indiscriminate

Conflicts:
doc/build/changelog/changelog_09.rst

12 years agoFix using of 'mysql_length' for composite indexes
Roman Podolyaka [Sat, 8 Jun 2013 17:38:02 +0000 (20:38 +0300)] 
Fix using of 'mysql_length' for composite indexes

Currently, one can specify the prefix length for an index
column using 'mysql_length' keyword argument when creating
an Index instance. But in case of composite indexes the
prefix length value is applied only to the last column.

Extend the existing API in way so that 'mysql_length' argument
value can be either:
    - an integer specifying the same prefix length value
      for each column of an index
    - a (column_name --> integer value) mapping specifying
      the prefix length value for each column of an index
      separately

Fixes issue #2704.

12 years agoWhen querying the information schema on SQL Server 2000, removed
Mike Bayer [Thu, 6 Jun 2013 16:52:18 +0000 (12:52 -0400)] 
When querying the information schema on SQL Server 2000, removed
a CAST call that was added in 0.8.1 to help with driver issues,
which apparently is not compatible on 2000.
The CAST remains in place for SQL Server 2005 and greater.
[ticket:2747]

Conflicts:
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/dialects/mssql/information_schema.py

12 years agoThe ``deferrable`` keyword argument on :class:`.ForeignKey` and
Mike Bayer [Mon, 3 Jun 2013 22:33:20 +0000 (18:33 -0400)] 
The ``deferrable`` keyword argument on :class:`.ForeignKey` and
:class:`.ForeignKeyConstraint` will not render the ``DEFERRABLE`` keyword
on the MySQL dialect.  For a long time we left this in place because
a non-deferrable foreign key would act very differently than a deferrable
one, but some environments just disable FKs on MySQL, so we'll be less
opinionated here. [ticket:2721]

Conflicts:
doc/build/changelog/changelog_09.rst

12 years agoFixed bug where :class:`.MutableDict` didn't report a change event
Mike Bayer [Mon, 3 Jun 2013 22:23:23 +0000 (18:23 -0400)] 
Fixed bug where :class:`.MutableDict` didn't report a change event
when ``clear()`` was called.
[ticket:2730]

Conflicts:
doc/build/changelog/changelog_09.rst

12 years agoFixed bug whereby joining a select() of a table "A" with multiple
Mike Bayer [Mon, 3 Jun 2013 21:03:15 +0000 (17:03 -0400)] 
Fixed bug whereby joining a select() of a table "A" with multiple
foreign key paths to a table "B", to that table "B", would fail
to produce the "ambiguous join condition" error that would be
reported if you join table "A" directly to "B"; it would instead
produce a join condition with multiple criteria.
[ticket:2738]

Conflicts:
doc/build/changelog/changelog_09.rst

12 years agoFixed bug whereby using :meth:`.MetaData.reflect` across a remote
Mike Bayer [Mon, 3 Jun 2013 20:40:59 +0000 (16:40 -0400)] 
Fixed bug whereby using :meth:`.MetaData.reflect` across a remote
schema as well as a local schema could produce wrong results
in the case where both schemas had a table of the same name.
[ticket:2728]

Conflicts:
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/schema.py

12 years ago- remove the ``__iter__()`` with notimplemented since it interferes
Mike Bayer [Mon, 3 Jun 2013 20:32:12 +0000 (16:32 -0400)] 
- remove the ``__iter__()`` with notimplemented since it interferes
with legitimate iterable detection, [ticket:2726]

Conflicts:
doc/build/changelog/changelog_09.rst

12 years agoFixed a regression caused by [ticket:2682] whereby the
Mike Bayer [Fri, 31 May 2013 15:52:31 +0000 (11:52 -0400)] 
Fixed a regression caused by [ticket:2682] whereby the
evaluation invoked by :meth:`.Query.update` and :meth:`.Query.delete`
would hit upon unsupported ``True`` and ``False`` symbols
which now appear due to the usage of ``IS``.
[ticket:2737]

Conflicts:
doc/build/changelog/changelog_08.rst

12 years agoupdate
Mike Bayer [Fri, 31 May 2013 00:31:49 +0000 (20:31 -0400)] 
update

12 years agorestore functionality here
Mike Bayer [Fri, 31 May 2013 00:30:51 +0000 (20:30 -0400)] 
restore functionality here

12 years agoAdded a new method :meth:`.Query.select_entity_from` which
Mike Bayer [Fri, 31 May 2013 00:24:48 +0000 (20:24 -0400)] 
Added a new method :meth:`.Query.select_entity_from` which
will in 0.9 replace part of the functionality of
:meth:`.Query.select_from`.  In 0.8, the two methods perform
the same function, so that code can be migrated to use the
:meth:`.Query.select_entity_from` method as appropriate.
See the 0.9 migration guide for details.
[ticket:2736]

12 years agoMerge branch 'master' into rel_0_8
Mike Bayer [Wed, 29 May 2013 22:36:36 +0000 (18:36 -0400)] 
Merge branch 'master' into rel_0_8

12 years agoadd the py2k symbol from the 0.9 branch to support the hstore change
Mike Bayer [Wed, 29 May 2013 22:36:10 +0000 (18:36 -0400)] 
add the py2k symbol from the 0.9 branch to support the hstore change

12 years agochangelog
Mike Bayer [Wed, 29 May 2013 22:30:56 +0000 (18:30 -0400)] 
changelog

12 years ago- repair for py3k
Mike Bayer [Wed, 29 May 2013 22:29:12 +0000 (18:29 -0400)] 
- repair for py3k
- fix test

12 years agoUnicode support for psycopg2 native hstore implementation
Dmitry Mugtasimov [Tue, 28 May 2013 12:50:12 +0000 (16:50 +0400)] 
Unicode support for psycopg2 native hstore implementation

12 years ago hstores are text, and in py3k they seem to be implcitly unicode. so
Mike Bayer [Wed, 29 May 2013 22:08:28 +0000 (18:08 -0400)] 
  hstores are text, and in py3k they seem to be implcitly unicode.  so
    add unicode encoding for py2k for the non-native hstore, pullreq for
    native psycopg2 support coming....

12 years ago- move an import stuck in the middle here...
Mike Bayer [Tue, 28 May 2013 05:43:12 +0000 (01:43 -0400)] 
- move an import stuck in the middle here...

12 years agoMerge branch 'master' into rel_0_8
Mike Bayer [Tue, 28 May 2013 05:22:23 +0000 (01:22 -0400)] 
Merge branch 'master' into rel_0_8

12 years agoFixed a small bug in the dogpile example where the generation
Mike Bayer [Tue, 28 May 2013 05:22:10 +0000 (01:22 -0400)] 
Fixed a small bug in the dogpile example where the generation
of SQL cache keys wasn't applying deduping labels to the
statement the same way :class:`.Query` normally does.

12 years agoMerge branch 'master' into rel_0_8
Mike Bayer [Sun, 26 May 2013 21:18:17 +0000 (17:18 -0400)] 
Merge branch 'master' into rel_0_8

12 years agofix this test
Mike Bayer [Sun, 26 May 2013 21:18:04 +0000 (17:18 -0400)] 
fix this test

12 years agoMerge pull request #1 from cjw296/small-fixes
mike bayer [Sun, 26 May 2013 14:46:16 +0000 (07:46 -0700)] 
Merge pull request #1 from cjw296/small-fixes

Small fixes

12 years ago- fixing AbstractConcreteBase import in docstring, 0.8
diana [Sun, 26 May 2013 14:21:13 +0000 (10:21 -0400)] 
- fixing AbstractConcreteBase import in docstring, 0.8
branch, [ticket:2717]

12 years ago- fixing AbstractConcreteBase import in docstring, [ticket:2717]
Diana Clarke [Sun, 26 May 2013 14:10:22 +0000 (10:10 -0400)] 
- fixing AbstractConcreteBase import in docstring, [ticket:2717]

12 years agotweaks to ignores
Chris Withers [Sun, 26 May 2013 13:49:42 +0000 (14:49 +0100)] 
tweaks to ignores

12 years agoShow the conflicting column in the warning!
Chris Withers [Wed, 22 May 2013 07:38:44 +0000 (08:38 +0100)] 
Show the conflicting column in the warning!

12 years agofix incorrect method name
Chris Withers [Tue, 21 May 2013 16:46:28 +0000 (17:46 +0100)] 
fix incorrect method name

12 years agoAdd missing import that caused test_notice_logging to fail if this suite was run...
Chris Withers [Sat, 18 May 2013 07:51:24 +0000 (08:51 +0100)] 
Add missing import that caused test_notice_logging to fail if this suite was run on its own.

12 years agoMerge branch 'master' into rel_0_8
Mike Bayer [Sat, 25 May 2013 21:05:01 +0000 (17:05 -0400)] 
Merge branch 'master' into rel_0_8

12 years ago- move to git dotfiles
Mike Bayer [Sat, 25 May 2013 20:20:59 +0000 (16:20 -0400)] 
- move to git dotfiles

12 years agomerge default
Mike Bayer [Thu, 23 May 2013 17:02:44 +0000 (13:02 -0400)] 
merge default

12 years agoFixed a bug where the routine to detect the correct kwargs
Mike Bayer [Thu, 23 May 2013 16:59:53 +0000 (12:59 -0400)] 
Fixed a bug where the routine to detect the correct kwargs
being sent to :func:`.create_engine` would fail in some cases,
such as with the Sybase dialect.
[ticket:2732]

12 years agomerge default
Mike Bayer [Wed, 15 May 2013 19:46:57 +0000 (15:46 -0400)] 
merge default

12 years agoRegression from this ticket caused the unsupported keyword
Mike Bayer [Wed, 15 May 2013 19:46:29 +0000 (15:46 -0400)] 
Regression from this ticket caused the unsupported keyword
"true" to render, added logic to convert this to 1/0
for SQL server.
[ticket:2682]

12 years agomerge default
Mike Bayer [Mon, 13 May 2013 20:13:32 +0000 (16:13 -0400)] 
merge default

12 years agoFixed a regression from 0.7 caused by this ticket, which
Mike Bayer [Mon, 13 May 2013 20:13:15 +0000 (16:13 -0400)] 
Fixed a regression from 0.7 caused by this ticket, which
made the check for recursion overflow in self-referential
eager joining too loose, missing a particular circumstance
where a subclass had lazy="joined" or "subquery" configured
and the load was a "with_polymorphic" against the base.
[ticket:2481]

12 years agomerge default
Mike Bayer [Fri, 10 May 2013 05:06:23 +0000 (01:06 -0400)] 
merge default

12 years ago- moderinzed the docs for the foreign_keys parameter a bit,
Mike Bayer [Fri, 10 May 2013 05:06:10 +0000 (01:06 -0400)] 
- moderinzed the docs for the foreign_keys parameter a bit,
[ticket:2725]

12 years agomerge default
Mike Bayer [Sun, 5 May 2013 05:39:52 +0000 (01:39 -0400)] 
merge default

12 years ago- cleanup
Mike Bayer [Sun, 5 May 2013 05:39:35 +0000 (01:39 -0400)] 
- cleanup
- move the timeout here to 14 seconds as jenkins still chokes occasionally

12 years agomerge default
Mike Bayer [Sat, 4 May 2013 20:36:10 +0000 (16:36 -0400)] 
merge default

12 years agocleanup
Mike Bayer [Sat, 4 May 2013 20:26:10 +0000 (16:26 -0400)] 
cleanup

12 years agocleanup
Mike Bayer [Sat, 4 May 2013 19:35:47 +0000 (15:35 -0400)] 
cleanup

12 years agocleanup
Mike Bayer [Sat, 4 May 2013 19:08:08 +0000 (15:08 -0400)] 
cleanup

12 years agoformatting stuff
Mike Bayer [Sat, 4 May 2013 18:23:29 +0000 (14:23 -0400)] 
formatting stuff

12 years agomerge default
Mike Bayer [Wed, 1 May 2013 14:09:48 +0000 (10:09 -0400)] 
merge default

12 years ago- disable tests failing with pypy2, [ticket:2719]
Mike Bayer [Wed, 1 May 2013 14:09:34 +0000 (10:09 -0400)] 
- disable tests failing with pypy2, [ticket:2719]

12 years agomerge default
Mike Bayer [Tue, 30 Apr 2013 14:03:02 +0000 (10:03 -0400)] 
merge default

12 years ago- Fixed a regression from 0.7 where the contextmanager feature
Mike Bayer [Tue, 30 Apr 2013 14:02:49 +0000 (10:02 -0400)] 
- Fixed a regression from 0.7 where the contextmanager feature
of :meth:`.Session.begin_nested` would fail to correctly
roll back the transaction when a flush error occurred, instead
raising its own exception while leaving the session still
pending a rollback.  [ticket:2718]

12 years agomissing comma
Mike Bayer [Tue, 30 Apr 2013 04:15:36 +0000 (00:15 -0400)] 
missing comma

12 years agomerge default
Mike Bayer [Mon, 29 Apr 2013 23:50:08 +0000 (19:50 -0400)] 
merge default

12 years agobump
Mike Bayer [Mon, 29 Apr 2013 23:49:59 +0000 (19:49 -0400)] 
bump

12 years agomerge default
Mike Bayer [Mon, 29 Apr 2013 23:49:45 +0000 (19:49 -0400)] 
merge default

12 years agoUpdated mysqlconnector dialect to check for disconnect based
Mike Bayer [Mon, 29 Apr 2013 23:49:28 +0000 (19:49 -0400)] 
Updated mysqlconnector dialect to check for disconnect based
on the apparent string message sent in the exception; tested
against mysqlconnector 1.0.9.

12 years agomerge default
Mike Bayer [Mon, 29 Apr 2013 23:28:00 +0000 (19:28 -0400)] 
merge default

12 years ago- fix long-outdated documentation for sql_mode/ansiquotes,
Mike Bayer [Mon, 29 Apr 2013 23:21:44 +0000 (19:21 -0400)] 
- fix long-outdated documentation for sql_mode/ansiquotes,
closes [ticket:1552]

12 years agomerge rel_0_8
Mike Bayer [Sat, 27 Apr 2013 21:51:52 +0000 (17:51 -0400)] 
merge rel_0_8

12 years agoAdded tag rel_0_8_1 for changeset 2cf49d898d3a10d1c7a5ac87dd015691d51f9248
Mike Bayer [Sat, 27 Apr 2013 21:36:18 +0000 (17:36 -0400)] 
Added tag rel_0_8_1 for changeset 2cf49d898d3a10d1c7a5ac87dd015691d51f9248

12 years ago0.8.1 rel_0_8_1
Mike Bayer [Sat, 27 Apr 2013 21:27:13 +0000 (17:27 -0400)] 
0.8.1

12 years agomerge default
Mike Bayer [Sat, 27 Apr 2013 21:24:23 +0000 (17:24 -0400)] 
merge default

12 years agomodernize some more examples
Mike Bayer [Sat, 27 Apr 2013 21:21:31 +0000 (17:21 -0400)] 
modernize some more examples

12 years ago- add documentation note for [ticket:1841]
Mike Bayer [Sat, 27 Apr 2013 19:35:13 +0000 (15:35 -0400)] 
- add documentation note for [ticket:1841]

12 years agothe callcount went up here, still less than with no C extensions, not prepared
Mike Bayer [Fri, 26 Apr 2013 23:51:25 +0000 (19:51 -0400)] 
the callcount went up here, still less than with no C extensions, not prepared
to worry about it too much

12 years agooracle doesn't have TRUE/FALSE, put 1/0 here, see how that goes
Mike Bayer [Fri, 26 Apr 2013 23:49:48 +0000 (19:49 -0400)] 
oracle doesn't have TRUE/FALSE, put 1/0 here, see how that goes

12 years agoneed to test for (list, tuple) here and not hasattr("__iter__")
Mike Bayer [Fri, 26 Apr 2013 23:48:43 +0000 (19:48 -0400)] 
need to test for (list, tuple) here and not hasattr("__iter__")
since Py3K strings have __iter__

12 years agofix here, was only failing in the py3k version
Mike Bayer [Fri, 26 Apr 2013 23:45:06 +0000 (19:45 -0400)] 
fix here, was only failing in the py3k version

12 years agomerge default
Mike Bayer [Fri, 26 Apr 2013 19:51:45 +0000 (15:51 -0400)] 
merge default

12 years agoFixes to the ``sqlalchemy.ext.serializer`` extension, including
Mike Bayer [Fri, 26 Apr 2013 19:51:29 +0000 (15:51 -0400)] 
Fixes to the ``sqlalchemy.ext.serializer`` extension, including
that the "id" passed from the pickler is turned into a string
to prevent against bytes being parsed on Py3K, as well as that
``relationship()`` and ``orm.join()`` constructs are now properly
serialized. [ticket:2698] and some other observed issues.

12 years agomerge default
Mike Bayer [Fri, 26 Apr 2013 19:04:54 +0000 (15:04 -0400)] 
merge default

12 years agochangelog for [ticket:2714]
Mike Bayer [Fri, 26 Apr 2013 19:04:42 +0000 (15:04 -0400)] 
changelog for [ticket:2714]

12 years agoand a lot of tests. five fail without the change
Mike Bayer [Fri, 26 Apr 2013 17:08:28 +0000 (13:08 -0400)] 
and a lot of tests.  five fail without the change

12 years ago- further cleanup. in particular, the left clause is never None. But we still
Mike Bayer [Thu, 25 Apr 2013 18:44:37 +0000 (14:44 -0400)] 
- further cleanup.  in particular, the left clause is never None.  But we still
can have errors when we do the auto-join, these are both covered in test_joins

12 years agowe can always adapt to right also. suppose if right
Mike Bayer [Thu, 25 Apr 2013 18:29:48 +0000 (14:29 -0400)] 
we can always adapt to right also.  suppose if right
were an alias of a table, should add tests for that.

12 years agoheh dont need that either
Mike Bayer [Thu, 25 Apr 2013 18:16:54 +0000 (14:16 -0400)] 
heh dont need that either

12 years agodont need this
Mike Bayer [Thu, 25 Apr 2013 18:14:23 +0000 (14:14 -0400)] 
dont need this

12 years agocleanup
Mike Bayer [Thu, 25 Apr 2013 18:13:13 +0000 (14:13 -0400)] 
cleanup

12 years agoeverything passes with this!!!!!!! holy crap !!!!! and its the simplest of all
Mike Bayer [Thu, 25 Apr 2013 17:54:40 +0000 (13:54 -0400)] 
everything passes with this!!!!!!! holy crap !!!!!  and its the simplest of all

12 years ago- attempt to replace the whole idea of "join_to_left" with a more
Mike Bayer [Wed, 24 Apr 2013 22:58:09 +0000 (18:58 -0400)] 
- attempt to replace the whole idea of "join_to_left" with a more
fundamental and general purpose heuristic.   this initial approach
has about 60 tests failing but seems to have gone pretty far

12 years agobreak into multiple tests
Mike Bayer [Wed, 24 Apr 2013 22:10:16 +0000 (18:10 -0400)] 
break into multiple tests

12 years agoformatting
Mike Bayer [Wed, 24 Apr 2013 21:49:24 +0000 (17:49 -0400)] 
formatting

12 years ago- merge exists() patch + changelog
Mike Bayer [Wed, 24 Apr 2013 00:06:04 +0000 (20:06 -0400)] 
- merge exists() patch + changelog

12 years agomerge default
Mike Bayer [Tue, 23 Apr 2013 17:24:02 +0000 (13:24 -0400)] 
merge default

12 years agoAdded a conditional to the unpickling process for ORM
Mike Bayer [Tue, 23 Apr 2013 17:23:48 +0000 (13:23 -0400)] 
Added a conditional to the unpickling process for ORM
mapped objects, such that if the reference to the object
were lost when the object was pickled, we don't
erroneously try to set up _sa_instance_state - fixes
a NoneType error.

12 years agomerge default
Mike Bayer [Tue, 23 Apr 2013 17:07:50 +0000 (13:07 -0400)] 
merge default

12 years ago- only search in the exception before the first newline, to avoid
Mike Bayer [Tue, 23 Apr 2013 17:07:36 +0000 (13:07 -0400)] 
- only search in the exception before the first newline, to avoid
false positives for SQL statements containing certain text

12 years agomerge default
Mike Bayer [Mon, 22 Apr 2013 23:33:49 +0000 (19:33 -0400)] 
merge default

12 years agoOpened up the checking for "disconnect" with psycopg2/libpq
Mike Bayer [Mon, 22 Apr 2013 23:33:39 +0000 (19:33 -0400)] 
Opened up the checking for "disconnect" with psycopg2/libpq
to check for all the various "disconnect" messages within
the full exception hierarchy.  Specifically the
"closed the connection unexpectedly" message has now been
seen in at least three different exception types.
[ticket:2712]

12 years agomerge default
Mike Bayer [Mon, 22 Apr 2013 23:13:00 +0000 (19:13 -0400)] 
merge default