]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
19 years agocursor() method on ConnectionFairy allows db-specific extension
Mike Bayer [Mon, 26 Jun 2006 20:15:54 +0000 (20:15 +0000)] 
cursor() method on ConnectionFairy allows db-specific extension
arguments to be propigated [ticket:221]

19 years agoPG didnt like 'user' for a table name
Mike Bayer [Mon, 26 Jun 2006 20:06:59 +0000 (20:06 +0000)] 
PG didnt like 'user' for a table name

19 years agodont put SERIAL on a column if it has a ForeignKey
Mike Bayer [Mon, 26 Jun 2006 20:01:56 +0000 (20:01 +0000)] 
dont put SERIAL on a column if it has a ForeignKey

19 years agofixed attribute manager's ability to traverse the full set of managed attributes...
Mike Bayer [Mon, 26 Jun 2006 19:55:48 +0000 (19:55 +0000)] 
fixed attribute manager's ability to traverse the full set of managed attributes for a descendant class, + 2 unit tests

19 years ago0.2.4...
Mike Bayer [Mon, 26 Jun 2006 19:51:41 +0000 (19:51 +0000)] 
0.2.4...

19 years agomigrated Queue.Queue to its own module here, to assure RLock compatibility
Mike Bayer [Mon, 26 Jun 2006 19:51:01 +0000 (19:51 +0000)] 
migrated Queue.Queue to its own module here, to assure RLock compatibility

19 years agofix to the column properties to better compile the underlying mapper before access
Mike Bayer [Mon, 26 Jun 2006 19:30:10 +0000 (19:30 +0000)] 
fix to the column properties to better compile the underlying mapper before access

19 years agosome doc edits
Mike Bayer [Mon, 26 Jun 2006 19:15:09 +0000 (19:15 +0000)] 
some doc edits

19 years agofix to timeout
Mike Bayer [Mon, 26 Jun 2006 18:27:32 +0000 (18:27 +0000)] 
fix to timeout

19 years agoattempting to fix reentrant condition that can happen with Queue.Queue
Mike Bayer [Mon, 26 Jun 2006 04:32:34 +0000 (04:32 +0000)] 
attempting to fix reentrant condition that can happen with Queue.Queue

19 years agowhen QueuePool times out it raises a TimeoutError instead of
Mike Bayer [Mon, 26 Jun 2006 02:06:44 +0000 (02:06 +0000)] 
when QueuePool times out it raises a TimeoutError instead of
erroneously making another connection

19 years agofixed bug when specifying explicit module to mysql dialect
Mike Bayer [Fri, 23 Jun 2006 14:38:16 +0000 (14:38 +0000)] 
fixed bug when specifying explicit module to mysql dialect

19 years agoadded *extra to mysql string type to consume extra unsupported arguments from reflection
Mike Bayer [Thu, 22 Jun 2006 22:37:10 +0000 (22:37 +0000)] 
added *extra to mysql string type to consume extra unsupported arguments from reflection

19 years agofixes to inheritance firing off dependency processors correctly + unittest
Mike Bayer [Thu, 22 Jun 2006 22:23:57 +0000 (22:23 +0000)] 
fixes to inheritance firing off dependency processors correctly + unittest

19 years agoidentified another TLTransaction scenario, and adjusted TLConnection/TLSession to...
Mike Bayer [Thu, 22 Jun 2006 20:03:09 +0000 (20:03 +0000)] 
identified another TLTransaction scenario, and adjusted TLConnection/TLSession to fix this as well (reverted previous change, and overriding in_transaction() instead)

19 years agoTLConnection insures that it is used to create a transaction via the session when...
Mike Bayer [Thu, 22 Jun 2006 19:46:44 +0000 (19:46 +0000)] 
TLConnection insures that it is used to create a transaction via the session when begin() is called, so that it has proper transactional context, + unittests

19 years agostill fixing compilation.....dum de dum.....
Mike Bayer [Thu, 22 Jun 2006 19:29:24 +0000 (19:29 +0000)] 
still fixing compilation.....dum de dum.....

