]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
17 years agoRefactor-o fix.
Jason Kirtland [Wed, 21 May 2008 00:18:51 +0000 (00:18 +0000)] 
Refactor-o fix.

17 years agohandle null tablespace_name
Jonathan Ellis [Tue, 20 May 2008 23:16:45 +0000 (23:16 +0000)] 
handle null tablespace_name

17 years ago- Fleshed out Session.get_bind(), generating a couple todos: [ticket:1053], [ticket...
Jason Kirtland [Tue, 20 May 2008 21:44:43 +0000 (21:44 +0000)] 
- 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

17 years agoadd CHAR to ischema_names map; some minor cleanup
Jonathan Ellis [Tue, 20 May 2008 21:30:11 +0000 (21:30 +0000)] 
add CHAR to ischema_names map; some minor cleanup

17 years ago- Quick cleanup of defaults.py. The main DefaultTest is still a mess.
Jason Kirtland [Tue, 20 May 2008 00:14:51 +0000 (00:14 +0000)] 
- Quick cleanup of defaults.py.  The main DefaultTest is still a mess.

17 years agoSplit out a couple true autoincrement/identity tests from emulated-with-sequences...
Jason Kirtland [Mon, 19 May 2008 23:15:41 +0000 (23:15 +0000)] 
Split out a couple true autoincrement/identity tests from emulated-with-sequences autoincrement=True tests.

17 years agoFormatting.
Jason Kirtland [Mon, 19 May 2008 23:10:02 +0000 (23:10 +0000)] 
Formatting.

17 years ago- changed char_length() to use a fake, neutral "generic function"
Mike Bayer [Mon, 19 May 2008 22:46:14 +0000 (22:46 +0000)] 
- changed char_length() to use a fake, neutral "generic function"
- assert_compile() reports the dialect in use

17 years ago- zoomark/zoomark_orm seem to work with pool_threadlocal turned off, [ticket:1050...
Mike Bayer [Mon, 19 May 2008 22:35:32 +0000 (22:35 +0000)] 
- zoomark/zoomark_orm seem to work with pool_threadlocal turned off, [ticket:1050] becomes WORKSFORME
- fixed probably errenous unique=True checkin on unitofwork.py

17 years ago- Implemented generic CHAR_LENGTH for sqlite (-> LENGTH())
Jason Kirtland [Mon, 19 May 2008 19:37:44 +0000 (19:37 +0000)] 
- Implemented generic CHAR_LENGTH for sqlite (-> LENGTH())
- Updated .requires for firebird

17 years agoRemove some noise from the uow test
Lele Gaifax [Mon, 19 May 2008 18:35:34 +0000 (18:35 +0000)] 
Remove some noise from the uow test

17 years agopool_threadlocal is off by default [ticket:1049]
Mike Bayer [Mon, 19 May 2008 15:46:32 +0000 (15:46 +0000)] 
pool_threadlocal is off by default [ticket:1049]

17 years ago-removed useless log statement (merge garbage?)
Mike Bayer [Sun, 18 May 2008 17:09:21 +0000 (17:09 +0000)] 
-removed useless log statement (merge garbage?)
- clarified autocommit mechanism

17 years agoput a cleanup handler on the "echo" property to try preventing log garbage in the...
Mike Bayer [Sun, 18 May 2008 16:40:02 +0000 (16:40 +0000)] 
put a cleanup handler on the "echo" property to try preventing log garbage in the buildbot

17 years agoadded ORM version of zoomark, python 2.5 only for starters
Mike Bayer [Sun, 18 May 2008 16:19:21 +0000 (16:19 +0000)] 
added ORM version of zoomark, python 2.5 only for starters

17 years agosome order by's failing on the buildbot
Mike Bayer [Sun, 18 May 2008 15:55:58 +0000 (15:55 +0000)] 
some order by's failing on the buildbot

17 years ago- added test for threadlocal not supporting begin_nested()
Mike Bayer [Sun, 18 May 2008 15:49:14 +0000 (15:49 +0000)] 
- 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%

17 years agoThe column default has been renamed `server_default` in 0.5
Lele Gaifax [Fri, 16 May 2008 23:09:54 +0000 (23:09 +0000)] 
The column default has been renamed `server_default` in 0.5

17 years agobegin() pre-issues a flush() in all cases, better fix for [ticket:1046] and allows...
Mike Bayer [Fri, 16 May 2008 22:25:53 +0000 (22:25 +0000)] 
begin() pre-issues a flush() in all cases, better fix for [ticket:1046] and allows rollback to work properly with autocommit=True/begin()

17 years agodont raise assertions when in autocommit mode [ticket:1046]
Mike Bayer [Fri, 16 May 2008 22:15:44 +0000 (22:15 +0000)] 
dont raise assertions when in autocommit mode [ticket:1046]

17 years ago- added some help for a heavily flush-order-dependent test
Mike Bayer [Fri, 16 May 2008 22:10:04 +0000 (22:10 +0000)] 
- added some help for a heavily flush-order-dependent test
- quote flag propagates to _Label, [ticket:1045]

17 years agoadded an assertion to prevent against the use in [ticket:1048]
Mike Bayer [Fri, 16 May 2008 21:38:56 +0000 (21:38 +0000)] 
added an assertion to prevent against the use in [ticket:1048]

17 years agoauto exists remembers to alias in the case of explicit selectable with of_type()...
Mike Bayer [Fri, 16 May 2008 21:27:51 +0000 (21:27 +0000)] 
auto exists remembers to alias in the case of explicit selectable with of_type(), [ticket:1047]

17 years agoa particular test which fails in 0.4
Mike Bayer [Fri, 16 May 2008 21:27:15 +0000 (21:27 +0000)] 
a particular test which fails in 0.4

17 years agoDon't blat Table.quote= when resolving foreign keys.
Jason Kirtland [Thu, 15 May 2008 16:20:50 +0000 (16:20 +0000)] 
Don't blat Table.quote= when resolving foreign keys.

17 years agoFix table.delete() arguments
Lele Gaifax [Thu, 15 May 2008 12:45:50 +0000 (12:45 +0000)] 
Fix table.delete() arguments

17 years agoFollowup to [4760]: forward **kwargs on TableClause.delete()
Lele Gaifax [Thu, 15 May 2008 12:44:13 +0000 (12:44 +0000)] 
Followup to [4760]: forward **kwargs on TableClause.delete()

17 years agoCorrected Firebird failure reasons
Lele Gaifax [Thu, 15 May 2008 00:18:58 +0000 (00:18 +0000)] 
Corrected Firebird failure reasons

17 years agoFix typo
Lele Gaifax [Thu, 15 May 2008 00:08:14 +0000 (00:08 +0000)] 
Fix typo

17 years agoMinor doc fixes
Lele Gaifax [Thu, 15 May 2008 00:07:32 +0000 (00:07 +0000)] 
Minor doc fixes

17 years agoCorrect failure reason
Lele Gaifax [Thu, 15 May 2008 00:07:00 +0000 (00:07 +0000)] 
Correct failure reason

17 years agoAugment expression.Delete() with a kwargs, like Insert() and Update()
Lele Gaifax [Thu, 15 May 2008 00:06:04 +0000 (00:06 +0000)] 
Augment expression.Delete() with a kwargs, like Insert() and Update()

17 years agoEep.
Jason Kirtland [Wed, 14 May 2008 22:41:32 +0000 (22:41 +0000)] 
Eep.

17 years agoraise NotImplemented for begin_nested()
Mike Bayer [Wed, 14 May 2008 22:21:38 +0000 (22:21 +0000)] 
raise NotImplemented for begin_nested()

17 years ago- Removed @unsupported
Jason Kirtland [Wed, 14 May 2008 22:09:23 +0000 (22:09 +0000)] 
- Removed @unsupported

17 years agoFix fix.
Jason Kirtland [Wed, 14 May 2008 21:27:06 +0000 (21:27 +0000)] 
Fix fix.

17 years agoQuery.one() raises either NoResultFound or MultipleResultsFound, [ticket:1034]
Jason Kirtland [Wed, 14 May 2008 20:44:16 +0000 (20:44 +0000)] 
Query.one() raises either NoResultFound or MultipleResultsFound, [ticket:1034]

17 years ago- Adjusted zoomoark
Jason Kirtland [Wed, 14 May 2008 19:55:35 +0000 (19:55 +0000)] 
- Adjusted zoomoark
- Added test/orm/defaults.  Ambitiously uses ansi triggers.

17 years agoColumns now have default= and server_default=. PassiveDefault fades away.
Jason Kirtland [Wed, 14 May 2008 19:49:40 +0000 (19:49 +0000)] 
Columns now have default= and server_default=. PassiveDefault fades away.

17 years agofixes for PG, Mysql
Mike Bayer [Wed, 14 May 2008 18:28:39 +0000 (18:28 +0000)] 
fixes for PG, Mysql

17 years agofixed mysql not supported declarations
Mike Bayer [Wed, 14 May 2008 18:16:13 +0000 (18:16 +0000)] 
fixed mysql not supported declarations

17 years agoSupport Firebird 2.0+ RETURNING
Lele Gaifax [Wed, 14 May 2008 15:31:29 +0000 (15:31 +0000)] 
Support Firebird 2.0+ RETURNING

17 years agoWhitespace
Lele Gaifax [Wed, 14 May 2008 15:19:20 +0000 (15:19 +0000)] 
Whitespace

17 years ago- renamed query.slice_() to query.slice()
Mike Bayer [Tue, 13 May 2008 20:35:41 +0000 (20:35 +0000)] 
- 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]

17 years ago- LIMIT/OFFSET of zero is detected within compiler and is counted
Mike Bayer [Tue, 13 May 2008 19:55:49 +0000 (19:55 +0000)] 
- LIMIT/OFFSET of zero is detected within compiler and is counted
- Query.__getitem__ now returns list/scalar in all cases, not generative (#1035)
- added Query.slice_() which provides the simple "limit/offset from a positive range" operation,
we can rename this to range_()/section()/_something_private_because_users_shouldnt_do_this() as needed

17 years ago- fixed propagation of operate() for aliased relation descriptors
Mike Bayer [Tue, 13 May 2008 19:52:15 +0000 (19:52 +0000)] 
- fixed propagation of operate() for aliased relation descriptors
- ColumnEntity gets a selectable

17 years agoRemoved declared_synonym(), pep-8 clean ups.
Jason Kirtland [Tue, 13 May 2008 18:14:28 +0000 (18:14 +0000)] 
Removed declared_synonym(), pep-8 clean ups.

17 years agoRemoved: all legacy users migrated.
Jason Kirtland [Tue, 13 May 2008 17:44:49 +0000 (17:44 +0000)] 
Removed: all legacy users migrated.

17 years ago- Reworked test/orm/mapper
Jason Kirtland [Tue, 13 May 2008 16:39:47 +0000 (16:39 +0000)] 
- Reworked test/orm/mapper
- Exposed some uncovered (and broken) functionality
- Fixed [ticket:1038]

17 years agoTag PKs with `test_needs_autoincrement` on a few test
Lele Gaifax [Tue, 13 May 2008 09:40:44 +0000 (09:40 +0000)] 
Tag PKs with `test_needs_autoincrement` on a few test

17 years agoSupport for under Firebird
Lele Gaifax [Tue, 13 May 2008 09:31:30 +0000 (09:31 +0000)] 
Support for  under Firebird

17 years agoTag some tests that fail under Firebird
Lele Gaifax [Tue, 13 May 2008 09:06:27 +0000 (09:06 +0000)] 
Tag some tests that fail under Firebird

17 years agoscaled back the equivalents determined in _equivalent_columns to just current polymor...
Mike Bayer [Mon, 12 May 2008 22:44:04 +0000 (22:44 +0000)] 
scaled back the equivalents determined in _equivalent_columns to just current polymorphic_union
 behavior, fixes [ticket:1041]

17 years ago- clause adaption hits _raw_columns of a select() (though no ORM tests need this...
Mike Bayer [Mon, 12 May 2008 16:15:28 +0000 (16:15 +0000)] 
- clause adaption hits _raw_columns of a select() (though no ORM tests need this feature currently)
- broke up adapter chaining in eagerload, erroneous "wrapping" in row_decorator.  column_property() subqueries are now affected only by the ORMAdapter for that mapper.  fixes [ticket:1037], and may possibly impact some of [ticket:949]

17 years agoCheck for the presence of the Firebird generator, when creating/dropping a sequence
Lele Gaifax [Mon, 12 May 2008 15:33:55 +0000 (15:33 +0000)] 
Check for the presence of the Firebird generator, when creating/dropping a sequence

17 years agoAdd another exception case to Firebird' is_disconnect()
Lele Gaifax [Mon, 12 May 2008 13:51:14 +0000 (13:51 +0000)] 
Add another exception case to Firebird' is_disconnect()

17 years agoTypo
Lele Gaifax [Mon, 12 May 2008 10:19:47 +0000 (10:19 +0000)] 
Typo

17 years agoTagged two tests that fail under Firebird
Lele Gaifax [Mon, 12 May 2008 10:10:21 +0000 (10:10 +0000)] 
Tagged two tests that fail under Firebird

17 years agoUse a BLOB when asked for a [VAR]CHAR without a length under Firebird
Lele Gaifax [Mon, 12 May 2008 10:09:16 +0000 (10:09 +0000)] 
Use a BLOB when asked for a [VAR]CHAR without a length under Firebird

17 years agoAdded explicit sequences on a few primary keys and minor fixes wrt Firebird
Lele Gaifax [Mon, 12 May 2008 09:33:16 +0000 (09:33 +0000)] 
Added explicit sequences on a few primary keys and minor fixes wrt Firebird

17 years agotweak
Mike Bayer [Sat, 10 May 2008 23:15:13 +0000 (23:15 +0000)] 
tweak

17 years agoanother approach
Mike Bayer [Sat, 10 May 2008 22:15:47 +0000 (22:15 +0000)] 
another approach

17 years agocant reproduce buildbot's memory profiling, random fix attempt
Mike Bayer [Sat, 10 May 2008 21:36:21 +0000 (21:36 +0000)] 
cant reproduce buildbot's memory profiling, random fix attempt

17 years agoadded blurb on session.rollback()
Mike Bayer [Sat, 10 May 2008 20:00:10 +0000 (20:00 +0000)] 
added blurb on session.rollback()

17 years agopy2.4 seems to have different memory behavior than 2.5, test for both "adjusting...
Mike Bayer [Sat, 10 May 2008 19:27:05 +0000 (19:27 +0000)] 
py2.4 seems to have different memory behavior than 2.5, test for both "adjusting down" as well as "flatline"

17 years ago- removed all the order by's that no longer apply.
Mike Bayer [Sat, 10 May 2008 19:19:47 +0000 (19:19 +0000)] 
- removed all the order by's that no longer apply.
- realized about declarative that foobar: relation("SomeFutureClass") is not very useful for collections since
we can't set "order_by" there.

17 years agocorrecting dataload profiles for various tests
Mike Bayer [Sat, 10 May 2008 18:38:20 +0000 (18:38 +0000)] 
correcting dataload profiles for various tests

17 years agobizarre duplicate keyword seems to not raise in py2.5
Mike Bayer [Sat, 10 May 2008 17:44:54 +0000 (17:44 +0000)] 
bizarre duplicate keyword seems to not raise in py2.5

17 years agomerged r4720 from 04 branch for [ticket:1036]
Mike Bayer [Sat, 10 May 2008 17:42:09 +0000 (17:42 +0000)] 
merged r4720 from 04 branch for [ticket:1036]

17 years agoFix typo in the ORM tutorial
Lele Gaifax [Sat, 10 May 2008 09:02:55 +0000 (09:02 +0000)] 
Fix typo in the ORM tutorial

17 years agoReworked & stripped.
Jason Kirtland [Sat, 10 May 2008 01:59:07 +0000 (01:59 +0000)] 
Reworked & stripped.

17 years agoorder by doc
Mike Bayer [Sat, 10 May 2008 00:54:17 +0000 (00:54 +0000)] 
order by doc

17 years agoedits
Mike Bayer [Sat, 10 May 2008 00:31:35 +0000 (00:31 +0000)] 
edits

17 years agoremoved deprecated plugins docs
Mike Bayer [Sat, 10 May 2008 00:31:09 +0000 (00:31 +0000)] 
removed deprecated plugins docs

17 years agobackref() function uses primaryjoin/secondaryjoin of the parent relation() if not...
Mike Bayer [Sat, 10 May 2008 00:26:28 +0000 (00:26 +0000)] 
backref() function uses primaryjoin/secondaryjoin of the parent relation() if not otherwise specified, removing the frequently annoying need to specify primaryjoin twice.

17 years agoChipping away at remaining cruft.
Jason Kirtland [Sat, 10 May 2008 00:05:03 +0000 (00:05 +0000)] 
Chipping away at remaining cruft.

17 years ago- fixed a fairly critical bug in clause adaption/corresponding column in conjunction...
Mike Bayer [Fri, 9 May 2008 23:58:30 +0000 (23:58 +0000)] 
- fixed a fairly critical bug in clause adaption/corresponding column in conjunction with annotations
- implicit order by is removed, modified many tests to explicitly set ordering, probably many more to go
once it hits the buildbot.

17 years agoadd target_fullname as a public property for _get_colspec
Gaëtan de Menten [Fri, 9 May 2008 20:49:32 +0000 (20:49 +0000)] 
add target_fullname as a public property for _get_colspec

17 years agoTest suite modernization in progress. Big changes:
Jason Kirtland [Fri, 9 May 2008 20:26:09 +0000 (20:26 +0000)] 
Test suite modernization in progress.  Big changes:
 - @unsupported now only accepts a single target and demands a reason
   for not running the test.
 - @exclude also demands an exclusion reason
 - Greatly expanded @testing.requires.<feature>, eliminating many
   decorators in the suite and signficantly easing integration of
   multi-driver support.
 - New ORM test base class, and a featureful base for mapped tests
 - Usage of 'global' for shared setup going away, * imports as well

17 years agomore order bys...
Mike Bayer [Fri, 9 May 2008 20:04:29 +0000 (20:04 +0000)] 
more order bys...

17 years agosome tweaks to help MySQL
Mike Bayer [Fri, 9 May 2008 19:42:32 +0000 (19:42 +0000)] 
some tweaks to help MySQL

17 years ago- more portable tests for eager/inheritance joins
Mike Bayer [Fri, 9 May 2008 19:20:49 +0000 (19:20 +0000)] 
- more portable tests for eager/inheritance joins
- bumped 2.4 call count for profile test_select
- don't need initialize_properties() during reentrant compile() call (for now)

17 years agoMSText no longer implicitly creates TEXT for string with no length
Mike Bayer [Fri, 9 May 2008 19:00:55 +0000 (19:00 +0000)] 
MSText no longer implicitly creates TEXT for string with no length
(this actually allows CAST (foo, VARCHAR) to render too)

17 years agoadded query.subquery() as shorthand for query.statement.alias()
Mike Bayer [Fri, 9 May 2008 18:57:40 +0000 (18:57 +0000)] 
added query.subquery() as shorthand for query.statement.alias()

17 years agoidentified case where pending upon commit() is needed; since attribute rollback funct...
Mike Bayer [Fri, 9 May 2008 18:43:05 +0000 (18:43 +0000)] 
identified case where pending upon commit() is needed; since attribute rollback functionality is gone its safe to revert to this

17 years agomove the definition of sessions public methods closer to the source
Ants Aasma [Fri, 9 May 2008 17:50:38 +0000 (17:50 +0000)] 
move the definition of sessions public methods closer to the source

17 years agoadded "add", "add_all", "expire_all" to SS
Mike Bayer [Fri, 9 May 2008 17:42:24 +0000 (17:42 +0000)] 
added "add", "add_all", "expire_all" to SS

17 years agotweak
Mike Bayer [Fri, 9 May 2008 17:28:43 +0000 (17:28 +0000)] 
tweak

17 years agoneed delete-orphan
Mike Bayer [Fri, 9 May 2008 17:21:10 +0000 (17:21 +0000)] 
need delete-orphan

17 years ago- warnings about Query invalid operations become InvalidRequestErrors
Mike Bayer [Fri, 9 May 2008 17:05:13 +0000 (17:05 +0000)] 
- warnings about Query invalid operations become InvalidRequestErrors
- __no_criterion() checks for more pre-existing conditions
- helpful note in 0.5 svn readme

17 years agor4695 merged to trunk; trunk now becomes 0.5.
Mike Bayer [Fri, 9 May 2008 16:34:10 +0000 (16:34 +0000)] 
r4695 merged to trunk; trunk now becomes 0.5.
0.4 development continues at /sqlalchemy/branches/rel_0_4

17 years agodoc update on quote
Mike Bayer [Thu, 8 May 2008 21:29:07 +0000 (21:29 +0000)] 
doc update on quote

17 years agoremove **kwargs from execute(), scalar(), connection(), and get_bind(). document...
Mike Bayer [Thu, 8 May 2008 00:47:23 +0000 (00:47 +0000)] 
remove **kwargs from execute(), scalar(), connection(), and get_bind().  document all args, [ticket:1028]

17 years ago- backported 0.5's contains_eager() behavior such that rendering of eager clauses...
Mike Bayer [Thu, 8 May 2008 00:19:06 +0000 (00:19 +0000)] 
- backported 0.5's contains_eager() behavior such that rendering of eager clauses are disabled.  workaround here is compatible with 0.5 but not compatible with the little-known "decorator" argument to contains_eager() (which was also removed in 0.5).  Doesn't remove any existing 0.4 functionality.

17 years ago- added an example dynamic_dict/dynamic_dict.py, illustrating
Mike Bayer [Wed, 7 May 2008 14:48:04 +0000 (14:48 +0000)] 
- added an example dynamic_dict/dynamic_dict.py, illustrating
a simple way to place dictionary behavior on top of
a dynamic_loader.

17 years ago- Fixed "concatenate tuple" bug which could occur with
Mike Bayer [Wed, 7 May 2008 03:48:14 +0000 (03:48 +0000)] 
- Fixed "concatenate tuple" bug which could occur with
Query.order_by() if clause adaption had taken place.
[ticket:1027]

17 years agoQuery.select() wont call filter() if arg is None
Mike Bayer [Tue, 6 May 2008 19:06:43 +0000 (19:06 +0000)] 
Query.select() wont call filter() if arg is None

17 years agofix foreign_keys example
Mike Bayer [Tue, 6 May 2008 16:06:22 +0000 (16:06 +0000)] 
fix foreign_keys example

17 years agoAdded missing argument check on CheckConstraint
Jason Kirtland [Tue, 6 May 2008 14:40:24 +0000 (14:40 +0000)] 
Added missing argument check on CheckConstraint

17 years ago- _Label adds itself to the proxy collection so that it works in correspoinding colum...
Mike Bayer [Tue, 6 May 2008 00:55:49 +0000 (00:55 +0000)] 
- _Label adds itself to the proxy collection so that it works in correspoinding column.  fixes some eager load with column_property bugs.
- this partially fixes some issues in [ticket:1022] but leaving the "unlabeled" fix for 0.5 for now