]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
18 years agoreinstated two_phase test. currently it passes on PG with and without threadlocal.
Mike Bayer [Fri, 17 Aug 2007 18:01:52 +0000 (18:01 +0000)] 
reinstated two_phase test.  currently it passes on PG with and without threadlocal.

18 years agomerge changset [3347] into trunk
Paul Johnston [Fri, 17 Aug 2007 18:00:30 +0000 (18:00 +0000)] 
merge changset [3347] into trunk

18 years ago- added extra argument con_proxy to ConnectionListener interface checkout/checkin...
Mike Bayer [Fri, 17 Aug 2007 17:59:08 +0000 (17:59 +0000)] 
- added extra argument con_proxy to ConnectionListener interface checkout/checkin methods
- changed testing connection closer to work on _ConnectionFairy instances, resulting in
pool checkins, not actual closes
- disabled session two phase test for now, needs work
- added some two-phase support to TLEngine, not tested
- TLTransaction is now a wrapper

18 years agoMerge [3345] into trunk. Unit test still TODO
Paul Johnston [Fri, 17 Aug 2007 16:44:33 +0000 (16:44 +0000)] 
Merge [3345] into trunk. Unit test still TODO

18 years agoDisable MSSQL unicode statements on UCS-4 platforms, ticket #731
Paul Johnston [Fri, 17 Aug 2007 15:10:46 +0000 (15:10 +0000)] 
Disable MSSQL unicode statements on UCS-4 platforms, ticket #731

18 years ago- session transaction closing tweak for threadlocal
Jason Kirtland [Fri, 17 Aug 2007 15:01:20 +0000 (15:01 +0000)] 
- session transaction closing tweak for threadlocal
- connection-rollback decorator only fires on unhandled testing exceptions

18 years agoadded a testing decorator that mops up wayward connections
Jason Kirtland [Fri, 17 Aug 2007 01:24:46 +0000 (01:24 +0000)] 
added a testing decorator that mops up wayward connections

18 years agoremoved ridiculous LOrderedProp object
Mike Bayer [Thu, 16 Aug 2007 22:57:57 +0000 (22:57 +0000)] 
removed ridiculous LOrderedProp object

18 years agorevert the _DefaultExtension thing, it added function calls
Mike Bayer [Thu, 16 Aug 2007 22:20:45 +0000 (22:20 +0000)] 
revert the _DefaultExtension thing, it added function calls

18 years ago- moved test/orm/fixtures.py to testlib
Mike Bayer [Thu, 16 Aug 2007 22:15:15 +0000 (22:15 +0000)] 
- 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()

18 years agoit's a non-stop formatting fiesta
Jason Kirtland [Thu, 16 Aug 2007 21:22:44 +0000 (21:22 +0000)] 
it's a non-stop formatting fiesta

18 years agoformatting fiesta
Jason Kirtland [Thu, 16 Aug 2007 20:53:41 +0000 (20:53 +0000)] 
formatting fiesta

18 years agoAdded session.prune(), releases unused objects in strong-ref identity maps.
Jason Kirtland [Thu, 16 Aug 2007 19:58:24 +0000 (19:58 +0000)] 
Added session.prune(), releases unused objects in strong-ref identity maps.

18 years ago- fix to bind param processing such that "False" values (like blank strings)
Mike Bayer [Thu, 16 Aug 2007 18:25:11 +0000 (18:25 +0000)] 
- fix to bind param processing such that "False" values (like blank strings)
  still get processed/encoded

18 years agonew changelog with betas
Mike Bayer [Thu, 16 Aug 2007 15:58:54 +0000 (15:58 +0000)] 
new changelog with betas

18 years agobump
Mike Bayer [Thu, 16 Aug 2007 15:22:17 +0000 (15:22 +0000)] 
bump

18 years agoneeded orm import
Mike Bayer [Thu, 16 Aug 2007 15:20:20 +0000 (15:20 +0000)] 
needed orm import

18 years agobump rel_0_4beta3
Mike Bayer [Thu, 16 Aug 2007 15:12:57 +0000 (15:12 +0000)] 
bump

18 years agoadded remove() coverage....
Mike Bayer [Thu, 16 Aug 2007 15:00:51 +0000 (15:00 +0000)] 
added remove() coverage....

18 years agoadd length to str for pk usage
Mike Bayer [Thu, 16 Aug 2007 14:50:24 +0000 (14:50 +0000)] 
add length to str for pk usage

