Commit Graph

  • debd5b75bd Merge changeset [3343] into rel_0_3 branch Paul Johnston 2007-08-17 15:14:55 +00:00
  • c23f82d989 Disable MSSQL unicode statements on UCS-4 platforms, ticket #731 Paul Johnston 2007-08-17 15:10:46 +00:00
  • 9793d1b567 - session transaction closing tweak for threadlocal - connection-rollback decorator only fires on unhandled testing exceptions Jason Kirtland 2007-08-17 15:01:20 +00:00
  • 3ca07cd370 added a testing decorator that mops up wayward connections Jason Kirtland 2007-08-17 01:24:46 +00:00
  • 8fc979f455 removed ridiculous LOrderedProp object Mike Bayer 2007-08-16 22:57:57 +00:00
  • 08bf368bfb revert the _DefaultExtension thing, it added function calls Mike Bayer 2007-08-16 22:20:45 +00:00
  • bc04505b8c - moved test/orm/fixtures.py to testlib - flattened mapper calls in _instance() to operate directly through a default MapperExtension - more tests for ScopedSession, fixed [ticket:746] - threadlocal engine propagates **kwargs through begin() Mike Bayer 2007-08-16 22:15:15 +00:00
  • 1f41755ecf it's a non-stop formatting fiesta Jason Kirtland 2007-08-16 21:22:44 +00:00
  • c86c9be78b formatting fiesta Jason Kirtland 2007-08-16 20:53:41 +00:00
  • 0339042815 Added session.prune(), releases unused objects in strong-ref identity maps. Jason Kirtland 2007-08-16 19:58:24 +00:00
  • 13af7230dc - fix to bind param processing such that "False" values (like blank strings) still get processed/encoded Mike Bayer 2007-08-16 18:25:11 +00:00
  • 6e6f4c0c94 new changelog with betas Mike Bayer 2007-08-16 15:58:54 +00:00
  • 7c13541139 bump Mike Bayer 2007-08-16 15:22:17 +00:00
  • f6306cc604 needed orm import Mike Bayer 2007-08-16 15:20:20 +00:00
  • a8946d3682 bump rel_0_4beta3 Mike Bayer 2007-08-16 15:12:57 +00:00
  • 666a62141f added remove() coverage.... Mike Bayer 2007-08-16 15:00:51 +00:00
  • ac4c3f99db add length to str for pk usage Mike Bayer 2007-08-16 14:50:24 +00:00
  • dd99a207d6 added support for string date passthru in sqlite Mike Bayer 2007-08-16 14:48:48 +00:00
  • 354f899be6 added 'inherit_foreign_keys' arg to mapper() Mike Bayer 2007-08-16 14:29:34 +00:00
  • 46535b25a6 use threading.local if available speed up ThreadLocal for python 2.3 [ticket:743] clean in topo (in patch from [ticket:743]) Jason Kirtland 2007-08-15 23:11:47 +00:00
  • fddc687348 fix hasattr typo [ticket:744] Jason Kirtland 2007-08-15 22:10:27 +00:00
  • 9350ec4827 stopgap, need a general strategy for raising readable exceptions for unicode content Jason Kirtland 2007-08-15 22:07:35 +00:00
  • cf7a01a90c -removed print statements - removeld errant classmethod on remove() Mike Bayer 2007-08-15 17:31:17 +00:00
  • e02a48ed24 mass has_key->__contains__ migration, [ticket:738] Mike Bayer 2007-08-15 17:28:52 +00:00
  • 2708a3489e - moved unicode schema ORM tests to unitofwork.py tests. mostly is to test mappers so limited DB support (really hard to get these unicode schemas to work...) - fixed [ticket:739] Mike Bayer 2007-08-15 16:48:57 +00:00
  • 01d0d7b85d - cleanup, converted unitofwork.py to standard fixtures Mike Bayer 2007-08-15 03:49:32 +00:00
  • 651e9ff673 removed init_attr() call, which has shown to not increase performance Mike Bayer 2007-08-15 01:25:13 +00:00
  • 087f235c33 - merged "fasttypes" branch. this branch changes the signature of convert_bind_param() and convert_result_value() to callable-returning bind_processor() and result_processor() methods. if no callable is returned, no pre/post processing function is called. - hooks added throughout base/sql/defaults to optimize the calling of bind param/result processors so that method call overhead is minimized. special cases added for executemany() scenarios such that unneeded "last row id" logic doesn't kick in, parameters aren't excessively traversed. - new performance tests show a combined mass-insert/mass-select test as having 68% fewer function calls than the same test run against 0.3. - general performance improvement of result set iteration is around 10-20%. Mike Bayer 2007-08-14 21:53:32 +00:00
  • a84573ba22 added insert speed profiler test Mike Bayer 2007-08-14 21:37:16 +00:00
  • e58063aa91 cleanup Mike Bayer 2007-08-14 20:26:43 +00:00
  • 9ab0947f16 revert previous change; had misunderstood context Paul Johnston 2007-08-14 18:25:09 +00:00
  • d0e78b044e fudge to make SQL asserts work reliably with MSSQL Paul Johnston 2007-08-14 18:16:27 +00:00
  • d93c7c3b8f Make versioningtest.test_basic only assert when the dbapi support sane_rowcount Paul Johnston 2007-08-14 18:03:25 +00:00
  • 38a55648a1 added sqlite/sa "unprofiled" raw time tests Mike Bayer 2007-08-14 17:51:15 +00:00
  • ce9828ff07 added full fetching of result columns, cut overall size to 50000 Mike Bayer 2007-08-14 17:43:03 +00:00
  • 55e80ace66 a mass insert/ select benchmarking test, from http://pyinsci.blogspot.com/2007/07/fastest-python-database-interface.html Mike Bayer 2007-08-14 17:34:17 +00:00
  • 5be79a6e32 adjustment to table_names test such that the DB can have extra tables around Mike Bayer 2007-08-14 15:10:42 +00:00
  • 054e76df44 removed assertion for "no tables in db" rel_0_4beta2 Mike Bayer 2007-08-14 14:32:50 +00:00
  • a7a837489d commented out unicode foriegn keys for now, not working on mysql or postgres Mike Bayer 2007-08-14 04:17:44 +00:00
  • f0a383f8bf attempt to get SessionTest to close transactions better Mike Bayer 2007-08-14 03:47:15 +00:00
  • 6c6cd47c02 - fixed endless loop - fixed perf imports in masseagerload Mike Bayer 2007-08-14 03:34:38 +00:00
  • b9ed823528 - base_mapper() becomes a plain attribute - session.execute() and scalar() can search for a Table with which to bind from using the given ClauseElement - session automatically extrapolates tables from mappers with binds, also uses base_mapper so that inheritance hierarchies bind automatically - moved ClauseVisitor traversal back to inlined non-recursive Mike Bayer 2007-08-14 03:19:46 +00:00
  • 0285ec6beb added engine_from_config() function for helping to create_engine() from an .ini style config Mike Bayer 2007-08-14 00:40:23 +00:00
  • e623c179da docstirng... Mike Bayer 2007-08-13 20:52:33 +00:00
  • eca4685897 added scoped session test independent of Session.mapper test Mike Bayer 2007-08-13 20:48:46 +00:00
  • c1a4befc68 - a rudimental SessionExtension class has been added, allowing user-defined functionality to take place at flush(), commit(), and rollback() boundaries. Mike Bayer 2007-08-13 20:14:04 +00:00
  • 6614209895 - generalized a SQLCompileTest out of select.py, installed into dialect/mssql.py, dialect/oracle.py, sql/generative.py - fixed oracle issues [ticket:732], [ticket:733], [ticket:734] Mike Bayer 2007-08-13 20:00:38 +00:00
  • 799f458667 adjusted mysql autoload from a named schema, esp. for windows Jason Kirtland 2007-08-13 18:57:05 +00:00
  • 05eb3073df Removed unused imports, other import adjustments per pyflakes Jason Kirtland 2007-08-13 07:09:56 +00:00
  • a19fa666ba Centralized some try: import foo except: import other as foo imports in util Jason Kirtland 2007-08-13 06:35:32 +00:00
  • 58f8db9955 Added more unicode foreign key tests for [ticket:729] Jason Kirtland 2007-08-12 23:43:49 +00:00
  • 872a882d0d auto-commit after LOAD DATA INFILE for mysql caught a couple more uncompiled regexps Jason Kirtland 2007-08-12 22:05:30 +00:00
  • 6e477b750e - got is_subquery() working in the case of compound selects, test for ms-sql Mike Bayer 2007-08-12 22:01:30 +00:00
  • 6b6443f82c removed ms-sql unsupporteds Mike Bayer 2007-08-12 21:42:07 +00:00
  • 62410adeb9 - fixed compiler bug in mssql - marked as unsupported for mssql all two-phase and nested transcation tests - marked as unsupported for mssql various transactional/session tests which require two connections looking at uncommitted/external data at the same time (ms-sql cant handle it) - put better explicit closeout step in unitofwork.py tests to appease ms-sqls hard locking Mike Bayer 2007-08-12 21:36:33 +00:00
  • fb5cd747e8 Close SQLite databases before deleting file, so the lock is released, important on Windows Paul Johnston 2007-08-12 21:24:27 +00:00
  • 0013b84f8b MSSQL: disable new 0.4 tests that cause hangs Paul Johnston 2007-08-12 20:52:07 +00:00
  • 970ecb31c5 edits Mike Bayer 2007-08-12 20:43:21 +00:00
  • 2bc1608641 - scoped_session docs - added remove() method to scoped_session Mike Bayer 2007-08-12 20:34:38 +00:00
  • 98166b253e Fix missing import of 'operator' Paul Johnston 2007-08-12 20:18:04 +00:00
  • 8b004dc7af added "should_commit()" hook to ExecutionContext. dialects can override with specific tests Mike Bayer 2007-08-12 19:37:47 +00:00
  • d06fba535c Bump. Jason Kirtland 2007-08-12 19:30:49 +00:00
  • 0d2189a993 typos Mike Bayer 2007-08-12 16:37:07 +00:00
  • cce281e056 added a brief migration guide rel_0_4beta1 Mike Bayer 2007-08-12 16:19:52 +00:00
  • 8564ae6ef9 two tests which assumed autoincrement=False for integer PK columns now require it to be explicit due to r3255. Mike Bayer 2007-08-12 15:58:11 +00:00
  • 685f281d40 Docs. Jason Kirtland 2007-08-12 04:51:21 +00:00
  • 138eee02f5 Allow auto_increment on any pk column, not just the first. Jason Kirtland 2007-08-12 01:11:44 +00:00
  • 2d8b5bb4f3 Added an exception hierarchy shadowing DB-API exc types No more generic SQLErrors wrappers- the shadow type matching the DB-API error is raised. [ticket:706] SQLError is now (also) DBAPIError. DBAPIError and subtype constructors will refuse to wrap a SystemExit or KeyboardInterrupt, returningthe original interrupt exception instead of a new instance. [ticket:689] Added a passthroughs for SE/KI exceptions in a couple except-and-discard situations Jason Kirtland 2007-08-11 23:15:32 +00:00
  • 2fbeeb125c inlined encoding of result column names Mike Bayer 2007-08-11 16:30:30 +00:00
  • 55cc73fc30 - precompiled regexp for anonymous labels - has_key()->__contains__() Mike Bayer 2007-08-11 16:25:30 +00:00
  • 3c749cba52 Bake the version number into the source during packaging. Jason Kirtland 2007-08-11 16:05:27 +00:00
  • ac219b0192 - removed _calculate_correlations() methods, removed correlation_stack, select_stack; all are merged into a single stack thats all within ansicompiler. clause visiting cut down significantly. Mike Bayer 2007-08-11 16:04:38 +00:00
  • e8793a5b59 - case_sensitive=(True|False) setting removed from schema items, since checking this state added a lot of method call overhead and there was no decent reason to ever set it to False. Table and column names which are all lower case will be treated as case-insenstive (yes we adjust for Oracle's UPPERCASE style too). Mike Bayer 2007-08-11 14:03:23 +00:00
  • 41c734b5a3 attempting to get oracle XID to work. not there yet. Mike Bayer 2007-08-11 01:08:42 +00:00
  • 7a545a8869 by popular demand, mysql reflection is now a single round-trip and uses a parse of SHOW CREATE TABLE ddl [ticket:612] the ANSI_QUOTES mode is now supported halfway there for auto_increment on secondary columns [ticket:649] indexes are now reflected [ticket:663] Jason Kirtland 2007-08-11 01:03:37 +00:00
  • 1391efea78 repaired oracle savepoint implementation Mike Bayer 2007-08-11 00:03:26 +00:00
  • b852fcbce0 - oracle reflection of case-sensitive names all fixed up - other unit tests corrected for oracle Mike Bayer 2007-08-10 23:24:06 +00:00
  • b01c63280e #725 add query arg to id_chooser() Mike Bayer 2007-08-10 21:18:01 +00:00
  • 21a0af61de Correct docstring. Jason Kirtland 2007-08-10 19:41:04 +00:00
  • dedcf82fa3 --dropfirst option added, defaults to False. pre-drops tables when set to True, reportedly mis-behaves on Oracle, MS-SQL. Mike Bayer 2007-08-10 18:12:30 +00:00
  • 219bcf8cb1 - fixes to PG unicode table/sequence reflection/create/drops Mike Bayer 2007-08-10 18:07:46 +00:00
  • 8c3607b041 - merged mapper has_pks fix from r3239 0.3 branch Mike Bayer 2007-08-10 15:54:10 +00:00
  • 566a016687 - fixed bug where mapper, being linked to a join where one table had no PK columns, would not detect that the joined table had no PK. Mike Bayer 2007-08-10 14:49:08 +00:00
  • bd68dcfde8 formatting tweaks Mike Bayer 2007-08-09 22:56:23 +00:00
  • 5f094f9ec7 moved old plugins to "deprecated" subheading, took out SessionContext/assignmapper docs (references 0.3 docs) Mike Bayer 2007-08-09 22:42:16 +00:00
  • 4f8a560d6f Fixed detection of internal '$' characters in :bind$params (Applied patch in [ticket:719], thanks!) Jason Kirtland 2007-08-09 22:31:44 +00:00
  • ce0d72e68a Allow '$' in bind param detection [ticket:719], added test suite & fixed an edge case Jason Kirtland 2007-08-09 22:10:16 +00:00
  • 491cbf97a4 removed unused method from last checkin Mike Bayer 2007-08-09 22:03:34 +00:00
  • be6e0d6063 some edits Mike Bayer 2007-08-09 21:54:04 +00:00
  • 578efcfeb3 - decoupled all ColumnElements from also being Selectables. this means that anything which is a column expression does not have a "c" or a "columns" attribute. Also works for select().as_scalar(); _ScalarSelect is a columnelement, so you can't say select().as_scalar().c.foo, which is a pretty confusing mistake to make. in the case of _ScalarSelect made an explicit raise if you try to access 'c'. Mike Bayer 2007-08-09 21:50:23 +00:00
  • 72b02cc093 Added 'unformat_identifiers', produces a list of unquoted identifiers from an identifier or a fully qualified identifier string. Jason Kirtland 2007-08-09 21:01:50 +00:00
  • b0253eb9b5 - added 'object_session' as classlevel method to Session - moved 'identity_key' to be a classmethod on Session - some docstrings - merged r3229 from 0.3 branch to unconditonally quote schemaname in PG-reflected default - name fixes in dynamic unit test Mike Bayer 2007-08-09 19:51:36 +00:00
  • 9ff298585a - when reflecting tables from alternate schemas, the "default" placed upon the primary key, i.e. usually a sequence name, has the "schema" name unconditionally quoted, so that schema names which need quoting are fine. its slightly unnecessary for schema names which don't need quoting but not harmful. Mike Bayer 2007-08-09 19:44:42 +00:00
  • cde7983a0a - fixed specification of YEAR columns when generating schema Jason Kirtland 2007-08-09 19:26:14 +00:00
  • bdd780dd88 restore clipping value for YEAR DDL Jason Kirtland 2007-08-09 19:03:42 +00:00
  • cb9356070d tweak DISTINCT precedence for clauses like func.count(t.c.col.distinct()) Jason Kirtland 2007-08-09 18:31:59 +00:00
  • 7c9d8d81ae session docs, CHANGES updates Mike Bayer 2007-08-09 17:35:00 +00:00
  • 45dd443732 edits Mike Bayer 2007-08-09 04:06:51 +00:00
  • 095ddfe8e9 added section on SQL-embedded attributes Mike Bayer 2007-08-09 03:42:31 +00:00
  • 5462e4aabc tweak Mike Bayer 2007-08-09 02:15:43 +00:00