Commit Graph

1481 Commits

Author SHA1 Message Date
Mike Bayer ae000fb550 - added "alias" argument to contains_eager(). use it to specify the string name
or Alias instance of an alias used in the query for the eagerly loaded child items.
    easier to use than "decorator"
2007-02-20 01:04:07 +00:00
Mike Bayer eb311db5ec - moved SynonymProperty to interfaces, since its more generalized and synonym-aware operations
take place without knowning so much about properties
- mapper options like eagerload(), lazyload(), deferred(), will work for "synonym()" relationships [ticket:485]
2007-02-20 00:09:37 +00:00
Rick Morrison 0911d4a61e 2007-02-19 19:03:33 +00:00
Mike Bayer f3055fe4ac removed not-always-applicable check for "polymorphic_identity" 2007-02-19 07:06:38 +00:00
Mike Bayer b880049b50 - oracle issues a log warning when a related table cant be reflected due to certain
permission errors [ticket:363]
2007-02-19 04:28:51 +00:00
Rick Morrison e7ac502b81 Completed previously missed patches from tickets 422 and 415
get unit tests to work with pyodbc [ticket:481]
fix blank password on adodbapi [ticket:371]
2007-02-18 19:43:05 +00:00
Mike Bayer 3b3d94c9ab - modified patch for [ticket:379] - detecting synonyms, dblinks in reflection. test passes
except for DBLINK which I cannot get to work on my oracle-xe database.
- probable (also untested) fix for [ticket:363], better error message if we get None back for
remote table information (which is due to rights)
2007-02-17 23:40:31 +00:00
Mike Bayer 2019974544 - fixes to tometadata() operation to propigate Constraints at column and table level 2007-02-17 19:08:36 +00:00
Mike Bayer b5bb6bb06d - fixed generation of CHECK constraints on columns [ticket:464] 2007-02-17 03:46:13 +00:00
Mike Bayer f4b1484ff5 - extension() query option propigates to Mapper._instance() method so that
all loading-related methods get called [ticket:454]
2007-02-17 03:14:36 +00:00
Mike Bayer 3e5eeb064a - moved change for [ticket:466] to ansisql, since thats the syntax for all databases.
the change is across all dialects, not just oracle
2007-02-17 02:39:28 +00:00
Mike Bayer 123498ee1f added PGInet type [ticket:444] 2007-02-17 02:36:11 +00:00
Mike Bayer 225e51a796 - added a Sequence to the unicode test tables to help Oracle
- fixed named PrimaryKeyConstraint generation on oracle [ticket:466] courtesy andrija at gmail
2007-02-17 02:31:56 +00:00
Mike Bayer ffd0e0e181 [ticket:463] fix to OrderedSet 2007-02-17 02:23:10 +00:00
Mike Bayer 8cf4e15c92 commented out ImportError for now; will issue new ticket for handling dialect importerrors more effectively 2007-02-17 01:49:52 +00:00
Mike Bayer 5f83c55fc7 - fixed oracle list of binary types to check for their presence in the module (such as BFILE not in all versions of cx_Oracle)
- removed oracle-handicap from binary unit test to test [ticket:435] fix, added an extra row containing None
2007-02-17 01:18:54 +00:00
Mike Bayer 67f020f69c - small fix to BoundMetaData to accept unicode or string URLs 2007-02-17 00:09:48 +00:00
Rick Morrison f4c7027950 better MSSSQL support for implicit sequences and auto-insert, ticket 415 2007-02-16 17:26:47 +00:00
Rick Morrison fc53d244b7 Fix Fix for adodbapi bug introduced by ticket 419 2007-02-16 17:12:49 +00:00
Rick Morrison c3e6960e03 Func rewrite for better unittest compatibility
Simplified transaction handling for pymssql
2007-02-16 17:06:17 +00:00
Mike Bayer d1319e62b2 dont do RAWTOHEX on None 2007-02-15 17:19:13 +00:00
Mike Bayer 40a29d198a - some cleanup to the unitofwork test suite (needs much more)
- fixed relationship deletion error when one-to-many child item is moved to a new
  parent in a single unit of work [ticket:478]
