Commit Graph

10240 Commits

Author SHA1 Message Date
Mike Bayer 7658a4c73c - basic functionality. 2014-01-04 21:14:11 -05:00
Mike Bayer ecb3865615 - The :paramref:.Table.extend_existing and :paramref:.Table.autoload_replace
parameters are now available on the :meth:`.MetaData.reflect`
method.
- starting to use paramref and need newer paramlinks version.
2014-01-04 21:12:31 -05:00
Mike Bayer c450cd6cb6 - Fixed regression where using a `functools.partial()` with the event
system would cause a recursion overflow due to usage of inspect.getargspec()
on it in order to detect a legacy calling signature for certain events,
and apparently there's no way to do this with a partial object.  Instead
we skip the legacy check and assume the modern style; the check itself
now only occurs for the SessionEvents.after_bulk_update and
SessionEvents.after_bulk_delete events.  Those two events will require
the new signature style if assigned to a "partial" event listener.
[ticket:2905]
2014-01-04 00:35:48 -05:00
Mike Bayer cad46c3cdc - hypothetical "automap" feature, would extend DeferredReflection to create classes
against the remaining tables within the given metadata.
2014-01-03 21:47:01 -05:00
Mike Bayer 3182101127 - Fixed an extremely unlikely memory issue where when using
:class:`.DeferredReflection`
to define classes pending for reflection, if some subset of those
classes were discarded before the :meth:`.DeferredReflection.prepare`
method were called to reflect and map the class, a strong reference
to the class would remain held within the declarative internals.
This internal collection of "classes to map" now uses weak
references against the classes themselves.
2014-01-03 21:46:13 -05:00
Mike Bayer 3e7a17174f Merged in davidszotten/sqlalchemy/doc_typo (pull request #10)
typo in changelog
2014-01-02 19:08:46 -05:00
Mike Bayer 7880d84c5b - changelog for pullreq 9 from bitbucket 2014-01-02 19:07:13 -05:00
Mike Bayer 4f7469bbc1 Merge bitbucket.org:rschoon/sqlalchemy into t 2014-01-02 19:01:57 -05:00
Mike Bayer 6d3e563a57 - Fixed regression where we don't check the given name against the
correct string class when setting up a backref based on a name,
therefore causing the error "too many values to unpack".  This was
related to the Py3k conversion. [ticket:2901]
2014-01-02 18:59:26 -05:00
Mike Bayer 8a7fdd4e5c - A quasi-regression where apparently in 0.8 you can set a class-level
attribute on declarative to simply refer directly to an :class:`.InstrumentedAttribute`
on a superclass or on the class itself, and it
acts more or less like a synonym; in 0.9, this fails to set up enough
bookkeeping to keep up with the more liberalized backref logic
from 🎫`2789`.  Even though this use case was never directly
considered, it is now detected by declarative at the "setattr()" level
as well as when setting up a subclass, and the mirrored/renamed attribute
is now set up as a :func:`.synonym` instead. [ticket:2900]
2014-01-02 18:51:49 -05:00
Mike Bayer ca8fca6391 - Fixed regression where we apparently still create an implicit
alias when saying query(B).join(B.cs), where "C" is a joined inh
class; however, this implicit alias was created only considering
the immediate left side, and not a longer chain of joins along different
joined-inh subclasses of the same base.   As long as we're still
implicitly aliasing in this case, the behavior is dialed back a bit
so that it will alias the right side in a wider variety of cases.
[ticket:2903]
2014-01-02 18:26:32 -05:00
Mike Bayer 5045430902 .pyo 2014-01-02 14:24:13 -05:00
Mike Bayer 4b923d37bd - support addition of fails_if()/only_on(), just wraps the decorators
- update a few exclusions to support current pymssql.  passes all of test_suite and dialect/mssql
2014-01-02 14:23:14 -05:00
David Szotten dc9c76486d typo in changelog 2014-01-01 10:28:58 +00:00
Robin Schoonover f188e28aea Don't barf on Session(info=...) from sessionmaker(info=None) 2013-12-31 18:46:31 -07:00
Mike Bayer f00657fa8a - 0.9.0 release date rel_0_9_0 2013-12-30 18:31:33 -05:00
Mike Bayer d88d755425 - call it 0.9.0 2013-12-30 18:30:11 -05:00
Mike Bayer c91de19e41 Merge branch 'master' into rel_0_9 2013-12-30 18:23:12 -05:00
Mike Bayer 36024b4910 sphinx paramlinks 0.1.8 2013-12-30 13:46:41 -05:00
Mike Bayer 1eb3b6840a - use 0.1.7 at least 2013-12-30 13:22:54 -05:00
Mike Bayer 9e2c0931b9 - try out paramlinks 2013-12-30 12:23:05 -05:00
Mike Bayer d49df1aa15 Merge branch 'master' into rel_0_9 2013-12-28 18:24:51 -05:00
Mike Bayer 2537773d1e a few oracle test failures 2013-12-28 18:24:43 -05:00
Mike Bayer 0d5dd882d4 Merge branch 'master' into rel_0_9 2013-12-28 17:51:19 -05:00
Mike Bayer 1eb92e50d9 - apply a similar fix for floats to mssql+pyodbc as we did to firebird
- wrangle through osx+pyodbc+freetds to get at least test_suite to pass again
with mssql+pyodbc. invovled adding some silly requirements
2013-12-28 17:50:19 -05:00
Mike Bayer bb9bc68d77 Merge branch 'master' into rel_0_9 2013-12-28 16:38:36 -05:00
Mike Bayer cac7320eeb - adjust the behavior of cast() to only provide a type for the bindparam()
if we are coercing straight from string.  [ticket:2899]
- rework the tests here to be individual
2013-12-28 16:37:54 -05:00
Mike Bayer d8bc6673c0 - fix the insert from select test to use a non-autoinc table 2013-12-28 16:37:22 -05:00
Mike Bayer 3f95f26237 Merge branch 'master' into rel_0_9 2013-12-28 01:56:00 -05:00
mike bayer 8d1ec3cc7f Merge pull request #54 from spicyj/patch-1
session docs: Change `object` to `someobject`
2013-12-27 22:55:54 -08:00
Ben Alpert 7bb8944e31 session docs: Change object to someobject
This makes the code block more consistent with the preceding one and also prevents the variable from being colored as a builtin (which `object` is) during syntax highlighting.
2013-12-27 23:11:23 -07:00
Mike Bayer 2df21f612d Merge branch 'master' into rel_0_9 2013-12-27 18:27:58 -05:00
Mike Bayer 2104d0ba2d - rework the JSON expression system so that "astext" is called *after*
the indexing.  this is for more natural operation.
- also add cast() to the JSON expression to complement astext. This integrates
the CAST call which will be needed frequently.  Part of [ticket:2687].
- it's a little unclear how more advanced unicode attribute-access is going to go,
some quick attempts at testing yielded strange error messages from psycopg2.
- do other cross linking as mentioned in [ticket:2687].
2013-12-27 18:25:57 -05:00
Mike Bayer 90f813575e Merge branch 'master' into rel_0_9 2013-12-27 17:11:12 -05:00
Mike Bayer de786a4208 - Declarative does an extra check to detect if the same
:class:`.Column` is mapped multiple times under different properties
(which typically should be a :func:`.synonym` instead) or if two
or more :class:`.Column` objects are given the same name, raising
a warning if this condition is detected. [ticket:2828]
2013-12-27 17:10:55 -05:00
Mike Bayer 6db0e6edcb Merge branch 'master' into rel_0_9 2013-12-27 16:40:19 -05:00
Mike Bayer f50c670e47 - Changed the queries used by Firebird to list table and view names
to query from the ``rdb$relations`` view instead of the
``rdb$relation_fields`` and ``rdb$view_relations`` views.
Variants of both the old and new queries are mentioned on many
FAQ and blogs, however the new queries are taken straight from
the "Firebird FAQ" which appears to be the most official source
of info. [ticket:2898]
2013-12-27 16:39:54 -05:00
Mike Bayer 1b38d1773e Merge branch 'master' into rel_0_9 2013-12-27 16:38:16 -05:00
Mike Bayer aeb5ffec28 - actually check the list of views! 2013-12-27 16:37:57 -05:00
Mike Bayer 17f4b8f829 Merge branch 'master' into rel_0_9 2013-12-27 13:40:55 -05:00
Mike Bayer 92a1426c06 - The firebird dialect will quote identifiers which begin with an
underscore.  Courtesy Treeve Jelbert. [ticket:2897]
2013-12-27 13:40:27 -05:00
Mike Bayer a51c41e630 - add a test which creates tables and views at the same time, then tests that the lists
of each can be reflected independently.  Testing [ticket:2898] at the moment.
2013-12-27 13:28:18 -05:00
Mike Bayer 545df6b39e - Fixed bug in Firebird index reflection where the columns within the
index were not sorted correctly; they are now sorted
in order of RDB$FIELD_POSITION.
2013-12-27 13:20:58 -05:00
Mike Bayer 4798fd947f - The "asdecimal" flag used with the :class:.Float type will now
work with Firebird dialects; previously the decimal conversion was
not occurring.
- scale back some firebird FP numeric tests
2013-12-27 13:16:48 -05:00
Mike Bayer 0cba61d150 - repair some suite tests for firebird 2013-12-27 13:05:32 -05:00
Mike Bayer ff47daf233 Merge branch 'master' into rel_0_9 2013-12-27 11:13:50 -05:00
Mike Bayer c837dc485e changelog, will merge to 0.8 2013-12-27 11:13:41 -05:00
mike bayer 69876ada92 Merge pull request #51 from sontek/pymssql_handle_terminated_connection
Remove terminated connections from the pool.
2013-12-27 08:12:05 -08:00
Mike Bayer 5633cd304e Merge branch 'master' into rel_0_9 2013-12-21 19:52:09 -05:00
Mike Bayer 282a19d952 - alter the decorator function, and the newer public_factory function,
to use a named def instead of a lambda.  this so that TypeError on wrong
arguments are more legible.  [ticket:2884]
2013-12-21 19:51:25 -05:00