Commit Graph

10240 Commits

Author SHA1 Message Date
Mike Bayer ba5ac9f2b1 make an 0.8 branch. imitate pyramid's scheme to the degree that they only release
from branches.   the motivation here is mostly due to readthedocs hardcoded
URI scheme, and the fact that I am wasting this morning angsting over how much trouble
it will be to move the docs to a self-hosted system *again*.   really need docs to
be on an 0.6/0.7/0.8/0.x system so that links are permanent
2012-11-18 12:22:17 -05:00
Mike Bayer 1e29a74bd6 Fixed a gotcha where inadvertently calling list() on a
:class:`.ColumnElement` would go into an endless loop, if
      :meth:`.ColumnOperators.__getitem__` were implemented.
      A new NotImplementedError is emitted via ``__iter__()``.
2012-11-18 10:38:02 -05:00
Mike Bayer 0f56aa56c5 need to disable hstore for the "player" here. should really get rid of the recorder/player thing
at this point
2012-11-18 03:01:49 -05:00
Mike Bayer 8d9620a046 mutable dict 2012-11-17 23:03:00 -05:00
Mike Bayer cda08307be - hstore documentation, migration
- don't need a custom exception here, just use ValueError
2012-11-17 22:58:23 -05:00
Mike Bayer 713a1d3b24 - add HSTORE
- this was a mistake in mutable
2012-11-17 22:08:14 -05:00
Mike Bayer 50fb37e19e migration doc 2012-11-17 20:46:13 -05:00
Mike Bayer 4356741c48 - hstore adjustments 2012-11-17 20:45:17 -05:00
Mike Bayer 6369292dcf Merged in audriusk/sqlalchemy_pg_hstore (pull request #26). will adjust some aspects of it, including replace userdefinedtype with typeengine, and move mutationdict to be part of sqlalchemy.ext.mutable 2012-11-17 18:53:23 -05:00
Diana Clarke 40071dbda4 initializing _labels to an empty list so that the other methods don't throw exceptions in the None labels case, but rather return (), [], or {}. this is not backwards compatible, but doubt anyone is relying on those exceptions #2601 2012-11-17 15:28:50 -05:00
Diana Clarke dbdd0fdd48 adding _fields, _asdict() to KeyedTuple #2601 2012-11-17 14:55:26 -05:00
Mike Bayer 8d85a3c4e5 sybase doesn't support microseconds, surprise, and after that we should have all the sybase dialect tests passing 2012-11-17 13:17:18 -05:00
Mike Bayer 790024f5a3 Reflection support has been added to the Sybase dialect.
Big thanks to Ben Trofatter for all the work developing and
testing this. [ticket:1753]
2012-11-17 11:39:11 -05:00
Mike Bayer 123a5349d2 - merge ben's patch with updates 2012-11-17 11:37:32 -05:00
Mike Bayer 7c3de81ee0 Merged in idank/sqlalchemy (pull request #27) 2012-11-17 11:30:56 -05:00
Diana Clarke e469529a1d adding tests for KeyedTuple, pep8 pass 2012-11-17 09:51:12 -05:00
Audrius Kažukauskas 8b327807ae Register HStore adapter and typecaster in psycopg2 dialect 2012-11-15 16:03:45 +02:00
Diana Clarke 8a4ab8a4db oops! python 3 doesn't do the rich comparison cmp thing 2012-11-14 23:25:09 -05:00
Mike Bayer 94f8a792aa fix this test 2012-11-14 21:47:41 -05:00
Idan Kamara 65e66cdf37 docs/orm: spelling fix 2012-11-14 14:35:29 +02:00
Mike Bayer 59f0685290 The :meth:.Connection.connect and :meth:.Connection.contextual_connect
methods now return a "branched" version so that the :meth:`.Connection.close`
method can be called on the returned connection without affecting the
original.   Allows symmetry when using :class:`.Engine` and
:class:`.Connection` objects as context managers.
2012-11-14 01:18:58 -05:00
Mike Bayer 504daf1bc0 Fixed :meth:.MetaData.reflect to correctly use
the given :class:`.Connection`, if given, without
opening a second connection from that connection's
:class:`.Engine`. [ticket:2604]
2012-11-14 00:52:31 -05:00
Mike Bayer 27db59b337 Fixed bug whereby using "key" with Column
in conjunction with "schema" for the owning
Table would fail to locate result rows due
to the MSSQL dialect's "schema rendering"
logic's failure to take .key into account.
Also in 0.7.10. [ticket:2607]
2012-11-13 23:43:31 -05:00
Diana Clarke f0e19297ee __sub__ was declared twice, just increasing test coverage before I change anything 2012-11-13 18:51:35 -05:00
Audrius Kažukauskas 812b1d8614 Add PostgreSQL HStore type support 2012-11-13 16:43:41 +02:00
Mike Bayer b65736fdf6 oracle doesnt support TIME or microseconds 2012-11-12 16:36:20 -05:00
Mike Bayer d2a99b2043 add docs regarding fetchedvalue with primary keys, [ticket:2598] 2012-11-12 16:07:04 -05:00
Mike Bayer 6397a4ff4b Fixed bug in type_coerce() whereby typing information
could be lost if the statement were used as a subquery
inside of another statement, as well as other similar
situations.  Among other things, would cause
typing information to be lost when the Oracle/mssql dialects
would apply limit/offset wrappings. [ticket:2603]
2012-11-12 15:48:40 -05:00
Mike Bayer 37c943233a fix some oracle-related tests, but still need to fix unhashable_types test 2012-11-12 14:37:03 -05:00
Mike Bayer 12df8a9901 - support "fails_if" requirements as __requires__; so far this just skips, doesn't
actually run the test
- add requirements for date/datetime/time capabilities
- remove test/sql/test_types->DateTest and create new tests in suite/test_types
- move the StringTest with the "no length create" test to the suite, though this is a
weird test
2012-11-12 14:30:18 -05:00
Mike Bayer 9dd08c2eca Fixed regression where query.update() would produce
an error if an object matched by the "fetch"
synchronization strategy wasn't locally present.
Courtesy Scott Torborg. [ticket:2602]
2012-11-12 12:44:42 -05:00
Scott Torborg 52e8dcda6d added test of synchronize_session='fetch' on rows which are not already in the session, and patch to fix failure 2012-11-10 15:01:30 -08:00
Mike Bayer 607af882c3 Support for reflection of the "name" of primary key
constraints added, courtesy Dave Moore. mssql [ticket:2600]
2012-11-10 15:37:51 -05:00
Benjamin Trofatter e7d0ba7f76 Removed caching from SybaseDialect.get_table_id 2012-11-03 22:59:25 -05:00
Benjamin Trofatter b6aa4643c5 Updated sybase testing requirements 2012-10-31 17:14:07 -05:00
Mike Bayer d30ab8495c Fixed bug whereby the ".key" of a Column wasn't being
used when producing a "proxy" of the column against
a selectable.   This probably didn't occur in 0.7
since 0.7 doesn't respect the ".key" in a wider
range of scenarios. [ticket:2597]
2012-10-31 14:30:47 -04:00
Mike Bayer f0a9d39634 update the intro 2012-10-31 00:55:43 -04:00
Mike Bayer 5ccc8efa30 improve some autodoc links 2012-10-31 00:41:28 -04:00
Mike Bayer c1f677b04e more of these 2012-10-31 00:17:56 -04:00
Mike Bayer 78b6200557 - i think this is a sphinx bug 2012-10-31 00:17:16 -04:00
Mike Bayer c6f6431e15 - use a better example for relationship annotations
- added missing postgresql ARRAY features
2012-10-31 00:13:00 -04:00
Mike Bayer e7803025aa Added tag rel_0_8_0b1 for changeset d2e8b5e36c 2012-10-30 19:36:01 -04:00
Mike Bayer d2e8b5e36c release date rel_0_8_0b1 2012-10-30 19:09:01 -04:00
Benjamin Trofatter 8fcd985e41 Added sybase requirements to testing and improved view reflection. 2012-10-30 17:47:04 -05:00
Mike Bayer 8a1dfd5c1d add in inherited methods to many of these 2012-10-30 16:20:45 -04:00
Benjamin Trofatter 0531491961 Added reflection to sqlalchemy.dialects.sybase
Added missing types supported by Sybase to ischema_names mapping

Created a SybaseInspector similar to the PGInspector, with a cached table_id
  lookup, and added it to the SybaseDialect as the default inspector.

Added the following methods to SybaseDialect:
  get_table_id
  get_columns
  _get_column_info : support method for get_columns
  get_foreign_keys
  get_indexes
  get_pk_constraint
  get_schema_names
  get_view_definition
  get_view_names
Rewrote the following methods to conform to the style of the rest:
  get_table_names
  has_table

Reordered colspec builder to put default clause after "NULL/NOT NULL",
  instead of before.  This fixed a syntax error.
2012-10-30 03:52:22 -05:00
Mike Bayer 88125742f2 tweaks 2012-10-28 20:07:18 -04:00
Mike Bayer fb10b94e71 - do a straight __subclasses__ traversal here, so that we aren't
iterating through all mappers in memory when a new event is tacked
onto an unmapped superclass, also removes the strong ref that was
breaking some GC teardown tests
2012-10-28 19:07:56 -04:00
Mike Bayer a13812606c - remove remote_foreign annotation
- support annotations on Column where name isn't immediately present
2012-10-28 18:23:57 -04:00
Mike Bayer 2637c9eddc - updated relationship docs, others 2012-10-28 18:23:24 -04:00