19 years agoremoved non py2.3ish parenthesis
Mike Bayer [Thu, 22 Jun 2006 04:31:15 +0000 (04:31 +0000)] 
removed non py2.3ish parenthesis

19 years agomore compilation fixes
Mike Bayer [Thu, 22 Jun 2006 04:29:55 +0000 (04:29 +0000)] 
more compilation fixes

19 years agoReplaced tab spacing with plain spaces.
sean [Wed, 21 Jun 2006 16:29:15 +0000 (16:29 +0000)] 
Replaced tab spacing with plain spaces.

19 years agoChanged mapper.get_session to compile mapper and thereby create the
sean [Wed, 21 Jun 2006 16:24:05 +0000 (16:24 +0000)] 
Changed mapper.get_session to compile mapper and thereby create the
extension chain needed to lookup the current session.

19 years agosome cleanup to the new compilation changes
Mike Bayer [Tue, 20 Jun 2006 23:22:54 +0000 (23:22 +0000)] 
some cleanup to the new compilation changes

19 years agopossible fix to deferred compilation, adds an extra kick in case everything wasnt...
Mike Bayer [Tue, 20 Jun 2006 02:45:03 +0000 (02:45 +0000)] 
possible fix to deferred compilation, adds an extra kick in case everything wasnt compiled

19 years agosingle space for MySQL appeasement
Mike Bayer [Mon, 19 Jun 2006 21:52:54 +0000 (21:52 +0000)] 
single space for MySQL appeasement

19 years agomore development on using eager loads/limit/offset/join_via/order_by at the same...
Mike Bayer [Mon, 19 Jun 2006 21:44:56 +0000 (21:44 +0000)] 
more development on using eager loads/limit/offset/join_via/order_by at the same time

19 years agowhen Query does the "nested select" thing, it copies the ORDER BY to be placed on...
Mike Bayer [Mon, 19 Jun 2006 20:41:42 +0000 (20:41 +0000)] 
when Query does the "nested select" thing, it copies the ORDER BY to be placed on the "outer" select, so that eager loaders modify only the outer one and not the inner one

19 years agoadded check for conflicting backrefs + unit test
Mike Bayer [Mon, 19 Jun 2006 17:47:21 +0000 (17:47 +0000)] 
added check for conflicting backrefs + unit test
identified unit test where mapper properties must be set up before the surrogate mapper is created

19 years agoAdded some additional data to exception raised in PropertyLoader,_get_direction when...
Robert Leftwich [Sun, 18 Jun 2006 22:16:36 +0000 (22:16 +0000)] 
Added some additional data to exception raised in PropertyLoader,_get_direction when cannot determine the direction to specify exactly which relation failed.

19 years agolazy load and deferred load operations require the parent object
Mike Bayer [Sun, 18 Jun 2006 00:56:25 +0000 (00:56 +0000)] 
lazy load and deferred load operations require the parent object
to be in a Session to do the operation; whereas before the operation
would just return a blank list or None, it now raises an exception.

Session.update() is slightly more lenient if the session to which
the given object was formerly attached to was garbage collected;
otherwise still requires you explicitly remove the instance from
the previous Session.

19 years agotry/except around init.__name__ = oldinit.__name__ for py2.3 compat
Mike Bayer [Sat, 17 Jun 2006 14:57:10 +0000 (14:57 +0000)] 
try/except  around init.__name__ = oldinit.__name__ for py2.3 compat

19 years agocast converted into its own ClauseElement so that it can have an explicit compilation rel_0_2_3
Mike Bayer [Sat, 17 Jun 2006 00:53:33 +0000 (00:53 +0000)] 
cast converted into its own ClauseElement so that it can have an explicit compilation
function in ANSICompiler
MySQLCompiler then skips most CAST calls since it only seems to support the standard syntax for Date
types; other types now a TODO for MySQL
then, polymorphic_union() function now CASTs null()s to the type corresponding to the columns in the UNION,
since postgres doesnt like mixing NULL with integer types
(long road for that .....)

19 years agoif an object fails construction, doesnt get added to the session
Mike Bayer [Sat, 17 Jun 2006 00:45:45 +0000 (00:45 +0000)] 
if an object fails construction, doesnt get added to the session

