]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
10 years ago- clarify docs that contains_eager() is included in the of_type() system,
Mike Bayer [Thu, 7 Aug 2014 13:59:59 +0000 (09:59 -0400)] 
- clarify docs that contains_eager() is included in the of_type() system,
fix #2438

10 years agofix typo in cascade documentation
Michael White [Wed, 6 Aug 2014 02:47:40 +0000 (22:47 -0400)] 
fix typo in cascade documentation

11 years ago0.8.7 rel_0_8_7
Mike Bayer [Tue, 22 Jul 2014 20:56:07 +0000 (16:56 -0400)] 
0.8.7

11 years ago- backport 0.9-related updates
Mike Bayer [Tue, 22 Jul 2014 20:53:31 +0000 (16:53 -0400)] 
- backport 0.9-related updates

11 years ago- ticket inline
Mike Bayer [Tue, 22 Jul 2014 20:25:58 +0000 (16:25 -0400)] 
- ticket inline

11 years ago- backport #3093 to 0.8, fixes #3093
Mike Bayer [Wed, 16 Jul 2014 17:42:23 +0000 (13:42 -0400)] 
- backport #3093 to 0.8, fixes #3093

11 years ago- need Integer here as #1765 is in 0.9
Mike Bayer [Wed, 16 Jul 2014 14:52:35 +0000 (10:52 -0400)] 
- need Integer here as #1765 is in 0.9

11 years ago- Added statement encoding to the "SET IDENTITY_INSERT"
Mike Bayer [Mon, 14 Jul 2014 23:02:20 +0000 (19:02 -0400)] 
- Added statement encoding to the "SET IDENTITY_INSERT"
statements which operate when an explicit INSERT is being
interjected into an IDENTITY column, to support non-ascii table
identifiers on drivers such as pyodbc + unix + py2k that don't
support unicode statements.
ref #3091 as this fix is also in that issue's patch, but is
a different issue.

11 years ago- In the SQL Server pyodbc dialect, repaired the implementation
Mike Bayer [Mon, 14 Jul 2014 22:54:23 +0000 (18:54 -0400)] 
- In the SQL Server pyodbc dialect, repaired the implementation
for the ``description_encoding`` dialect parameter, which when
not explicitly set was preventing  cursor.description from
being parsed correctly in the case of result sets that
contained names in alternate encodings.  This parameter
shouldn't be needed going forward.
fixes #3091

Conflicts:
test/sql/test_unicode.py

11 years ago- add some order bys
Mike Bayer [Mon, 14 Jul 2014 20:31:16 +0000 (16:31 -0400)] 
- add some order bys

11 years ago- adjust this to work on PG also
Mike Bayer [Mon, 14 Jul 2014 03:59:12 +0000 (23:59 -0400)] 
- adjust this to work on PG also

11 years ago- Fixed bug in :class:`.Enum` and other :class:`.SchemaType`
Mike Bayer [Sun, 13 Jul 2014 22:55:18 +0000 (18:55 -0400)] 
- Fixed bug in :class:`.Enum` and other :class:`.SchemaType`
subclasses where direct association of the type with a
:class:`.MetaData` would lead to a hang when events
(like create events) were emitted on the :class:`.MetaData`.
fixes #3124

Conflicts:
lib/sqlalchemy/sql/sqltypes.py
test/sql/test_types.py

11 years ago- Fixed a bug within the custom operator plus :meth:`.TypeEngine.with_variant`
Mike Bayer [Fri, 27 Jun 2014 20:08:42 +0000 (16:08 -0400)] 
- Fixed a bug within the custom operator plus :meth:`.TypeEngine.with_variant`
system, whereby using a :class:`.TypeDecorator` in conjunction with
variant would fail with an MRO error when a comparison operator was used.
fixes #3102

Conflicts:
lib/sqlalchemy/sql/type_api.py

11 years agowrong version number
Mike Bayer [Fri, 27 Jun 2014 20:07:05 +0000 (16:07 -0400)] 
wrong version number

