]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
13 years ago- [feature] Added new flag to @validates
Mike Bayer [Wed, 11 Apr 2012 17:03:52 +0000 (13:03 -0400)] 
- [feature] Added new flag to @validates
include_removes.  When True, collection
remove and attribute del events
will also be sent to the validation function,
which accepts an additional argument
"is_remove" when this flag is used.

13 years ago- [feature] Added new connection event
Mike Bayer [Tue, 10 Apr 2012 23:38:22 +0000 (19:38 -0400)] 
- [feature] Added new connection event
dbapi_error(). Is called for all DBAPI-level
errors passing the original DBAPI exception
before SQLAlchemy modifies the state
of the cursor.

13 years ago- adjust mysql patch a bit so that we use
Mike Bayer [Sun, 8 Apr 2012 15:18:39 +0000 (11:18 -0400)] 
- adjust mysql patch a bit so that we use
built in quoting for the "idx_" name as well
- [bug] Fixed bug whereby column name inside
of "KEY" clause for autoincrement composite
column with InnoDB would double quote a
name that's a reserved word.  Courtesy Jeff
Dairiki. [ticket:2460]

13 years agoFix innodb autoinc constraint (double)quoting
Jeff Dairiki [Sat, 7 Apr 2012 04:55:39 +0000 (21:55 -0700)] 
Fix innodb autoinc constraint (double)quoting

13 years ago - [bug] Repaired the use_scope_identity
Mike Bayer [Thu, 5 Apr 2012 18:31:28 +0000 (14:31 -0400)] 
  - [bug] Repaired the use_scope_identity
    create_engine() flag when using the pyodbc
    dialect.  Previously this flag would be
    ignored if set to False.  When set to False,
    you'll get "SELECT @@identity" after each
    INSERT to get at the last inserted ID,
    for those tables which have "implicit_returning"
    set to False.

13 years agoFixing link to python's logging module (see #2456). Thanks astrochase!
Diana Clarke [Tue, 3 Apr 2012 21:40:51 +0000 (17:40 -0400)] 
Fixing link to python's logging module (see #2456). Thanks astrochase!

