Commit Graph

3674 Commits

Author SHA1 Message Date
Ants Aasma c194844692 Not implemenented binary ops also raise UnevaluatableError 2008-05-29 02:12:06 +00:00
Ants Aasma 4cccb50228 add with_only_columns to Select to allow for removing columns from selects 2008-05-29 02:11:59 +00:00
Ants Aasma 77c308367f Preliminary implementation for the evaluation framework 2008-05-29 02:11:49 +00:00
Mike Bayer 5ccfa64294 - bumped PG's call count on test #6 to 1193 for py2.4; this is due to non-pool-threadlocal nature adding some checkout overhead 2008-05-27 03:08:35 +00:00
Mike Bayer 946e3b7114 - added "CALL" to Mysql select keywords
- NameError doesn't have "message" in py2.4
2008-05-27 02:10:21 +00:00
Mike Bayer cd95c479e9 added string argument resolution to relation() in conjunction with declarative for: order_by,
primaryjoin, secondaryjoin, secondary, foreign_keys, and remote_side.
2008-05-26 23:01:05 +00:00
Mike Bayer ae9297bd18 a comment indicating why we can't raise an error for relation(Foo, uselist=False, order_by=something) 2008-05-26 18:35:24 +00:00
Mike Bayer fa42abd213 oracle dialect takes schema name into account when checking for existing tables
of the same name. [ticket:709]
2008-05-24 23:34:04 +00:00
Mike Bayer 6510bfbcf7 - PropertyLoader.foreign_keys becomes private
- removed most __foo() defs from properties.py
- complexity reduction in PropertyLoader.do_init()
2008-05-24 18:53:57 +00:00
Mike Bayer 4a742751d5 - removed info about _local_remote_pairs from PropertyLoader.__determine_fks
- added order_by(), group_by(), having() to the list of "no offset()/limit()", [ticket:851]
2008-05-24 17:37:58 +00:00
Mike Bayer 1b1b68a337 merged r4809 from rel_0_4, oracle fix 2008-05-24 17:11:41 +00:00
Jason Kirtland b985f34f7a Removed inlining for list.append. 2008-05-23 16:58:20 +00:00
Jason Kirtland eb8a6ed51a - unrolled loops for the simplified Session.get_bind() args
- restored the chunk of test r4806 deleted (!)
2008-05-21 23:58:16 +00:00
Mike Bayer cff1686cb9 - globally renamed refresh_instance to refresh_state
- removed 'instance' arg from session.get_bind() and friends, this is not a public API
- renamed 'state' arg on same to '_state'
- fixes [ticket:1055]
2008-05-21 21:40:58 +00:00
Jason Kirtland 07a3b8520b Updated fixmes. 2008-05-21 20:34:59 +00:00
Jason Kirtland afb2ca13a3 Updated some todos. 2008-05-21 20:32:00 +00:00
Jason Kirtland 38681c6b39 Removed deprecated Dialect.prexecute_sequences aliasing 2008-05-21 19:45:42 +00:00
Jason Kirtland 790f3d44d9 - Fixed ORM orphaning bug with _raw_append method
- Promoted _reorder to reorder
- Now horking docstrings of overloaded methods from list
- Added a doctest
2008-05-21 18:31:52 +00:00
Jason Kirtland a66c441043 - Be a little smarter about aliased funcs/methods by ignoring func_name 2008-05-21 18:28:24 +00:00
Jason Kirtland 3d17498c1d - Another namespace cleanup tweak, why not. 2008-05-21 18:27:21 +00:00
Jason Kirtland d1c80500c5 - Docstring fix. 2008-05-21 18:25:44 +00:00
Jason Kirtland b1911f0efa Duh. 2008-05-21 18:17:23 +00:00
Jason Kirtland cfc59b1713 - Removed deprecated append(val, **kw)
- dict/set/list proxies are now docstring'd like their python counterparts
2008-05-21 15:43:00 +00:00
Jason Kirtland 8adc6f2008 - More uses of exc.NO_STATE 2008-05-21 15:11:06 +00:00
Jason Kirtland 92c7a834d7 - Centralized 'x is not mapped' reporting into sa.orm.exc.
- Guards are now present on all public Session methods and passing in an
  unmapped hoho anywhere yields helpful exception messages, going to some
  effort to provide hints for debugging situations that would otherwise seem
  hopeless, such as broken user instrumentation or half-pickles.
2008-05-21 03:39:06 +00:00
Jason Kirtland 6536af53fc - ...and added bind.py into the orm suite 2008-05-21 03:33:54 +00:00
Jason Kirtland af11465840 - Moved an ORM test out of engine... 2008-05-21 03:31:20 +00:00
Jason Kirtland 3b90b8d772 - 2.3 compat. 2008-05-21 02:49:14 +00:00
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 18a31d0316 - Quick cleanup of defaults.py. The main DefaultTest is still a mess. 2008-05-20 00:14:51 +00:00
Jason Kirtland 8e9fce417a Split out a couple true autoincrement/identity tests from emulated-with-sequences autoincrement=True tests. 2008-05-19 23:15:41 +00:00
Jason Kirtland 856e8b1cae Formatting. 2008-05-19 23:10:02 +00:00
Mike Bayer b3102a097a - changed char_length() to use a fake, neutral "generic function"
- assert_compile() reports the dialect in use
2008-05-19 22:46:14 +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
Lele Gaifax f071ba1d3b Remove some noise from the uow test 2008-05-19 18:35:34 +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 01b952c336 added ORM version of zoomark, python 2.5 only for starters 2008-05-18 16:19:21 +00:00
Mike Bayer d4f2a5d6c5 some order by's failing on the buildbot 2008-05-18 15:55:58 +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
Lele Gaifax 664687adb9 The column default has been renamed server_default in 0.5 2008-05-16 23:09:54 +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