11 years ago- MySQL error 2014 "commands out of sync" appears to be raised as a
Mike Bayer [Fri, 27 Jun 2014 19:52:40 +0000 (15:52 -0400)] 
- MySQL error 2014 "commands out of sync" appears to be raised as a
ProgrammingError, not OperationalError, in modern MySQL-Python versions;
all MySQL error codes that are tested for "is disconnect" are now
checked within OperationalError and ProgrammingError regardless.
fixes #3101

11 years agoadditional version notes
Mike Bayer [Fri, 20 Jun 2014 22:06:15 +0000 (18:06 -0400)] 
additional version notes

11 years ago- Fixed bug where column names added to ``mysql_length`` parameter
Mike Bayer [Wed, 18 Jun 2014 14:56:23 +0000 (10:56 -0400)] 
- Fixed bug where column names added to ``mysql_length`` parameter
on an index needed to have the same quoting for quoted names in
order to be recognized.  The fix makes the quotes optional but
also provides the old behavior for backwards compatibility with those
using the workaround.
fixes #3085

11 years ago- The ``__mapper_args__`` dictionary is copied from a declarative
Mike Bayer [Fri, 30 May 2014 19:36:13 +0000 (15:36 -0400)] 
- The ``__mapper_args__`` dictionary is copied from a declarative
mixin or abstract class when accessed, so that modifications made
to this dictionary by declarative itself won't conflict with that
of other mappings.  The dictionary is modified regarding the
``version_id_col`` and ``polymorphic_on`` arguments, replacing the
column within with the one that is officially mapped to the local
class/table. fixes #3062

11 years agorelative here
Mike Bayer [Thu, 29 May 2014 22:52:15 +0000 (18:52 -0400)] 
relative here

11 years ago- all new approach which allows the main text to be on the top
Mike Bayer [Thu, 29 May 2014 19:26:31 +0000 (15:26 -0400)] 
- all new approach which allows the main text to be on the top

11 years ago- disable the scrolling layout, anchors for code/params are not working,
Mike Bayer [Thu, 29 May 2014 16:28:19 +0000 (12:28 -0400)] 
- disable the scrolling layout, anchors for code/params are not working,
and the current approach used for sections is not able to work for fine-grained
anchors like these, another approach needs to be taken.

11 years ago- a rework of doc layout and nav:
Mike Bayer [Wed, 28 May 2014 14:56:52 +0000 (10:56 -0400)] 
- a rework of doc layout and nav:
  - reduce the real estate for the top nav; move the search box
    into the top yellow box, close in space
  - use a new CSS/js approach such that the top toolbar freezes from
    scrolling at the top of the page.  The left nav scrolls independently
    of the content pane so that the local contents remain visible regardless
    of scrolling.   this approach is disabled on mobile where the dual scrollbars
    may be cumbersome (overall the site is not well designed for mobile).

11 years ago- Fixed bug in INSERT..FROM SELECT construct where selecting from a
Mike Bayer [Sun, 25 May 2014 18:08:41 +0000 (14:08 -0400)] 
- Fixed bug in INSERT..FROM SELECT construct where selecting from a
UNION would wrap the union in an anonymous (e.g. unlabled) subquery.
fixes #3044

11 years ago- Added the ``hashable=False`` flag to the PG :class:`.HSTORE` type, which
Mike Bayer [Sun, 25 May 2014 17:58:08 +0000 (13:58 -0400)] 
- Added the ``hashable=False`` flag to the PG :class:`.HSTORE` type, which
is needed to allow the ORM to skip over trying to "hash" an ORM-mapped
HSTORE column when requesting it in a mixed column/entity list.
Patch courtesy Gunnlaugur Þór Briem.  Fixes #3053

11 years ago- Fixed bug in subquery eager loading where a long chain of
Mike Bayer [Sun, 25 May 2014 17:45:32 +0000 (13:45 -0400)] 
- Fixed bug in subquery eager loading where a long chain of
eager loads across a polymorphic-subclass boundary in conjunction
with polymorphic loading would fail to locate the subclass-link in the
chain, erroring out with a missing property name on an
:class:`.AliasedClass`. fixes #3055
- adjust the test from 1.0/0.9 to not use chained eager load style

