Commit Graph

8676 Commits

Author SHA1 Message Date
Erich Blume 4eb5d44cec Don't include .egg files in the repo 2014-01-30 16:37:18 -08:00
Mike Bayer 8afb69ced8 - Fixed regression whereby the "annotation" system used by the ORM was leaking
into the names used by standard functions in :mod:`sqlalchemy.sql.functions`,
such as ``func.coalesce()`` and ``func.max()``.  Using these functions
in ORM attributes and thus producing annotated versions of them could
corrupt the actual function name rendered in the SQL. [ticket:2927]
2014-01-29 17:33:28 -05:00
Mike Bayer 00e78f5f76 - better way to do it 2014-01-29 14:57:18 -05:00
Mike Bayer 7d56e4f135 - add TypeError handling to the tests here, ensure TypeError
for the control is a TypeError for the row, as is raised on py3k when
less/greater operators are used on incompatible types
2014-01-29 14:55:58 -05:00
Mike Bayer d4c908ded1 - Fixed 0.9 regression where the new sortable support for :class:.RowProxy
would lead to ``TypeError`` when compared to non-tuple types as it attempted
to apply tuple() to the "other" object unconditionally.  The
full range of Python comparison operators have now been implemented on
:class:`.RowProxy`, using an approach that guarantees a comparison
system that is equivalent to that of a tuple, and the "other" object
is only coerced if it's an instance of RowProxy. [ticket:2924]
2014-01-28 23:43:14 -05:00
Mike Bayer d8d03011b8 - repair the fixture/test here to make sure state isn't left over causing other tests to fail 2014-01-27 13:34:33 -05:00
Mike Bayer d20d7549fd - docs 2014-01-26 20:02:08 -05:00
Mike Bayer ae3f2abe06 updates 2014-01-26 01:04:41 -05:00
Mike Bayer 9ad0e9a842 hypothetical "floaty thing" for navigation, doesn't really work yet 2014-01-25 17:26:07 -05:00
Mike Bayer 505ce79690 tweak text 2014-01-25 16:55:17 -05:00
Mike Bayer 38519e31b9 seealsos in the tutorial 2014-01-25 16:37:30 -05:00
Mike Bayer 7d45c88093 case 2014-01-25 16:20:46 -05:00
Mike Bayer fcc7e5b794 - start building out very comprehensive docstrings for core functions 2014-01-25 15:36:09 -05:00
Mike Bayer e2562fb9d9 lets document join() 2014-01-24 22:48:26 -05:00
Mike Bayer fd7b951f9d - doc updates, include links to create_engine from tutorials, cleanup
and modernize the engines chapter a bit
2014-01-23 19:38:46 -05:00
Mike Bayer 0234387188 typo 2014-01-23 17:45:13 -05:00
Mike Bayer 761511f3f2 - remove this leftover commented pdb 2014-01-23 14:50:23 -05:00
Mike Bayer 15b23c7f71 - Fixed an 0.9 regression where the automatic aliasing applied by
:class:`.Query` and in other situations where selects or joins
were aliased (such as joined table inheritance) could fail if a
user-defined :class:`.Column` subclass were used in the expression.
In this case, the subclass would fail to propagate ORM-specific
"annotations" along needed by the adaptation.  The "expression
annotations" system has been corrected to account for this case.
[ticket:2918]
2014-01-23 14:49:04 -05:00
mike bayer 9fef2c314b Merge pull request #60 from wichert/mutable-doc-import
Remove uneeded import from code example
2014-01-23 09:39:44 -08:00
Mike Bayer 7b90923eb1 used the wrong join 2014-01-22 21:42:56 -05:00
Mike Bayer 743ceb045e - Support is improved for supplying a :func:.join construct as the
target of :paramref:`.relationship.secondary` for the purposes
of creating very complex :func:`.relationship` join conditions.
The change includes adjustments to query joining, joined eager loading
to not render a SELECT subquery, changes to lazy loading such that
the "secondary" target is properly included in the SELECT, and
changes to declarative to better support specification of a
join() object with classes as targets.
2014-01-22 20:16:47 -05:00
Mike Bayer 1732414076 - Added new test coverage for so-called "down adaptions" of SQL types,
where a more specific type is adapted to a more generic one - this
use case is needed by some third party tools such as ``sqlacodegen``.
The specific cases that needed repair within this test suite were that
of :class:`.mysql.ENUM` being downcast into a :class:`.types.Enum`,
and that of SQLite date types being cast into generic date types.
The ``adapt()`` method needed to become more specific here to counteract
the removal of a "catch all" ``**kwargs`` collection on the base
:class:`.TypeEngine` class that was removed in 0.9. [ticket:2917]
2014-01-22 15:38:00 -05:00
Mike Bayer ee1f4d2103 - add redshift-sqlalchemy, essentially fixes [ticket:2727] 2014-01-21 19:33:25 -05:00
Mike Bayer 39ccdab8d5 - update docs for Numeric/Float, in particular warn against using mismatched
types (e.g. [ticket:2916])
2014-01-21 13:29:04 -05:00
Mike Bayer b9318c9863 - Fixed the multiple-table "UPDATE..FROM" construct, only usable on
MySQL, to correctly render the SET clause among multiple columns
with the same name across tables.  This also changes the name used for
the bound parameter in the SET clause to "<tablename>_<colname>" for
the non-primary table only; as this parameter is typically specified
using the :class:`.Column` object directly this should not have an
impact on applications.   The fix takes effect for both
:meth:`.Table.update` as well as :meth:`.Query.update` in the ORM.
[ticket:2912]
2014-01-20 21:17:42 -05:00
Mike Bayer f8d45fd566 use new paramlinks 0.2.2, trying to fix param links for __init__ vs. class 2014-01-20 18:31:42 -05:00
Mike Bayer 417aeaf145 - further refine this so that the ordering of columns is maintained as
sent to the primary key constraint; existing tests in the PG dialect
confirm this.
2014-01-20 18:14:02 -05:00
Mike Bayer 49f1807f8f - simplify the mechanics of PrimaryKeyConstraint with regards to reflection;
reflection now updates the PKC in place.
- support the use case of the empty PrimaryKeyConstraint in order to specify
constraint options; the columns marked as primary_key=True will now be gathered
into the columns collection, rather than being ignored. [ticket:2910]
- add validation such that column specification should only take place
in the PrimaryKeyConstraint directly, or by using primary_key=True flags;
if both are present, they have to match exactly, otherwise the condition is
assumed to be ambiguous, and a warning is emitted; the old behavior of
using the PKC columns only is maintained.
2014-01-20 18:06:18 -05:00
Mike Bayer 44cba66cb2 - repair signature for base get_unique_constraints() method
- test_autoincrement_col still needs reflection overall
2014-01-20 16:09:40 -05:00
Mike Bayer 84b03137eb - ensure ordering is fully maintained, [ticket:2914] 2014-01-20 15:36:45 -05:00
Wichert Akkerman aca8ffa474 Remove uneeded import from code example
This had me reread the code twice to see if I missed why the import was
present.
2014-01-20 10:59:20 +01:00
Mike Bayer 82c07837d9 fix typo 2014-01-19 17:51:21 -05:00
mike bayer 59f09454b2 Merge pull request #59 from wichert/doc-relationship-typo
Fix a typo in the relationship docs
2014-01-19 14:50:06 -08:00
Mike Bayer 3dc9f9b3db - alter behavior such that dialect_kwargs is still immutable, but
now represents exactly the kwargs that were passed, and not the defaults.
the defaults are still in dialect_options.  This allows repr() schemes such as that
of alembic to not need to look through and compare for defaults.
2014-01-19 16:32:36 -05:00
Mike Bayer 8e1a4fdced - some test fixes
- clean up some shenanigans in reflection
2014-01-19 00:34:37 -05:00
Mike Bayer 0087ec7286 akiban-> foundationdb 2014-01-18 20:56:56 -05:00
Mike Bayer 1af8e2491d - implement kwarg validation and type system for dialect-specific
arguments; [ticket:2866]
- add dialect specific kwarg functionality to ForeignKeyConstraint, ForeignKey
2014-01-18 19:26:56 -05:00
Mike Bayer 4dfc7fb087 credit to Derek Harland 2014-01-18 15:15:42 -05:00
Mike Bayer 3347ff7a91 - changelog for pullreq:11
- be specific about version 0.9.2
2014-01-18 15:13:20 -05:00
Mike Bayer 6e4fd0aea8 Merge branch 'patch-msql-pkc-clustered' of bitbucket.org:dharland/sqlalchemy into m 2014-01-18 15:06:08 -05:00
Mike Bayer 931655f417 cx_oracle is now "conditional" on py2k 2014-01-17 18:52:14 -05:00
Mike Bayer 882f615c68 - rework Oracle to no longer do its own unicode conversion; this has been observed
to be very slow.  this now has the effect of producing "conditional" unicode
conversion for the Oracle backend, as it still returns NVARCHAR etc. as unicode
[ticket:2911]
- add new "conditional" functionality to unicode processors; the C-level
function now uses PyUnicode_Check() as a fast alternative to the isinstance()
check in Python
2014-01-17 17:36:43 -05:00
donkopotamus cf8e5e3cf5 Bug Fix: Stop generating bad sql if an empty UniqueConstraint() is given 2014-01-17 11:00:24 +13:00
donkopotamus 3593548960 Support mssql_clustered option on UniqueConstraint (plus docs and test) 2014-01-17 10:46:16 +13:00
donkopotamus 1de7259093 Remove support for mssql_clustered on Table 2014-01-17 10:38:31 +13:00
Wichert Akkerman 906e33a7a6 Fix a typo in the relationship docs
The text refers to ``boston_addresses``, while the code sample uses
``addresses``.
2014-01-16 11:23:05 +01:00
Mike Bayer 4765895d10 even simpler 2014-01-15 15:22:11 -05:00
Mike Bayer 46728df2b4 - should close the session before rolling back the transaction
- make section title actually say, "such as for test suites"
- add topic section detailing an evented approach to allowing ROLLBACK by using savepoint
2014-01-15 15:14:24 -05:00
Mike Bayer 789ab91743 - changelog + test for pullreq github 58 2014-01-14 20:22:11 -05:00
mike bayer d87923c1d1 Merge pull request #58 from kstark/patch-1
Fix TypeError for class_mapper called w/ iterable
2014-01-14 17:20:03 -08:00