Mike Bayer [Fri, 8 Jun 2012 20:00:23 +0000 (16:00 -0400)]
Add some `Sphinx` related version informations paragraph-level markups,
such as ``.. versionaddedd::``, ``.. versionchanged::`` and ``.. deprecated::``.
Mike Bayer [Mon, 15 Feb 2010 20:44:31 +0000 (20:44 +0000)]
- Removed "None" from a connection.execute() in the dialect
which potentially allows pygresql to work as an alternate
DBAPI (but this is *not supported!!!*) [ticket:1691]
Mike Bayer [Sun, 10 Jan 2010 18:29:48 +0000 (18:29 +0000)]
this definitely has to go - theres bugs in merge(), serialization which
prevent it from being useful. will have a much more comprehensive example in
0.6.
Mike Bayer [Thu, 7 Jan 2010 00:07:19 +0000 (00:07 +0000)]
- Default generators like Sequence() translate correctly
across a copy() operation.
- Sequence() and other DefaultGenerator objects are accepted
as the value for the "default" and "onupdate" keyword
arguments of Column, in addition to being accepted
positionally.
Mike Bayer [Sun, 3 Jan 2010 20:58:04 +0000 (20:58 +0000)]
- merge of trunk r6611
- Fixed a column arithmetic bug that affected column
correspondence for cloned selectables which contain
free-standing column expressions. This bug is
generally only noticeable when exercising newer
ORM behavior only availble in 0.6 via [ticket:1568],
but is more correct at the SQL expression level
as well. [ticket:1617]
Mike Bayer [Sat, 2 Jan 2010 03:23:33 +0000 (03:23 +0000)]
- The copy() method on Column now supports uninitialized,
unnamed Column objects. This allows easy creation of
declarative helpers which place common columns on multiple
subclasses.
Mike Bayer [Tue, 29 Dec 2009 02:35:42 +0000 (02:35 +0000)]
- The extract() function, which was slightly improved in
0.5.7, needed a lot more work to generate the correct
typecast (the typecasts appear to be necessary in PG's
EXTRACT quite a lot of the time). The typecast is
now generated using a rule dictionary based
on PG's documentation for date/time/interval arithmetic.
It also accepts text() constructs again, which was broken
in 0.5.7. [ticket:1647]
Mike Bayer [Sat, 26 Dec 2009 22:34:28 +0000 (22:34 +0000)]
- The "table_names" dialect function, used by MetaData
.reflect(), omits Oracle "index overflow tables", a system
table generated by Oracle when "index only tables"
with overflow are used. These tables aren't accessible
via SQL and can't be reflected. [ticket:1637]
Mike Bayer [Mon, 14 Dec 2009 01:34:06 +0000 (01:34 +0000)]
- merged r6553 from trunk
- Session.merge() now properly overwrites a many-to-one or
uselist=False attribute to None if the attribute
is also None in the given object to be merged.
Mike Bayer [Tue, 8 Dec 2009 03:10:59 +0000 (03:10 +0000)]
- merge of trunk r6544
- Session.execute() now locates table- and
mapper-specific binds based on a passed
in expression which is an insert()/update()/delete()
construct. [ticket:1054]
Mike Bayer [Tue, 8 Dec 2009 01:54:08 +0000 (01:54 +0000)]
- backport of r6540
- The "use get" behavior of many-to-one relations, i.e. that a
lazy load will fallback to the possibly cached query.get()
value, now works across join conditions where the two compared
types are not exactly the same class, but share the same
"affinity" - i.e. Integer and SmallInteger. Also allows
combinations of reflected and non-reflected types to work
with 0.5 style type reflection, such as PGText/Text (note 0.6
reflects types as their generic versions). [ticket:1556]
- types now support an "affinity comparison" operation, i.e.
that an Integer/SmallInteger are "compatible", or
a Text/String, PickleType/Binary, etc. Part of
[ticket:1556].
Mike Bayer [Sun, 15 Nov 2009 20:11:42 +0000 (20:11 +0000)]
- Fixed the behavior of extract() to apply operator
precedence rules to the "::" operator when applying
the "timestamp" cast - ensures proper parenthesization.
[ticket:1611]
Mike Bayer [Wed, 4 Nov 2009 13:28:28 +0000 (13:28 +0000)]
- Fixed bug where Query would crash if a join() with no clear
"left" side were called when a non-mapped column entity
appeared in the columns list. [ticket:1602]
Mike Bayer [Sun, 25 Oct 2009 01:40:17 +0000 (01:40 +0000)]
- Fixed a slight inaccuracy in the sharding example.
Comparing equivalence of columns in the ORM is best
accomplished using col1.shares_lineage(col2).
[ticket:1491]
Mike Bayer [Fri, 23 Oct 2009 19:46:36 +0000 (19:46 +0000)]
- Mutable collection passed to the "extension" attribute
of relation(), column_property() etc. will not be mutated
or shared among multiple instrumentation calls, preventing
duplicate extensions, such as backref populators,
from being inserted into the list.
[ticket:1585]
Mike Bayer [Tue, 20 Oct 2009 16:56:15 +0000 (16:56 +0000)]
- Repeat expressions in the columns clause of a select
are deduped based on the identity of each clause element,
not the actual string. This allows positional
elements to render correctly even if they all render
identically, such as "qmark" style bind parameters.
[ticket:1574]
Mike Bayer [Thu, 15 Oct 2009 20:52:30 +0000 (20:52 +0000)]
- A column can be added to a joined-table declarative
superclass after the class has been constructed
(i.e. via class-level attribute assignment), and
the column will be propagated down to
subclasses. [ticket:1570] This is the reverse
situation as that of [ticket:1523], fixed in 0.5.6.
Mike Bayer [Wed, 30 Sep 2009 20:57:40 +0000 (20:57 +0000)]
- Added support for reflecting the DOUBLE PRECISION type,
via a new postgres.PGDoublePrecision object.
This is postgresql.DOUBLE_PRECISION in 0.6.
[ticket:1085]
Mike Bayer [Wed, 16 Sep 2009 20:35:27 +0000 (20:35 +0000)]
- move the tests to test_query
- the option needs the original mapper to pull the prop from, in the case the eagerload is *from* a joined-table subclass mapper.
had to change the contract of PropertyOption to pass
an additional list "mappers" which contains the actual parent mappers.
Mike Bayer [Fri, 28 Aug 2009 20:29:39 +0000 (20:29 +0000)]
- Fixed an obscure issue whereby a joined-table subclass
with a self-referential eager load on the base class
would populate the related object's "subclass" table with
data from the "subclass" table of the parent.
[ticket:1485]
Mike Bayer [Sun, 2 Aug 2009 18:13:07 +0000 (18:13 +0000)]
- UPDATE and DELETE do not support ORDER BY, LIMIT, OFFSET,
etc. in standard SQL. Query.update() and Query.delete()
now raise an exception if any of limit(), offset(),
order_by(), group_by(), or distinct() have been
called. [ticket:1487]
Mike Bayer [Sun, 2 Aug 2009 17:51:33 +0000 (17:51 +0000)]
- Simplified the sweep of instrumentation in strategies._register_attribute
- Improved support for MapperProperty objects overriding
that of an inherited mapper for non-concrete
inheritance setups - attribute extensions won't randomly
collide with each other. [ticket:1488]
- Added AttributeExtension to sqlalchemy.orm.__all__