Commit Graph

  • 5c752ee149 - test module turns warnings into exceptions so they can be tested for - the two mapper PK tests should actually warn on the id column collision - reverted abc_inheritance back to normal Mike Bayer 2007-07-14 23:06:57 +00:00
  • 8889d2c1bc - improved ability to get the "correct" and most minimal set of primary key columns from a join, equating foreign keys and otherwise equated columns. this is also mostly to help inheritance scenarios formulate the best choice of primary key columns. [ticket:185] - added 'bind' argument to Sequence.create()/drop(), ColumnDefault.execute() Mike Bayer 2007-07-14 21:57:51 +00:00
  • 44289e375b changed password field length to 15 to fix [ticket:656] Mike Bayer 2007-07-14 18:30:43 +00:00
  • 448b3a22be rearrange sqlite dialect initialization to be able to warn about pysqlite1 being too old. fixes #654 Ants Aasma 2007-07-14 12:53:18 +00:00
  • 74dfa23a63 context manager support for sql transactions Ants Aasma 2007-07-14 01:20:53 +00:00
  • 609c4f05a7 add support for two phase commits, nested subtransactions and savepoints. refactors Transaction class into a hierarchy. Ants Aasma 2007-07-14 00:36:05 +00:00
  • fb6906bb79 Fix setup for standalone sequence test Jason Kirtland 2007-07-13 23:20:08 +00:00
  • 3f9fb5540d Refinement for r2890, column names should remain unicode. Jason Kirtland 2007-07-13 19:03:02 +00:00
  • 28f74e1abe Swap imports order, removed trailing whitespace from varchar test data Jason Kirtland 2007-07-13 19:01:57 +00:00
  • 17ac262724 - a warning is issued by Mapper when two primary key columns of the same name are munged into a single attribute. this happens frequently when mapping to joins (or inheritance). Mike Bayer 2007-07-13 08:12:30 +00:00
  • de22067741 - composite primary key is represented as a non-keyed set to allow for composite keys consisting of cols with the same name; occurs within a Join. helps inheritance scenarios formulate correct PK. - ticket #185 reopened. still need to get Join to produce a minmal PK for fk'ed columns Mike Bayer 2007-07-13 07:36:39 +00:00
  • 94d81c84ce - Keep reflected strings in the connection encoding, not unicode. For now. Jason Kirtland 2007-07-12 22:18:55 +00:00
  • d115a8c94e - the various "engine" arguments, such as "engine", "connectable", "engine_or_url", "bind_to", etc. are all present, but deprecated. they all get replaced by the single term "bind". you also set the "bind" of MetaData using metadata.bind = <engine or connection>. this is part of 0.4 forwards compatibility where "bind" is the only keyword. [ticket:631] Mike Bayer 2007-07-12 22:03:48 +00:00
  • 91e511cce5 Correct error message for concurrent delete exceptions, fixes #586 Jason Kirtland 2007-07-12 19:52:36 +00:00
  • fdb836e041 dont cache reflected domains, lookup each time Mike Bayer 2007-07-12 19:44:07 +00:00
  • 6c851956b5 - converted mapper.py unit test to 0.4's four separate mapper.py, query.py, eager_relations.py, lazy_relations.py. tests 0.4 forwards compatibility for [ticket:631] - fixed "reset_joinpoint()" in query to actually work, when the same table appears in two join()s it reuses that same table as a joinpoint the way 0.4 does. Mike Bayer 2007-07-12 18:38:55 +00:00
  • 45121c389f added some order_bys to eager relations, which otherwise load with different ordering on PG. we might want to get eager relations on m2m to handle default order-by differently Mike Bayer 2007-07-12 18:34:48 +00:00
  • 7f8037ac47 dont log statement + parameters if logging is not enabled Mike Bayer 2007-07-12 15:22:50 +00:00
  • 81f42181f4 - Patch up MySQL reflection issues with old server versions, alpha drivers, quoting, and connection encoding. Jason Kirtland 2007-07-12 01:11:38 +00:00
  • e877af6cc2 added polymorphic associations examples from the trunk Mike Bayer 2007-07-12 01:07:03 +00:00
  • 2bb9552b5a Fixed postgres array concatenation Ants Aasma 2007-07-12 01:00:46 +00:00
  • 58662f502b merged trunk r2826-2879 Mike Bayer 2007-07-12 00:55:18 +00:00
  • ba1352ae44 Added PGArray datatype for using postgres array datatypes Ants Aasma 2007-07-12 00:31:32 +00:00
  • 3ebdc4d2f7 missed an override of type engine comparison that is now the same as default, removed it Ants Aasma 2007-07-11 23:08:00 +00:00
  • cf48c34a93 changed type engine default comparison from identity to equality Ants Aasma 2007-07-11 22:46:51 +00:00
  • 04baf45315 added a unit test to illustrate the equivalent of https://lists.ubuntu.com/mailman/private/storm/2007-July/000037.html Mike Bayer 2007-07-11 22:11:57 +00:00
  • 33e82c0a84 mssql: preliminary support for using scope_identity() with pyodbc Paul Johnston 2007-07-11 18:51:44 +00:00
  • 81fd0c8bb9 mssql now able to reflect start and increment values for identity columns Paul Johnston 2007-07-11 17:58:45 +00:00
  • bc85397f49 make use of the isinstance(obj, (A,B)) idiom, makes the code a bit shorter and more comprehensible (maybe a bit faster too) Ants Aasma 2007-07-10 21:56:18 +00:00
  • 1a07f1aaee Try to only convert :bind params and leave colons in text literals alone Jason Kirtland 2007-07-10 21:53:03 +00:00
  • 9b1b4e0cc0 further refinements to the previous session.expunge() fix Mike Bayer 2007-07-10 21:09:26 +00:00
  • 0c64a8ab5c fixed small expunge() bug where object might not be present in session Mike Bayer 2007-07-10 20:38:40 +00:00
  • d947d6b79d changed "_source_column" to simpler "_distance" Mike Bayer 2007-07-10 07:11:56 +00:00
  • be29010e29 more "column targeting" enhancements..columns have a "depth" from their ultimate source column so that corresponding_column() can find the column that is "closest" (i.e. fewest levels of proxying) to the requested column Mike Bayer 2007-07-10 06:51:58 +00:00
  • 5cb66ee718 Fix port option handling for mssql/pyodbc [ticket:634] Rick Morrison 2007-07-09 20:37:55 +00:00
  • af611b1018 - ForeignKey to a table in a schema thats not the default schema requires the schema to be explicit; i.e. ForeignKey('alt_schema.users.id') - the fix in "schema" above fixes postgres reflection of foreign keys from an alt-schema table to a public schema table Mike Bayer 2007-07-08 21:18:46 +00:00
  • b9a59f5cef discourage usage of always_refresh Mike Bayer 2007-07-07 13:35:34 +00:00
  • e490d67d2d edits Mike Bayer 2007-07-07 03:38:42 +00:00
  • eab3914085 oh wow, confused "implicit" with "connectionless" Mike Bayer 2007-07-07 03:26:25 +00:00
  • 3372fa5ca3 edits Mike Bayer 2007-07-07 02:24:12 +00:00
  • 6216ea8597 more edits Mike Bayer 2007-07-07 00:03:06 +00:00
  • 677247f28c fixes Mike Bayer 2007-07-06 18:57:03 +00:00
  • bcbcc391c5 - rewrote dbengine doc - some changes to metadata doc, no Bound/Dynamic metadata mentioned - fixed --file flag in genhtml.py Mike Bayer 2007-07-06 17:39:05 +00:00
  • c87304874c Tweak docs, very minor DMD compatability tweak Jason Kirtland 2007-07-06 17:28:45 +00:00
  • 177d30cc01 - Deprecated DynamicMetaData- use ThreadLocalMetaData or MetaData instead - Deprecated BoundMetaData- use MetaData instead - Removed DMD and BMD from documentation Jason Kirtland 2007-07-06 00:58:09 +00:00
  • 472fa072a6 - renamed DynamicMetaData to ThreadLocalMetaData - removed BoundMetaData, use MetaData instead Jason Kirtland 2007-07-06 00:55:41 +00:00
  • 9211d6f2dc Fix up extensions in wake of r2852 mapper.props change Jason Kirtland 2007-07-05 23:20:04 +00:00
  • 6a9567aa3a - the type of a _BooleanExpression should always be Boolean - added a random generative select() to a test (need to add the real tests to either select.py or generative.py) Mike Bayer 2007-07-05 17:28:31 +00:00
  • 85f3d2c0bd - removed mapper.props, replaced with mapper.get_property()/ mapper.iterate_properties, since these are the only two use cases for the "__props" collection on mapper. does synonym resolution so also fixes [ticket:598] Mike Bayer 2007-07-05 00:29:40 +00:00
  • 6a30dd1390 - replaced calls for mapper.props in Query with mapper.get_property(), which resolves synonyms. fixes [ticket:598] for join/join_to/join_via/with_parent Mike Bayer 2007-07-05 00:09:06 +00:00
  • d20058c57a increase code font size Mike Bayer 2007-07-04 17:12:20 +00:00
  • 8692ce1e7a css tweak Mike Bayer 2007-07-04 17:11:03 +00:00
  • 9769be92bf removed superfluous reapplying of options to self Mike Bayer 2007-07-04 16:24:30 +00:00
  • 24b0e51bc1 More collections test coverage. Jason Kirtland 2007-07-04 00:20:49 +00:00
  • cf2e91eb95 - added NullType to export list - any NullType will trigger the "get col type from FK logic", though there are other issues with this logic (requires the FK be initialized) - added INT to sqlite resolution map - adjusted sqlsoup for sql.Select api changes Mike Bayer 2007-07-03 21:21:11 +00:00
  • 1e48cab5ad Add a test for that OrderedDict fix, also add more paranoia in the constructor. Jason Kirtland 2007-07-03 21:04:47 +00:00
  • 15dd1e7947 Merged OrderedDict fixes from r2843 (0.4) Jason Kirtland 2007-07-03 04:41:01 +00:00
  • e898d3f130 - Add coverage for dict collections, and fixes for dict support. - Default dict appender name now 'set' to be consistent with duck_typing, prefer to remove default appender/remover methods from dict altogether. - Add coverage for MappedCollection and OrderedDict derived dict collections - Add coverage for raw object collections - Fix OrderedDict pop() etc., [ticket:585] - Update orderinglist unit test and remove 'broken until #213' assertion Jason Kirtland 2007-07-03 04:31:56 +00:00
  • b716af2c42 - Add coverage for set collections, added missing clear() decorator - Try not to be such an idiot when testing lists Jason Kirtland 2007-07-03 02:41:12 +00:00
  • 1cfd46d3b7 - Coverage of list collections, and matching fixes in slice mutation Jason Kirtland 2007-07-03 01:34:53 +00:00
  • 8b9e1523e4 More byroot_tree cleanups. Jason Kirtland 2007-07-02 21:49:20 +00:00
  • 2862638aa6 - Started moving collection module docs to doc - Added collections.attribute_mapped_collection, an attrgetter variant for mapped_collection - Added collections unit test stub, and fix accompanying bugs Jason Kirtland 2007-07-02 21:30:25 +00:00
  • 336b069b4d - standardized the behavior for table reflection where types can't be located; NullType is substituted instead, warning is raised. - consolidation of imports in some db modules Mike Bayer 2007-07-02 18:53:35 +00:00
  • 82e1e98683 removed ancient "backref" example, updated byroot_tree to not suck so much Mike Bayer 2007-07-01 21:54:10 +00:00
  • c3843dc57d simplified the loading mechanism. much easier to understand now Mike Bayer 2007-07-01 21:35:33 +00:00
  • a8173bf8d4 forgot to add the xml files... Mike Bayer 2007-07-01 21:20:27 +00:00
  • b0b5e9f2e3 moved oracles "auto_convert_lobs" logic into a generic dialect function which attempts to map DBAPI types to TypeEngine instances at result time. This only occurs for statements that have no typemaps (i.e. textual statements). Mike Bayer 2007-07-01 19:19:56 +00:00
  • c9e31751ed marking some methods as private Mike Bayer 2007-07-01 18:27:08 +00:00
  • 003a4babc6 separated the adjacency list version into the "basic" and the "optimized" version Mike Bayer 2007-07-01 17:43:23 +00:00
  • 7773e98b18 added some path searching Mike Bayer 2007-07-01 17:16:56 +00:00
  • 2e6f6ce636 fix to test created in [changeset:2621], was corrected in trunk in [changeset:2637]. very weird that it was passing on sqlite/postgres since it was producing a SELECT without a FROM. Mike Bayer 2007-06-30 22:00:05 +00:00
  • d657993d49 - implemented ORM-level composite column types [ticket:211]. constructed via composite(cls, *columns), allows multiple columns to be expressed as a single object attribute. can be used for primary key columns also. not yet supported for deferred column loading (but this is straightforward). - formatting to CHANGES - some test suite fixes Mike Bayer 2007-06-30 21:45:13 +00:00
  • 0f4b0f65a0 some better cascades Mike Bayer 2007-06-30 18:31:53 +00:00
  • 82c41a5a3c added "elementtree" examples Mike Bayer 2007-06-30 18:14:09 +00:00
  • a426dde8c0 merged, with some modifications, mapped constructor exceptions fix from trunk 2825 Mike Bayer 2007-06-30 17:05:27 +00:00
  • 8c03fdf5f4 improved handling of exceptions upon __init__(): will preserve the stack trace of the original __init__ exception; errors raised during session.expunge() will be reported as warnings Mike Bayer 2007-06-30 16:57:20 +00:00
  • cf47b315ff merged pool tweak from r2823 Mike Bayer 2007-06-30 16:36:42 +00:00
  • dc19e4eda6 - adjustments to pool locking test to fail on OSX - restored conditional locking to pool, for all conditions of max_overflow > -1 Mike Bayer 2007-06-30 16:35:54 +00:00
  • f62b68a9f7 - finished moving all EagerLoader tests from mapper to eager_relations - consolidated other eager tests into assorted_eager - moved assertion objects into fixtures module Mike Bayer 2007-06-30 02:04:05 +00:00
  • 9a9847b707 - merged some tweaks to the pool overflow sync from trunk r2819 - merged vertical.py delete tests from trunk r2820, fixed collection to new style collection Mike Bayer 2007-06-30 01:31:56 +00:00
  • bee542f9f7 added proper cascade for deletes Mike Bayer 2007-06-30 01:16:39 +00:00
  • de61eb3509 - added a mutex to QueuePool's "overflow" calculation to prevent a race condition that can bypass max_overflow; merged from 0.4 branch r2736-2738. also made the locking logic simpler, tried to get the test to create a failure on OSX (not successful) Mike Bayer 2007-06-30 01:14:15 +00:00
  • b0631ad3bd merged pickleable schema items from trunk r2817 Mike Bayer 2007-06-30 00:32:11 +00:00
  • abd257eb8c - MetaData and all SchemaItems are safe to use with pickle. slow table reflections can be dumped into a pickled file to be reused later. Just reconnect the engine to the metadata after unpickling. [ticket:619] Mike Bayer 2007-06-30 00:20:26 +00:00
  • 7fcaa67294 merged postgres domains patch r2814-2815 Mike Bayer 2007-06-30 00:01:54 +00:00
  • 3f3d84e754 postgres: - added support for reflection of domains [ticket:570] - types which are missing during reflection resolve to Null type instead of raising an error - moved reflection/types/query unit tests specific to postgres to new postgres unittest module Mike Bayer 2007-06-29 23:50:25 +00:00
  • dc9eb2a593 expanded upon query's prefab assertion data Mike Bayer 2007-06-29 21:49:40 +00:00
  • 239fe7c323 migrated most of mapper/EagerTest to updated eager_relations module Mike Bayer 2007-06-29 21:40:59 +00:00
  • 742f258309 all of LazyTest moved to updated lazy_relations module Mike Bayer 2007-06-29 20:46:54 +00:00
  • e96b3f1c2f Added another set of assertions for attribute pickling. Jason Kirtland 2007-06-29 18:41:24 +00:00
  • 05e7cf9e2a Simplifying that pickle workaround. Jason Kirtland 2007-06-29 18:33:59 +00:00
  • c7c55d4e2e Working around the pickle memoization quirk in attributes test. Jason Kirtland 2007-06-29 18:28:40 +00:00
  • 010b596227 fix --file again Jason Kirtland 2007-06-28 22:21:26 +00:00
  • fa292ce8b2 copyright page Mike Bayer 2007-06-28 21:52:53 +00:00
  • 071a65cdbd Bump doc version to 0.4, fix --file gen option Jason Kirtland 2007-06-28 21:47:07 +00:00
  • 8246468bce merged r2678 from trunk (merge in r2733 truncated but did not remove) Jason Kirtland 2007-06-28 21:33:55 +00:00
  • 2c5d93d7b5 Unused import. Jason Kirtland 2007-06-28 21:19:07 +00:00
  • 049ff220d5 - OrderedDict shouldn't send None to update, never know who might be watching (breaks use as a collection class) - Update MapperExtension in byroot_tree example, finish updates for new collections. Jason Kirtland 2007-06-28 20:04:52 +00:00
  • 4c19f98651 update example to work with new collections class Mike Bayer 2007-06-28 19:26:24 +00:00
  • e94baeaacd some comparison fixes Mike Bayer 2007-06-28 18:25:39 +00:00