Commit Graph

5428 Commits

Author SHA1 Message Date
Mike Bayer 92599bfec6 - Fixed bug regarding flushes on self-referential
bi-directional many-to-many relationships, where
two objects made to mutually reference each other
in one flush would fail to insert a row for both
sides.  Regression from 0.5. [ticket:1824]
2010-06-13 16:25:26 -04:00
Mike Bayer 03e0f776be - The warning emitted by the Unicode and String types
with convert_unicode=True no longer embeds the actual
value passed.   This so that the Python warning
registry does not continue to grow in size, the warning
is emitted once as per the warning filter settings,
and large string values don't pollute the output.
[ticket:1822]
2010-06-13 16:09:13 -04:00
Mike Bayer 7378611832 - added documentation for Inspector [ticket:1820]
- fixed "toplevel" regexp to include tokens of the form foo-bar-toplevel (i.e. multiple dashes)
- some CSS adjustment so that all API headings are in gray.
2010-06-13 15:49:27 -04:00
Mike Bayer 27781263d9 - Inspector hits bind.connect() when invoked to ensure
initialize has been called.  the internal name ".conn"
is changed to ".bind", since that's what it is.
2010-06-11 11:38:06 -04:00
Mike Bayer 4881873c6b fix the enum for MySQL after native_enum added to adaption keys 2010-06-09 18:27:43 -04:00
Mike Bayer 0707c94d63 - Fixed incorrect signature in do_execute() for firebird, access, error
introduced in 0.6.1. [ticket:1823]
2010-06-09 11:07:57 -04:00
Mike Bayer 85f9619b03 - Fixed bug in Enum type which blew away native_enum
flag when used with TypeDecorators or other adaption
scenarios.
2010-06-08 19:25:15 -04:00
Mike Bayer 145e3bc584 - tweak to work with sphinx 1.0b2
- more open ended language for bound metadata
2010-06-08 15:53:13 -04:00
Mike Bayer 0309f1be26 Added tag rel_0_6_1 for changeset 1bd54fd9c8 2010-05-31 15:22:55 -04:00
Mike Bayer 1bd54fd9c8 0.6.1 rel_0_6_1 2010-05-31 14:47:07 -04:00
Mike Bayer 464f295854 fix this test for oracle 2010-05-31 14:46:21 -04:00
Mike Bayer f0bf4e54e9 mapper.py is entirely 79 char lines now 2010-05-31 12:23:46 -04:00
Mike Bayer cfe9fadc61 change the weakkeydict to be just an LRU cache. Add tests
for the "many combinations of UPDATE keys" issue.
2010-05-31 11:56:08 -04:00
Mike Bayer b42d679cf7 shorten lines to 78 char on _save_obj, _delete_obj, related. much more to go for mapper.py 2010-05-30 21:52:24 -04:00
Mike Bayer 63070b54bf reduce the calls to execution_options and weakkeydict.setdefault 2010-05-30 21:23:59 -04:00
Mike Bayer 9bab63b693 - Pool classes will reuse the same "pool_logging_name" setting
after a dispose() occurs.

- Engine gains an "execution_options" argument and
update_execution_options() method, which will apply to
all connections generated by this engine.

- Added more aggressive caching to the mapper's usage of
UPDATE, INSERT, and DELETE expressions.  Assuming the
statement has no per-object SQL expressions attached,
the expression objects are cached by the mapper after
the first create, and their compiled form is stored
persistently in a cache dictionary for the duration of
the related Engine.