19 years agoupdates
Mike Bayer [Fri, 16 Jun 2006 19:38:31 +0000 (19:38 +0000)] 
updates

19 years agounsupported unit test on mysql
Mike Bayer [Fri, 16 Jun 2006 19:28:36 +0000 (19:28 +0000)] 
unsupported unit test on mysql

19 years agomore intelligent "removal" of list items when a list attribute is replaced, doesnt...
Mike Bayer [Fri, 16 Jun 2006 19:21:57 +0000 (19:21 +0000)] 
more intelligent "removal" of list items when a list attribute is replaced, doesnt actually "remove" the items from teh replaced list just marks them as "removed" from the parent object for history purposes

19 years agoremoved historyarray test
Mike Bayer [Fri, 16 Jun 2006 19:02:10 +0000 (19:02 +0000)] 
removed historyarray test
ForeignKey is more intelligent about locating the parent table it represents, in the case that
its attached to a CompoundSelect column which has multiple "originals", some of which might not be schema.Columns

19 years agofixed bug where if a many-to-many table mapped as "secondary" had other cols in it...
Mike Bayer [Fri, 16 Jun 2006 03:19:53 +0000 (03:19 +0000)] 
fixed bug where if a many-to-many table mapped as "secondary" had other cols in it, delete operations would try to match up on those columns.  also fixed bug in new attributes if you set a list based attribute to a blank list, properly fires the 'delete' event for the elements of the previous list

19 years agofixed 'port' attribute of URL to be an integer if present [ticket:209]
Mike Bayer [Thu, 15 Jun 2006 20:30:04 +0000 (20:30 +0000)] 
fixed 'port' attribute of URL to be an integer if present [ticket:209]

19 years agosome adjustments
Mike Bayer [Thu, 15 Jun 2006 16:05:59 +0000 (16:05 +0000)] 
some adjustments

19 years agomerged attributes rewrite
Mike Bayer [Thu, 15 Jun 2006 15:53:00 +0000 (15:53 +0000)] 
merged attributes rewrite

19 years agoif an item attached to a parent is found to be already in the session, then the ...
Mike Bayer [Thu, 15 Jun 2006 15:27:39 +0000 (15:27 +0000)] 
if an item attached to a parent is found to be already in the session, then the "save-update" cascade operation doesnt take place.  currently this prevents unncessessary cascading due to backref events, which was a massive speed hit.

19 years agofixed bug where Column with redefined "key" property wasnt getting
Mike Bayer [Wed, 14 Jun 2006 16:46:38 +0000 (16:46 +0000)] 
fixed bug where Column with redefined "key" property wasnt getting
type conversion happening in the ResultProxy [ticket:207]

19 years agofixed nested rollbacks
Mike Bayer [Wed, 14 Jun 2006 15:50:40 +0000 (15:50 +0000)] 
fixed nested rollbacks

19 years agounit tests for dangling subquery, many-to-many clear-and-resave
Mike Bayer [Wed, 14 Jun 2006 15:39:46 +0000 (15:39 +0000)] 
unit tests for dangling subquery, many-to-many clear-and-resave

19 years agoadjustment to better allow textual from clauses
Mike Bayer [Mon, 12 Jun 2006 19:53:42 +0000 (19:53 +0000)] 
adjustment to better allow textual from clauses

19 years ago"parent track" function needed to be more specific to the parent class
Mike Bayer [Sat, 10 Jun 2006 19:40:26 +0000 (19:40 +0000)] 
"parent track" function needed to be more specific to the parent class

19 years agoseparated standalone between(), column.between(), put literal checking for both,...
Mike Bayer [Thu, 8 Jun 2006 17:38:37 +0000 (17:38 +0000)] 
separated standalone between(), column.between(), put literal checking for both, favor column.between()

19 years agofixed typing for between() operator, [ticket:202]
Mike Bayer [Thu, 8 Jun 2006 17:29:18 +0000 (17:29 +0000)] 
fixed typing for between() operator, [ticket:202]

19 years agofixed module scoping for class_mapper [ticket:201]
Mike Bayer [Thu, 8 Jun 2006 17:04:15 +0000 (17:04 +0000)] 
fixed module scoping for class_mapper [ticket:201]

