]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
16 years ago- 0.5.3
Mike Bayer [Sat, 24 Jan 2009 19:37:41 +0000 (19:37 +0000)] 
- 0.5.3
- add new directives to sphinx.sty.  pdf output is still currently busted for other reasons, however.

16 years ago- refined and clarified query.__join() for readability rel_0_5_2
Mike Bayer [Sat, 24 Jan 2009 17:29:56 +0000 (17:29 +0000)] 
- refined and clarified query.__join() for readability
- _ORMJoin() gets a new flag join_to_left to specify if
we really want to alias from the existing left side or not.  eager loading
wants this flag off in almost all cases, query.join() usually wants it on.
- query.join()/outerjoin() will now properly join an aliased()
construct to the existing left side, even if query.from_self()
or query.select_from(someselectable) has been called.
[ticket:1293]

16 years agomoved the non-expire of unloaded deferred attributes into the attributes package
Mike Bayer [Sat, 24 Jan 2009 15:43:05 +0000 (15:43 +0000)] 
moved the non-expire of unloaded deferred attributes into the attributes package

16 years ago- session.expire() and related methods will not expire() unloaded
Mike Bayer [Sat, 24 Jan 2009 00:22:49 +0000 (00:22 +0000)] 
- session.expire() and related methods will not expire() unloaded
deferred attributes.  This prevents them from being needlessly
loaded when the instance is refreshed.

16 years agoCorrection to reflection fix r5718 to handle Binary / other numeric types.
Michael Trier [Fri, 23 Jan 2009 01:45:20 +0000 (01:45 +0000)] 
Correction to reflection fix r5718 to handle Binary / other numeric types.

16 years agomssql: modified table reflection code to use only kwargs when constructing coldefs.
Rick Morrison [Fri, 23 Jan 2009 00:53:32 +0000 (00:53 +0000)] 
mssql: modified table reflection code to use only kwargs when constructing coldefs.

16 years ago- Fixed an eager loading bug whereby self-referential eager
Mike Bayer [Thu, 22 Jan 2009 18:28:27 +0000 (18:28 +0000)] 
- Fixed an eager loading bug whereby self-referential eager
loading would prevent other eager loads, self referential or not,
from joining to the parent JOIN properly.  Thanks to Alex K
for creating a great test case.

16 years ago- Adjusted the attribute instrumentation change from 0.5.1 to
Mike Bayer [Thu, 22 Jan 2009 03:55:48 +0000 (03:55 +0000)] 
- Adjusted the attribute instrumentation change from 0.5.1 to
fully establish instrumentation for subclasses where the mapper
was created after the superclass had already been fully
instrumented. [ticket:1292]

16 years agoTrying one more time to get the decimal handling on mssql right. Closes #1282.
Michael Trier [Thu, 22 Jan 2009 01:55:06 +0000 (01:55 +0000)] 
Trying one more time to get the decimal handling on mssql right. Closes #1282.

16 years agoRestored convert_unicode handling on mssql. Fixes #1291.
Michael Trier [Thu, 22 Jan 2009 01:46:04 +0000 (01:46 +0000)] 
Restored convert_unicode handling on mssql. Fixes #1291.

16 years ago- Further refined 0.5.1's warning about delete-orphan cascade
Mike Bayer [Tue, 20 Jan 2009 21:35:57 +0000 (21:35 +0000)] 
- Further refined 0.5.1's warning about delete-orphan cascade
placed on a many-to-many relation.   First, the bad news:
the warning will apply to both many-to-many as well as
many-to-one relations.  This is necessary since in both
cases, SQLA does not scan the full set of potential parents
when determining "orphan" status - for a persistent object
it only detects an in-python de-association event to establish
the object as an "orphan".  Next, the good news: to support
one-to-one via a foreign key or assocation table, or to
support one-to-many via an association table, a new flag
single_parent=True may be set which indicates objects
linked to the relation are only meant to have a single parent.
The relation will raise an error if multiple parent-association
events occur within Python.

- Fixed bug in delete-orphan cascade whereby two one-to-one
relations from two different parent classes to the same target
class would prematurely expunge the instance.  This is
an extension of the non-ticketed fix in r4247.

- the order of "sethasparent" flagging in relation to
AttributeExtensions has been refined such that false setparents
are issued before the event, true setparents issued afterwards.
event handlers "know" that a remove event originates
from a non-orphan but need to know if its become an orphan,
and that append events will become non-orphans but need to know
if the event originates from a non-orphan.

