Commit Graph

6750 Commits

Author SHA1 Message Date
Mike Bayer fd9dd22800 added missing 0.4 versions to CHANGES_PRE_06 2012-02-27 11:14:46 -05:00
Mike Bayer d60bc21fc6 fix callcount 2012-02-26 19:42:16 -05:00
Mike Bayer 2d154b01f1 add tests for #2128 2012-02-26 18:43:36 -05:00
Mike Bayer ef6f95d9a0 remove check_columns here so warning not emitted with update from 2012-02-26 18:22:27 -05:00
Mike Bayer aa70505df5 plus add it to the scoping namespace 2012-02-25 14:38:00 -05:00
Mike Bayer deb7e76a42 - [feature] Added "no_autoflush" context
manager to Session, used with with:
will temporarily disable autoflush.
2012-02-25 14:34:02 -05:00
Mike Bayer abe6c0f08a - [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]
2012-02-21 10:49:38 -05:00
Mike Bayer 509c81d736 document with_lockmode(), [ticket:2412] 2012-02-20 09:42:47 -05:00
Mike Bayer 35cba3c84a 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.
2012-02-16 19:29:00 -05:00
Mike Bayer 9b86654981 - 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
2012-02-16 18:54:10 -05:00
Mike Bayer 0933ed93ce mysql connector python 3k is dev status 2012-02-16 10:04:07 -05:00
Mike Bayer 28a5529fbf callcounts 2012-02-15 11:50:01 -05:00
Mike Bayer 7feaad21e6 test failures 2012-02-15 10:13:47 -05:00
Mike Bayer 0d9a752854 modify these tests to ensure the CASE output is being used fully 2012-02-14 12:59:11 -05:00
Mike Bayer c24a161530 - [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.
2012-02-14 12:04:04 -05:00
Mike Bayer ae5625f3d9 update the search to call searchindex.js in the latest way
sphinx decides we should be, [ticket:2408]
2012-02-14 10:16:16 -05:00
Mike Bayer 472fcea10a - [bug] Added execution_options() call to
MockConnection (i.e., that used with
    strategy="mock") which acts as a pass through
    for arguments.
2012-02-13 20:21:18 -05:00
Mike Bayer df15546cb8 - [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]
2012-02-13 20:07:44 -05:00
Mike Bayer f37aa86df8 revert this, bad idea 2012-02-13 19:29:38 -05:00
Mike Bayer 4bbd814fff - [bug] Fixed the "render literal bind" function,
used by Alembic, to escape % signs with %%.
2012-02-13 18:53:21 -05:00
Mike Bayer 1aeb637e70 - [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
2012-02-13 16:04:57 -05:00
Mike Bayer 04c7bae308 - test failures. one in particular seems to be a weird oursql bug, oh well 2012-02-12 20:00:44 -05:00
Mike Bayer c6278444aa - 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]
2012-02-12 19:06:49 -05:00
Mike Bayer 87a06688bc - [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]
2012-02-12 18:45:17 -05:00
Mike Bayer d3ff10e035 - add OrderingList class and other functions to sphinx documentation
[ticket:2391]
2012-02-12 18:30:42 -05:00
Mike Bayer 38b7cef982 - [feature] Added the ability to query for
Table-bound column names when using
query(sometable).filter_by(colname=value).
[ticket:2400]
2012-02-12 18:25:19 -05:00
Mike Bayer d101c597f5 - [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
2012-02-12 18:07:41 -05:00
Mike Bayer d50ea3eabf - [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]
2012-02-12 17:47:36 -05:00
Mike Bayer fdc92f0226 - [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]
2012-02-12 17:28:20 -05:00
Mike Bayer 345de2ee1d - [bug] Fixed bug in new "autoload_replace" flag
which would fail to preserve the primary
key constraint of the reflected table.
[ticket:2402]
2012-02-12 17:14:34 -05:00
Mike Bayer ba0fb069d5 - Added missing compilation support for
LONG [ticket:2401]
- broke out oracle tests for types that only require dialect
2012-02-12 17:10:50 -05:00
Mike Bayer c710f6cbf6 - 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
2012-02-12 16:43:26 -05:00
Mike Bayer 8c1bf8cdd0 document identity_map 2012-02-11 10:52:00 -05:00
Mike Bayer b0be3ef1b2 this is the actual case that #1401 will fix. confirmed broken in 0.7 2012-02-09 18:07:41 -05:00
Mike Bayer a925565f99 declarartive reflection example didn't actually work for single inheritance, added a tweak to make that possible 2012-02-09 15:56:21 -05:00
Mike Bayer 6fb9f826e9 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.
2012-02-08 17:41:40 -05:00
Mike Bayer 2dbeeff50b - [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]
2012-02-05 16:58:32 -05:00
Mike Bayer 2876573482 callcount adjust 2012-02-05 15:48:15 -05:00
Mike Bayer a4e3bc61bc - [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
2012-02-05 14:22:55 -05:00
Mike Bayer e0ec05366f - add a warning regarding tuple.in_(), [ticket:2395]
- cleanup of exc.DBAPIError docstrings
2012-02-04 14:31:10 -05:00
Mike Bayer 5e467f5105 accept the symbols so recreate works 2012-02-01 12:09:47 -05:00
Mike Bayer 132f5c7e04 - [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]
2012-02-01 10:14:28 -05:00
Mike Bayer 116572dade fix an inadvertent abuse of variable scope 2012-01-31 10:42:29 -05:00
Mike Bayer b40450d0a1 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().
2012-01-30 19:52:07 -05:00
Mike Bayer 1f057987da - [bug] Scaled back the test applied within
flush() to check for UPDATE against partially
NULL PK within one table to only actually
happen if there's really an UPDATE to occur.
[ticket:2390]
2012-01-30 17:52:28 -05:00
Mike Bayer 6a853837b9 attempt to use the secret weapon to force a total rebuild 2012-01-29 00:01:22 -05:00
Mike Bayer 8e8e6a88b7 - [bug] Improved the "declarative reflection"
example to support single-table inheritance,
multiple calls to prepare(), tables that
are present in alternate schemas,
establishing only a subset of classes
as reflected.
2012-01-28 18:16:46 -05:00
Mike Bayer 9ce9039c3f Added tag rel_0_7_5 for changeset 667249f7b1 2012-01-28 17:47:53 -05:00
Mike Bayer 667249f7b1 get ready for release 0.7.5 2012-01-28 17:43:13 -05:00
Mike Bayer 84cb539e5f declarative reflection example 2012-01-28 17:41:10 -05:00