13 years agoMerged in _diana_/sqlalchemy-2385 (pull request #4)
Mike Bayer [Tue, 3 Apr 2012 14:34:48 +0000 (10:34 -0400)] 
Merged in _diana_/sqlalchemy-2385 (pull request #4)

13 years ago- reopened #2453, needed to put in the original patch as well to cover the case
Mike Bayer [Tue, 3 Apr 2012 13:59:22 +0000 (09:59 -0400)] 
- reopened #2453, needed to put in the original patch as well to cover the case
of column_property() objs building off each other

13 years agomost of the drizzle docs are copy/pasta, let's just point users to the mysql docs...
Diana Clarke [Tue, 3 Apr 2012 01:20:16 +0000 (21:20 -0400)] 
most of the drizzle docs are copy/pasta, let's just point users to the mysql docs and enhance as questions arise
- see #2385

13 years ago- sql
Mike Bayer [Sun, 1 Apr 2012 23:42:54 +0000 (19:42 -0400)] 
- sql
  - [bug] Removed warning when Index is created
    with no columns; while this might not be what
    the user intended, it is a valid use case
    as an Index could be a placeholder for just an
    index of a certain name.

- mssql
  - [feature] Added interim create_engine flag
    supports_unicode_binds to PyODBC dialect,
    to force whether or not the dialect
    passes Python unicode literals to PyODBC
    or not.

13 years ago- [bug] Fixed bug which would prevent
Mike Bayer [Sun, 1 Apr 2012 15:01:56 +0000 (11:01 -0400)] 
- [bug] Fixed bug which would prevent
OrderingList from being pickleable
[ticket:2454].  Courtesy Jeff Dairiki

13 years ago- [bug] Fixed bug in expression annotation
Mike Bayer [Sat, 31 Mar 2012 17:35:05 +0000 (13:35 -0400)] 
- [bug] Fixed bug in expression annotation
mechanics which could lead to incorrect
rendering of SELECT statements with aliases
and joins, particularly when using
column_property().  [ticket:2453]

13 years ago - [bug] Fixed bug whereby polymorphic_on
Mike Bayer [Sat, 31 Mar 2012 16:55:42 +0000 (12:55 -0400)] 
  - [bug] Fixed bug whereby polymorphic_on
    column that's not otherwise mapped on the
    class would be incorrectly included
    in a merge() operation, raising an error.
    [ticket:2449]

13 years ago- [feature] Added new for_update/with_lockmode()
Mike Bayer [Thu, 22 Mar 2012 02:58:55 +0000 (22:58 -0400)] 
- [feature] Added new for_update/with_lockmode()
options for Postgresql: for_update="read"/
with_lockmode("read"),
for_update="read_nowait"/
with_lockmode("read_nowait").
These emit "FOR SHARE" and "FOR SHARE NOWAIT",
respectively.  Courtesy Diana Clarke
[ticket:2445]

13 years ago- 0.7.7
Mike Bayer [Wed, 21 Mar 2012 00:12:26 +0000 (20:12 -0400)] 
- 0.7.7
- [feature] Added prefix_with() method
to Query, calls upon select().prefix_with()
to allow placement of MySQL SELECT
directives in statements.  Courtesy
Diana Clarke [ticket:2443]

13 years agoI'm pretty sure this should be entities
Diana Clarke [Sun, 18 Mar 2012 04:05:30 +0000 (00:05 -0400)] 
I'm pretty sure this should be entities

13 years agotypos in lib/sqlalchemy/sql
Diana Clarke [Sun, 18 Mar 2012 03:39:54 +0000 (23:39 -0400)] 
typos in lib/sqlalchemy/sql

13 years agotypos in lib/sqlalchemy/orm
Diana Clarke [Sun, 18 Mar 2012 03:06:41 +0000 (23:06 -0400)] 
typos in lib/sqlalchemy/orm

13 years agotypos in lib/sqlalchemy/ext
Diana Clarke [Sun, 18 Mar 2012 02:28:29 +0000 (22:28 -0400)] 
typos in lib/sqlalchemy/ext

13 years agotypos in lib/sqlalchemy/engine
Diana Clarke [Sun, 18 Mar 2012 02:07:10 +0000 (22:07 -0400)] 
typos in lib/sqlalchemy/engine

13 years agotypoes in lib/sqlalchemy/dialects
Diana Clarke [Sun, 18 Mar 2012 01:41:58 +0000 (21:41 -0400)] 
typoes in lib/sqlalchemy/dialects

13 years agotypo
Diana Clarke [Fri, 16 Mar 2012 23:55:29 +0000 (19:55 -0400)] 
typo

13 years agoAdded tag rel_0_7_6 for changeset bd85bcc0cf1353ebec648ab294bfb407745d8c82
Mike Bayer [Thu, 15 Mar 2012 04:26:44 +0000 (21:26 -0700)] 
Added tag rel_0_7_6 for changeset bd85bcc0cf1353ebec648ab294bfb407745d8c82

13 years ago0.7.6 release rel_0_7_6
Mike Bayer [Thu, 15 Mar 2012 04:23:09 +0000 (21:23 -0700)] 
0.7.6 release

13 years agoanother oracle failure
Mike Bayer [Thu, 15 Mar 2012 00:31:59 +0000 (17:31 -0700)] 
another oracle failure

13 years agocallcounts for py3k
Mike Bayer [Thu, 15 Mar 2012 00:19:15 +0000 (17:19 -0700)] 
callcounts for py3k

13 years agoadd autoincrements here hopefully fixing oracle test
Mike Bayer [Wed, 14 Mar 2012 23:43:18 +0000 (16:43 -0700)] 
add autoincrements here hopefully fixing oracle test

13 years agofails on oracle too
Mike Bayer [Wed, 14 Mar 2012 23:41:20 +0000 (16:41 -0700)] 
fails on oracle too

13 years agoadd a checkfirst here as s3 seems to be stuck on the jenkins db
Mike Bayer [Wed, 14 Mar 2012 23:25:57 +0000 (16:25 -0700)] 
add a checkfirst here as s3 seems to be stuck on the jenkins db

13 years agocallcounts
Mike Bayer [Wed, 14 Mar 2012 22:30:10 +0000 (15:30 -0700)] 
callcounts

13 years agopg8000 fails on this
Mike Bayer [Wed, 14 Mar 2012 21:56:57 +0000 (14:56 -0700)] 
pg8000 fails on this

13 years ago- [bug] Fixed issue whereby attribute-based
Mike Bayer [Wed, 14 Mar 2012 21:34:36 +0000 (14:34 -0700)] 
- [bug] Fixed issue whereby attribute-based
column access on a row would raise
AttributeError with non-C version,
NoSuchColumnError with C version.  Now
raises AttributeError in both cases.
[ticket:2398]

13 years ago- [feature] Added support for MySQL index and
Mike Bayer [Wed, 14 Mar 2012 21:32:13 +0000 (14:32 -0700)] 
- [feature] Added support for MySQL index and
primary key constraint types
(i.e. USING) via new mysql_using parameter
to Index and PrimaryKeyConstraint,
courtesy Diana Clarke.  [ticket:2386]

13 years ago- [bug] Added 'LEVEL' to the list of reserved
Mike Bayer [Wed, 14 Mar 2012 20:10:31 +0000 (13:10 -0700)] 
- [bug] Added 'LEVEL' to the list of reserved
words for Oracle.  [ticket:2435]

13 years agohey pyodbc fixed this, hoopde doo
Mike Bayer [Wed, 14 Mar 2012 05:37:25 +0000 (22:37 -0700)] 
hey pyodbc fixed this, hoopde doo

13 years agofix up docs a bit here, not sure if some enhancements had already
Mike Bayer [Wed, 14 Mar 2012 04:44:18 +0000 (21:44 -0700)] 
fix up docs a bit here, not sure if some enhancements had already
been made as things didn't seem as bad as [ticket:2306] indicated

13 years agorevert this, the instrumentation here is conditional
Mike Bayer [Wed, 14 Mar 2012 04:14:39 +0000 (21:14 -0700)] 
revert this, the instrumentation here is conditional

13 years agoadd most of Brad Allen's doc updates, [ticket:2434]
Mike Bayer [Wed, 14 Mar 2012 04:07:09 +0000 (21:07 -0700)] 
add most of Brad Allen's doc updates, [ticket:2434]

13 years ago- [bug] Fixed bug in C extensions whereby
Mike Bayer [Wed, 14 Mar 2012 03:38:30 +0000 (20:38 -0700)] 
- [bug] Fixed bug in C extensions whereby
string format would not be applied to a
Numeric value returned as integer; this
affected primarily SQLite which does
not maintain numeric scale settings.
[ticket:2432]

13 years ago- [feature] Added support for MSSQL INSERT,
Mike Bayer [Tue, 13 Mar 2012 21:00:05 +0000 (14:00 -0700)] 
- [feature] Added support for MSSQL INSERT,
UPDATE, and DELETE table hints, using
new with_hint() method on UpdateBase.
[ticket:2430]

13 years ago- [bug] Fixed bug whereby a primaryjoin
Mike Bayer [Mon, 12 Mar 2012 20:35:27 +0000 (13:35 -0700)] 
- [bug] Fixed bug whereby a primaryjoin
condition with a "literal" in it would
raise an error on compile with certain
kinds of deeply nested expressions
which also needed to render the same
bound parameter name more than once.
[ticket:2425]

13 years ago- add __table_cls__ option to declarative, not publicized yet, is for the moment
Mike Bayer [Mon, 12 Mar 2012 20:14:14 +0000 (13:14 -0700)] 
- add __table_cls__ option to declarative, not publicized yet, is for the moment
for the benefit of the test.lib.schema package.
- use test.lib.schema.Table for the table within test.lib.fixtures.DeclarativeMappedTest
- [bug] Removed the check for number of
rows affected when doing a multi-delete
against mapped objects.   If an ON DELETE
CASCADE exists between two rows, we can't
get an accurate rowcount from the DBAPI;
this particular count is not supported
on most DBAPIs in any case, MySQLdb
is the notable case where it is.
[ticket:2403]

13 years ago- [bug] Fixed memory leak in core which would
Mike Bayer [Sun, 11 Mar 2012 00:18:52 +0000 (16:18 -0800)] 
- [bug] Fixed memory leak in core which would
  occur when C extensions were used with
  particular types of result fetches,
  in particular when orm query.count()
  were called.  [ticket:2427]

13 years agomerge tip
Mike Bayer [Thu, 8 Mar 2012 08:51:49 +0000 (00:51 -0800)] 
merge tip

13 years agocleanup test_processors, modeling the PEP 399 style
Philip Jenvey [Thu, 8 Mar 2012 05:48:36 +0000 (21:48 -0800)] 
cleanup test_processors, modeling the PEP 399 style

13 years ago- [bug] Fixed event registration bug
Mike Bayer [Thu, 8 Mar 2012 03:36:22 +0000 (22:36 -0500)] 
- [bug] Fixed event registration bug
which would primarily show up as
events not being registered with
sessionmaker() instances created
after the event was associated
with the Session class.  [ticket:2424]

13 years agocallcount tweak
Mike Bayer [Mon, 5 Mar 2012 20:20:07 +0000 (15:20 -0500)] 
callcount tweak

13 years ago- [bug] Fixed bug whereby objects using
Mike Bayer [Mon, 5 Mar 2012 15:24:15 +0000 (10:24 -0500)] 
- [bug] Fixed bug whereby objects using
attribute_mapped_collection or
column_mapped_collection could not be
pickled.  [ticket:2409]

13 years agofix typos, SQL server also needs union all
Mike Bayer [Sat, 3 Mar 2012 18:10:37 +0000 (13:10 -0500)] 
fix typos, SQL server also needs union all

13 years agomerge this
Mike Bayer [Sat, 3 Mar 2012 18:01:14 +0000 (13:01 -0500)] 
merge this

13 years ago- [feature] Added cte() method to Query,
Mike Bayer [Sat, 3 Mar 2012 18:00:44 +0000 (13:00 -0500)] 
- [feature] Added cte() method to Query,
invokes common table expression support
from the Core (see below). [ticket:1859]

- [feature] Added support for SQL standard
common table expressions (CTE), allowing
SELECT objects as the CTE source (DML
not yet supported).  This is invoked via
the cte() method on any select() construct.
[ticket:1859]

13 years agounmonkeypatch the 2to3 preprocessor so we don't disturb subsequent runs
Philip Jenvey [Fri, 2 Mar 2012 08:21:18 +0000 (00:21 -0800)] 
unmonkeypatch the 2to3 preprocessor so we don't disturb subsequent runs
patch from mcdonc
fixes #2421

13 years agothis is 0.7.6..
Mike Bayer [Thu, 1 Mar 2012 00:18:11 +0000 (19:18 -0500)] 
this is 0.7.6..

13 years ago- [bug] Fixed the repr() for CascadeOptions to
Mike Bayer [Wed, 29 Feb 2012 23:27:17 +0000 (18:27 -0500)] 
- [bug] Fixed the repr() for CascadeOptions to
include refresh-expire.  Also reworked
CascadeOptions to be a <frozenset>.
[ticket:2417]

13 years ago- expand the check to determine if a selectable column is embedded
Mike Bayer [Wed, 29 Feb 2012 22:47:59 +0000 (17:47 -0500)] 
- expand the check to determine if a selectable column is embedded
in the corresponding selectable to take into account clones
of the target column.  fixes [ticket:2419]
- have _make_proxy() copy out the _is_clone_of attribute on the
new column so that even more corresponding_column() checks
work as expected for cloned elements.
- add a new test fixture so that mapped tests can be specified
using declarative.

13 years agoremove the "produce test" approach from the polymorphic_rel tests,
Mike Bayer [Tue, 28 Feb 2012 21:13:26 +0000 (16:13 -0500)] 
remove the "produce test" approach from the polymorphic_rel tests,
break out fixtures into a separate module which will be
used by some future test suites as well

13 years agoadded missing 0.4 versions to CHANGES_PRE_06
Mike Bayer [Mon, 27 Feb 2012 16:14:46 +0000 (11:14 -0500)] 
added missing 0.4 versions to CHANGES_PRE_06

13 years agofix callcount
Mike Bayer [Mon, 27 Feb 2012 00:42:16 +0000 (19:42 -0500)] 
fix callcount

13 years agoadd tests for #2128
Mike Bayer [Sun, 26 Feb 2012 23:43:36 +0000 (18:43 -0500)] 
add tests for #2128

13 years agoremove check_columns here so warning not emitted with update from
Mike Bayer [Sun, 26 Feb 2012 23:22:27 +0000 (18:22 -0500)] 
remove check_columns here so warning not emitted with update from

13 years agoplus add it to the scoping namespace
Mike Bayer [Sat, 25 Feb 2012 19:38:00 +0000 (14:38 -0500)] 
plus add it to the scoping namespace

13 years ago- [feature] Added "no_autoflush" context
Mike Bayer [Sat, 25 Feb 2012 19:34:02 +0000 (14:34 -0500)] 
- [feature] Added "no_autoflush" context
manager to Session, used with with:
will temporarily disable autoflush.

13 years ago- [bug] A warning is emitted when a not-present
Mike Bayer [Tue, 21 Feb 2012 15:49:38 +0000 (10:49 -0500)] 
- [bug] A warning is emitted when a not-present
column is stated in the values() clause
of an insert() or update() construct.
Will move to an exception in 0.8.
[ticket:2413]

13 years agodocument with_lockmode(), [ticket:2412]
Mike Bayer [Mon, 20 Feb 2012 14:42:47 +0000 (09:42 -0500)] 
document with_lockmode(), [ticket:2412]

13 years agobreak up _join_left_to_right to call upon _prepare_right_side and _join_to_left.
Mike Bayer [Fri, 17 Feb 2012 00:29:00 +0000 (19:29 -0500)] 
break up _join_left_to_right to call upon _prepare_right_side and _join_to_left.
this separates the handling of each side totally making it easier to see
what's going on.

13 years ago- fix some unclear phrases in query regarding polymorphic,
Mike Bayer [Thu, 16 Feb 2012 23:54:10 +0000 (18:54 -0500)] 
- fix some unclear phrases in query regarding polymorphic,
slowly approaching [ticket:2333]
- pep8 most of the big old polymorphic tests, break lots
of the inheritance/test_query tests into individual tests
since these are the ones that are easily broken when
screwing with query

13 years agomysql connector python 3k is dev status
Mike Bayer [Thu, 16 Feb 2012 15:04:07 +0000 (10:04 -0500)] 
mysql connector python 3k is dev status

13 years agocallcounts
Mike Bayer [Wed, 15 Feb 2012 16:50:01 +0000 (11:50 -0500)] 
callcounts

13 years agotest failures
Mike Bayer [Wed, 15 Feb 2012 15:13:47 +0000 (10:13 -0500)] 
test failures

13 years agomodify these tests to ensure the CASE output is being used fully
Mike Bayer [Tue, 14 Feb 2012 17:59:11 +0000 (12:59 -0500)] 
modify these tests to ensure the CASE output is being used fully

13 years ago- [bug] Altered _params_from_query() function
Mike Bayer [Tue, 14 Feb 2012 17:04:04 +0000 (12:04 -0500)] 
- [bug] Altered _params_from_query() function
in Beaker example to pull bindparams from the
fully compiled statement, as a quick means
to get everything including subqueries in the
columns clause, etc.

13 years agoupdate the search to call searchindex.js in the latest way
Mike Bayer [Tue, 14 Feb 2012 15:16:16 +0000 (10:16 -0500)] 
update the search to call searchindex.js in the latest way
sphinx decides we should be, [ticket:2408]

13 years ago - [bug] Added execution_options() call to
Mike Bayer [Tue, 14 Feb 2012 01:21:18 +0000 (20:21 -0500)] 
  - [bug] Added execution_options() call to
    MockConnection (i.e., that used with
    strategy="mock") which acts as a pass through
    for arguments.

13 years ago - [feature] Added "no_parameters=True" execution
Mike Bayer [Tue, 14 Feb 2012 01:07:44 +0000 (20:07 -0500)] 
  - [feature] Added "no_parameters=True" execution
    option for connections.   If no parameters
    are present, will pass the statement
    as cursor.execute(statement), thereby invoking
    the DBAPIs behavior when no parameter collection
    is present; for psycopg2 and mysql-python, this
    means not interpreting % signs in the string.
    This only occurs with this option, and not
    just if the param list is blank, as otherwise
    this would produce inconsistent behavior
    of SQL expressions that normally escape percent
    signs (and while compiling, can't know ahead of
    time if parameters will be present in
    some cases).  [ticket:2407]

13 years agorevert this, bad idea
Mike Bayer [Tue, 14 Feb 2012 00:29:38 +0000 (19:29 -0500)] 
revert this, bad idea

13 years ago- [bug] Fixed the "render literal bind" function,
Mike Bayer [Mon, 13 Feb 2012 23:53:21 +0000 (18:53 -0500)] 
- [bug] Fixed the "render literal bind" function,
used by Alembic, to escape % signs with %%.

13 years ago- [bug] Fixed bug whereby MappedCollection
Mike Bayer [Mon, 13 Feb 2012 21:04:57 +0000 (16:04 -0500)] 
- [bug] Fixed bug whereby MappedCollection
would not get the appropriate collection
instrumentation if it were only used
in a custom subclass that used
@collection.internally_instrumented.
[ticket:2406]
- added docs for collection

13 years ago- test failures. one in particular seems to be a weird oursql bug, oh well
Mike Bayer [Mon, 13 Feb 2012 01:00:44 +0000 (20:00 -0500)] 
- test failures.  one in particular seems to be a weird oursql bug, oh well

13 years ago- break out sample URLs into individual, per-database sections each with a link
Mike Bayer [Mon, 13 Feb 2012 00:06:49 +0000 (19:06 -0500)] 
- break out sample URLs into individual, per-database sections each with a link
to the dialect page.
- add a section for unix domain sockets under psycopg2 [ticket:2393]

13 years ago- [feature] Added a new oracle create_engine() flag
Mike Bayer [Sun, 12 Feb 2012 23:45:17 +0000 (18:45 -0500)] 
- [feature] Added a new oracle create_engine() flag
coerce_to_decimal=False, disables the precision
numeric handling which can add lots of overhead
by converting all numeric values to
Decimal.  [ticket:2399]

13 years ago- add OrderingList class and other functions to sphinx documentation
Mike Bayer [Sun, 12 Feb 2012 23:30:42 +0000 (18:30 -0500)] 
- add OrderingList class and other functions to sphinx documentation
[ticket:2391]

13 years ago- [feature] Added the ability to query for
Mike Bayer [Sun, 12 Feb 2012 23:25:19 +0000 (18:25 -0500)] 
- [feature] Added the ability to query for
Table-bound column names when using
query(sometable).filter_by(colname=value).
[ticket:2400]

13 years ago- [feature] Added support for the "isolation_level"
Mike Bayer [Sun, 12 Feb 2012 23:07:41 +0000 (18:07 -0500)] 
- [feature] Added support for the "isolation_level"
parameter to all MySQL dialects.  Thanks
to mu_mind for the patch here. [ticket:2394]
- add documentation examples for mysql, postgresql
- pep8ing

13 years ago- [bug] Index will raise when arguments passed
Mike Bayer [Sun, 12 Feb 2012 22:47:36 +0000 (17:47 -0500)] 
- [bug] Index will raise when arguments passed
cannot be interpreted as columns or expressions.
Will warn when Index is created
with no columns at all.  [ticket:2380]

13 years ago- [bug] Fixed bug whereby if a method name
Mike Bayer [Sun, 12 Feb 2012 22:28:20 +0000 (17:28 -0500)] 
- [bug] Fixed bug whereby if a method name
conflicted with a column name, a
TypeError would be raised when the mapper
tried to inspect the __get__() method
on the method object.  [ticket:2352]

13 years ago- [bug] Fixed bug in new "autoload_replace" flag
Mike Bayer [Sun, 12 Feb 2012 22:14:34 +0000 (17:14 -0500)] 
- [bug] Fixed bug in new "autoload_replace" flag
which would fail to preserve the primary
key constraint of the reflected table.
[ticket:2402]

13 years ago- Added missing compilation support for
Mike Bayer [Sun, 12 Feb 2012 22:10:50 +0000 (17:10 -0500)] 
- Added missing compilation support for
LONG [ticket:2401]
- broke out oracle tests for types that only require dialect

13 years ago- add a context manager availble via Engine.begin()
Mike Bayer [Sun, 12 Feb 2012 21:43:26 +0000 (16:43 -0500)] 
- add a context manager availble via Engine.begin()
- add a test suite for all the Engine/Connection/TLEngine transaction/begin
helpers/context managers
- update docs

13 years agodocument identity_map
Mike Bayer [Sat, 11 Feb 2012 15:52:00 +0000 (10:52 -0500)] 
document identity_map

13 years agothis is the actual case that #1401 will fix. confirmed broken in 0.7
Mike Bayer [Thu, 9 Feb 2012 23:07:41 +0000 (18:07 -0500)] 
this is the actual case that #1401 will fix.   confirmed broken in 0.7

13 years agodeclarartive reflection example didn't actually work for single inheritance, added...
Mike Bayer [Thu, 9 Feb 2012 20:56:21 +0000 (15:56 -0500)] 
declarartive reflection example didn't actually work for single inheritance, added a tweak to make that possible

13 years agosome work on the #1401 branch has discovered that this very old test is pointless;
Mike Bayer [Wed, 8 Feb 2012 22:41:40 +0000 (17:41 -0500)] 
some work on the #1401 branch has discovered that this very old test is pointless;
it slightly exercises post_update but not much compared to modern tests,
and also illustrates a mapping that doesn't actually work currently.

13 years ago- [bug] Added support for using the .key
Mike Bayer [Sun, 5 Feb 2012 21:58:32 +0000 (16:58 -0500)] 
- [bug] Added support for using the .key
of a Column as a string identifier in a
result set row.   The .key is currently
listed as an "alternate" name for a column,
and is superseded by the name of a column
which has that key value as its regular name.
For the next major release
of SQLAlchemy we may reverse this precedence
so that .key takes precedence, but this
is not decided on yet.  [ticket:2392]

13 years agocallcount adjust
Mike Bayer [Sun, 5 Feb 2012 20:48:15 +0000 (15:48 -0500)] 
callcount adjust

13 years ago- [bug] A significant change to how labeling
Mike Bayer [Sun, 5 Feb 2012 19:22:55 +0000 (14:22 -0500)] 
- [bug] A significant change to how labeling
is applied to columns in SELECT statements
allows "truncated" labels, that is label names
that are generated in Python which exceed
the maximum identifier length (note this is
configurable via label_length on create_engine()),
to be properly referenced when rendered inside
of a subquery, as well as to be present
in a result set row using their original
in-Python names.   [ticket:2396]

- apply pep8 to test_labels

13 years ago- add a warning regarding tuple.in_(), [ticket:2395]
Mike Bayer [Sat, 4 Feb 2012 19:31:10 +0000 (14:31 -0500)] 
- add a warning regarding tuple.in_(), [ticket:2395]
- cleanup of exc.DBAPIError docstrings

13 years agoaccept the symbols so recreate works
Mike Bayer [Wed, 1 Feb 2012 17:09:47 +0000 (12:09 -0500)] 
accept the symbols so recreate works

13 years ago- [feature] Added pool_reset_on_return argument
Mike Bayer [Wed, 1 Feb 2012 15:14:28 +0000 (10:14 -0500)] 
- [feature] Added pool_reset_on_return argument
to create_engine, allows control over
"connection return" behavior.  Also added
new arguments 'rollback', 'commit', None
to pool.reset_on_return to allow more control
over connection return activity. [ticket:2378]

13 years agofix an inadvertent abuse of variable scope
Mike Bayer [Tue, 31 Jan 2012 15:42:29 +0000 (10:42 -0500)] 
fix an inadvertent abuse of variable scope

13 years agobreak out _save_obj(), _delete_obj(), _post_update() into a new module
Mike Bayer [Tue, 31 Jan 2012 00:52:07 +0000 (19:52 -0500)] 
break out _save_obj(), _delete_obj(), _post_update() into a new module
persistence.py - Mapper loses awareness of how to emit INSERT/UPDATE/DELETE,
persistence.py is only used by unitofwork.py.  Then break each method out
into a top level with almost no logic, calling into _organize_states_for_XYZ(),
_collect_XYZ_commands(), _emit_XYZ_statements().