- change #3 required change #1 so that we could test
a set of mappers operating over the course of many engines without
memory usage increase.
2010-05-30 20:24:08 -04:00
Mike Bayer a19e403010 79 char lines for base.py 2010-05-30 13:36:40 -04:00
Mike Bayer 035ec314f6 - Fixed concatenation of constraints when "PRIMARY KEY"
constraint gets moved to column level due to SQLite
AUTOINCREMENT keyword being rendered.  [ticket:1812]
- remove some extra space in between constraint DDL
- added alias() to binary comparison test, fixing pg + mysql failures
2010-05-27 14:46:44 -04:00
Mike Bayer b086f9a815 - Re-established support for Oracle 8 with cx_oracle,
including that use_ansi is set to False automatically,
NVARCHAR2 and NCLOB are not rendered for Unicode,
"native unicode" check doesn't fail, cx_oracle
"native unicode" mode is disabled, VARCHAR() is emitted
with bytes count instead of char count. [ticket:1808]
2010-05-27 13:02:17 -04:00
Mike Bayer 40c7db67b4 - FOR UPDATE is emitted in the syntactically correct position
when limit/offset is used, i.e. the ROWNUM subquery.
However, Oracle can't really handle FOR UPDATE with ORDER BY
or with subqueries, so its still not very usable, but at
least SQLA gets the SQL past the Oracle parser.
[ticket:1815]
2010-05-27 11:50:16 -04:00
Mike Bayer 6033b07409 - Columns of _Binary type (i.e. LargeBinary, BLOB, etc.)
will coerce a "basestring" on the right side into a
_Binary as well so that required DBAPI processing
takes place.
2010-05-22 19:08:48 -04:00
Mike Bayer c57101bf49 - Fixed regression introduced in 0.6.0 unit of work refactor
that broke updates for bi-directional relationship()
with post_update=True. [ticket:1807]
2010-05-21 17:44:56 -04:00
Mike Bayer 726f7a9f59 new link for pymssql #1810 2010-05-21 17:05:06 -04:00
Mike Bayer 28aa32a20d docs on dispose 2010-05-15 16:12:14 -04:00
Mike Bayer 4fe3d83df5 disclaimer for the "type=None" semi-feature 2010-05-15 15:56:49 -04:00
Mike Bayer 14d5232652 - Added table.add_is_dependent_on(othertable), allows manual
placement of dependency rules between two Table objects
for use within create_all(), drop_all(), sorted_tables.
[ticket:1801]
2010-05-13 15:53:18 -04:00
Mike Bayer f0fa460791 - Added internal warning in case an instance without a
full PK happened to be expired and then was asked
to refresh. [ticket:1797]
2010-05-13 15:45:56 -04:00
Mike Bayer e352e255a7 - fixed __setstate__ method of CollectionAdapter to not
fail during deserialize where parent InstanceState not
yet unserialized.  [ticket:1802]
2010-05-13 15:36:22 -04:00
Mike Bayer 0a8f2207f0 - func.XXX() doesn't inadvertently resolve to non-Function
classes (e.g. fixes func.text()).  [ticket:1798]
2010-05-13 15:26:53 -04:00
Mike Bayer 20f5a48168 some pep-8ing 2010-05-13 13:33:22 -04:00
Mike Bayer 25e7dc60df - the _make_proxy() method of ColumnClause and Column now use
self.__class__ to determine the class of object to be returned
instead of hardcoding to ColumnClause/Column, making it slightly
easier to produce specific subclasses of these which work in
alias/subquery situations.
2010-05-10 11:37:48 -04:00
Mike Bayer 074ecc4376 - expr.in_() now accepts a text() construct as the argument.
Grouping parenthesis are added automatically, i.e. usage
is like `col.in_(text("select id from table"))`.
[ticket:1793]
2010-05-08 16:25:30 -04:00
Mike Bayer 6ea6673376 - session.merge() will not expire attributes on the returned
instance if that instance is "pending".  [ticket:1789]
2010-05-08 16:09:48 -04:00
Mike Bayer 7009a3bc32 - func.sysdate() emits "SYSDATE()", i.e. with the ending
parenthesis, on MySQL.  [ticket:1794]
2010-05-08 15:29:08 -04:00
Mike Bayer 78434e037f - Added 'connection shutdown' to the list of exception strings
which indicate a dropped connection.  [ticket:1646]
2010-05-08 15:22:10 -04:00
Mike Bayer 54820b2a64 add a note about native unicode mode, [ticket:1792] 2010-05-08 15:19:23 -04:00
Mike Bayer 0934e217f8 - the SqlSoup constructor accepts a base argument which specifies
the base class to use for mapped classes, the default being
`object`.  [ticket:1783]
2010-05-08 15:08:48 -04:00
Mike Bayer d997bbaea8 add more insert examples #1791 2010-05-03 22:18:27 -04:00
Mike Bayer 41d2e24c4a merge tip 2010-05-03 19:32:34 -04:00
Mike Bayer 9d34c64095 - Fixed use_ansi=False mode, which was producing broken
WHERE clauses in pretty much all cases.  [ticket:1790]
2010-05-03 19:24:52 -04:00
Mike Bayer c4bb1f7ba2 place docs for DBAPI-agnostic transaction_isolation setting for sqlite, pg [ticket:1784] 2010-04-30 15:00:48 -04:00
Chris Withers 1f58d4c2e4 remove docs for deprecated feature 2010-04-30 08:39:25 +01:00
Mike Bayer bc3accfbba fix some 2to3 breakage on the cx_oracle dialect 2010-04-29 15:33:19 -04:00
Mike Bayer 559ba7a2aa remove a few superfluous imports 2010-04-29 14:10:28 -04:00
Mike Bayer 74a8723df3 - Fixed bug in connection pool cursor wrapper whereby if a
cursor threw an exception on close(), the logging of the
message would fail.  [ticket:1786]
2010-04-28 16:16:56 -04:00
Chris Withers 31d168d2c3 fix sphinx reference 2010-04-28 19:22:55 +01:00
Mike Bayer 7686386c00 - oracle_xe 5 doesn't accept a Python unicode object in
its connect string in normal Python 2.x mode - so we coerce
to str() directly.  non-ascii characters aren't supported
in connect strings here since we don't know what encoding
we could use.  [ticket:1670]
2010-04-28 17:30:25 +00:00
Gaëtan de Menten e1cd2563ed changelog fix for #1781 2010-04-28 09:33:47 +02:00
Gaëtan de Menten 6d8db0fa3d take2 on #1781. 2010-04-27 20:57:48 +02:00
Mike Bayer 7509fe59ab - Added integer coercion to the "type_conv" attribute when
passed via query string, so that it is properly interpreted
by Kinterbasdb. [ticket:1779]
2010-04-26 18:36:47 -04:00