19 years agolate compilation of mappers. now you can create mappers in any order, and they will...
Mike Bayer [Thu, 8 Jun 2006 16:58:14 +0000 (16:58 +0000)] 
late compilation of mappers.  now you can create mappers in any order, and they will compile their internal state when first used in a query or flush operation (or their props or 'c'/'columns' attributes are used).  includes various cleanups and fixes in support of the change, including some unit test changes, additional unit tests.

19 years agopossible fix to cascade_mappers
Mike Bayer [Wed, 7 Jun 2006 23:32:52 +0000 (23:32 +0000)] 
possible fix to cascade_mappers

19 years agofixed [ticket:200]
Mike Bayer [Wed, 7 Jun 2006 23:16:35 +0000 (23:16 +0000)] 
fixed [ticket:200]

19 years agoFurther improved the process_relationships function to handle the ordering of
Jonathan LaCour [Tue, 6 Jun 2006 17:58:41 +0000 (17:58 +0000)] 
Further improved the process_relationships function to handle the ordering of
class definitions better. The function was only looking at relationships, not
foreign keys, and was making some improper assumptions. The unit tests all
still pass, and now some of my own code actually works, regardless of the order
that I define the classes in.' 'lib/sqlalchemy/ext/activemapper.py

19 years agofixed bug where tables with schema name werent getting indexed in metadata correctly
Mike Bayer [Tue, 6 Jun 2006 16:38:30 +0000 (16:38 +0000)] 
fixed bug where tables with schema name werent getting indexed in metadata correctly

19 years agoCopy __name__ and __doc__ from oldinit.
sean [Tue, 6 Jun 2006 04:44:39 +0000 (04:44 +0000)] 
Copy __name__ and __doc__ from oldinit.

19 years agofix to backref when its none for one-to-one
Mike Bayer [Tue, 6 Jun 2006 01:33:17 +0000 (01:33 +0000)] 
fix to backref when its none for one-to-one

19 years agoadded "NonExistentTable" exception throw to reflection, courtesy lbruno@republico...
Mike Bayer [Tue, 6 Jun 2006 00:11:54 +0000 (00:11 +0000)] 
added "NonExistentTable" exception throw to reflection, courtesy lbruno@republico.estv.ipv.pt, for [ticket:138]

19 years agofactored out "inheriting_tasks" member of UOWTask. all "polymorphic traversal" is...
Mike Bayer [Tue, 6 Jun 2006 00:02:48 +0000 (00:02 +0000)] 
factored out "inheriting_tasks" member of UOWTask.  all "polymorphic traversal" is done via the polymorphic_tasks() method.

19 years agoHashSet is gone, uses set() for most sets in py2.4 or sets.Set.
Mike Bayer [Mon, 5 Jun 2006 23:28:44 +0000 (23:28 +0000)] 
HashSet is gone, uses set() for most sets in py2.4 or sets.Set.
ordered set functionality supplied by a subclass of sets.Set

19 years ago"foreignkey" property of PropertyLoader is a sets.Set. removed "foreigntable".
Mike Bayer [Mon, 5 Jun 2006 22:45:10 +0000 (22:45 +0000)] 
"foreignkey" property of PropertyLoader is a sets.Set.  removed "foreigntable".
simplified/fixed foreign key location in _find_dependent(), fixes [ticket:151]

19 years agofixed InvalidRequestException -> InvalidRequestError typo
sean [Mon, 5 Jun 2006 21:19:20 +0000 (21:19 +0000)] 
fixed InvalidRequestException -> InvalidRequestError typo

19 years agotweaks rel_0_2_2
Mike Bayer [Mon, 5 Jun 2006 19:27:47 +0000 (19:27 +0000)] 
tweaks

19 years ago0.2.2 prep, added "pickler" option to Pickle type
Mike Bayer [Mon, 5 Jun 2006 19:18:48 +0000 (19:18 +0000)] 
0.2.2 prep, added "pickler" option to Pickle type

19 years agoforce_close...
Mike Bayer [Mon, 5 Jun 2006 18:26:54 +0000 (18:26 +0000)] 
force_close...

