2012-05-23 07:27:03 +00:00
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Wed May 23 06:44:12 UTC 2012 - highwaystar.ru@gmail.com
|
|
|
|
|
|
|
|
|
|
- python3 package added
|
|
|
|
|
- removed BuildRequires update-desktop-files, because there is no
|
|
|
|
|
desktop files in package
|
|
|
|
|
- minor spec improvement
|
|
|
|
|
|
2012-05-06 12:32:53 +00:00
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Sun May 6 12:22:59 UTC 2012 - lars@linux-schulserver.de
|
|
|
|
|
|
|
|
|
|
- update to 0.7.7:
|
|
|
|
|
* orm
|
|
|
|
|
- [bug] Fixed issue in unit of work whereby setting a non-None
|
|
|
|
|
self-referential many-to-one relationship to None would fail
|
|
|
|
|
to persist the change if the former value was not already loaded.
|
|
|
|
|
[ticket:2477].
|
|
|
|
|
|
|
|
|
|
- [feature] Added prefix_with() method to Query, calls upon
|
|
|
|
|
select().prefix_with() to allow placement of MySQL SELECT
|
|
|
|
|
directives in statements. Courtesy Diana Clarke [ticket:2443]
|
|
|
|
|
|
|
|
|
|
- [bug] Fixed bug in 0.7.6 introduced by [ticket:2409] whereby
|
|
|
|
|
column_mapped_collection used against columns that were mapped as
|
|
|
|
|
joins or other indirect selectables would fail to function.
|
|
|
|
|
|
|
|
|
|
- [feature] Added new flag to @validates include_removes. When True,
|
|
|
|
|
collection remove and attribute del events will also be sent to
|
|
|
|
|
the validation function, which accepts an additional argument
|
|
|
|
|
"is_remove" when this flag is used.
|
|
|
|
|
|
|
|
|
|
- [bug] Fixed bug whereby polymorphic_on column that's not otherwise
|
|
|
|
|
mapped on the class would be incorrectly included in a merge()
|
|
|
|
|
operation, raising an error. [ticket:2449]
|
|
|
|
|
|
|
|
|
|
- [bug] Fixed bug in expression annotation mechanics which could
|
|
|
|
|
lead to incorrect rendering of SELECT statements with aliases
|
|
|
|
|
and joins, particularly when using column_property(). [ticket:2453]
|
|
|
|
|
|
|
|
|
|
- [bug] Fixed bug which would prevent OrderingList from being
|
|
|
|
|
pickleable [ticket:2454]. Courtesy Jeff Dairiki
|
|
|
|
|
|
|
|
|
|
- [bug] Fixed bug in relationship comparisons whereby calling
|
|
|
|
|
unimplemented methods like SomeClass.somerelationship.like()
|
|
|
|
|
would produce a recursion overflow, instead of NotImplementedError.
|
|
|
|
|
|
|
|
|
|
* sql
|
|
|
|
|
- [bug] Removed warning when Index is created with no columns;
|
|
|
|
|
while this might not be what the user intended, it is a valid use case
|
|
|
|
|
as an Index could be a placeholder for just an index of a certain name.
|
|
|
|
|
|
|
|
|
|
- [feature] Added new connection event dbapi_error(). Is called for
|
|
|
|
|
all DBAPI-level errors passing the original DBAPI exception before
|
|
|
|
|
SQLAlchemy modifies the state of the cursor. "with engine.begin()",
|
|
|
|
|
the newly acquired Connection is closed explicitly before propagating
|
|
|
|
|
the exception onward normally.
|
|
|
|
|
|
|
|
|
|
- [bug] Add BINARY, VARBINARY to types.__all__, [ticket:2474]
|
|
|
|
|
|
|
|
|
|
* mssql
|
|
|
|
|
- [feature] Added interim create_engine flag supports_unicode_binds
|
|
|
|
|
to PyODBC dialect, to force whether or not the dialect passes
|
|
|
|
|
Python unicode literals to PyODBC or not.
|
|
|
|
|
|
|
|
|
|
- [bug] Repaired the use_scope_identity create_engine() flag when
|
|
|
|
|
using the pyodbc dialect. Previously this flag would be ignored if
|
|
|
|
|
set to False. When set to False, you'll get "SELECT @@identity"
|
|
|
|
|
after each INSERT to get at the last inserted ID, for those tables
|
|
|
|
|
which have "implicit_returning" set to False.
|
|
|
|
|
|
|
|
|
|
- [bug] UPDATE..FROM syntax with SQL Server requires that the updated
|
|
|
|
|
table be present in the FROM clause when an alias of that table is
|
|
|
|
|
also present in the FROM clause. The updated table is now always present
|
|
|
|
|
in the FROM, when FROM is present in the first place. Courtesy sayap.
|
|
|
|
|
[ticket:2468]
|
|
|
|
|
|
|
|
|
|
* postgresql
|
|
|
|
|
- [feature] Added new for_update/with_lockmode() options for Postgresql:
|
|
|
|
|
for_update="read"/ with_lockmode("read"), for_update="read_nowait"/
|
|
|
|
|
with_lockmode("read_nowait"). These emit "FOR SHARE" and "FOR SHARE
|
|
|
|
|
NOWAIT", respectively. Courtesy Diana Clarke [ticket:2445]
|
|
|
|
|
|
|
|
|
|
- [bug] removed unnecessary table clause when reflecting domains, [ticket:2473]
|
|
|
|
|
|
|
|
|
|
* mysql
|
|
|
|
|
- [bug] Fixed bug whereby column name inside of "KEY" clause for autoincrement
|
|
|
|
|
composite column with InnoDB would double quote a name that's a reserved
|
|
|
|
|
word. Courtesy Jeff Dairiki. [ticket:2460]
|
|
|
|
|
|
|
|
|
|
- [bug] Fixed bug whereby get_view_names() for "information_schema" schema
|
|
|
|
|
would fail to retrieve views marked as "SYSTEM VIEW". courtesy Matthew Turland.
|
|
|
|
|
|
|
|
|
|
- [bug] Fixed bug whereby if cast() is used on a SQL expression whose type
|
|
|
|
|
is not supported by cast() and therefore CAST isn't rendered by the
|
|
|
|
|
dialect, the order of evaluation could change if the casted expression
|
|
|
|
|
required that it be grouped; grouping is now applied to those expressions.
|
|
|
|
|
|
|
|
|
|
* sqlite
|
|
|
|
|
- [feature] Added SQLite execution option "sqlite_raw_colnames=True", will
|
|
|
|
|
bypass attempts to remove "." from column names returned by SQLite
|
|
|
|
|
cursor.description. [ticket:2475]
|
|
|
|
|
|
2012-04-30 16:53:59 +00:00
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Mon Apr 30 09:13:02 UTC 2012 - cfarrell@suse.com
|
|
|
|
|
|
|
|
|
|
- Update to 0.7.6
|
|
|
|
|
* orm
|
|
|
|
|
- [bug] Fixed event registration bug
|
|
|
|
|
which would primarily show up as
|
|
|
|
|
events not being registered with
|
|
|
|
|
sessionmaker() instances created
|
|
|
|
|
after the event was associated
|
|
|
|
|
with the Session class. [ticket:2424]
|
|
|
|
|
|
|
|
|
|
- [bug] Fixed bug whereby a primaryjoin
|
|
|
|
|
condition with a "literal" in it would
|
|
|
|
|
raise an error on compile with certain
|
|
|
|
|
kinds of deeply nested expressions
|
|
|
|
|
which also needed to render the same
|
|
|
|
|
bound parameter name more than once.
|
|
|
|
|
[ticket:2425]
|
|
|
|
|
|
|
|
|
|
- [feature] Added "no_autoflush" context
|
|
|
|
|
manager to Session, used with with:
|
|
|
|
|
will temporarily disable autoflush.
|
|
|
|
|
|
|
|
|
|
- [feature] Added cte() method to Query,
|
|
|
|
|
invokes common table expression support
|
|
|
|
|
from the Core (see below). [ticket:1859]
|
|
|
|
|
|
|
|
|
|
- [bug] Removed the check for number of
|
|
|
|
|
rows affected when doing a multi-delete
|
|
|
|
|
against mapped objects. If an ON DELETE
|
|
|
|
|
CASCADE exists between two rows, we can't
|
|
|
|
|
get an accurate rowcount from the DBAPI;
|
|
|
|
|
this particular count is not supported
|
|
|
|
|
on most DBAPIs in any case, MySQLdb
|
|
|
|
|
is the notable case where it is.
|
|
|
|
|
[ticket:2403]
|
|
|
|
|
|
|
|
|
|
- [bug] Fixed bug whereby objects using
|
|
|
|
|
attribute_mapped_collection or
|
|
|
|
|
column_mapped_collection could not be
|
|
|
|
|
pickled. [ticket:2409]
|
|
|
|
|
|
|
|
|
|
- [bug] Fixed bug whereby MappedCollection
|
|
|
|
|
would not get the appropriate collection
|
|
|
|
|
instrumentation if it were only used
|
|
|
|
|
in a custom subclass that used
|
|
|
|
|
@collection.internally_instrumented.
|
|
|
|
|
[ticket:2406]
|
|
|
|
|
|
|
|
|
|
- [bug] Fixed bug whereby SQL adaption mechanics
|
|
|
|
|
would fail in a very nested scenario involving
|
|
|
|
|
joined-inheritance, joinedload(), limit(), and a
|
|
|
|
|
derived function in the columns clause.
|
|
|
|
|
[ticket:2419]
|
|
|
|
|
|
|
|
|
|
- [bug] Fixed the repr() for CascadeOptions to
|
|
|
|
|
include refresh-expire. Also reworked
|
|
|
|
|
CascadeOptions to be a <frozenset>.
|
|
|
|
|
[ticket:2417]
|
|
|
|
|
|
|
|
|
|
- [feature] Added the ability to query for
|
|
|
|
|
Table-bound column names when using
|
|
|
|
|
query(sometable).filter_by(colname=value).
|
|
|
|
|
[ticket:2400]
|
|
|
|
|
|
|
|
|
|
- [bug] Improved the "declarative reflection"
|
|
|
|
|
example to support single-table inheritance,
|
|
|
|
|
multiple calls to prepare(), tables that
|
|
|
|
|
are present in alternate schemas,
|
|
|
|
|
establishing only a subset of classes
|
|
|
|
|
as reflected.
|
|
|
|
|
|
|
|
|
|
- [bug] Scaled back the test applied within
|
|
|
|
|
flush() to check for UPDATE against partially
|
|
|
|
|
NULL PK within one table to only actually
|
|
|
|
|
happen if there's really an UPDATE to occur.
|
|
|
|
|
[ticket:2390]
|
|
|
|
|
|
|
|
|
|
- [bug] Fixed bug whereby if a method name
|
|
|
|
|
conflicted with a column name, a
|
|
|
|
|
TypeError would be raised when the mapper
|
|
|
|
|
tried to inspect the __get__() method
|
|
|
|
|
on the method object. [ticket:2352]
|
|
|
|
|
|
|
|
|
|
* sql
|
|
|
|
|
- [bug] Fixed memory leak in core which would
|
|
|
|
|
occur when C extensions were used with
|
|
|
|
|
particular types of result fetches,
|
|
|
|
|
in particular when orm query.count()
|
|
|
|
|
were called. [ticket:2427]
|
|
|
|
|
|
|
|
|
|
- [bug] Fixed issue whereby attribute-based
|
|
|
|
|
column access on a row would raise
|
|
|
|
|
AttributeError with non-C version,
|
|
|
|
|
NoSuchColumnError with C version. Now
|
|
|
|
|
raises AttributeError in both cases.
|
|
|
|
|
[ticket:2398]
|
|
|
|
|
|
|
|
|
|
- [feature] Added support for SQL standard
|
|
|
|
|
common table expressions (CTE), allowing
|
|
|
|
|
SELECT objects as the CTE source (DML
|
|
|
|
|
not yet supported). This is invoked via
|
|
|
|
|
the cte() method on any select() construct.
|
|
|
|
|
[ticket:1859]
|
|
|
|
|
|
|
|
|
|
- [bug] Added support for using the .key
|
|
|
|
|
of a Column as a string identifier in a
|
|
|
|
|
result set row. The .key is currently
|
|
|
|
|
listed as an "alternate" name for a column,
|
|
|
|
|
and is superseded by the name of a column
|
|
|
|
|
which has that key value as its regular name.
|
|
|
|
|
For the next major release
|
|
|
|
|
of SQLAlchemy we may reverse this precedence
|
|
|
|
|
so that .key takes precedence, but this
|
|
|
|
|
is not decided on yet. [ticket:2392]
|
|
|
|
|
|
|
|
|
|
- [bug] A warning is emitted when a not-present
|
|
|
|
|
column is stated in the values() clause
|
|
|
|
|
of an insert() or update() construct.
|
|
|
|
|
Will move to an exception in 0.8.
|
|
|
|
|
[ticket:2413]
|
|
|
|
|
|
|
|
|
|
- [bug] A significant change to how labeling
|
|
|
|
|
is applied to columns in SELECT statements
|
|
|
|
|
allows "truncated" labels, that is label names
|
|
|
|
|
that are generated in Python which exceed
|
|
|
|
|
the maximum identifier length (note this is
|
|
|
|
|
configurable via label_length on create_engine()),
|
|
|
|
|
to be properly referenced when rendered inside
|
|
|
|
|
of a subquery, as well as to be present
|
|
|
|
|
in a result set row using their original
|
|
|
|
|
in-Python names. [ticket:2396]
|
|
|
|
|
|
|
|
|
|
- [bug] Fixed bug in new "autoload_replace" flag
|
|
|
|
|
which would fail to preserve the primary
|
|
|
|
|
key constraint of the reflected table.
|
|
|
|
|
[ticket:2402]
|
|
|
|
|
|
|
|
|
|
- [bug] Index will raise when arguments passed
|
|
|
|
|
cannot be interpreted as columns or expressions.
|
|
|
|
|
Will warn when Index is created
|
|
|
|
|
with no columns at all. [ticket:2380]
|
|
|
|
|
|
|
|
|
|
* engine
|
|
|
|
|
- [feature] Added "no_parameters=True" execution
|
|
|
|
|
option for connections. If no parameters
|
|
|
|
|
are present, will pass the statement
|
|
|
|
|
as cursor.execute(statement), thereby invoking
|
|
|
|
|
the DBAPIs behavior when no parameter collection
|
|
|
|
|
is present; for psycopg2 and mysql-python, this
|
|
|
|
|
means not interpreting % signs in the string.
|
|
|
|
|
This only occurs with this option, and not
|
|
|
|
|
just if the param list is blank, as otherwise
|
|
|
|
|
this would produce inconsistent behavior
|
|
|
|
|
of SQL expressions that normally escape percent
|
|
|
|
|
signs (and while compiling, can't know ahead of
|
|
|
|
|
time if parameters will be present in
|
|
|
|
|
some cases). [ticket:2407]
|
|
|
|
|
|
|
|
|
|
- [bug] Added execution_options() call to
|
|
|
|
|
MockConnection (i.e., that used with
|
|
|
|
|
strategy="mock") which acts as a pass through
|
|
|
|
|
for arguments.
|
|
|
|
|
|
|
|
|
|
- [feature] Added pool_reset_on_return argument
|
|
|
|
|
to create_engine, allows control over
|
|
|
|
|
"connection return" behavior. Also added
|
|
|
|
|
new arguments 'rollback', 'commit', None
|
|
|
|
|
to pool.reset_on_return to allow more control
|
|
|
|
|
over connection return activity. [ticket:2378]
|
|
|
|
|
|
|
|
|
|
- [feature] Added some decent context managers
|
|
|
|
|
to Engine, Connection:
|
|
|
|
|
|
|
|
|
|
with engine.begin() as conn:
|
|
|
|
|
<work with conn in a transaction>
|
|
|
|
|
|
|
|
|
|
and:
|
|
|
|
|
|
|
|
|
|
with engine.connect() as conn:
|
|
|
|
|
<work with conn>
|
|
|
|
|
|
|
|
|
|
Both close out the connection when done,
|
|
|
|
|
commit or rollback transaction with errors
|
|
|
|
|
on engine.begin().
|
|
|
|
|
|
|
|
|
|
* sqlite
|
|
|
|
|
- [bug] Fixed bug in C extensions whereby
|
|
|
|
|
string format would not be applied to a
|
|
|
|
|
Numeric value returned as integer; this
|
|
|
|
|
affected primarily SQLite which does
|
|
|
|
|
not maintain numeric scale settings.
|
|
|
|
|
[ticket:2432]
|
|
|
|
|
|
|
|
|
|
* mssql
|
|
|
|
|
- [feature] Added support for MSSQL INSERT,
|
|
|
|
|
UPDATE, and DELETE table hints, using
|
|
|
|
|
new with_hint() method on UpdateBase.
|
|
|
|
|
[ticket:2430]
|
|
|
|
|
|
|
|
|
|
* mysql
|
|
|
|
|
- [feature] Added support for MySQL index and
|
|
|
|
|
primary key constraint types
|
|
|
|
|
(i.e. USING) via new mysql_using parameter
|
|
|
|
|
to Index and PrimaryKeyConstraint,
|
|
|
|
|
courtesy Diana Clarke. [ticket:2386]
|
|
|
|
|
|
|
|
|
|
- [feature] Added support for the "isolation_level"
|
|
|
|
|
parameter to all MySQL dialects. Thanks
|
|
|
|
|
to mu_mind for the patch here. [ticket:2394]
|
|
|
|
|
|
|
|
|
|
* oracle
|
|
|
|
|
- [feature] Added a new create_engine() flag
|
|
|
|
|
coerce_to_decimal=False, disables the precision
|
|
|
|
|
numeric handling which can add lots of overhead
|
|
|
|
|
by converting all numeric values to
|
|
|
|
|
Decimal. [ticket:2399]
|
|
|
|
|
|
|
|
|
|
- [bug] Added missing compilation support for
|
|
|
|
|
LONG [ticket:2401]
|
|
|
|
|
|
|
|
|
|
- [bug] Added 'LEVEL' to the list of reserved
|
|
|
|
|
words for Oracle. [ticket:2435]
|
|
|
|
|
|
|
|
|
|
* examples
|
|
|
|
|
- [bug] Altered _params_from_query() function
|
|
|
|
|
in Beaker example to pull bindparams from the
|
|
|
|
|
fully compiled statement, as a quick means
|
|
|
|
|
to get everything including subqueries in the
|
|
|
|
|
columns clause, etc.
|
|
|
|
|
|
2012-02-22 12:37:34 +00:00
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Wed Feb 22 12:36:45 UTC 2012 - saschpe@suse.de
|
|
|
|
|
|
|
|
|
|
- Fixed SLE_11 build by disabling the testsuite for it
|
|
|
|
|
|
2012-02-09 10:13:27 +00:00
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Thu Feb 9 09:39:26 UTC 2012 - rhafer@suse.de
|
|
|
|
|
|
|
|
|
|
- Update to 0.7.5:
|
|
|
|
|
* Fixed issue where modified session state established after a
|
|
|
|
|
failed flush would be committed as part of the subsequent
|
|
|
|
|
transaction that begins automatically after manual call to
|
|
|
|
|
rollback().
|
|
|
|
|
* Improved the API for add_column() such that if the same column
|
|
|
|
|
is added to its own table, an error is not raised and the
|
|
|
|
|
constraints don't get doubled up.
|
|
|
|
|
* Fixed issue where the "required" exception would not be raised
|
|
|
|
|
for bindparam() with required=True, if the statement were given
|
|
|
|
|
no parameters at all.
|
|
|
|
|
* for more details see the CHANGES file.
|
|
|
|
|
|
2011-11-10 10:56:48 +00:00
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Thu Nov 10 10:56:36 UTC 2011 - saschpe@suse.de
|
|
|
|
|
|
|
|
|
|
- Add depenendency on pysqlite
|
|
|
|
|
|
2011-09-21 12:42:28 +00:00
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Wed Sep 21 11:51:17 UTC 2011 - saschpe@suse.de
|
|
|
|
|
|
|
|
|
|
- Update to version 0.7.2:
|
|
|
|
|
* A rework of "replacement traversal"
|
|
|
|
|
* Fixed bug where query.join() + aliased=True
|
|
|
|
|
* Fixed regression from 0.6 where Session.add()
|
|
|
|
|
against an object which contained None
|
|
|
|
|
- See CHANGES for more...
|
|
|
|
|
- Run testsuite
|
|
|
|
|
|
2011-07-20 17:43:00 +00:00
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Wed Jul 20 17:42:11 UTC 2011 - saschpe@gmx.de
|
|
|
|
|
|
|
|
|
|
- Let doc package require base package instead of recommends
|
|
|
|
|
|
2011-07-20 17:23:32 +00:00
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Wed Jul 20 17:23:11 UTC 2011 - saschpe@gmx.de
|
|
|
|
|
|
|
|
|
|
- Dropped unused BuildRequires for fdupes and python-sqlite2
|
|
|
|
|
|
2011-07-20 17:19:27 +00:00
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Wed Jul 20 16:59:39 UTC 2011 - saschpe@gmx.de
|
|
|
|
|
|
|
|
|
|
- Initial version, replaces python-sqlalchemy
|
|
|
|
|
* Much simpler spec file
|
|
|
|
|
* Packaged LICENSE, CHANGES and README files
|