16 years agoadded some missing internal types for reflection, [ticket:1287]
Mike Bayer [Tue, 20 Jan 2009 04:12:00 +0000 (04:12 +0000)] 
added some missing internal types for reflection, [ticket:1287]

16 years agoremove comparison/group by on TEXT columns
Mike Bayer [Mon, 19 Jan 2009 22:28:48 +0000 (22:28 +0000)] 
remove comparison/group by on TEXT columns

16 years ago- Further fixes to the "percent signs and spaces in column/table
Mike Bayer [Sun, 18 Jan 2009 17:08:28 +0000 (17:08 +0000)] 
- Further fixes to the "percent signs and spaces in column/table
names" functionality. [ticket:1284]
- Still doesn't work for PG/MySQL, which unfortunately would require
post_process_text() calls all over the place.  Perhaps % escaping
can be assembled into IdentifierPreparer.quote() since that's where
identifier names are received.

16 years agodont need pre-0.5 note rel_0_5_1
Mike Bayer [Sat, 17 Jan 2009 21:43:19 +0000 (21:43 +0000)] 
dont need pre-0.5 note

16 years agoCorrected handling of large decimal values on mssql. Added more robust tests.
Michael Trier [Sat, 17 Jan 2009 20:57:18 +0000 (20:57 +0000)] 
Corrected handling of large decimal values on mssql. Added more robust tests.

- Removed string manipulation on floats. Float types are now passed through
  to mssql as is.
- Fixes #1280

16 years agomore session updates
Mike Bayer [Sat, 17 Jan 2009 20:06:54 +0000 (20:06 +0000)] 
more session updates

16 years agodocstring fixup
Mike Bayer [Sat, 17 Jan 2009 19:30:32 +0000 (19:30 +0000)] 
docstring fixup

16 years agofix errant foreign key
Mike Bayer [Sat, 17 Jan 2009 19:28:46 +0000 (19:28 +0000)] 
fix errant foreign key

16 years agofixed more save/clear calls
Mike Bayer [Sat, 17 Jan 2009 19:07:19 +0000 (19:07 +0000)] 
fixed more save/clear calls

16 years ago- The "clear()", "save()", "update()", "save_or_update()"
Mike Bayer [Sat, 17 Jan 2009 18:19:29 +0000 (18:19 +0000)] 
- The "clear()", "save()", "update()", "save_or_update()"
Session methods have been deprecated, replaced by
"expunge_all()" and "add()".  "expunge_all()" has also
been added to ScopedSession.

16 years agoexplicit rollback to get the connection back to the pool
Mike Bayer [Sat, 17 Jan 2009 17:04:51 +0000 (17:04 +0000)] 
explicit rollback to get the connection back to the pool

16 years agoWeakCompositeKey was coded incorrectly and was not weakly referencing anything. ...
Mike Bayer [Sat, 17 Jan 2009 06:27:02 +0000 (06:27 +0000)] 
WeakCompositeKey was coded incorrectly and was not weakly referencing anything.  However when repaired, the usage within RelationLoader._create_joins() still creates cycles between key elements and the value placed in the dict.  In the interests of risk reduction, WCK is now removed and the two caches it was used for are now non-cached.  Speed comparisons with one join/eager-heavy web application show no noticeable effect in response time.

16 years ago- misc savepoint test
Mike Bayer [Fri, 16 Jan 2009 20:16:31 +0000 (20:16 +0000)] 
- misc savepoint test
- don't need dialect_impl() for Text

16 years ago- Using delete-orphan on a many-to-many relation is deprecated.
Mike Bayer [Thu, 15 Jan 2009 18:08:48 +0000 (18:08 +0000)] 
- Using delete-orphan on a many-to-many relation is deprecated.
This produces misleading or erroneous results since SQLA does
not retrieve the full list of "parents" for m2m.  To get delete-orphan
behavior with an m2m table, use an explcit association class
so that the individual association row is treated as a parent.
[ticket:1281]

- delete-orphan cascade always requires delete cascade.  Specifying
delete-orphan without delete now raises a deprecation warning.
[ticket:1281]

