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
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
Mike Bayer
806c7024b3
a particular test which fails in 0.4
2008-05-16 21:27:15 +00:00
Jason Kirtland
f7cc199d37
Don't blat Table.quote= when resolving foreign keys.
2008-05-15 16:20:50 +00:00
Lele Gaifax
590e74182f
Fix table.delete() arguments
2008-05-15 12:45:50 +00:00
Lele Gaifax
2f2bce5651
Followup to [4760]: forward **kwargs on TableClause.delete()
2008-05-15 12:44:13 +00:00
Lele Gaifax
d044346a3c
Corrected Firebird failure reasons
2008-05-15 00:18:58 +00:00
Lele Gaifax
00475df2ef
Fix typo
2008-05-15 00:08:14 +00:00
Lele Gaifax
d415a8edd4
Minor doc fixes
2008-05-15 00:07:32 +00:00
Lele Gaifax
f56065c098
Correct failure reason
2008-05-15 00:07:00 +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
dd20ca5cb9
- Removed @unsupported
2008-05-14 22:09:23 +00:00
Jason Kirtland
b2504db4f7
Fix fix.
2008-05-14 21:27:06 +00:00
Jason Kirtland
81b1df8fe1
Query.one() raises either NoResultFound or MultipleResultsFound, [ticket:1034]
2008-05-14 20:44:16 +00:00
Jason Kirtland
78dc35822e
- Adjusted zoomoark
...
- Added test/orm/defaults. Ambitiously uses ansi triggers.
2008-05-14 19:55:35 +00:00
Jason Kirtland
65f4f02ec8
Columns now have default= and server_default=. PassiveDefault fades away.
2008-05-14 19:49:40 +00:00
Mike Bayer
a52a8dd876
fixes for PG, Mysql
2008-05-14 18:28:39 +00:00
Mike Bayer
918853a27d
fixed mysql not supported declarations
2008-05-14 18:16:13 +00:00
Lele Gaifax
623adee1c4
Support Firebird 2.0+ RETURNING
2008-05-14 15:31:29 +00:00
Lele Gaifax
1524330c10
Whitespace
2008-05-14 15:19:20 +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