18 years agoadded support for string date passthru in sqlite
Mike Bayer [Thu, 16 Aug 2007 14:48:48 +0000 (14:48 +0000)] 
added support for string date passthru in sqlite

18 years agoadded 'inherit_foreign_keys' arg to mapper()
Mike Bayer [Thu, 16 Aug 2007 14:29:34 +0000 (14:29 +0000)] 
added 'inherit_foreign_keys' arg to mapper()

18 years agouse threading.local if available
Jason Kirtland [Wed, 15 Aug 2007 23:11:47 +0000 (23:11 +0000)] 
use threading.local if available
speed up ThreadLocal for python 2.3 [ticket:743]
clean in topo (in patch from [ticket:743])

18 years agofix hasattr typo [ticket:744]
Jason Kirtland [Wed, 15 Aug 2007 22:10:27 +0000 (22:10 +0000)] 
fix hasattr typo [ticket:744]

18 years agostopgap, need a general strategy for raising readable exceptions for unicode content
Jason Kirtland [Wed, 15 Aug 2007 22:07:35 +0000 (22:07 +0000)] 
stopgap, need a general strategy for raising readable exceptions for unicode content

18 years ago-removed print statements
Mike Bayer [Wed, 15 Aug 2007 17:31:17 +0000 (17:31 +0000)] 
-removed print statements
- removeld errant classmethod on remove()

18 years agomass has_key->__contains__ migration, [ticket:738]
Mike Bayer [Wed, 15 Aug 2007 17:28:52 +0000 (17:28 +0000)] 
mass has_key->__contains__ migration, [ticket:738]

18 years ago- moved unicode schema ORM tests to unitofwork.py tests. mostly
Mike Bayer [Wed, 15 Aug 2007 16:48:57 +0000 (16:48 +0000)] 
- 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]

18 years ago- cleanup, converted unitofwork.py to standard fixtures
Mike Bayer [Wed, 15 Aug 2007 03:49:32 +0000 (03:49 +0000)] 
- cleanup, converted unitofwork.py to standard fixtures

18 years agoremoved init_attr() call, which has shown to not increase performance
Mike Bayer [Wed, 15 Aug 2007 01:25:13 +0000 (01:25 +0000)] 
removed init_attr() call, which has shown to not increase performance

18 years ago- merged "fasttypes" branch. this branch changes the signature
Mike Bayer [Tue, 14 Aug 2007 21:53:32 +0000 (21:53 +0000)] 
- 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%.

18 years agocleanup
Mike Bayer [Tue, 14 Aug 2007 20:26:43 +0000 (20:26 +0000)] 
cleanup

18 years agorevert previous change; had misunderstood context
Paul Johnston [Tue, 14 Aug 2007 18:25:09 +0000 (18:25 +0000)] 
revert previous change; had misunderstood context

18 years agofudge to make SQL asserts work reliably with MSSQL
Paul Johnston [Tue, 14 Aug 2007 18:16:27 +0000 (18:16 +0000)] 
fudge to make SQL asserts work reliably with MSSQL

18 years agoMake versioningtest.test_basic only assert when the dbapi support sane_rowcount
Paul Johnston [Tue, 14 Aug 2007 18:03:25 +0000 (18:03 +0000)] 
Make versioningtest.test_basic only assert when the dbapi support sane_rowcount

18 years agoadded sqlite/sa "unprofiled" raw time tests
Mike Bayer [Tue, 14 Aug 2007 17:51:15 +0000 (17:51 +0000)] 
added sqlite/sa "unprofiled" raw time tests

18 years agoadded full fetching of result columns, cut overall size to 50000
Mike Bayer [Tue, 14 Aug 2007 17:43:03 +0000 (17:43 +0000)] 
added full fetching of result columns, cut overall size to 50000

18 years agoa mass insert/ select benchmarking test, from
Mike Bayer [Tue, 14 Aug 2007 17:34:17 +0000 (17:34 +0000)] 
a mass insert/ select benchmarking test, from
http://pyinsci.blogspot.com/2007/07/fastest-python-database-interface.html

18 years agoadjustment to table_names test such that the DB can have extra tables around
Mike Bayer [Tue, 14 Aug 2007 15:10:42 +0000 (15:10 +0000)] 
adjustment to table_names test such that the DB can have extra tables around