16 years ago- Query.from_self() as well as query.subquery() both disable
Mike Bayer [Thu, 15 Jan 2009 17:08:56 +0000 (17:08 +0000)] 
- Query.from_self() as well as query.subquery() both disable
the rendering of eager joins inside the subquery produced.
The "disable all eager joins" feature is available publically
via a new query.enable_eagerloads() generative. [ticket:1276]
- Added a rudimental series of set operations to Query that
receive Query objects as arguments, including union(),
union_all(), intersect(), except_(), insertsect_all(),
except_all().  See the API documentation for
Query.union() for examples.
- Fixed bug that prevented Query.join() and eagerloads from
attaching to a query that selected from a union or aliased union.

16 years ago- use ForeignKey.column as _colspec source in Column._make_proxy(), preventing needless
Mike Bayer [Wed, 14 Jan 2009 20:48:01 +0000 (20:48 +0000)] 
- use ForeignKey.column as _colspec source in Column._make_proxy(), preventing needless
redundant string arithmetic in memoized ForeignKey.column method
- _pre_existing_column attribute becomes optional, only needed for original Table-bound column, not proxies
- compare two ForeignKeys based on target_fullname, don't assume self._colspec is a string
- Fixed bug when overriding a Column with a ForeignKey
on a reflected table, where derived columns (i.e. the
"virtual" columns of a select, etc.) would inadvertently
call upon schema-level cleanup logic intended only
for the original column. [ticket:1278]

16 years ago- Improved the methodology to handling percent signs in column
Mike Bayer [Wed, 14 Jan 2009 19:55:20 +0000 (19:55 +0000)] 
- Improved the methodology to handling percent signs in column
names from [ticket:1256].  Added more tests.  MySQL and
Postgres dialects still do not issue correct CREATE TABLE
statements for identifiers with percent signs in them.

16 years agoFix a hyperref
Lele Gaifax [Wed, 14 Jan 2009 17:02:17 +0000 (17:02 +0000)] 
Fix a hyperref

16 years agoprefer this methods
Mike Bayer [Tue, 13 Jan 2009 15:56:51 +0000 (15:56 +0000)] 
prefer this methods

16 years ago- It's an error to add new Column objects to a declarative class
Mike Bayer [Tue, 13 Jan 2009 15:45:59 +0000 (15:45 +0000)] 
- It's an error to add new Column objects to a declarative class
that specified an existing table using __table__.

16 years ago- Column with no name (as in declarative) won't raise a
Mike Bayer [Tue, 13 Jan 2009 15:38:38 +0000 (15:38 +0000)] 
- Column with no name (as in declarative) won't raise a
NoneType error when it's string output is requsted
(such as in a stack trace).

16 years ago- Fixed a bug with the unitofwork's "row switch" mechanism,
Mike Bayer [Tue, 13 Jan 2009 06:11:17 +0000 (06:11 +0000)] 
- Fixed a bug with the unitofwork's "row switch" mechanism,
i.e. the conversion of INSERT/DELETE into an UPDATE, when
combined with joined-table inheritance and an object
which contained no defined values for the child table where
an UPDATE with no SET clause would be rendered.

16 years ago- Tightened up **kw on ColumnProperty and its front-end functions.
Jason Kirtland [Tue, 13 Jan 2009 02:43:52 +0000 (02:43 +0000)] 
- Tightened up **kw on ColumnProperty and its front-end functions.

16 years agohappy new year
Mike Bayer [Mon, 12 Jan 2009 21:19:11 +0000 (21:19 +0000)] 
happy new year

16 years ago- Can now specify Column objects on subclasses which have no
Mike Bayer [Mon, 12 Jan 2009 20:36:06 +0000 (20:36 +0000)] 
- Can now specify Column objects on subclasses which have no
table of their own (i.e. use single table inheritance).
The columns will be appended to the base table, but only
mapped by the subclass.

- For both joined and single inheriting subclasses, the subclass
will only map those columns which are already mapped on the
superclass and those explicit on the subclass.  Other
columns that are present on the `Table` will be excluded
from the mapping by default, which can be disabled
by passing a blank `exclude_properties` collection to the
`__mapper_args__`.  This is so that single-inheriting
classes which define their own columns are the only classes
to map those columns.   The effect is actually a more organized
mapping than you'd normally get with explicit `mapper()`
calls unless you set up the `exclude_properties` arguments
explicitly.

- docs/tests

16 years agooh, its UNION ordering that's changing
Mike Bayer [Mon, 12 Jan 2009 16:50:19 +0000 (16:50 +0000)] 
oh, its UNION ordering that's changing