11 years ago- hyperlink all the column operators listed in the ORM tutorial common filter operato...
Mike Bayer [Sat, 24 May 2014 13:54:20 +0000 (09:54 -0400)] 
- hyperlink all the column operators listed in the ORM tutorial common filter operators section
- add language to MATCH explicitly stating this operator varies by backend and is not available
on SQLite, as the tutorial defaults to SQLite to start with, fix #3059
- on the actual match() documentation fix this up to be more accurate, list some example renderings
for different backends.  again mention SQLite not supported

11 years agotypo
Mike Bayer [Fri, 16 May 2014 16:59:47 +0000 (12:59 -0400)] 
typo

11 years ago- add lots more to the profiling section
Mike Bayer [Fri, 16 May 2014 15:53:12 +0000 (11:53 -0400)] 
- add lots more to the profiling section
- add the query profiling recipe, fix it with a stack as we now nest those
calls occasionally
- tabs to spaces

Conflicts:
doc/build/faq.rst

11 years agoAdd note on PostgreSQL config for test runs
Gunnlaugur Þór Briem [Thu, 15 May 2014 21:02:59 +0000 (21:02 +0000)] 
Add note on PostgreSQL config for test runs

Several tests on PostgreSQL depend on English-language text search
config being the default in the test DB. This adds a note about that.

Conflicts:
README.unittests.rst

11 years ago- Fixed bug in mutable extension where :class:`.MutableDict` did not
Mike Bayer [Wed, 14 May 2014 14:03:24 +0000 (10:03 -0400)] 
- Fixed bug in mutable extension where :class:`.MutableDict` did not
report change events for the ``setdefault()`` dictionary operation.
fixes #3051

11 years ago- add a new FAQ section "performance", put the profiling article there,
Mike Bayer [Mon, 12 May 2014 21:16:15 +0000 (17:16 -0400)] 
- add a new FAQ section "performance", put the profiling article there,
move the insert rows article there as well

11 years agoPosgtresql -> PostgreSQL
Wieland Hoffmann [Sun, 4 May 2014 19:34:37 +0000 (19:34 +0000)] 
Posgtresql -> PostgreSQL

11 years agochangelog for pullreq bitbucket:15
Mike Bayer [Mon, 12 May 2014 15:39:49 +0000 (11:39 -0400)] 
changelog for pullreq bitbucket:15

11 years agoAdded optional '=' to MySQL KEY_BLOCK_SIZE regex
W. Sean McGivern [Sat, 19 Apr 2014 16:16:46 +0000 (12:16 -0400)] 
Added optional '=' to MySQL KEY_BLOCK_SIZE regex

11 years agoDocumentation fix-up: "its" vs. "it's"
Matthias Urlichs [Sun, 11 May 2014 14:49:56 +0000 (16:49 +0200)] 
Documentation fix-up: "its" vs. "it's"

Removed ungrammatical apostrophes from documentation, replacing
"it's" with "its" where appropriate (but in a few cases with "it is"
when that read better).

While doing that, I also fixed a couple of minor typos etc.
as I noticed them.

11 years ago- Fixed ORM bug where the :func:`.class_mapper` function would mask
Mike Bayer [Sun, 11 May 2014 03:26:09 +0000 (23:26 -0400)] 
- Fixed ORM bug where the :func:`.class_mapper` function would mask
AttributeErrors or KeyErrors that should raise during mapper
configuration due to user errors.  The catch for attribute/keyerror
has been made more specific to not include the configuration step.
fixes #3047

11 years ago- Fixed bug where :meth:`.Table.update` and :meth:`.Table.delete`
Mike Bayer [Fri, 9 May 2014 02:44:06 +0000 (22:44 -0400)] 
- Fixed bug where :meth:`.Table.update` and :meth:`.Table.delete`
would produce an empty WHERE clause when an empty :func:`.and_()`
or :func:`.or_()` or other blank expression were applied.  This is
now consistent with that of :func:`.select`.
fixes #3045

11 years agoFix many typos throughout the codebase
Alex Gaynor [Sat, 26 Apr 2014 20:13:13 +0000 (13:13 -0700)] 
Fix many typos throughout the codebase
cherry pick of those parts of 1caa7fa which went in without issue
Found using: https://github.com/intgr/topy

11 years ago- add a note about versioning only applying to flushes
Mike Bayer [Fri, 25 Apr 2014 16:31:04 +0000 (12:31 -0400)] 
- add a note about versioning only applying to flushes

