Commit Graph

5712 Commits

Author SHA1 Message Date
Mike Bayer d3ee4f6155 - On the same theme, the REFERENCES clause in a CREATE TABLE
that includes a remote schema to a *different* schema
than that of the parent table doesn't render at all,
as cross-schema references do not appear to be supported.
2010-11-12 10:49:17 -05:00
Mike Bayer bbe3f0a27c - The REFERENCES clause in a CREATE TABLE that includes
a remote schema name now renders the remote name without
the schema clause, as required by SQLite.  [ticket:1851]
2010-11-12 10:36:03 -05:00
Mike Bayer 5b96e3fff7 whoopsie 2010-11-11 19:27:35 -05:00
Mike Bayer bcf577c1d5 - Fixed bug regarding "subqueryload" strategy whereby
strategy would fail if the entity was an aliased()
construct.  [ticket:1964]
2010-11-11 19:15:26 -05:00
Mike Bayer 6dfdc94739 stupid tab got committed 2010-11-09 12:19:11 -05:00
Mike Bayer 1ce6b7c9b5 add a note to use column_property with declarative map to a join 2010-11-09 12:09:41 -05:00
Mike Bayer e1a30715d2 - and fix everything from the last checkin that breaks on py 2.4, 2.5 2010-11-09 11:46:52 -05:00
Mike Bayer a41c50ad63 - Implemented sequence check capability for the C
version of RowProxy, as well as 2.7 style
"collections.Sequence" registration for RowProxy.
[ticket:1871]
2010-11-09 11:40:23 -05:00
Mike Bayer 30bc424037 - "innerjoin" flag doesn't take effect along the chain
of joinedload() joins if a previous join in that chain
is an outer join, thus allowing primary rows without
a referenced child row to be correctly returned
in results.  [ticket:1954]
2010-11-05 01:02:48 -04:00
Mike Bayer 855dbda825 - mysql
- Fixed error handling for Jython + zxjdbc, such that
    has_table() property works again.  Regression from
    0.6.3 (we don't have a Jython buildbot, sorry)
    [ticket:1960]
2010-11-03 15:45:21 -04:00
Mike Bayer 4700d344de further edits 2010-11-01 16:07:47 -04:00
Mike Bayer 125c7e2dbb - write a new section describing the "subtransactions=True" flag in full detail 2010-11-01 15:59:53 -04:00
Mike Bayer 0d00f47035 - Fixed bug whereby a non-"mutable" attribute modified event
which occurred on an object that was clean except for
preceding mutable attribute changes would fail to strongly
reference itself in the identity map. This would cause the
object to be garbage collected, losing track of any changes
that weren't previously saved in the "mutable changes"
dictionary.
2010-10-26 16:12:04 -04:00
Mike Bayer f86d8a877b - engine status updates 2010-10-24 16:08:14 -04:00
Mike Bayer 1275104bba Added tag rel_0_6_5 for changeset b96e6232a4 2010-10-24 13:39:11 -04:00
Mike Bayer b96e6232a4 cleanup most egregiously long lines rel_0_6_5 2010-10-24 13:26:34 -04:00
Mike Bayer bfc0977063 - remove remaining create_session() calls from examples, replace with Session
- replace all flush()/expunge_all() with commit()
2010-10-24 12:42:47 -04:00
Mike Bayer a29f130be7 - mssql+pymssql dialect now honors the "port" portion
of the URL instead of discarding it.  [ticket:1952]
- testing.only_on() accepts db specs optionally as a list
2010-10-24 12:00:58 -04:00
Mike Bayer 9c0d6c0a23 - Rewrote the reflection of indexes to use sys.
catalogs, so that column names of any configuration
(spaces, embedded commas, etc.) can be reflected.
Note that reflection of indexes requires SQL
Server 2005 or greater.  [ticket:1770]
2010-10-23 18:09:36 -04:00
Mike Bayer 6f4f497f00 - make a futile attempt to combat the needless usage of clear_mappers() in the wild,
[ticket:1861]
2010-10-23 17:09:53 -04:00
Mike Bayer 79c25ede44 - Added type_coerce(expr, type_) expression element.
Treats the given expression as the given type when evaluating
expressions and processing result rows, but does not
affect the generation of SQL, other than an anonymous label.
2010-10-23 16:40:39 -04:00
Mike Bayer c01c6baf57 - Oracle - the implicit_retunring argument to create_engine()
is now honored regardless of detected version of
Oracle.  Previously, the flag would be forced
to False if server version info was < 10.
[ticket:1878]
2010-10-23 15:27:21 -04:00
Mike Bayer ea81fa93a4 fix typo 2010-10-23 13:43:39 -04:00
Mike Bayer 92fb9f91af - New Query methods: query.label(name), query.as_scalar(),
return the query's statement as a scalar subquery
with /without label [ticket:1920];
query.with_entities(*ent), replaces the SELECT list of
the query with new entities.
Roughly equivalent to a generative form of query.values()
which accepts mapped entities as well as column
expressions.
2010-10-23 13:07:56 -04:00
Mike Bayer c5579f77e2 - A mixin can now specify a column that overrides
a column of the same name associated with a superclass.
Thanks to Oystein Haaland.
2010-10-21 16:54:39 -04:00
Mike Bayer ee345b055c - Fixed bug in TypeDecorator whereby the dialect-specific
type was getting pulled in to generate the DDL for a
given type, which didn't always return the correct result.

- TypeDecorator can now have a fully constructed type
specified as its "impl", in addition to a type class.

- TypeDecorator will now place itself as the resulting
type for a binary expression where the type coercion
rules would normally return its impl type - previously,
a copy of the impl type would be returned which would
have the TypeDecorator embedded into it as the "dialect"
impl, this was probably an unintentional way of achieving
the desired effect.

- TypeDecorator.load_dialect_impl() returns "self.impl" by
default, i.e. not the dialect implementation type of
"self.impl".   This to support compilation correctly.
Behavior can be user-overridden in exactly the same way
as before to the same effect.
2010-10-21 16:42:32 -04:00
Mike Bayer 3d9ca1b7d6 - document is_modified() caveats including that the "old" value isn't always
present, and that this results in a positive response for "changed"
[ticket:1928]
2010-10-20 17:58:35 -04:00
Mike Bayer f3c9c87a24 - Fixed mysql bug involving reflection of CURRENT_TIMESTAMP
default used with ON UPDATE clause, thanks to
Taavi Burns [ticket:1940]
2010-10-20 17:44:35 -04:00
Mike Bayer 60197fb0f4 - Fixed bug which prevented "domain" built from a
custom type such as "enum" from being reflected.
[ticket:1933]
2010-10-20 17:28:08 -04:00
Mike Bayer 466d6ed2f3 merge tip 2010-10-20 16:22:30 -04:00
Mike Bayer 42ac34a701 - Added "as_tuple" flag to pg ARRAY type, returns results
as tuples instead of lists to allow hashing.
2010-10-20 16:17:17 -04:00
Mike Bayer db318240d1 - Fixed bug where aliasing of tables with "schema" would
fail to compile properly.  [ticket:1943]
2010-10-20 16:15:54 -04:00
Jason Kirtland 50202a70b4 Update for new nose plugin location. 2010-10-19 16:44:15 -07:00
Mike Bayer 976df5bf96 - the NoseSQLAlchemyPlugin has been moved to a
new package "sqlalchemy_nose" which installs
along with "sqlalchemy".  This so that the "nosetests"
script works as always but also allows the
--with-coverage option to turn on coverage before
SQLAlchemy modules are imported, allowing coverage
to work correctly.
- added some new ignores
2010-10-17 15:23:14 -04:00
Mike Bayer aa20e20b88 - forgot to add the immediate loader tests 2010-10-17 15:10:08 -04:00
Mike Bayer a8fff06cb4 edit 2010-10-17 00:07:13 -04:00
Mike Bayer 5b0fc34b72 note expire_on_commit in the docstring for commit() as well 2010-10-16 23:50:33 -04:00
Mike Bayer a714db53b3 - Fixed MSSQL reflection bug which did not properly handle
reflection of unknown types.  [ticket:1946]
2010-10-16 12:15:40 -04:00
Mike Bayer 295fd90125 - Added a new "lazyload" option "immediateload".
Issues the usual "lazy" load operation automatically
as the object is populated.   The use case
here is when loading objects to be placed in
an offline cache, or otherwise used after
the session isn't available, and straight 'select'
loading, not 'joined' or 'subquery', is desired.
[ticket:1914]
2010-10-15 11:59:02 -04:00
Mike Bayer 35508a30d7 - engine_from_config() now accepts 'debug' for
'echo', 'echo_pool', 'force' for 'convert_unicode',
boolean values for 'use_native_unicode'.
[ticket:1899]
2010-10-15 11:43:59 -04:00
Mike Bayer b47983f8ec - Fixed labeling bug in Query whereby the NamedTuple
would mis-apply labels if any of the column
expressions were un-labeled.
2010-10-14 12:04:51 -04:00
Chris Withers a376f3e2da warn when two classes with the same name end up in the declarative registry 2010-10-06 12:04:25 +01:00
Chris Withers 526d73ecfc document creating indexes for columns in mixins 2010-10-04 10:14:54 +01:00
Mike Bayer ee9102622c - default compilation of a type will check if the type class's module is
inside of sqlalchemy.dialects, in which case that dialect's default
will be used instead of DefaultDialect.
2010-10-03 13:11:41 -04:00
Mike Bayer 15442ed1f4 - added "views=True" option to metadata.reflect(),
will add the list of available views to those
being reflected.  [ticket:1936]
2010-10-02 18:05:19 -04:00
Mike Bayer 19d5287d83 - this test began working for oracle as of r14af1f73fbbd. Additionally,
the operation wasn't actually "working" on sqlite, mysql prior to that
rev, but no assertions checked. added assertions for those.
2010-10-02 01:30:17 -04:00
Mike Bayer 761b4f29e2 - *Major* cleanup / modernization of the Informix
dialect for 0.6, courtesy Florian Apolloner.
[ticket:1906]
2010-10-01 21:26:05 -04:00
Mike Bayer 4557fd5a9a - Fixed bug in query.update() where 'evaluate' or 'fetch'
expiration would fail if the column expression key was
a class attribute with a different keyname as the
actual column name.  [ticket:1935]
2010-10-01 20:55:42 -04:00
Mike Bayer 846c9e1705 correct that only MySQL doesn't support CHECK constraints, [ticket:1927] 2010-10-01 20:40:56 -04:00
Mike Bayer 0fff5da2eb - Make it clear that the second mapping of User is against User.__table__, [ticket:1934] 2010-10-01 20:39:35 -04:00