16 years agomore comparator tweaks
Mike Bayer [Mon, 12 Jan 2009 16:28:01 +0000 (16:28 +0000)] 
more comparator tweaks

16 years agoEnsure RowTuple names are correct by adding "key" to QueryableAttribute.
Mike Bayer [Mon, 12 Jan 2009 15:58:09 +0000 (15:58 +0000)] 
Ensure RowTuple names are correct by adding "key" to QueryableAttribute.

16 years agosuspect the InstrumentedSet/set comparison is failing for some reason
Mike Bayer [Mon, 12 Jan 2009 04:04:33 +0000 (04:04 +0000)] 
suspect the InstrumentedSet/set comparison is failing for some reason

16 years ago*more* sqlite appeasement
Mike Bayer [Mon, 12 Jan 2009 00:12:10 +0000 (00:12 +0000)] 
*more* sqlite appeasement

16 years agomysql/pg sensitive fixes
Mike Bayer [Mon, 12 Jan 2009 00:06:47 +0000 (00:06 +0000)] 
mysql/pg sensitive fixes

16 years agodon't INSERT a blank row if no rows passed. (breaks all the tests for SQLite on the...
Mike Bayer [Sun, 11 Jan 2009 23:55:35 +0000 (23:55 +0000)] 
don't INSERT a blank row if no rows passed. (breaks all the tests for SQLite on the buildbot....)

16 years agoNotSupportedError is a DBAPI wrapper which takes four args and is expected to origina...
Mike Bayer [Sun, 11 Jan 2009 23:37:19 +0000 (23:37 +0000)] 
NotSupportedError is a DBAPI wrapper which takes four args and is expected to originate from the DBAPI layer.
Moved those error throws to CompileError/InvalidRequestError.

16 years agoadded an order by
Mike Bayer [Sun, 11 Jan 2009 23:34:36 +0000 (23:34 +0000)] 
added an order by

