]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
11 years agomore docs for using psycopg2 range types, specifically instantiating models with...
Chris Withers [Sun, 25 May 2014 14:46:31 +0000 (15:46 +0100)] 
more docs for using psycopg2 range types, specifically instantiating models with them

11 years ago- changelog + docs for pg8000 transaction isolation level
Mike Bayer [Fri, 30 May 2014 16:27:42 +0000 (12:27 -0400)] 
- changelog + docs for pg8000 transaction isolation level

11 years agoPEP 8 tidy of pg8000 dialect and postgresql/test_dialect.py
Tony Locke [Wed, 14 May 2014 13:47:26 +0000 (14:47 +0100)] 
PEP 8 tidy of pg8000 dialect and postgresql/test_dialect.py

11 years agoAutocommit isolation level for postgresql+pg8000
Tony Locke [Wed, 14 May 2014 13:36:08 +0000 (14:36 +0100)] 
Autocommit isolation level for postgresql+pg8000

As with postgresql+psycopg2,
execution_options(isolation_level='AUTOCOMMIT') now works for the
postgresql+pg8000 dialect.

Also enabled the autocommit test in test_dialect.py for pg8000.

11 years agoUpdated doc string for postgresql+pg8000 dialect
Tony Locke [Mon, 12 May 2014 20:47:18 +0000 (21:47 +0100)] 
Updated doc string for postgresql+pg8000 dialect

11 years agoAdd postgresql+pg8000 to floats_to_four_decimals
Tony Locke [Sun, 11 May 2014 19:58:24 +0000 (20:58 +0100)] 
Add postgresql+pg8000 to floats_to_four_decimals

pg8000 uses binary transfer of floats and so accuracy is lost for floats
that can't be represented exactly in binary.

11 years agopg8000 now passes test_extract() test
Tony Locke [Sun, 11 May 2014 16:52:53 +0000 (17:52 +0100)] 
pg8000 now passes test_extract() test

11 years agoTwo tests now work for pg800 in EnumTest
Tony Locke [Sat, 10 May 2014 13:55:21 +0000 (14:55 +0100)] 
Two tests now work for pg800 in EnumTest

The two tests, test_create_table() and test_unicode_labels() previously
failed under pg8000, but now they pass, so this commit opens them up.

11 years agopg8000 no longer truncates decimals
Tony Locke [Fri, 9 May 2014 21:30:13 +0000 (22:30 +0100)] 
pg8000 no longer truncates decimals

We can now update the requirements to remove the special case of pg8000
truncating decimals.

11 years agopg8000.dbapi is now just pg8000
Tony Locke [Fri, 9 May 2014 20:34:30 +0000 (21:34 +0100)] 
pg8000.dbapi is now just pg8000

11 years agoupdate comments
Mike Bayer [Fri, 30 May 2014 16:00:05 +0000 (12:00 -0400)] 
update comments

11 years ago- The psycopg2 ``.closed`` accessor is now consulted when determining
Mike Bayer [Fri, 30 May 2014 15:56:19 +0000 (11:56 -0400)] 
- The psycopg2 ``.closed`` accessor is now consulted when determining
if an exception is a "disconnect" error; ideally, this should remove
the need for any other inspection of the exception message to detect
disconnect, however we will leave those existing messages in place
as a fallback.   This should be able to handle newer cases like
"SSL EOF" conditions.  Pull request courtesy Dirk Mueller.
fixes #3021

11 years agoAnother Variant for detecting if a connection is closed
Dirk Mueller [Thu, 8 May 2014 15:07:44 +0000 (17:07 +0200)] 
Another Variant for detecting if a connection is closed

If there is a closed attribute on the connection and
it is true, return true. Implements a todo in the code
and helps in one specific disconnect case where it previously
did not match because the error message was "unknown error".

11 years ago - Related to :ticket:`3060`, an adjustment has been made to the unit
Mike Bayer [Fri, 30 May 2014 05:39:45 +0000 (01:39 -0400)] 
 - Related to :ticket:`3060`, an adjustment has been made to the unit
    of work such that loading for related many-to-one objects is slightly
    more aggressive, in the case of a graph of self-referential objects
    that are to be deleted; the load of related objects is to help
    determine the correct order for deletion if passive_deletes is
    not set.
    - revert the changes to test_delete_unloaded_m2o, these deletes do in fact
    need to occur in the order of the two child objects first.