11 years ago- document that joinedload/eagerload work with of_type() + with_polymoprhic()
Mike Bayer [Wed, 23 Apr 2014 23:13:04 +0000 (19:13 -0400)] 
- document that joinedload/eagerload work with of_type() + with_polymoprhic()

11 years agoAdded some links in session docs
benselme [Wed, 23 Apr 2014 16:18:32 +0000 (12:18 -0400)] 
Added some links in session docs

11 years ago0.8.7
Mike Bayer [Fri, 11 Apr 2014 19:44:52 +0000 (15:44 -0400)] 
0.8.7

11 years ago- Added a new "disconnect" message "connection has been closed unexpectedly".
Mike Bayer [Fri, 11 Apr 2014 19:42:36 +0000 (15:42 -0400)] 
- Added a new "disconnect" message "connection has been closed unexpectedly".
This appears to be related to newer versions of SSL.
Pull request courtesy Antti Haapala.

11 years agoadded an SSL related connection error
antti_haapala [Fri, 11 Apr 2014 19:38:07 +0000 (19:38 +0000)] 
added an SSL related connection error

11 years agoFixed bug in example code.
Daniel Smith [Thu, 10 Apr 2014 23:15:17 +0000 (19:15 -0400)] 
Fixed bug in example code.

11 years agorepair erroneous whitespace in autodoc directives, preventing members from
Mike Bayer [Sun, 6 Apr 2014 22:14:44 +0000 (18:14 -0400)] 
repair erroneous whitespace in autodoc directives, preventing members from
being documented

11 years ago- add some docs for the instancestate linkage to the inspection system
Mike Bayer [Fri, 4 Apr 2014 21:33:35 +0000 (17:33 -0400)] 
- add some docs for the instancestate linkage to the inspection system