16 years ago- Concrete inheriting mappers now instrument attributes which are inherited from...
Mike Bayer [Sun, 11 Jan 2009 22:41:20 +0000 (22:41 +0000)] 
- Concrete inheriting mappers now instrument attributes which are inherited from the superclass, but are not defined for the concrete mapper itself, with an InstrumentedAttribute that issues a descriptive error when accessed.  [ticket:1237]
- Added a new `relation()` keyword `back_populates`.  This allows configuation of backreferences using explicit relations. [ticket:781]  This is required when creating bidirectional relations between a hierarchy of concrete mappers and another class. [ticket:1237]
- Test coverage added for `relation()` objects specified on concrete mappers. [ticket:1237]
- A short documentation example added for bidirectional relations specified on concrete mappers. [ticket:1237]
- Mappers now instrument class attributes upon construction with the final InstrumentedAttribute object which remains persistent.  The `_CompileOnAttr`/`__getattribute__()` methodology has been removed.  The net effect is that Column-based mapped class attributes can now be used fully at the class level without invoking a mapper compilation operation, greatly simplifying typical usage patterns within declarative. [ticket:1269]
- Index now accepts column-oriented InstrumentedAttributes (i.e. column-based mapped class attributes) as column arguments.  [ticket:1214]
- Broke up attributes.register_attribute into two separate functions register_descriptor and register_attribute_impl.    The first assembles an InstrumentedAttribute or Proxy descriptor, the second assembles the AttributeImpl inside the InstrumentedAttribute.  register_attribute remains for outside compatibility.  The argument lists have been simplified.
- Removed class_manager argument from all but MutableScalarAttributeImpl (the branch had removed class_ as well but this has been reverted locally to support the serializer extension).
- Mapper's previous construction of _CompileOnAttr now moves to a new MapperProperty.instrument_class() method which is called on all MapperProperty objects at the moment the mapper receives them. All MapperProperty objects now call attributes.register_descriptor within that method to assemble an InstrumentedAttribute object directly.
- InstrumentedAttribute now receives the "property" attribute from the given PropComparator.  The guesswork within the constructor is removed, and allows "property" to serve as a mapper compilation trigger.
- RelationProperty.Comparator now triggers compilation of its parent mapper within a util.memoized_property accessor for the "property" attribute, which is used instead of "prop" (we can probably remove "prop").
- ColumnProperty and similar handle most of their initialization in their __init__ method since they must function fully at the class level before mappers are compiled.
- SynonymProperty and ComparableProperty move their class instrumentation logic to the new instrument_class() method.
- LoaderStrategy objects now add their state to existing InstrumentedAttributes using attributes.register_attribute_impl.  Both column and relation-based loaders instrument in the same way now, with a unique InstrumentedAttribute *and* a unique AttributeImpl for each class in the hierarchy.  attribute.parententity should now be correct in all cases.
- Removed unitofwork.register_attribute, and simpified the _register_attribute methods into a single function in strategies.py.  unitofwork exports the UOWEventHandler extension directly.
- To accomodate the multiple AttributeImpls across a class hierarchy, the sethasparent() method now uses an optional "parent_token" attribute to identify the "parent".  AbstractRelationLoader sends the MapperProperty along to serve as this token.  If the token isn't present (which is only the case in the attributes unit tests), the AttributeImpl is used instead, which is essentially the same as the old behavior.
- Added new ConcreteInheritedProperty MapperProperty.  This is invoked for concrete mappers within _adapt_inherited_property() to accomodate concrete mappers which inherit unhandled attributes from the base class, and basically raises an exception upon access.  [ticket:1237]
- attributes.register_attribute and register_descriptor will now re-instrument an attribute unconditionally without checking for a previous attribute.  Not sure if this is controversial. It's needed so that ConcreteInheritedProperty instrumentation can be overridden by an incoming legit MapperProperty without any complexity.
- Added new UninstrumentedColumnLoader LoaderStrategy.  This is used by the polymorphic_on argument when the given column is not represented within the mapped selectable, as is typical with a concrete scenario which maps to a polymorphic union.  It does not configure class instrumentation, keeping polymorphic_on from getting caught up in the new concrete attribute-checking logic.
- RelationProperty now records its "backref" attributes using a set assigned to `_reverse_property` instead of a scalar.  The `back_populates` keyword allows any number of properties to be involved in a single bidirectional relation.  Changes were needed to RelationProperty.merge(), DependencyProcessor to accomodate for the new multiple nature of this attribute.
- Generalized the methodology used by ManyToManyDP to check for "did the other dependency already handle this direction", building on the `_reverse_property` collection.
- post_update logic within dependency.py moves to use the same methodology as ManyToManyDP so that "did the other dependency do this already" checks are made to be specific to the two dependent instances.
- Caught that RelationProperty.merge() was writing to instance.__dict__ directly (!) - repaired to talk to instance_state.dict.
- Removed needless eager loading example from concrete mapper docs.
- Added test for [ticket:965].
- Added the usual Node class/nodes table to orm/_fixtures.py, but haven't used it for anything yet.   We can potentially update test/orm/query.py to use this fixture.
- Other test/documentation cleanup.

16 years agoCorrected SAVEPOINT support on the adodbapi dialect by changing the handling
Michael Trier [Sun, 11 Jan 2009 19:15:37 +0000 (19:15 +0000)] 
Corrected SAVEPOINT support on the adodbapi dialect by changing the handling
of savepoint_release, which is unsupported on mssql.

The way it was being discarded previously resulted in an empty execute being
called on the dialect; adodbapi didn't like that much.

16 years agoModified the do_begin handling in mssql to use the Cursor not the Connection.
Michael Trier [Sun, 11 Jan 2009 19:15:30 +0000 (19:15 +0000)] 
Modified the do_begin handling in mssql to use the Cursor not the Connection.

This corrects a problem where we were trying to call execute on the Connection
object instead of against the cursor. This is supported on pyodbc but not in
the DBAPI. Overrode the behavior in pymssql to not do special do_begin
processing on that dialect.

16 years ago- 0.5.1 bump
Mike Bayer [Sun, 11 Jan 2009 16:45:45 +0000 (16:45 +0000)] 
- 0.5.1 bump
- modernized mapper()/no table exception
- added __tablename__ exception to declarative since ppl keep complaining

16 years agoclarified docs on foreign key cascades, mapper extension methods during delete()...
Mike Bayer [Sat, 10 Jan 2009 01:30:56 +0000 (01:30 +0000)] 
clarified docs on foreign key cascades, mapper extension methods during delete() and update() methods

16 years agoquery.delete(False) is not so bad
Mike Bayer [Thu, 8 Jan 2009 15:33:34 +0000 (15:33 +0000)] 
query.delete(False) is not so bad