merged from master

11 years ago- add a new assertsql construct "Or", so that we can test for a UOW flush
Mike Bayer [Fri, 30 May 2014 04:21:11 +0000 (00:21 -0400)] 
- add a new assertsql construct "Or", so that we can test for a UOW flush
that might take one of multiple directions; apply this to test_delete_unloaded_m2o
which is now illustrating multiple paths due to #3060/#3061, though still doing the
right thing.

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- Fixed a few edge cases which arise in the so-called "row switch"
Mike Bayer [Thu, 29 May 2014 00:01:21 +0000 (20:01 -0400)] 
- Fixed a few edge cases which arise in the so-called "row switch"
scenario, where an INSERT/DELETE can be turned into an UPDATE.
In this situation, a many-to-one relationship set to None, or
in some cases a scalar attribute set to None, may not be detected
as a net change in value, and therefore the UPDATE would not reset
what was on the previous row.   This is due to some as-yet
unresovled side effects of the way attribute history works in terms
of implicitly assuming None isn't really a "change" for a previously
un-set attribute.  See also :ticket:`3061`. fixes #3060

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

11 years ago- Fixed bug in SQLite join rewriting where anonymized column names
Mike Bayer [Sun, 25 May 2014 15:32:07 +0000 (11:32 -0400)] 
- Fixed bug in SQLite join rewriting where anonymized column names
due to repeats would not correctly be rewritten in subqueries.
This would affect SELECT queries with any kind of subquery + join.
fixes #3057

11 years ago- indicate all 0.9.5 issues as from 1.0.0 backported to 0.9.5
Mike Bayer [Sat, 24 May 2014 19:15:00 +0000 (15:15 -0400)] 
- indicate all 0.9.5 issues as from 1.0.0 backported to 0.9.5

11 years ago- Fixed bug where the :meth:`.Operators.__and__`,
Mike Bayer [Sat, 24 May 2014 18:35:28 +0000 (14:35 -0400)] 
- Fixed bug where the :meth:`.Operators.__and__`,
:meth:`.Operators.__or__` and :meth:`.Operators.__invert__`
operator overload methods could not be overridden within a custom
:class:`.TypeEngine.Comparator` implementation.
fixes #3012

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 ago- document the compiler_kwargs accessor
Mike Bayer [Fri, 23 May 2014 18:26:22 +0000 (14:26 -0400)] 
- document the compiler_kwargs accessor
- add new FAQ for rendering SQL as a string

11 years ago- mark translate_row, create_instance, populate_instance, append_result as legacy
Mike Bayer [Fri, 23 May 2014 14:35:59 +0000 (10:35 -0400)] 
- mark translate_row, create_instance, populate_instance, append_result as legacy

11 years ago- changelog for #2785
Mike Bayer [Fri, 16 May 2014 17:09:50 +0000 (13:09 -0400)] 
- changelog for #2785
- refactor tests a bit
fixes #2785

11 years agoMerge branch 'zero_indexes-param-for-postgresql-ARRAY-type' of https://bitbucket...
Mike Bayer [Fri, 16 May 2014 17:01:19 +0000 (13:01 -0400)] 
Merge branch 'zero_indexes-param-for-postgresql-ARRAY-type' of https://bitbucket.org/LevonXXL/sqlalchemy/overview into t

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

11 years agoMerge branch 'master' into rel_0_9
Mike Bayer [Thu, 15 May 2014 21:09:41 +0000 (17:09 -0400)] 
Merge branch 'master' into rel_0_9

