Commits

Show all
Author Commit Message Labels Comments Date
Michael Trier
Corrected problem in docstring.
Tags
rel_0_5beta3
Mike Bayer
- fixed endless loop bug which could occur within a mapper's deferred load of inherited attributes. - declarative initialization of Columns adjusted so that non-renamed columns initialize in the same way as a non declarative mapper. This allows an inheriting mapper to set up its same-named "id" columns in particular such that the parent "id" column is favored over the child column, reducing database round trips when this value is request…
Lele Gaifax
Typo
Mike Bayer
some doc stuff
Mike Bayer
removed redundant check to _enable_transaction_accounting
Mike Bayer
- compiler visit_label() checks a flag "within_order_by" and will render its own name and not its contained expression, if the dialect reports true for supports_simple_order_by_label. the flag is not propagated forwards, meant to closely mimic the syntax Postgres expects which is that only a simple name can be in the ORDER BY, not a more complex expression or function call with the label name embedded (mysql and sqlite support more complex expressions). This further sets the standard for propigation of **kwargs within compiler, that we can't just send **kwargs along blindly to each XXX.process() call; whenever a **kwarg needs to propagate through, most methods will have to be aware of it and know when they should send it on forward and when not. This was actually already the case with result_map as well. The supports_simple_order_by dialect flag…
Mike Bayer
descriptive error message raised when string-based relation() expressions inadvertently mistake a PropertyLoader for a ColumnLoader property
Mike Bayer
- renamed autoexpire to expire_on_commit - renamed SessionTransaction autoflush to reentrant_flush to more clearly state its purpose - added _enable_transaction_accounting, flag for Mike Bernson which disables the whole 0.5 transaction state management; the system depends on expiry on rollback in order to function.
Mike Bayer
a correction to the recent should_exclude change. should_exclude is a little mixed up as to when it honors "column_prefix" and when it doesn't, depending on whether or not the prop is coming from a column name or from an inherited class. Will need more testing to uncover potential issues here.
Mike Bayer
- The "entity_name" feature of SQLAlchemy mappers has been removed. For rationale, see http://groups.google.com/group/sqlalchemy/browse_thread/thread/9e23a0641a88b96d?hl=en
jason kirtland
- Refactored declarative_base() as a thin wrapper over type() - The supplied __init__ is now optional - The name of the generated class can be specified - Accepts multiple bases
jason kirtland
- declarative.declarative_base(): takes a 'metaclass' arg, defaulting to DeclarativeMeta renamed 'engine' arg to 'bind', backward compat documented
Jonathan Ellis
make ProxyImpl a top-level class (this makes it importable by FormAlchemy, making reverse-engineering synonyms a bit easier)
Mike Bayer
further refinement to the inheritance "descriptor" detection such that local columns will still override superclass descriptors.
Mike Bayer
test case to disprove [ticket:1126]
Mike Bayer
added MutableType, Concatenable to __all__
Mike Bayer
- Fixed bug whereby the "unsaved, pending instance" FlushError raised for a pending orphan would not take superclass mappers into account when generating the list of relations responsible for the error.
Mike Bayer
relation.order_by requires _literal_as_column conversion as well
Gaëtan de Menten
typo
Michael Trier
Corrects reflecttable in firebird database. Closes #1119.
Michael Trier
Raised an error when sqlite version does not support default values. Addresses #909 in a purposeful way.
Mike Bayer
added dummy column to correct results on sqlite
jason kirtland
- func.count() with no argument emits COUNT(*)
Michael Trier
Corrected problem with detecting closed connections. Fixed issues in reflecttable for reflecting the mssql tables. Removed unicode reflection test from mssql. Need to investigate this further.
Mike Bayer
allow SQLA-defaults on table columns that are excluded in the mapper
Mike Bayer
- more accurate changelog message - generalized the descriptor detection to any object with a __get__ attribute
Mike Bayer
- An inheriting class can now override an attribute inherited from the base class with a plain descriptor, or exclude an inherited attribute via the include_properties/exclude_properties collections.
Mike Bayer
- A critical fix to dynamic relations allows the "modified" history to be properly cleared after a flush().
Mike Bayer
- Some improvements to the _CompileOnAttr mechanism which should reduce the probability of "Attribute x was not replaced during compile" warnings. (this generally applies to SQLA hackers, like Elixir devs).
Mike Bayer
- Class-bound attributes sent as arguments to relation()'s remote_side and foreign_keys parameters are now accepted, allowing them to be used with declarative.
  1. Prev
  2. Next