18 years agoremoved assertion for "no tables in db" rel_0_4beta2
Mike Bayer [Tue, 14 Aug 2007 14:32:50 +0000 (14:32 +0000)] 
removed assertion for "no tables in db"

18 years agocommented out unicode foriegn keys for now, not working on mysql or postgres
Mike Bayer [Tue, 14 Aug 2007 04:17:44 +0000 (04:17 +0000)] 
commented out unicode foriegn keys for now, not working on mysql or postgres

18 years agoattempt to get SessionTest to close transactions better
Mike Bayer [Tue, 14 Aug 2007 03:47:15 +0000 (03:47 +0000)] 
attempt to get SessionTest to close transactions better

18 years ago- fixed endless loop
Mike Bayer [Tue, 14 Aug 2007 03:34:38 +0000 (03:34 +0000)] 
- fixed endless loop
- fixed perf imports in masseagerload

18 years ago- base_mapper() becomes a plain attribute
Mike Bayer [Tue, 14 Aug 2007 03:19:46 +0000 (03:19 +0000)] 
- 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

18 years agoadded engine_from_config() function for helping to create_engine()
Mike Bayer [Tue, 14 Aug 2007 00:40:23 +0000 (00:40 +0000)] 
added engine_from_config() function for helping to create_engine()
from an .ini style config

18 years agodocstirng...
Mike Bayer [Mon, 13 Aug 2007 20:52:33 +0000 (20:52 +0000)] 
docstirng...

18 years agoadded scoped session test independent of Session.mapper test
Mike Bayer [Mon, 13 Aug 2007 20:48:46 +0000 (20:48 +0000)] 
added scoped session test independent of Session.mapper test

18 years ago- a rudimental SessionExtension class has been added, allowing user-defined
Mike Bayer [Mon, 13 Aug 2007 20:14:04 +0000 (20:14 +0000)] 
- a rudimental SessionExtension class has been added, allowing user-defined
  functionality to take place at flush(), commit(), and rollback() boundaries.

18 years ago- generalized a SQLCompileTest out of select.py, installed
Mike Bayer [Mon, 13 Aug 2007 20:00:38 +0000 (20:00 +0000)] 
- 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]

18 years agoadjusted mysql autoload from a named schema, esp. for windows
Jason Kirtland [Mon, 13 Aug 2007 18:57:05 +0000 (18:57 +0000)] 
adjusted mysql autoload from a named schema, esp. for windows

18 years agoRemoved unused imports, other import adjustments per pyflakes
Jason Kirtland [Mon, 13 Aug 2007 07:09:56 +0000 (07:09 +0000)] 
Removed unused imports, other import adjustments per pyflakes

18 years agoCentralized some `try: import foo except: import other as foo` imports in util
Jason Kirtland [Mon, 13 Aug 2007 06:35:32 +0000 (06:35 +0000)] 
Centralized some `try: import foo except: import other as foo` imports in util

18 years agoAdded more unicode foreign key tests for [ticket:729]
Jason Kirtland [Sun, 12 Aug 2007 23:43:49 +0000 (23:43 +0000)] 
Added more unicode foreign key tests for [ticket:729]

18 years agoauto-commit after LOAD DATA INFILE for mysql
Jason Kirtland [Sun, 12 Aug 2007 22:05:30 +0000 (22:05 +0000)] 
auto-commit after LOAD DATA INFILE for mysql
caught a couple more uncompiled regexps

18 years ago- got is_subquery() working in the case of compound selects, test for ms-sql
Mike Bayer [Sun, 12 Aug 2007 22:01:30 +0000 (22:01 +0000)] 
- got is_subquery() working in the case of compound selects, test for ms-sql

18 years agoremoved ms-sql unsupporteds
Mike Bayer [Sun, 12 Aug 2007 21:42:07 +0000 (21:42 +0000)] 
removed ms-sql unsupporteds

18 years ago- fixed compiler bug in mssql
Mike Bayer [Sun, 12 Aug 2007 21:36:33 +0000 (21:36 +0000)] 
- 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

18 years agoClose SQLite databases before deleting file, so the lock is released, important on...
Paul Johnston [Sun, 12 Aug 2007 21:24:27 +0000 (21:24 +0000)] 
Close SQLite databases before deleting file, so the lock is released, important on Windows