11 years agoMerged in gunnlaugur/sqlalchemy (pull request #19)
Mike Bayer [Thu, 15 May 2014 21:09:25 +0000 (17:09 -0400)] 
Merged in gunnlaugur/sqlalchemy (pull request #19)

Add note on PostgreSQL config for test runs

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.

11 years agoMerge branch 'master' into rel_0_9
Mike Bayer [Wed, 14 May 2014 14:03:40 +0000 (10:03 -0400)] 
Merge branch 'master' into rel_0_9

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 agozero_indexes-param-for-postgresql-ARRAY-type
Alexey Terentev [Tue, 13 May 2014 09:10:39 +0000 (13:10 +0400)] 
zero_indexes-param-for-postgresql-ARRAY-type

11 years agoMerge branch 'master' of bitbucket.org:zzzeek/sqlalchemy
Mike Bayer [Mon, 12 May 2014 21:18:56 +0000 (17:18 -0400)] 
Merge branch 'master' of bitbucket.org:zzzeek/sqlalchemy

11 years agoMerge branch 'master' into rel_0_9
Mike Bayer [Mon, 12 May 2014 21:18:12 +0000 (17:18 -0400)] 
Merge branch 'master' into rel_0_9

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 agoMerged in mineo/sqlalchemy/mineo/posgtresql-postgresql-1399232068499 (pull request...
Mike Bayer [Mon, 12 May 2014 15:52:26 +0000 (11:52 -0400)] 
Merged in mineo/sqlalchemy/mineo/posgtresql-postgresql-1399232068499 (pull request #17)

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 agoMerged in WSMcG/sqlalchemy (pull request #15)
Mike Bayer [Mon, 12 May 2014 15:38:24 +0000 (11:38 -0400)] 
Merged in WSMcG/sqlalchemy (pull request #15)

Added optional '=' to MySQL KEY_BLOCK_SIZE regex

11 years agoMerge pull request #91 from smurfix/de_apostroph_ify
mike bayer [Sun, 11 May 2014 17:04:05 +0000 (13:04 -0400)] 
Merge pull request #91 from smurfix/de_apostroph_ify

Documentation fix-up: "its" vs. "it's"

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- stress test for invalidation
Mike Bayer [Sat, 10 May 2014 19:52:31 +0000 (15:52 -0400)] 
- stress test for invalidation

11 years ago- Fixed some "double invalidate" situations were detected where
Mike Bayer [Sat, 10 May 2014 19:31:49 +0000 (15:31 -0400)] 
- Fixed some "double invalidate" situations were detected where
a connection invalidation could occur within an already critical section
like a connection.close(); ultimately, these conditions are caused
by the change in :ticket:`2907`, in that the "reset on return" feature
calls out to the Connection/Transaction in order to handle it, where
"disconnect detection" might be caught.  However, it's possible that
the more recent change in :ticket:`2985` made it more likely for this
to be seen as the "connection invalidate" operation is much quicker,
as the issue is more reproducible on 0.9.4 than 0.9.3.

Checks are now added within any section that
an invalidate might occur to halt further disallowed operations
on the invalidated connection.  This includes two fixes both at the
engine level and at the pool level.   While the issue was observed
with highly concurrent gevent cases, it could in theory occur in
any kind of scenario where a disconnect occurs within the connection
close operation.
fixes #3043
ref #2985
ref #2907

- add some defensive checks during an invalidate situation:
1. _ConnectionRecord.invalidate might be called twice within finalize_fairy
if the _reset() raises an invalidate condition, invalidates, raises and then
goes to invalidate the CR.  so check for this.
2. similarly within Conneciton, anytime we do handle_dbapi_error(), we might become invalidated.
so a following finally must check self.__invalid before dealing with the connection
any futher.

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 agoPosgtresql -> PostgreSQL
Wieland Hoffmann [Sun, 4 May 2014 19:34:37 +0000 (19:34 +0000)] 
Posgtresql -> PostgreSQL

11 years ago- critically, py.test for unknown reasons *SKIPS* tests that have an __init__() method.
Mike Bayer [Fri, 2 May 2014 22:43:12 +0000 (18:43 -0400)] 
- critically, py.test for unknown reasons *SKIPS* tests that have an __init__() method.
No clue.  nosetests doesn't do this.  concerning that other tests might have the same issue.

11 years agodoc fixes
Mike Bayer [Fri, 2 May 2014 00:34:33 +0000 (20:34 -0400)] 
doc fixes

11 years ago- Fixed bug where the combination of "limit" rendering as
Mike Bayer [Wed, 30 Apr 2014 23:06:26 +0000 (19:06 -0400)] 
- Fixed bug where the combination of "limit" rendering as
"SELECT FIRST n ROWS" using a bound parameter (only firebird has both),
combined with column-level subqueries
which also feature "limit" as well as "positional" bound parameters
(e.g. qmark style) would erroneously assign the subquery-level positions
before that of the enclosing SELECT, thus returning parameters which
are out of order. Fixes #3038

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

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 agoMerged in benselme/sqlalchemy/docs_linking (pull request #16)
Mike Bayer [Wed, 23 Apr 2014 16:38:26 +0000 (12:38 -0400)] 
Merged in benselme/sqlalchemy/docs_linking (pull request #16)

Added some links in session docs

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 ago- The "primaryjoin" model has been stretched a bit further to allow
Mike Bayer [Sat, 19 Apr 2014 22:49:58 +0000 (18:49 -0400)] 
- The "primaryjoin" model has been stretched a bit further to allow
a join condition that is strictly from a single column to itself,
translated through some kind of SQL function or expression.  This
is kind of experimental, but the first proof of concept is a
"materialized path" join condition where a path string is compared
to itself using "like".   The :meth:`.Operators.like` operator has
also been added to the list of valid operators to use in a primaryjoin
condition.  fixes #3029

11 years ago- Liberalized the contract for :class:`.Index` a bit in that you can
Mike Bayer [Sat, 19 Apr 2014 16:31:19 +0000 (12:31 -0400)] 
- Liberalized the contract for :class:`.Index` a bit in that you can
specify a :func:`.text` expression as the target; the index no longer
needs to have a table-bound column present if the index is to be
manually added to the table, either via inline declaration or via
:meth:`.Table.append_constraint`. fixes #3028

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 ago- Revised the query used to determine the current default schema name
Mike Bayer [Thu, 17 Apr 2014 19:36:43 +0000 (15:36 -0400)] 
- Revised the query used to determine the current default schema name
to use the ``database_principal_id()`` function in conjunction with
the ``sys.database_principals`` view so that we can determine
the default schema independently of the type of login in progress
(e.g., SQL Server, Windows, etc). fixes #3025

11 years ago- Fixed bug in new :meth:`.DialectKWArgs.argument_for` method where
Mike Bayer [Wed, 16 Apr 2014 03:34:07 +0000 (23:34 -0400)] 
- Fixed bug in new :meth:`.DialectKWArgs.argument_for` method where
adding an argument for a construct not previously included for any
special arguments would fail. fixes #3024

11 years agochangelog
Mike Bayer [Mon, 14 Apr 2014 18:58:27 +0000 (14:58 -0400)] 
changelog

11 years agoMerged in goodscloud/sqlalchemy (pull request #14)
Mike Bayer [Mon, 14 Apr 2014 18:55:59 +0000 (14:55 -0400)] 
Merged in goodscloud/sqlalchemy (pull request #14)

fixes for #2830

11 years agouse importlib.machinery to load modules instead of imp under Python 3.3 and greater
Matt Chisholm [Mon, 14 Apr 2014 17:54:01 +0000 (13:54 -0400)] 
use importlib.machinery to load modules instead of imp under Python 3.3 and greater

part of #2830

11 years agoremove unused import
Matt Chisholm [Mon, 14 Apr 2014 17:53:28 +0000 (13:53 -0400)] 
remove unused import

11 years agofix unclosed file ResourceWarning
Matt Chisholm [Mon, 14 Apr 2014 17:27:59 +0000 (13:27 -0400)] 
fix unclosed file ResourceWarning

part of #2830

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 agoMerged in antti_haapala/sqlalchemy/antti_haapala/added-an-ssl-related-connection...
Mike Bayer [Fri, 11 Apr 2014 19:39:34 +0000 (15:39 -0400)] 
Merged in antti_haapala/sqlalchemy/antti_haapala/added-an-ssl-related-connection-error-1397245079299 (pull request #13)

added an SSL related connection error

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 agoMerge pull request #84 from Daniel-B-Smith/master
mike bayer [Fri, 11 Apr 2014 18:53:20 +0000 (14:53 -0400)] 
Merge pull request #84 from Daniel-B-Smith/master

Fixed bug in example code on orm session page.

11 years ago- Fixed regression introduced in 0.9 where new "ORDER BY <labelname>"
Mike Bayer [Fri, 11 Apr 2014 02:33:33 +0000 (22:33 -0400)] 
- Fixed regression introduced in 0.9 where new "ORDER BY <labelname>"
feature from :ticket:`1068` would not apply quoting rules to the
label name as rendered in the ORDER BY.
fix #3020, re: #1068

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 ago- Added new utility function :func:`.make_transient_to_detached` which can
Mike Bayer [Wed, 9 Apr 2014 21:49:16 +0000 (17:49 -0400)] 
- Added new utility function :func:`.make_transient_to_detached` which can
be used to manufacture objects that behave as though they were loaded
from a session, then detached.   Attributes that aren't present
are marked as expired, and the object can be added to a Session
where it will act like a persistent one. fix #3017

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- Restored the import for :class:`.Function` to the ``sqlalchemy.sql.expression``
Mike Bayer [Sun, 6 Apr 2014 01:05:29 +0000 (21:05 -0400)] 
- Restored the import for :class:`.Function` to the ``sqlalchemy.sql.expression``
import namespace, which was removed at the beginning of 0.9.

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 agoescape backslash
Mike Bayer [Wed, 2 Apr 2014 22:14:10 +0000 (18:14 -0400)] 
escape backslash

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 ago- back off the callcounts a bit for the boolean fix
Mike Bayer [Tue, 1 Apr 2014 22:29:54 +0000 (18:29 -0400)] 
- back off the callcounts a bit for the boolean fix
- rewrite callcounts for select()

11 years ago- Fixes to the newly enhanced boolean coercion in :ticket:`2804` where
Mike Bayer [Tue, 1 Apr 2014 17:03:52 +0000 (13:03 -0400)] 
- Fixes to the newly enhanced boolean coercion in :ticket:`2804` where
the new rules for "where" and "having" woudn't take effect for the
"whereclause" and "having" kw arguments of the :func:`.select` construct,
which is also what :class:`.Query` uses so wasn't working in the
ORM either. fixes #3013 re: #2804

11 years ago- Added new flag :paramref:`.expression.between.symmetric`, when set to True
Mike Bayer [Mon, 31 Mar 2014 01:20:20 +0000 (21:20 -0400)] 
- Added new flag :paramref:`.expression.between.symmetric`, when set to True
renders "BETWEEN SYMMETRIC".  Also added a new negation operator
"notbetween_op", which now allows an expression like ``~col.between(x, y)``
to render as "col NOT BETWEEN x AND y", rather than a parentheiszed NOT
string.  fixes #2990

11 years agoupdate
Mike Bayer [Mon, 31 Mar 2014 01:09:33 +0000 (21:09 -0400)] 
update

11 years ago- fix mapper ref
Mike Bayer [Fri, 28 Mar 2014 23:59:54 +0000 (19:59 -0400)] 
- fix mapper ref
- don't talk about "can't check for rows matched" here as we changed that in 0.9

11 years ago0.9.4 rel_0_9_4
Mike Bayer [Fri, 28 Mar 2014 23:40:09 +0000 (19:40 -0400)] 
0.9.4

11 years agodont need rowcount here...
Mike Bayer [Fri, 28 Mar 2014 23:19:55 +0000 (19:19 -0400)] 
dont need rowcount here...

11 years ago- Added new parameter :paramref:`.mapper.confirm_deleted_rows`. Defaults
Mike Bayer [Fri, 28 Mar 2014 22:00:35 +0000 (18:00 -0400)] 
- Added new parameter :paramref:`.mapper.confirm_deleted_rows`.  Defaults
to True, indicates that a series of DELETE statements should confirm
that the cursor rowcount matches the number of primary keys that should
have matched;  this behavior had been taken off in most cases
(except when version_id is used) to support the unusual edge case of
self-referential ON DELETE CASCADE; to accomodate this, the message
is now just a warning, not an exception, and the flag can be used
to indicate a mapping that expects self-refererntial cascaded
deletes of this nature.  See also :ticket:`2403` for background on the
original change. re: #2403 fix #3007

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 agomark failing tests for buggy mysqlconnector
Mike Bayer [Fri, 28 Mar 2014 21:26:45 +0000 (17:26 -0400)] 
mark failing tests for buggy mysqlconnector

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- add further coverage for join_condition to make sure we get this case where
Mike Bayer [Fri, 28 Mar 2014 20:41:08 +0000 (16:41 -0400)] 
- add further coverage for join_condition to make sure we get this case where
there are multiple, equivalent foreign keys

11 years agopickle of execption not supported on mysqlconnector
Mike Bayer [Fri, 28 Mar 2014 20:37:43 +0000 (16:37 -0400)] 
pickle of execption not supported on mysqlconnector

11 years ago- fix set syntax supposed to be dict
Mike Bayer [Fri, 28 Mar 2014 20:36:11 +0000 (16:36 -0400)] 
- fix set syntax supposed to be dict

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.

11 years agoclarify doc here
Mike Bayer [Fri, 28 Mar 2014 15:05:46 +0000 (11:05 -0400)] 
clarify doc here