19 years agomore fixes to transaction nesting, interacts better with close() statement
Mike Bayer [Mon, 5 Jun 2006 18:25:35 +0000 (18:25 +0000)] 
more fixes to transaction nesting, interacts better with close() statement

19 years agoreorganized unit tests into subdirectories
Mike Bayer [Mon, 5 Jun 2006 17:25:51 +0000 (17:25 +0000)] 
reorganized unit tests into subdirectories

19 years agoimprovements/fixes to session cascade iteration,
Mike Bayer [Mon, 5 Jun 2006 02:31:53 +0000 (02:31 +0000)] 
improvements/fixes to session cascade iteration,
fixes to entity_name propigation

19 years agoadded new polymorph test, todos for session/cascade
Mike Bayer [Sat, 3 Jun 2006 18:49:10 +0000 (18:49 +0000)] 
added new polymorph test, todos for session/cascade

19 years agodbengine doc: no support for pg1
Mike Bayer [Sat, 3 Jun 2006 17:48:55 +0000 (17:48 +0000)] 
dbengine doc: no support for pg1
postgres: if module is none, still use pyformat for some unit tests

19 years agodoc for oracle fix
Mike Bayer [Fri, 2 Jun 2006 23:11:06 +0000 (23:11 +0000)] 
doc for oracle fix

19 years agoconfirmed that makedsn works with host/port/sid
Mike Bayer [Fri, 2 Jun 2006 23:05:33 +0000 (23:05 +0000)] 
confirmed that makedsn works with host/port/sid

19 years agorestored global_connect() function, default table metadata
Mike Bayer [Fri, 2 Jun 2006 22:34:54 +0000 (22:34 +0000)] 
restored global_connect() function, default table metadata

19 years agoadjustment to datetime
Mike Bayer [Fri, 2 Jun 2006 22:14:42 +0000 (22:14 +0000)] 
adjustment to datetime

19 years agopool doesnt consume random **kwargs
Mike Bayer [Fri, 2 Jun 2006 01:31:24 +0000 (01:31 +0000)] 
pool doesnt consume random **kwargs

19 years agocleanup
Mike Bayer [Fri, 2 Jun 2006 01:17:09 +0000 (01:17 +0000)] 
cleanup

19 years ago- got rudimental "mapping to multiple tables" functionality cleaned up,
Mike Bayer [Fri, 2 Jun 2006 01:10:20 +0000 (01:10 +0000)] 
- got rudimental "mapping to multiple tables" functionality cleaned up,
more correctly documented

19 years agoupdate
Mike Bayer [Thu, 1 Jun 2006 20:59:49 +0000 (20:59 +0000)] 
update

19 years agofixed host connector again, now for [ticket:197]
Mike Bayer [Thu, 1 Jun 2006 20:52:12 +0000 (20:52 +0000)] 
fixed host connector again, now for [ticket:197]

19 years agoswitched generator to list comprehension
Mike Bayer [Thu, 1 Jun 2006 18:22:49 +0000 (18:22 +0000)] 
switched generator to list comprehension

19 years agocreate_connect_args can create DSN from host/port, submitted by bernd.dorn@fhv.at...
Mike Bayer [Thu, 1 Jun 2006 15:55:52 +0000 (15:55 +0000)] 
create_connect_args can create DSN from host/port, submitted by bernd.dorn@fhv.at for [ticket:192]

19 years agofixes half of [ticket:192], query.load()/get() with a unicode argument was failing...
Mike Bayer [Thu, 1 Jun 2006 15:49:58 +0000 (15:49 +0000)] 
fixes half of [ticket:192], query.load()/get() with a unicode argument was failing to apply type conversion to the bind parameter

19 years ago"count" label changed to "rowcount", and default "count" argument is first pk col...
Mike Bayer [Thu, 1 Jun 2006 15:20:35 +0000 (15:20 +0000)] 
"count" label changed to "rowcount", and default "count" argument is first pk col of the table or the first col if no pks

