Commit Graph

2633 Commits

Author SHA1 Message Date
Jason Kirtland 731115ffbd Refactor-o fix. 2008-05-21 00:18:51 +00:00
Jonathan Ellis 30ad04ba6d handle null tablespace_name 2008-05-20 23:16:45 +00:00
Jason Kirtland 938badb2bb - Fleshed out Session.get_bind(), generating a couple todos: [ticket:1053], [ticket:1054], [ticket:1055]
- Trotted out util.pending_deprecation, replacing some 'TODO: deprecate's
- Big session docstring content edit fiesta
- session.py line length and whitespace non-fiesta
2008-05-20 21:44:43 +00:00
Jonathan Ellis 9be3b882b2 add CHAR to ischema_names map; some minor cleanup 2008-05-20 21:30:11 +00:00
Jason Kirtland 856e8b1cae Formatting. 2008-05-19 23:10:02 +00:00
Mike Bayer ad23f3b068 - zoomark/zoomark_orm seem to work with pool_threadlocal turned off, [ticket:1050] becomes WORKSFORME
- fixed probably errenous unique=True checkin on unitofwork.py
2008-05-19 22:35:32 +00:00
Jason Kirtland ced326dc1f - Implemented generic CHAR_LENGTH for sqlite (-> LENGTH())
- Updated .requires for firebird
2008-05-19 19:37:44 +00:00
Mike Bayer dbda75ec5f pool_threadlocal is off by default [ticket:1049] 2008-05-19 15:46:32 +00:00
Mike Bayer 89a8546d00 -removed useless log statement (merge garbage?)
- clarified autocommit mechanism
2008-05-18 17:09:21 +00:00
Mike Bayer 82f80559b9 put a cleanup handler on the "echo" property to try preventing log garbage in the buildbot 2008-05-18 16:40:02 +00:00
Mike Bayer fa56f0acb4 - added test for threadlocal not supporting begin_nested()
- removed query.compile(); use explicit query.with_labels().statement instead
- moved statement annotation step upwards from query._compile_context() to outliers from_self()/statement.  speeds zoomark.step_6_editing by 16%
2008-05-18 15:49:14 +00:00
Mike Bayer fcc4f9193a begin() pre-issues a flush() in all cases, better fix for [ticket:1046] and allows rollback to work properly with autocommit=True/begin() 2008-05-16 22:25:53 +00:00
Mike Bayer 7d3ba0dec7 dont raise assertions when in autocommit mode [ticket:1046] 2008-05-16 22:15:44 +00:00
Mike Bayer 07496da9b5 - added some help for a heavily flush-order-dependent test
- quote flag propagates to _Label, [ticket:1045]
2008-05-16 22:10:04 +00:00
Mike Bayer 2beb99a60e added an assertion to prevent against the use in [ticket:1048] 2008-05-16 21:38:56 +00:00
Mike Bayer e314a548bd auto exists remembers to alias in the case of explicit selectable with of_type(), [ticket:1047] 2008-05-16 21:27:51 +00:00
Jason Kirtland f7cc199d37 Don't blat Table.quote= when resolving foreign keys. 2008-05-15 16:20:50 +00:00
Lele Gaifax 2f2bce5651 Followup to [4760]: forward **kwargs on TableClause.delete() 2008-05-15 12:44:13 +00:00
Lele Gaifax 00475df2ef Fix typo 2008-05-15 00:08:14 +00:00
Lele Gaifax 0905bb4ba6 Augment expression.Delete() with a kwargs, like Insert() and Update() 2008-05-15 00:06:04 +00:00
Jason Kirtland c6e654db79 Eep. 2008-05-14 22:41:32 +00:00
Mike Bayer 746bd51c48 raise NotImplemented for begin_nested() 2008-05-14 22:21:38 +00:00
Jason Kirtland 81b1df8fe1 Query.one() raises either NoResultFound or MultipleResultsFound, [ticket:1034] 2008-05-14 20:44:16 +00:00
Jason Kirtland 65f4f02ec8 Columns now have default= and server_default=. PassiveDefault fades away. 2008-05-14 19:49:40 +00:00
Lele Gaifax 623adee1c4 Support Firebird 2.0+ RETURNING 2008-05-14 15:31:29 +00:00
Mike Bayer ac934fc533 - renamed query.slice_() to query.slice()
- pulled out DeclarativeMeta.__init__ into its own function, added instrument_declarative()
which will do the "declarative" thing to any class independent of its lineage (for ctheune)
- added "cls" kwarg to declarative_base() allowing user-defined base class for declarative base [ticket:1042]
2008-05-13 20:35:41 +00:00
Mike Bayer 17684a1b81 - LIMIT/OFFSET of zero is detected within compiler and is counted
- Query.__getitem__ now returns list/scalar in all cases, not generative (#1035)
- added Query.slice_() which provides the simple "limit/offset from a positive range" operation,
we can rename this to range_()/section()/_something_private_because_users_shouldnt_do_this() as needed
2008-05-13 19:55:49 +00:00
Mike Bayer 1b6306c69e - fixed propagation of operate() for aliased relation descriptors
- ColumnEntity gets a selectable
2008-05-13 19:52:15 +00:00
Jason Kirtland 72dc624bb6 Removed declared_synonym(), pep-8 clean ups. 2008-05-13 18:14:28 +00:00
Mike Bayer b0fd5ac899 scaled back the equivalents determined in _equivalent_columns to just current polymorphic_union
behavior, fixes [ticket:1041]
2008-05-12 22:44:04 +00:00
Mike Bayer e02114ce49 - clause adaption hits _raw_columns of a select() (though no ORM tests need this feature currently)
- broke up adapter chaining in eagerload, erroneous "wrapping" in row_decorator.  column_property() subqueries are now affected only by the ORMAdapter for that mapper.  fixes [ticket:1037], and may possibly impact some of [ticket:949]
2008-05-12 16:15:28 +00:00
Lele Gaifax 4b6e1a40e5 Check for the presence of the Firebird generator, when creating/dropping a sequence 2008-05-12 15:33:55 +00:00
Lele Gaifax b7d0832968 Add another exception case to Firebird' is_disconnect() 2008-05-12 13:51:14 +00:00
Lele Gaifax 6d27d85297 Typo 2008-05-12 10:19:47 +00:00
Lele Gaifax 5200cd16f5 Use a BLOB when asked for a [VAR]CHAR without a length under Firebird 2008-05-12 10:09:16 +00:00
Mike Bayer 0ca037c65e merged r4720 from 04 branch for [ticket:1036] 2008-05-10 17:42:09 +00:00
Mike Bayer bd8514e80b backref() function uses primaryjoin/secondaryjoin of the parent relation() if not otherwise specified, removing the frequently annoying need to specify primaryjoin twice. 2008-05-10 00:26:28 +00:00
Mike Bayer d3621ae961 - fixed a fairly critical bug in clause adaption/corresponding column in conjunction with annotations
- implicit order by is removed, modified many tests to explicitly set ordering, probably many more to go
once it hits the buildbot.
2008-05-09 23:58:30 +00:00
Gaëtan de Menten 6935add67e add target_fullname as a public property for _get_colspec 2008-05-09 20:49:32 +00:00
Mike Bayer 6840fc6bb6 - more portable tests for eager/inheritance joins
- bumped 2.4 call count for profile test_select
- don't need initialize_properties() during reentrant compile() call (for now)
2008-05-09 19:20:49 +00:00
Mike Bayer 84ec085d47 MSText no longer implicitly creates TEXT for string with no length
(this actually allows CAST (foo, VARCHAR) to render too)
2008-05-09 19:00:55 +00:00
Mike Bayer cbabd91c21 added query.subquery() as shorthand for query.statement.alias() 2008-05-09 18:57:40 +00:00
Mike Bayer 0bbb0e9b57 identified case where pending upon commit() is needed; since attribute rollback functionality is gone its safe to revert to this 2008-05-09 18:43:05 +00:00
Ants Aasma 54296c9628 move the definition of sessions public methods closer to the source 2008-05-09 17:50:38 +00:00
Mike Bayer 42bfd060a0 added "add", "add_all", "expire_all" to SS 2008-05-09 17:42:24 +00:00
Mike Bayer 6dffbb2571 - warnings about Query invalid operations become InvalidRequestErrors
- __no_criterion() checks for more pre-existing conditions
- helpful note in 0.5 svn readme
2008-05-09 17:05:13 +00:00
Mike Bayer 4a6afd469f r4695 merged to trunk; trunk now becomes 0.5.
0.4 development continues at /sqlalchemy/branches/rel_0_4
2008-05-09 16:34:10 +00:00
Mike Bayer 46b7c9dc57 doc update on quote 2008-05-08 21:29:07 +00:00
Mike Bayer db4449455f remove **kwargs from execute(), scalar(), connection(), and get_bind(). document all args, [ticket:1028] 2008-05-08 00:47:23 +00:00
Mike Bayer a5290b0d0f - backported 0.5's contains_eager() behavior such that rendering of eager clauses are disabled. workaround here is compatible with 0.5 but not compatible with the little-known "decorator" argument to contains_eager() (which was also removed in 0.5). Doesn't remove any existing 0.4 functionality. 2008-05-08 00:19:06 +00:00