18 years agoMSSQL: disable new 0.4 tests that cause hangs
Paul Johnston [Sun, 12 Aug 2007 20:52:07 +0000 (20:52 +0000)] 
MSSQL: disable new 0.4 tests that cause hangs

18 years agoedits
Mike Bayer [Sun, 12 Aug 2007 20:43:21 +0000 (20:43 +0000)] 
edits

18 years ago- scoped_session docs
Mike Bayer [Sun, 12 Aug 2007 20:34:38 +0000 (20:34 +0000)] 
- scoped_session docs
- added remove() method to scoped_session

18 years agoFix missing import of 'operator'
Paul Johnston [Sun, 12 Aug 2007 20:18:04 +0000 (20:18 +0000)] 
Fix missing import of 'operator'

18 years agoadded "should_commit()" hook to ExecutionContext. dialects can override with specifi...
Mike Bayer [Sun, 12 Aug 2007 19:37:47 +0000 (19:37 +0000)] 
added "should_commit()" hook to ExecutionContext.  dialects can override with specific tests

18 years agoBump.
Jason Kirtland [Sun, 12 Aug 2007 19:30:49 +0000 (19:30 +0000)] 
Bump.

18 years agotypos
Mike Bayer [Sun, 12 Aug 2007 16:37:07 +0000 (16:37 +0000)] 
typos

18 years agoadded a brief migration guide rel_0_4beta1
Mike Bayer [Sun, 12 Aug 2007 16:19:52 +0000 (16:19 +0000)] 
added a brief migration guide

18 years agotwo tests which assumed autoincrement=False for integer PK columns now require it
Mike Bayer [Sun, 12 Aug 2007 15:58:11 +0000 (15:58 +0000)] 
two tests which assumed autoincrement=False for integer PK columns now require it
to be explicit due to r3255.

18 years agoDocs.
Jason Kirtland [Sun, 12 Aug 2007 04:51:21 +0000 (04:51 +0000)] 
Docs.

18 years agoAllow auto_increment on any pk column, not just the first.
Jason Kirtland [Sun, 12 Aug 2007 01:11:44 +0000 (01:11 +0000)] 
Allow auto_increment on any pk column, not just the first.

18 years agoAdded an exception hierarchy shadowing DB-API exc types
Jason Kirtland [Sat, 11 Aug 2007 23:15:32 +0000 (23:15 +0000)] 
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

18 years agoinlined encoding of result column names
Mike Bayer [Sat, 11 Aug 2007 16:30:30 +0000 (16:30 +0000)] 
inlined encoding of result column names

18 years ago- precompiled regexp for anonymous labels
Mike Bayer [Sat, 11 Aug 2007 16:25:30 +0000 (16:25 +0000)] 
- precompiled regexp for anonymous labels
- has_key()->__contains__()

18 years agoBake the version number into the source during packaging.
Jason Kirtland [Sat, 11 Aug 2007 16:05:27 +0000 (16:05 +0000)] 
Bake the version number into the source during packaging.

18 years ago- removed _calculate_correlations() methods, removed correlation_stack, select_stack;
Mike Bayer [Sat, 11 Aug 2007 16:04:38 +0000 (16:04 +0000)] 
- 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.

18 years ago - case_sensitive=(True|False) setting removed from schema items, since
Mike Bayer [Sat, 11 Aug 2007 14:03:23 +0000 (14:03 +0000)] 
  - 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).

18 years agoattempting to get oracle XID to work. not there yet.
Mike Bayer [Sat, 11 Aug 2007 01:08:42 +0000 (01:08 +0000)] 
attempting to get oracle XID to work.  not there yet.

18 years agoby popular demand, mysql reflection is now a single round-trip and uses a parse of...
Jason Kirtland [Sat, 11 Aug 2007 01:03:37 +0000 (01:03 +0000)] 
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]

18 years agorepaired oracle savepoint implementation
Mike Bayer [Sat, 11 Aug 2007 00:03:26 +0000 (00:03 +0000)] 
repaired oracle savepoint implementation

18 years ago- oracle reflection of case-sensitive names all fixed up
Mike Bayer [Fri, 10 Aug 2007 23:24:06 +0000 (23:24 +0000)] 
- oracle reflection of case-sensitive names all fixed up
- other unit tests corrected for oracle