16 years agoAdded the missing keywords from MySQL 4.1 so they get escaped properly.
Ants Aasma [Thu, 8 Jan 2009 15:16:32 +0000 (15:16 +0000)] 
Added the missing keywords from MySQL 4.1 so they get escaped properly.

16 years agotypo
Mike Bayer [Wed, 7 Jan 2009 01:13:29 +0000 (01:13 +0000)] 
typo

16 years agoFormatting fixups
Jason Kirtland [Tue, 6 Jan 2009 19:11:06 +0000 (19:11 +0000)] 
Formatting fixups

16 years agodoh its 0.5.0
Mike Bayer [Tue, 6 Jan 2009 19:04:08 +0000 (19:04 +0000)] 
doh its 0.5.0

16 years agomove memusage to the isolation chamber rel_0_5_0
Mike Bayer [Tue, 6 Jan 2009 18:30:38 +0000 (18:30 +0000)] 
move memusage to the isolation chamber

16 years ago- removed 2.3 compat stuff
Mike Bayer [Tue, 6 Jan 2009 18:19:59 +0000 (18:19 +0000)] 
- removed 2.3 compat stuff
- updated MANIFEST for the newer build

16 years agonext release is 0.5.0
Mike Bayer [Tue, 6 Jan 2009 17:15:27 +0000 (17:15 +0000)] 
next release is 0.5.0

16 years ago- query.join() raises an error when the target of the join
Mike Bayer [Tue, 6 Jan 2009 04:30:11 +0000 (04:30 +0000)] 
- query.join() raises an error when the target of the join
doesn't match the property-based attribute - while it's
unlikely anyone is doing this, the SQLAlchemy author was
guilty of this particular loosey-goosey behavior.

16 years agoForgot to sqash a commit. Follow up on mssql dates refactoring.
Michael Trier [Mon, 5 Jan 2009 22:33:09 +0000 (22:33 +0000)] 
Forgot to sqash a commit. Follow up on mssql dates refactoring.

16 years agomssql date / time refactor.
Michael Trier [Mon, 5 Jan 2009 22:05:51 +0000 (22:05 +0000)] 
mssql date / time refactor.
- Added new MSSmallDateTime, MSDateTime2, MSDateTimeOffset, MSTime types
- Refactored the Date/Time types. The smalldatetime data type no longer
  truncates to a date only, and will now be mapped to the MSSmallDateTime
  type. Closes #1254.

16 years agomade the "you passed a non-aliased selectable" warning scarier. scarier !
Mike Bayer [Mon, 5 Jan 2009 20:02:23 +0000 (20:02 +0000)] 
made the "you passed a non-aliased selectable" warning scarier.  scarier !

16 years ago- property.of_type() is now recognized on a single-table
Mike Bayer [Mon, 5 Jan 2009 19:23:56 +0000 (19:23 +0000)] 
- property.of_type() is now recognized on a single-table
inheriting target, when used in the context of
prop.of_type(..).any()/has(), as well as
query.join(prop.of_type(...)).

16 years agoif at first you don't succeed, fail, fail again
Mike Bayer [Mon, 5 Jan 2009 17:43:40 +0000 (17:43 +0000)] 
if at first you don't succeed, fail, fail again

16 years agoassume table.schema, not None, when constraint reflection has no explicit schema...
Mike Bayer [Mon, 5 Jan 2009 16:08:12 +0000 (16:08 +0000)] 
assume table.schema, not None, when constraint reflection has no explicit schema.  unit test TBD.

16 years ago- Generalized the IdentityManagedState._instance_dict() callable
Mike Bayer [Mon, 5 Jan 2009 15:34:09 +0000 (15:34 +0000)] 
- Generalized the IdentityManagedState._instance_dict() callable
to the IdentityMap class so that Weak/StrongInstanceDict both
have the same behavior wrt the state referencing the map
- Fixed bug when using weak_instance_map=False where modified
events would not be intercepted for a flush(). [ticket:1272]

16 years agoCorrected a few docs and didn't realize we put pyodbc first in the search list.
Michael Trier [Sun, 4 Jan 2009 03:31:05 +0000 (03:31 +0000)] 
Corrected a few docs and didn't realize we put pyodbc first in the search list.

16 years agodocstrings for the hated fold_equivalents argument/function
Mike Bayer [Sat, 3 Jan 2009 22:40:58 +0000 (22:40 +0000)] 
docstrings for the hated fold_equivalents argument/function