2007-02-15 02:07:06 +00:00
Rick Morrison 66a74c136f revert old unittest patch for MSSQL 2007-02-15 00:22:07 +00:00
Rick Morrison d796ed2f8e MSSSQL is now passing unit tests (well, some) thanks to Paul Johnston 2007-02-15 00:13:01 +00:00
Rick Morrison d4326560c3 run-time selectable DB-API modules for mssql [ticket:419]
preliminary support for pyodbc
2007-02-14 23:58:51 +00:00
Rick Morrison cd2ea14a78 Fix for ticket 473 2007-02-14 23:36:56 +00:00
Rick Morrison 8fd07eaafa Fix query.get for MSSQL tables with schema specified 2007-02-14 23:16:22 +00:00
Mike Bayer 902cd69528 - fixed relationship deletion error where parent/child with a single column as PK/FK
on the child would raise a "blank out the primary key" error, if manually deleted
or "delete" cascade without "delete-orphan" was used
2007-02-14 02:00:49 +00:00
Mike Bayer e7aaeb2852 - fixed argument passing to straight textual execute() on engine, connection.
can handle *args or a list instance for positional, **kwargs or a dict instance
for named args, or a list of list or dicts to invoke executemany()
2007-02-13 22:53:05 +00:00
Mike Bayer 238e8620ee - fix for very large topological sorts, courtesy ants.aasma at gmail [ticket:423] 2007-02-13 01:25:51 +00:00
Mike Bayer 8cc35f6d65 - added support for py2.5 "with" statement with SessionTransaction [ticket:468] 2007-02-10 23:45:08 +00:00
Mike Bayer ace7e3a4f1 - added options() method to SelectResults, equivalent to query.options() [ticket:472] 2007-02-10 23:41:56 +00:00
Mike Bayer 1da55184e5 - implemented foreign_keys argument on relation() [ticket:385]
- PropertyLoader figures out accurate remote_side collection based
on foreign_keys, legacy foreignkey, primary/secondaryjoin/polymorphic
- reworked lazyloader, sync to work straight off foreign_keys/
remote_side collections
2007-02-10 23:39:06 +00:00
Mike Bayer 648805f8b4 removed MissingTypeError (think it was an accidental checkin) 2007-02-07 01:15:03 +00:00
Mike Bayer 7b8cfa6ba1 - added optional __table_opts__ dictionary to ActiveMapper, will send kw options to
Table objects [ticket:462]
2007-02-07 01:12:38 +00:00
Rick Morrison 6fac73b699 ticket 298 plus transaction fixes for pymssql 2007-02-06 20:04:09 +00:00
Mike Bayer bbea2acf42 - added PGInterval type [ticket:460] 2007-02-06 19:32:36 +00:00
Mike Bayer 1c16c47a47 - added PrefetchingResultProxy support to pre-fetch LOB columns when they are
known to be present, fixes [ticket:435]
2007-02-06 01:31:50 +00:00
Mike Bayer 55d455d7d0 - added distinct() method to SelectResults. generally should only make a difference
when using count().
2007-02-05 23:26:37 +00:00
Mike Bayer 54c5a47642 nested query will always use order_by even if distinct is present, added test case to back it up 2007-02-05 23:16:43 +00:00
Mike Bayer e3b409f683 - added "schema" argument to all has_table() calls, only supported so far by PG
- added basic unit test for PG reflection of tables in an alternate schema
2007-02-04 23:45:45 +00:00
Mike Bayer 36fc80d8cb alternate OrderedSet implementation courtesy sdobrev 2007-02-04 23:15:26 +00:00
Mike Bayer 78d610da91 added 'ascii' as default encoding in case getdefaultlocale()[1] comes up with None (see [ticket:457]) 2007-02-04 20:11:28 +00:00
Mike Bayer 94c612e106 polymorphic union uses the literal_column function for its "textual" column 2007-02-04 03:50:54 +00:00
Mike Bayer 80f48f250b - added literal_column() to specify a column clause that should not undergo any quoting
- straight text sent to select() added as literal_column
- fix for issue in [ticket:450]
2007-02-04 03:43:22 +00:00
Mike Bayer 8908ea81d2 OK nevermind that last commit, rolling the quoting fix back 2007-02-04 03:19:54 +00:00
Mike Bayer a8cdead326 - more quoting fixes for [ticket:450]...quoting more aggressive (but still skips already-quoted literals)
- got mysql to have "format" as default paramstyle even if mysql module not available, allows unit tests
to pass in non-mysql system for [ticket:457].  all the dialects should be changed to pass in their usual
paramstyle.
2007-02-04 03:12:27 +00:00
Mike Bayer 5ce214c7d4 - sequences on a non-pk column will properly fire off on INSERT for PG/oracle 2007-02-02 18:58:11 +00:00
Mike Bayer 6f39a37bfd - added a "supports_execution()" method to ClauseElement, so that individual
kinds of clauses can express if they are appropriate for executing...such as,
you can execute a "select", but not a "Table" or a "Join".
2007-02-02 18:18:31 +00:00
Mike Bayer a90b73f1df removed extra _find_cycles call 2007-02-02 17:06:41 +00:00