11 years ago- reverse order of columns in sample CTEs as this is a UNION and the cols need to...
Mike Bayer [Wed, 2 Apr 2014 22:11:11 +0000 (18:11 -0400)] 
- reverse order of columns in sample CTEs as this is a UNION and the cols need to line up
- alter this in the unit tests as well as these queries were just copied from the tests
- remove the included_parts.join(parts) from the core CTE doc (also just copied from the
test, where we want to make sure joins don't get screwed up with the CTE) as it doesn't
contribute to the query itself
fixes #3014

11 years ago0.8.6 rel_0_8_6
Mike Bayer [Fri, 28 Mar 2014 23:40:21 +0000 (19:40 -0400)] 
0.8.6

11 years agothis doesnt need sane multi row now...
Mike Bayer [Fri, 28 Mar 2014 23:17:04 +0000 (19:17 -0400)] 
this doesnt need sane multi row now...

11 years ago- revert part of c01558ae7f4a for now as we also test that a DELETE of two rows
Mike Bayer [Fri, 28 Mar 2014 21:42:55 +0000 (17:42 -0400)] 
- revert part of c01558ae7f4a for now as we also test that a DELETE of two rows
where one is to be deleted from ON DELETE CASCADE succeeds; the check here makes that fail.
We will need to add an option to enable/disable this check per mapping, will likely
do this in next version

11 years agorevert inadvertent pdb
Mike Bayer [Fri, 28 Mar 2014 20:48:05 +0000 (16:48 -0400)] 
revert inadvertent pdb

11 years ago- the rewording of orderinglist docs got committed by accident, finish it up
Mike Bayer [Fri, 28 Mar 2014 20:47:12 +0000 (16:47 -0400)] 
- the rewording of orderinglist docs got committed by accident, finish it up

11 years ago- Fixed ORM bug where changing the primary key of an object, then marking
Mike Bayer [Fri, 28 Mar 2014 20:32:11 +0000 (16:32 -0400)] 
- Fixed ORM bug where changing the primary key of an object, then marking
it for DELETE would fail to target the correct row for DELETE.
Then to compound matters, basic "number of rows matched" checks were
not being performed.  Both issues are fixed, however note that the
"rows matched" check requires so-called "sane multi-row count"
functionality; the DBAPI's executemany() method must count up the
rows matched by individual statements and SQLAlchemy's dialect must
mark this feature as supported, currently applies to some mysql dialects,
psycopg2, sqlite only. fixes #3006
- Enabled "sane multi-row count" checking for the psycopg2 DBAPI, as
this seems to be supported as of psycopg2 2.0.9.

Conflicts:
test/orm/test_naturalpks.py
test/requirements.py

11 years agoAdded missing text_type requirement to TextTest
Stefan Reich [Wed, 26 Mar 2014 15:04:23 +0000 (16:04 +0100)] 
Added missing text_type requirement to TextTest

11 years ago- Fixed regression caused by release 0.8.5 / 0.9.3's compatibility
Mike Bayer [Tue, 25 Mar 2014 16:26:42 +0000 (12:26 -0400)] 
- Fixed regression caused by release 0.8.5 / 0.9.3's compatibility
enhancements where index reflection on Postgresql versions specific
to only the 8.1, 8.2 series again
broke, surrounding the ever problematic int2vector type.  While
int2vector supports array operations as of 8.1, apparently it only
supports CAST to a varchar as of 8.3.
fix #3000

11 years ago- Fixed regression from 0.8.3 as a result of :ticket:`2818`
Mike Bayer [Sat, 22 Mar 2014 23:55:00 +0000 (19:55 -0400)] 
- Fixed regression from 0.8.3 as a result of :ticket:`2818`
where :meth:`.Query.exists` wouldn't work on a query that only
had a :meth:`.Query.select_from` entry but no other entities.
re: #2818 fixes #2995

11 years ago- Adjusted ``setup.py`` file to support the possible future
Mike Bayer [Sat, 22 Mar 2014 21:31:50 +0000 (17:31 -0400)] 
- Adjusted ``setup.py`` file to support the possible future
removal of the ``setuptools.Feature`` extension from setuptools.
If this keyword isn't present, the setup will still succeed
with setuptools rather than falling back to distutils.  C extension
building can be disabled now also by setting the
DISABLE_SQLALCHEMY_CEXT environment variable.  This variable works
whether or not setuptools is even available. fixes #2986
- using platform.python_implementation() in setup.py to detect CPython.
I've tested this function on OSX and linux on Python 2.6 through 3.4,
including 3.1, 3.2, 3.3.
Unfortunately, on OSX + 3.2 only, it seems to segfault.  I've tried
installing 3.2.5 from the python.org .dmg, building it from source,
and also blew away the whole 3.2 directory, something seems to be wrong
with the "platform" module on that platform only, and there's also no
issue on bugs.python.org; however, I'm going with
it anyway. If someone is using 3.2 on OSX they really should be upgrading.
- adjusted the logic for platform_implementation(), apparently "platform"
is there in python 2.5, so we are doing a version check.
Conflicts:
doc/build/intro.rst
setup.py

11 years ago- reword the paragraph which talks about web framework integration for sessions:
Mike Bayer [Fri, 21 Mar 2014 02:46:23 +0000 (22:46 -0400)] 
- reword the paragraph which talks about web framework integration for sessions:

1. fix the typo in the paragraph, fixes #2998
2. as zope-sqlalchemy only provides transaction integration and not session scoping,
dial back the language here as people are probably using scoped_session with pyramid anyway
3. as I'm going to again start recommending people don't cling to flask-sqlalchemy so hard,
take out the word "strongly" from the recommendation.
4. as flask is the only framework I can think of that actually has an explicit SQLAlchemy
layer that handles setting up scoped_session, take out the word "most", now it's "some web frameworks"
(by which it means "only flask...and flask-sqlalchemy is probably not worth using anyway")

11 years agofix assertion
Mike Bayer [Wed, 19 Mar 2014 15:47:58 +0000 (11:47 -0400)] 
fix assertion

11 years ago- Fixed bug in mutable extension as well as
Mike Bayer [Wed, 19 Mar 2014 15:09:38 +0000 (11:09 -0400)] 
- Fixed bug in mutable extension as well as
:func:`.attributes.flag_modified` where the change event would not be
propagated if the attribute had been reassigned to itself.
fixes #2997

Conflicts:
lib/sqlalchemy/orm/state.py
test/orm/test_attributes.py

11 years agoAdd is_ and isnot filter to the tutorial
Charles-Axel Dein [Sat, 15 Mar 2014 00:40:04 +0000 (17:40 -0700)] 
Add is_ and isnot filter to the tutorial

Most linter complain when comparing with None.

11 years ago- Improved an error message which would occur if a query() were made
Mike Bayer [Mon, 17 Mar 2014 20:25:51 +0000 (16:25 -0400)] 
- Improved an error message which would occur if a query() were made
against a non-selectable, such as a :func:`.literal_column`, and then
an attempt was made to use :meth:`.Query.join` such that the "left"
side would be determined as ``None`` and then fail.  This condition
is now detected explicitly.

11 years agotypo
Mike Bayer [Sun, 16 Mar 2014 18:51:06 +0000 (14:51 -0400)] 
typo

11 years ago- fairly epic rework of the cascade documentation
Mike Bayer [Sat, 15 Mar 2014 19:44:29 +0000 (15:44 -0400)] 
- fairly epic rework of the cascade documentation

Conflicts:
lib/sqlalchemy/orm/relationships.py

11 years agoMerge pull request #79 from nibrahim/master
mike bayer [Tue, 11 Mar 2014 15:30:33 +0000 (11:30 -0400)] 
Merge pull request #79 from nibrahim/master

Fixes argument number in docs

11 years agomerge new links to rel_0_8
Mike Bayer [Sun, 9 Mar 2014 23:14:21 +0000 (19:14 -0400)] 
merge new links to rel_0_8

11 years agocut out the BS as far as MySQLdb urls, put the one url everyone should be using
Mike Bayer [Tue, 4 Mar 2014 17:51:23 +0000 (12:51 -0500)] 
cut out the BS as far as MySQLdb urls, put the one url everyone should be using

11 years ago- Fixed bug in :func:`.tuple_` construct where the "type" of essentially
Mike Bayer [Fri, 28 Feb 2014 00:54:49 +0000 (19:54 -0500)] 
- Fixed bug in :func:`.tuple_` construct where the "type" of essentially
the first SQL expression would be applied as the "comparison type"
to a compared tuple value; this has the effect in some cases of an
inappropriate "type coersion" occurring, such as when a tuple that
has a mix of String and Binary values improperly coerces target
values to Binary even though that's not what they are on the left
side.  :func:`.tuple_` now expects heterogeneous types within its
list of values.
fixes #2977

Conflicts:
lib/sqlalchemy/sql/elements.py
test/sql/test_operators.py

11 years ago0.8.6
Mike Bayer [Thu, 27 Feb 2014 00:27:57 +0000 (19:27 -0500)] 
0.8.6

11 years ago- Removed stale names from ``sqlalchemy.orm.interfaces.__all__`` and
Mike Bayer [Thu, 27 Feb 2014 00:27:22 +0000 (19:27 -0500)] 
- Removed stale names from ``sqlalchemy.orm.interfaces.__all__`` and
refreshed with current names, so that an ``import *`` from this
module again works.
fixes #2975

11 years ago0.8.5 rel_0_8_5
Mike Bayer [Thu, 20 Feb 2014 03:59:11 +0000 (22:59 -0500)] 
0.8.5

11 years ago2014
Mike Bayer [Thu, 20 Feb 2014 03:56:06 +0000 (22:56 -0500)] 
2014

11 years ago- isolate this failure as only on 0.8, only in py3.3, just comment it out,
Mike Bayer [Thu, 20 Feb 2014 01:33:31 +0000 (20:33 -0500)] 
- isolate this failure as only on 0.8, only in py3.3, just comment it out,
not really worth tracking down

11 years ago- Added an additional message to psycopg2 disconnect detection,
Mike Bayer [Thu, 20 Feb 2014 00:22:17 +0000 (19:22 -0500)] 
- Added an additional message to psycopg2 disconnect detection,
"could not send data to server", which complements the existing
"could not receive data from server" and has been observed by users,
fixes #2936

11 years ago- add a topological rule here to place PARTITIONS after PARTITION_BY,
Mike Bayer [Wed, 19 Feb 2014 22:00:37 +0000 (17:00 -0500)] 
- add a topological rule here to place PARTITIONS after PARTITION_BY,
for output consistency within the tests as well as in practice

11 years agorestore check ahead of the lock to avoid locking when not needed
Mike Bayer [Wed, 19 Feb 2014 21:12:36 +0000 (16:12 -0500)] 
restore check ahead of the lock to avoid locking when not needed

11 years ago- add improved support here for string parsing of predicates, backport
Mike Bayer [Wed, 19 Feb 2014 21:07:01 +0000 (16:07 -0500)] 
- add improved support here for string parsing of predicates, backport
from 0.9

11 years ago- Support has been improved for Postgresql reflection behavior on very old
Mike Bayer [Tue, 18 Feb 2014 23:35:23 +0000 (18:35 -0500)] 
- Support has been improved for Postgresql reflection behavior on very old
(pre 8.1) versions of Postgresql, and potentially other PG engines
such as Redshift (assuming Redshift reports the version as < 8.1).
The query for "indexes" as well as "primary keys" relies upon inspecting
a so-called "int2vector" datatype, which refuses to coerce to an array
prior to 8.1 causing failures regarding the "ANY()" operator used
in the query.  Extensive googling has located the very hacky, but
recommended-by-PG-core-developer query to use when PG version < 8.1
is in use, so index and primary key constraint reflection now work
on these versions.

Conflicts:
doc/build/changelog/changelog_09.rst
test/dialect/postgresql/test_types.py

11 years ago- Added new MySQL-specific :class:`.mysql.DATETIME` which includes
Mike Bayer [Wed, 19 Feb 2014 20:49:37 +0000 (15:49 -0500)] 
- Added new MySQL-specific :class:`.mysql.DATETIME` which includes
fractional seconds support; also added fractional seconds support
to :class:`.mysql.TIMESTAMP`.  DBAPI support is limited, though
fractional seconds are known to be supported by MySQL Connector/Python.
Patch courtesy Geert JM Vanderkelen. #2941

11 years agochangelog for pullreq 12
Mike Bayer [Wed, 19 Feb 2014 20:26:51 +0000 (15:26 -0500)] 
changelog for pullreq 12

11 years agoFixes MySQL dialect partitioning
Marcus McCurdy [Fri, 14 Feb 2014 18:23:51 +0000 (13:23 -0500)] 
Fixes MySQL dialect partitioning

11 years ago- Fixed bug where calling :meth:`.Insert.values` with an empty list
Mike Bayer [Wed, 19 Feb 2014 20:18:22 +0000 (15:18 -0500)] 
- Fixed bug where calling :meth:`.Insert.values` with an empty list
or tuple would raise an IndexError.   It now produces an empty
insert construct as would be the case with an empty dictionary.

Conflicts:
lib/sqlalchemy/sql/dml.py

11 years ago- Fixed a critical regression caused by :ticket:`2880` where the newly
Mike Bayer [Wed, 19 Feb 2014 15:48:32 +0000 (10:48 -0500)] 
- Fixed a critical regression caused by :ticket:`2880` where the newly
concurrent ability to return connections from the pool means that the
"first_connect" event is now no longer synchronized either, thus leading
to dialect mis-configurations under even minimal concurrency situations.

Conflicts:
lib/sqlalchemy/event/attr.py

11 years ago- update mysql connector python link, #2938
Mike Bayer [Wed, 19 Feb 2014 01:49:33 +0000 (20:49 -0500)] 
- update mysql connector python link, #2938

11 years ago- changelog for pullreq github:72.
Mike Bayer [Sun, 16 Feb 2014 23:28:35 +0000 (18:28 -0500)] 
- changelog for pullreq github:72.

11 years agoMerge branch 'fix_sqlite_uc_reflection' of https://github.com/malor/sqlalchemy into t
Mike Bayer [Sun, 16 Feb 2014 23:19:55 +0000 (18:19 -0500)] 
Merge branch 'fix_sqlite_uc_reflection' of https://github.com/malor/sqlalchemy into t

11 years ago- extensive cross-linking of relationship options with their documentation sections
Mike Bayer [Sun, 16 Feb 2014 19:28:56 +0000 (14:28 -0500)] 
- extensive cross-linking of relationship options with their documentation sections
- convert all paramter references in relationship documentation to :paramref:

Conflicts:
doc/build/orm/relationships.rst
lib/sqlalchemy/ext/declarative/__init__.py
lib/sqlalchemy/orm/relationships.py

11 years ago- add cross-linking for passive_deletes / passive_updates
Mike Bayer [Sun, 16 Feb 2014 17:43:46 +0000 (12:43 -0500)] 
- add cross-linking for passive_deletes / passive_updates

11 years ago- add documentation regarding native hstore flag, psycopg2
Mike Bayer [Sun, 16 Feb 2014 17:03:00 +0000 (12:03 -0500)] 
- add documentation regarding native hstore flag, psycopg2
hstore extension. #2959

11 years ago- expand docs on MySQL table arguments beyond just storage engines
Mike Bayer [Sun, 16 Feb 2014 01:51:38 +0000 (20:51 -0500)] 
- expand docs on MySQL table arguments beyond just storage engines
- clarify section on "foreign key reflection" and group this in a
section that refers to foreign keys.

11 years ago- Revised this very old issue where the Postgresql "get primary key"
Mike Bayer [Fri, 14 Feb 2014 19:32:00 +0000 (14:32 -0500)] 
- Revised this very old issue where the Postgresql "get primary key"
reflection query were updated to take into account primary key constraints
that were renamed; the newer query fails on very old versions of
Postgresql such as version 7, so the old query is restored in those cases
when server_version_info < (8, 0) is detected. #2291

11 years agoFix unique constraints reflection in SQLite
Roman Podoliaka [Fri, 14 Feb 2014 11:04:57 +0000 (13:04 +0200)] 
Fix unique constraints reflection in SQLite

Reflection of unique constraints didn't work properly, if reserved
identifiers had been used as column names. In this case column names
would be put in double quotes (e.g. the name of column asc would be
returned as "asc").

This issue is only present in 0.8.4 and not in 0.9.x.

11 years ago- Fixed bug where :meth:`.in_()` would go into an endless loop if
Mike Bayer [Thu, 13 Feb 2014 20:19:12 +0000 (15:19 -0500)] 
- Fixed bug where :meth:`.in_()` would go into an endless loop if
erroneously passed a column expression whose comparator included
the ``__getitem__()`` method, such as a column that uses the
:class:`.postgresql.ARRAY` type. [ticket:2957]

11 years agothis example doesn't work, we don't really have a solution for this as far as automat...
Mike Bayer [Mon, 10 Feb 2014 22:43:37 +0000 (17:43 -0500)] 
this example doesn't work, we don't really have a solution for this as far as automating this pattern

11 years ago- dont need these extra conditions from the previous test
Mike Bayer [Mon, 10 Feb 2014 21:37:32 +0000 (16:37 -0500)] 
- dont need these extra conditions from the previous test

11 years ago- Fixed bug where :meth:`.Query.get` would fail to consistently
Mike Bayer [Mon, 10 Feb 2014 21:33:48 +0000 (16:33 -0500)] 
- Fixed bug where :meth:`.Query.get` would fail to consistently
raise the :class:`.InvalidRequestError` that invokes when called
on a query with existing criterion, when the given identity is
already present in the identity map. [ticket:2951]

11 years ago- this seems to be the best string for pymysql
Mike Bayer [Mon, 3 Feb 2014 17:11:23 +0000 (12:11 -0500)] 
- this seems to be the best string for pymysql

11 years ago- Fixed bug which prevented MySQLdb-based dialects (e.g.
Mike Bayer [Mon, 3 Feb 2014 17:04:51 +0000 (12:04 -0500)] 
- Fixed bug which prevented MySQLdb-based dialects (e.g.
pymysql) from working in Py3K, where a check for "connection
charset" would fail due to Py3K's more strict value comparison
rules.  The call in question  wasn't taking the database
version into account in any case as the server version was
still None at that point, so the method overall has been
simplified to rely upon connection.character_set_name().
[ticket:2933]

11 years ago- add a few missing methods to the cymysql dialect
Mike Bayer [Sun, 2 Feb 2014 23:16:17 +0000 (18:16 -0500)] 
- add a few missing methods to the cymysql dialect