16 years agoadded teardown_instance() to complement setup_instance().
Mike Bayer [Sat, 3 Jan 2009 22:15:38 +0000 (22:15 +0000)] 
added teardown_instance() to complement setup_instance().
Based on the instance/class agnostic behavior of ClassManager, this might be the best we can
do regarding [ticket:860]

16 years ago- query.order_by() accepts None which will remove any pending
Mike Bayer [Sat, 3 Jan 2009 20:52:34 +0000 (20:52 +0000)] 
- query.order_by() accepts None which will remove any pending
order_by state from the query, as well as cancel out any
mapper/relation configured ordering. This is primarily useful
for overriding the ordering specified on a dynamic_loader().
[ticket:1079]

16 years agoadded the significant test for #1247
Mike Bayer [Sat, 3 Jan 2009 20:31:43 +0000 (20:31 +0000)] 
added the significant test for #1247

16 years agoCorrected an issue on mssql where Numerics would not accept an int.
Michael Trier [Sat, 3 Jan 2009 20:07:17 +0000 (20:07 +0000)] 
Corrected an issue on mssql where Numerics would not accept an int.

16 years agoadded order_by test coverage as per [ticket:1218]
Mike Bayer [Sat, 3 Jan 2009 20:06:53 +0000 (20:06 +0000)] 
added order_by test coverage as per [ticket:1218]

16 years agoone more typo
Mike Bayer [Sat, 3 Jan 2009 19:37:17 +0000 (19:37 +0000)] 
one more typo

16 years agofixed critical errors in assocationproxy docs while we wait for the all new and impro...
Mike Bayer [Sat, 3 Jan 2009 19:35:59 +0000 (19:35 +0000)] 
fixed critical errors in assocationproxy docs while we wait for the all new and improved version

16 years ago- Fixed bug which was preventing out params of certain types
Mike Bayer [Sat, 3 Jan 2009 18:58:52 +0000 (18:58 +0000)] 
- Fixed bug which was preventing out params of certain types
from being received; thanks a ton to huddlej at wwu.edu !
[ticket:1265]

16 years agoidentified the SQLite changes which affect default reflection
Mike Bayer [Sat, 3 Jan 2009 18:06:59 +0000 (18:06 +0000)] 
identified the SQLite changes which affect default reflection

16 years agoAdded a note about mssql compatibility levels.
Michael Trier [Sat, 3 Jan 2009 17:42:31 +0000 (17:42 +0000)] 
Added a note about mssql compatibility levels.

16 years agosend a NASA probe to the buildbot
Mike Bayer [Sat, 3 Jan 2009 17:28:43 +0000 (17:28 +0000)] 
send a NASA probe to the buildbot

16 years agoFlagged two versioning tests as failing on MSSQL. The flush occurs even though
Michael Trier [Sat, 3 Jan 2009 05:32:11 +0000 (05:32 +0000)] 
Flagged two versioning tests as failing on MSSQL. The flush occurs even though
there should be a concurrency issue.

I cheated and marked these as FIXME. With this commit all MSSQL tests pass
now. The work of correcting the ``fails_on`` tests begins.

16 years agosqlite tests run fine locally but the buildbot seems to have an issue. Perhaps this...
Michael Trier [Sat, 3 Jan 2009 04:57:31 +0000 (04:57 +0000)] 
sqlite tests run fine locally but the buildbot seems to have an issue. Perhaps this will work.

16 years agoSome of the ordering fixes messed up MySQL. This should work better. Better testing...
Michael Trier [Sat, 3 Jan 2009 04:57:29 +0000 (04:57 +0000)] 
Some of the ordering fixes messed up MySQL. This should work better. Better testing next time.

16 years agoModified DefaultTest in order to get passage on mssql and still test the right stuff.
Michael Trier [Sat, 3 Jan 2009 03:59:54 +0000 (03:59 +0000)] 
Modified DefaultTest in order to get passage on mssql and still test the right stuff.

16 years agoExcluded another failing test from the mssql dialect.
Michael Trier [Sat, 3 Jan 2009 03:59:49 +0000 (03:59 +0000)] 
Excluded another failing test from the mssql dialect.

MSSQL doesn't allow ON UPDATE for self-referential keys. The tree of cascading
referential actions must only have one path to a particular table on the
cascading referential actions tree.