18 years ago#725 add query arg to id_chooser()
Mike Bayer [Fri, 10 Aug 2007 21:18:01 +0000 (21:18 +0000)] 
#725 add query arg to id_chooser()

18 years agoCorrect docstring.
Jason Kirtland [Fri, 10 Aug 2007 19:41:04 +0000 (19:41 +0000)] 
Correct docstring.

18 years ago--dropfirst option added, defaults to False. pre-drops tables when set to True,...
Mike Bayer [Fri, 10 Aug 2007 18:12:30 +0000 (18:12 +0000)] 
--dropfirst option added, defaults to False.  pre-drops tables when set to True, reportedly mis-behaves on Oracle, MS-SQL.

18 years ago- fixes to PG unicode table/sequence reflection/create/drops
Mike Bayer [Fri, 10 Aug 2007 18:07:46 +0000 (18:07 +0000)] 
- fixes to PG unicode table/sequence reflection/create/drops

18 years ago- merged mapper has_pks fix from r3239 0.3 branch
Mike Bayer [Fri, 10 Aug 2007 15:54:10 +0000 (15:54 +0000)] 
- merged mapper has_pks fix from r3239 0.3 branch

18 years agoformatting tweaks
Mike Bayer [Thu, 9 Aug 2007 22:56:23 +0000 (22:56 +0000)] 
formatting tweaks

18 years agomoved old plugins to "deprecated" subheading, took out SessionContext/assignmapper...
Mike Bayer [Thu, 9 Aug 2007 22:42:16 +0000 (22:42 +0000)] 
moved old plugins to "deprecated" subheading, took out SessionContext/assignmapper docs (references 0.3 docs)

18 years agoAllow '$' in bind param detection [ticket:719], added test suite & fixed an edge...
Jason Kirtland [Thu, 9 Aug 2007 22:10:16 +0000 (22:10 +0000)] 
Allow '$' in bind param detection [ticket:719], added test suite & fixed an edge case

18 years agoremoved unused method from last checkin
Mike Bayer [Thu, 9 Aug 2007 22:03:34 +0000 (22:03 +0000)] 
removed unused method from last checkin

18 years agosome edits
Mike Bayer [Thu, 9 Aug 2007 21:54:04 +0000 (21:54 +0000)] 
some edits

18 years ago- decoupled all ColumnElements from also being Selectables. this means
Mike Bayer [Thu, 9 Aug 2007 21:50:23 +0000 (21:50 +0000)] 
- 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'.

18 years agoAdded 'unformat_identifiers', produces a list of unquoted identifiers from an identif...
Jason Kirtland [Thu, 9 Aug 2007 21:01:50 +0000 (21:01 +0000)] 
Added 'unformat_identifiers', produces a list of unquoted identifiers from an identifier or a fully qualified identifier string.

18 years ago- added 'object_session' as classlevel method to Session
Mike Bayer [Thu, 9 Aug 2007 19:51:36 +0000 (19:51 +0000)] 
- 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

18 years agorestore clipping value for YEAR DDL
Jason Kirtland [Thu, 9 Aug 2007 19:03:42 +0000 (19:03 +0000)] 
restore clipping value for YEAR DDL

18 years agosession docs, CHANGES updates
Mike Bayer [Thu, 9 Aug 2007 17:35:00 +0000 (17:35 +0000)] 
session docs, CHANGES updates

18 years agoedits
Mike Bayer [Thu, 9 Aug 2007 04:06:51 +0000 (04:06 +0000)] 
edits

18 years agoadded section on SQL-embedded attributes
Mike Bayer [Thu, 9 Aug 2007 03:42:31 +0000 (03:42 +0000)] 
added section on SQL-embedded attributes

18 years agotweak
Mike Bayer [Thu, 9 Aug 2007 02:15:43 +0000 (02:15 +0000)] 
tweak

18 years agonew session doc
Mike Bayer [Thu, 9 Aug 2007 02:14:48 +0000 (02:14 +0000)] 
new session doc

18 years agowarning: may not be true. (GIS types)
Jason Kirtland [Thu, 9 Aug 2007 01:42:30 +0000 (01:42 +0000)] 
warning: may not be true.  (GIS types)

18 years ago^C ^C ^C! (revert r3218 in pooling.txt)
Jason Kirtland [Wed, 8 Aug 2007 23:48:49 +0000 (23:48 +0000)] 
^C ^C ^C! (revert r3218 in pooling.txt)