19 years agoimplemented query string support in db urls, gets sent to dialect **kwargs, [ticket...
Mike Bayer [Thu, 1 Jun 2006 02:03:36 +0000 (02:03 +0000)] 
implemented query string support in db urls, gets sent to dialect **kwargs, [ticket:196]

19 years agomore test adjustments for firebird
Mike Bayer [Thu, 1 Jun 2006 01:18:00 +0000 (01:18 +0000)] 
more test adjustments for firebird

19 years agobrad clement's 0.2 firebird support !
Mike Bayer [Thu, 1 Jun 2006 01:12:39 +0000 (01:12 +0000)] 
brad clement's 0.2 firebird support !

19 years agosome comments...more to come
Mike Bayer [Thu, 1 Jun 2006 01:11:52 +0000 (01:11 +0000)] 
some comments...more to come

19 years agoinherited synchronization behavior fixed to descend all the way to the base class
Mike Bayer [Wed, 31 May 2006 16:15:10 +0000 (16:15 +0000)] 
inherited synchronization behavior fixed to descend all the way to the base class

19 years agosimplification/improvement to circular dependency sort (properly batches now)
Mike Bayer [Wed, 31 May 2006 06:22:06 +0000 (06:22 +0000)] 
simplification/improvement to circular dependency sort (properly batches now)
mapper accepts add_property calls with columns that are not in its selectable (allows deferreds in, generally more lenient)

19 years agotweak to join test
Mike Bayer [Wed, 31 May 2006 06:19:56 +0000 (06:19 +0000)] 
tweak to join test

19 years agofurther tweaks to polymorphic loading...getting double polymorphic loaders to work
Mike Bayer [Tue, 30 May 2006 23:36:19 +0000 (23:36 +0000)] 
further tweaks to polymorphic loading...getting double polymorphic loaders to work

19 years agofurther refinement of the polymorphic UOWTask idea. circular dependency sort has...
Mike Bayer [Tue, 30 May 2006 17:11:14 +0000 (17:11 +0000)] 
further refinement of the polymorphic UOWTask idea.  circular dependency sort has to be pretty much focused on the base mappers
of any inheritance chain, as it now takes part in pretty much any two dependent classes who share the same inherited parent.

19 years agofixed [ticket:188] updated changelog
Mike Bayer [Mon, 29 May 2006 22:41:30 +0000 (22:41 +0000)] 
fixed [ticket:188] updated changelog

19 years agopolymorphic linked list test, tests polymorphic inheritance with circular refs
Mike Bayer [Mon, 29 May 2006 22:15:16 +0000 (22:15 +0000)] 
polymorphic linked list test, tests polymorphic inheritance with circular refs

19 years agounit-tested product/specline/etc stuff
Mike Bayer [Mon, 29 May 2006 21:41:38 +0000 (21:41 +0000)] 
unit-tested product/specline/etc stuff

19 years agomore polymorphic adjustments to circular dependency sort
Mike Bayer [Mon, 29 May 2006 17:21:41 +0000 (17:21 +0000)] 
more polymorphic adjustments to circular dependency sort

19 years agoecho_pool flag fixed
Mike Bayer [Mon, 29 May 2006 16:49:42 +0000 (16:49 +0000)] 
echo_pool flag fixed
removed incorrect paragraph regarding release modes

19 years agoworking on [ticket:190], getting circular dependency sort to work with inheriting...
Mike Bayer [Mon, 29 May 2006 05:17:21 +0000 (05:17 +0000)] 
working on [ticket:190], getting circular dependency sort to work with inheriting mappers

19 years ago0.2.1 prep rel_0_2_1
Mike Bayer [Mon, 29 May 2006 03:14:11 +0000 (03:14 +0000)] 
0.2.1 prep

19 years agoconnection more careful about checking if its closed before operations
Mike Bayer [Mon, 29 May 2006 02:57:33 +0000 (02:57 +0000)] 
connection more careful about checking if its closed before operations
small fix to table sort if no tables
unit test tweaks

19 years agoadded extra info for association object
Mike Bayer [Mon, 29 May 2006 02:33:03 +0000 (02:33 +0000)] 
added extra info for association object
threadlocal transaction benefits from an explicit close() on the connection besides de-referencing it