16 years ago- Fixed some deep "column correspondence" issues which could
Mike Bayer [Sat, 3 Jan 2009 02:42:34 +0000 (02:42 +0000)] 
- Fixed some deep "column correspondence" issues which could
impact a Query made against a selectable containing
multiple versions of the same table, as well as
unions and similar which contained the same table columns
in different column positions at different levels.
[ticket:1268]

16 years agoA couple of ordering fixes for the tests.
Michael Trier [Sat, 3 Jan 2009 02:32:10 +0000 (02:32 +0000)] 
A couple of ordering fixes for the tests.

16 years agosqlite reflection now stores the actual DefaultClause value for the column.
Michael Trier [Fri, 2 Jan 2009 22:40:45 +0000 (22:40 +0000)] 
sqlite reflection now stores the actual DefaultClause value for the column.

16 years ago- mysql, postgres: "%" signs in text() constructs are automatically escaped to "%%".
Mike Bayer [Fri, 2 Jan 2009 21:24:17 +0000 (21:24 +0000)] 
- mysql, postgres: "%" signs in text() constructs are automatically escaped to "%%".
Because of the backwards incompatible nature of this change,
a warning is emitted if '%%' is detected in the string.  [ticket:1267]

16 years agoSwap out text_as_varchar on the mssql dialect for the Types tests.
Michael Trier [Fri, 2 Jan 2009 20:33:14 +0000 (20:33 +0000)] 
Swap out text_as_varchar on the mssql dialect for the Types tests.

16 years agoMarked a couple of unicode schema tests as failing on mssql.
Michael Trier [Fri, 2 Jan 2009 20:33:11 +0000 (20:33 +0000)] 
Marked a couple of unicode schema tests as failing on mssql.

16 years agofound some more _Function->Function
Mike Bayer [Fri, 2 Jan 2009 20:00:31 +0000 (20:00 +0000)] 
found some more _Function->Function

16 years ago- sqlalchemy.sql.expression.Function is now a public
Mike Bayer [Fri, 2 Jan 2009 19:45:05 +0000 (19:45 +0000)] 
- sqlalchemy.sql.expression.Function is now a public
class.  It can be subclassed to provide user-defined
SQL functions in an imperative style, including
with pre-established behaviors.  The postgis.py
example illustrates one usage of this.

16 years agoMarked mssql test as failing since it cannot update identity columns.
Michael Trier [Fri, 2 Jan 2009 18:25:08 +0000 (18:25 +0000)] 
Marked mssql test as failing since it cannot update identity columns.

16 years agoMapped char_length to the LEN() function for mssql.
Michael Trier [Fri, 2 Jan 2009 18:25:04 +0000 (18:25 +0000)] 
Mapped char_length to the LEN() function for mssql.

16 years agoCorrected a UOW DefaultTest for mssql because it requires the identity column setup.
Michael Trier [Fri, 2 Jan 2009 18:25:00 +0000 (18:25 +0000)] 
Corrected a UOW DefaultTest for mssql because it requires the identity column setup.

16 years agoAdded ability to use subselects within INSERTS on mssql.
Michael Trier [Fri, 2 Jan 2009 18:24:57 +0000 (18:24 +0000)] 
Added ability to use subselects within INSERTS on mssql.

16 years agoSpecialized trigger tests to accomodate mssql syntax.
Michael Trier [Fri, 2 Jan 2009 18:24:52 +0000 (18:24 +0000)] 
Specialized trigger tests to accomodate mssql syntax.

16 years agoAdded note for mssql about using snapshot isolation in order to get multiple
Michael Trier [Fri, 2 Jan 2009 18:24:49 +0000 (18:24 +0000)] 
Added note for mssql about using snapshot isolation in order to get multiple
connection session tests to pass.

16 years agoTurned off the implicit transaction behavior of MSSQL.
Michael Trier [Fri, 2 Jan 2009 18:24:47 +0000 (18:24 +0000)] 
Turned off the implicit transaction behavior of MSSQL.

This corrects the savepoint tests.

16 years ago- Custom comparator classes used in conjunction with
Mike Bayer [Fri, 2 Jan 2009 18:22:50 +0000 (18:22 +0000)] 
- Custom comparator classes used in conjunction with
column_property(), relation() etc. can define
new comparison methods on the Comparator, which will
become available via __getattr__() on the
InstrumentedAttribute.   In the case of synonym()
or comparable_property(), attributes are resolved first
on the user-defined descriptor, then on the user-defined
comparator.