]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
15 years ago- Fixed regression introduced in 0.6.0 unit of work refactor
Mike Bayer [Fri, 21 May 2010 21:44:56 +0000 (17:44 -0400)] 
- Fixed regression introduced in 0.6.0 unit of work refactor
that broke updates for bi-directional relationship()
with post_update=True. [ticket:1807]

15 years agonew link for pymssql #1810
Mike Bayer [Fri, 21 May 2010 21:05:06 +0000 (17:05 -0400)] 
new link for pymssql #1810

15 years agodocs on dispose
Mike Bayer [Sat, 15 May 2010 20:12:14 +0000 (16:12 -0400)] 
docs on dispose

15 years agodisclaimer for the "type=None" semi-feature
Mike Bayer [Sat, 15 May 2010 19:56:49 +0000 (15:56 -0400)] 
disclaimer for the "type=None" semi-feature

15 years ago- Added table.add_is_dependent_on(othertable), allows manual
Mike Bayer [Thu, 13 May 2010 19:53:18 +0000 (15:53 -0400)] 
- Added table.add_is_dependent_on(othertable), allows manual
placement of dependency rules between two Table objects
for use within create_all(), drop_all(), sorted_tables.
[ticket:1801]

15 years ago- Added internal warning in case an instance without a
Mike Bayer [Thu, 13 May 2010 19:45:56 +0000 (15:45 -0400)] 
- Added internal warning in case an instance without a
full PK happened to be expired and then was asked
to refresh. [ticket:1797]

15 years ago- fixed __setstate__ method of CollectionAdapter to not
Mike Bayer [Thu, 13 May 2010 19:36:22 +0000 (15:36 -0400)] 
- fixed __setstate__ method of CollectionAdapter to not
fail during deserialize where parent InstanceState not
yet unserialized.  [ticket:1802]

15 years ago- func.XXX() doesn't inadvertently resolve to non-Function
Mike Bayer [Thu, 13 May 2010 19:26:53 +0000 (15:26 -0400)] 
- func.XXX() doesn't inadvertently resolve to non-Function
classes (e.g. fixes func.text()).  [ticket:1798]

15 years agosome pep-8ing
Mike Bayer [Thu, 13 May 2010 17:33:22 +0000 (13:33 -0400)] 
some pep-8ing

15 years ago- the _make_proxy() method of ColumnClause and Column now use
Mike Bayer [Mon, 10 May 2010 15:37:48 +0000 (11:37 -0400)] 
- the _make_proxy() method of ColumnClause and Column now use
self.__class__ to determine the class of object to be returned
instead of hardcoding to ColumnClause/Column, making it slightly
easier to produce specific subclasses of these which work in
alias/subquery situations.

15 years ago- expr.in_() now accepts a text() construct as the argument.
Mike Bayer [Sat, 8 May 2010 20:25:30 +0000 (16:25 -0400)] 
- expr.in_() now accepts a text() construct as the argument.
Grouping parenthesis are added automatically, i.e. usage
is like `col.in_(text("select id from table"))`.
[ticket:1793]

15 years ago- session.merge() will not expire attributes on the returned
Mike Bayer [Sat, 8 May 2010 20:09:48 +0000 (16:09 -0400)] 
- session.merge() will not expire attributes on the returned
instance if that instance is "pending".  [ticket:1789]

15 years ago- func.sysdate() emits "SYSDATE()", i.e. with the ending
Mike Bayer [Sat, 8 May 2010 19:29:08 +0000 (15:29 -0400)] 
- func.sysdate() emits "SYSDATE()", i.e. with the ending
parenthesis, on MySQL.  [ticket:1794]

15 years ago- Added 'connection shutdown' to the list of exception strings
Mike Bayer [Sat, 8 May 2010 19:22:10 +0000 (15:22 -0400)] 
- Added 'connection shutdown' to the list of exception strings
which indicate a dropped connection.  [ticket:1646]

15 years agoadd a note about native unicode mode, [ticket:1792]
Mike Bayer [Sat, 8 May 2010 19:19:23 +0000 (15:19 -0400)] 
add a note about native unicode mode, [ticket:1792]

15 years ago- the SqlSoup constructor accepts a `base` argument which specifies
Mike Bayer [Sat, 8 May 2010 19:08:48 +0000 (15:08 -0400)] 
- the SqlSoup constructor accepts a `base` argument which specifies
the base class to use for mapped classes, the default being
`object`.  [ticket:1783]

15 years agoadd more insert examples #1791
Mike Bayer [Tue, 4 May 2010 02:18:27 +0000 (22:18 -0400)] 
add more insert examples #1791

15 years agomerge tip
Mike Bayer [Mon, 3 May 2010 23:32:34 +0000 (19:32 -0400)] 
merge tip

15 years ago- Fixed use_ansi=False mode, which was producing broken
Mike Bayer [Mon, 3 May 2010 23:24:52 +0000 (19:24 -0400)] 
- Fixed use_ansi=False mode, which was producing broken
WHERE clauses in pretty much all cases.  [ticket:1790]

15 years agoplace docs for DBAPI-agnostic transaction_isolation setting for sqlite, pg [ticket...
Mike Bayer [Fri, 30 Apr 2010 19:00:48 +0000 (15:00 -0400)] 
place docs for DBAPI-agnostic transaction_isolation setting for sqlite, pg [ticket:1784]

15 years agoremove docs for deprecated feature
Chris Withers [Fri, 30 Apr 2010 07:39:25 +0000 (08:39 +0100)] 
remove docs for deprecated feature

15 years agofix some 2to3 breakage on the cx_oracle dialect
Mike Bayer [Thu, 29 Apr 2010 19:33:19 +0000 (15:33 -0400)] 
fix some 2to3 breakage on the cx_oracle dialect

15 years agoremove a few superfluous imports
Mike Bayer [Thu, 29 Apr 2010 18:10:28 +0000 (14:10 -0400)] 
remove a few superfluous imports

15 years ago- Fixed bug in connection pool cursor wrapper whereby if a
Mike Bayer [Wed, 28 Apr 2010 20:16:56 +0000 (16:16 -0400)] 
- Fixed bug in connection pool cursor wrapper whereby if a
cursor threw an exception on close(), the logging of the
message would fail.  [ticket:1786]

15 years agofix sphinx reference
Chris Withers [Wed, 28 Apr 2010 18:22:55 +0000 (19:22 +0100)] 
fix sphinx reference

15 years ago- oracle_xe 5 doesn't accept a Python unicode object in
Mike Bayer [Wed, 28 Apr 2010 17:30:25 +0000 (17:30 +0000)] 
- oracle_xe 5 doesn't accept a Python unicode object in
its connect string in normal Python 2.x mode - so we coerce
to str() directly.  non-ascii characters aren't supported
in connect strings here since we don't know what encoding
we could use.  [ticket:1670]

15 years agochangelog fix for #1781
Gaëtan de Menten [Wed, 28 Apr 2010 07:33:47 +0000 (09:33 +0200)] 
changelog fix for #1781

15 years agotake2 on #1781.
Gaëtan de Menten [Tue, 27 Apr 2010 18:57:48 +0000 (20:57 +0200)] 
take2 on #1781.

15 years ago- Added integer coercion to the "type_conv" attribute when
Mike Bayer [Mon, 26 Apr 2010 22:36:47 +0000 (18:36 -0400)] 
- Added integer coercion to the "type_conv" attribute when
passed via query string, so that it is properly interpreted
by Kinterbasdb. [ticket:1779]

15 years ago- Added a label to the query used within has_table() and
Mike Bayer [Mon, 26 Apr 2010 22:31:05 +0000 (18:31 -0400)] 
- Added a label to the query used within has_table() and
has_sequence() to work with older versions of Firebird
that don't provide labels for result columns. [ticket:1521]

15 years ago- Fixed regression introduced in 0.6.0 involving improper
Mike Bayer [Mon, 26 Apr 2010 20:55:11 +0000 (16:55 -0400)] 
- Fixed regression introduced in 0.6.0 involving improper
history accounting on mutable attributes.  Essentially
reversing r6b2b4fcd4799 and getting it covered.
[ticket:1782]

15 years agoHopefully fix C extension on python2.4 (ticket #1781), however I can't test it
Gaëtan de Menten [Mon, 26 Apr 2010 19:16:23 +0000 (21:16 +0200)] 
Hopefully fix C extension on python2.4 (ticket #1781), however I can't test it
currently.

15 years ago- Fixed "table" argument on constructor of ForeginKeyConstraint
Mike Bayer [Mon, 26 Apr 2010 04:14:21 +0000 (00:14 -0400)] 
- Fixed "table" argument on constructor of ForeginKeyConstraint
[ticket:1571]

15 years ago- Fixed errant space character when generating ADD CONSTRAINT
Mike Bayer [Mon, 26 Apr 2010 04:11:22 +0000 (00:11 -0400)] 
- Fixed errant space character when generating ADD CONSTRAINT
for a named UNIQUE constraint.

15 years agoMake sqla_nose.py "just work" for running tests on checkouts without a setup.py devel...
Jason Kirtland [Fri, 23 Apr 2010 19:16:58 +0000 (12:16 -0700)] 
Make sqla_nose.py "just work" for running tests on checkouts without a setup.py develop step or PYTHONPATH.

15 years agomerge
Mike Bayer [Fri, 23 Apr 2010 04:33:50 +0000 (00:33 -0400)] 
merge

15 years agoprod/stable
Mike Bayer [Fri, 23 Apr 2010 04:33:20 +0000 (00:33 -0400)] 
prod/stable

15 years ago- Fixed bug that prevented implicit RETURNING from functioning
Mike Bayer [Thu, 22 Apr 2010 15:24:25 +0000 (11:24 -0400)] 
- Fixed bug that prevented implicit RETURNING from functioning
properly with composite primary key that contained zeroes.
[ticket:1778]

15 years agofix metadata import
Mike Bayer [Wed, 21 Apr 2010 13:30:30 +0000 (09:30 -0400)] 
fix metadata import

15 years agoyikes, no more svn version here...
Mike Bayer [Tue, 20 Apr 2010 16:28:54 +0000 (12:28 -0400)] 
yikes, no more svn version here...

15 years ago- Added a check for cx_oracle versions lower than version 5,
Mike Bayer [Mon, 19 Apr 2010 21:35:16 +0000 (17:35 -0400)] 
- Added a check for cx_oracle versions lower than version 5,
in which case the incompatible "output type handler" won't
be used.   This will impact decimal accuracy and some
unicode handling issues.  [ticket:1775]

15 years agoAdded tag rel_0_6_0 for changeset 63cea59c0596b872a464fa19d5a25c2a2c32ef49
Mike Bayer [Sun, 18 Apr 2010 23:33:16 +0000 (19:33 -0400)] 
Added tag rel_0_6_0 for changeset 63cea59c0596b872a464fa19d5a25c2a2c32ef49

15 years agofix verbiage rel_0_6_0
Mike Bayer [Sun, 18 Apr 2010 23:13:47 +0000 (19:13 -0400)] 
fix verbiage

15 years agoformat string for no primary mapper defined error, [ticket:1774]
Mike Bayer [Sun, 18 Apr 2010 23:06:59 +0000 (19:06 -0400)] 
format string for no primary mapper defined error, [ticket:1774]

15 years agoadded detailed documentation regarding ORM performance in conjunction with mutabletype.
Mike Bayer [Sun, 18 Apr 2010 18:11:44 +0000 (14:11 -0400)] 
added detailed documentation regarding ORM performance in conjunction with mutabletype.

15 years agosome CHANGES updates
Mike Bayer [Sun, 18 Apr 2010 16:31:05 +0000 (12:31 -0400)] 
some CHANGES updates

15 years agohave polymorphic_union render the 'literal' in a type-specific way
Mike Bayer [Sat, 17 Apr 2010 17:00:23 +0000 (13:00 -0400)] 
have polymorphic_union render the 'literal' in a type-specific way

15 years agoinline this
Mike Bayer [Sat, 17 Apr 2010 10:55:33 +0000 (06:55 -0400)] 
inline this

15 years agoa little bit of refinement
Mike Bayer [Sat, 17 Apr 2010 10:44:44 +0000 (06:44 -0400)] 
a little bit of refinement

15 years ago- don't switch a delete to a non-delete during rowswitch, fixes [ticket:1772]
Mike Bayer [Fri, 16 Apr 2010 22:35:49 +0000 (18:35 -0400)] 
- don't switch a delete to a non-delete during rowswitch, fixes [ticket:1772]

15 years agowhen raising about columns not present, include the name of the property it's trying...
Mike Bayer [Fri, 16 Apr 2010 21:01:50 +0000 (17:01 -0400)] 
when raising about columns not present, include the name of the property it's trying to configure,
to eliminate confusion over attributes not properly placed inside of a relationship().

15 years agosome more metadata cleanup since --dropall isnt specified on the buildbot
Mike Bayer [Fri, 16 Apr 2010 19:24:56 +0000 (15:24 -0400)] 
some more metadata cleanup since --dropall isnt specified on the buildbot

15 years agoguessed too soon on that
Mike Bayer [Fri, 16 Apr 2010 18:31:36 +0000 (14:31 -0400)] 
guessed too soon on that

15 years agodo a check on this one to fix the buildbot
Mike Bayer [Fri, 16 Apr 2010 18:13:13 +0000 (14:13 -0400)] 
do a check on this one to fix the buildbot

15 years agosince we are calling traverse_single within ddl.py, call traverse_single at the entry...
Mike Bayer [Fri, 16 Apr 2010 17:48:45 +0000 (13:48 -0400)] 
since we are calling traverse_single within ddl.py, call traverse_single at the entrypoint as well so that ddl.py
completely controls traversal

15 years ago- Table.create() and Table.drop() no longer apply metadata-
Mike Bayer [Fri, 16 Apr 2010 17:08:45 +0000 (13:08 -0400)] 
- Table.create() and Table.drop() no longer apply metadata-
level create/drop events.  [ticket:1771]

15 years agoholy python2.4 batman
Mike Bayer [Thu, 15 Apr 2010 23:11:29 +0000 (19:11 -0400)] 
holy python2.4 batman

15 years ago- Added get_pk_constraint() to reflection.Inspector, similar
Mike Bayer [Thu, 15 Apr 2010 23:05:41 +0000 (19:05 -0400)] 
- Added get_pk_constraint() to reflection.Inspector, similar
to get_primary_keys() except returns a dict that includes the
name of the constraint, for supported backends (PG so far).
[ticket:1769]
- Postgresql reflects the name of primary key constraints,
if one exists.  [ticket:1769]

15 years agomore test adjustments
Mike Bayer [Thu, 15 Apr 2010 05:35:54 +0000 (01:35 -0400)] 
more test adjustments

15 years agoactually we need to copy the dict there since it gets run repeatedly inside of an...
Mike Bayer [Thu, 15 Apr 2010 04:48:51 +0000 (00:48 -0400)] 
actually we need to copy the dict there since it gets run repeatedly inside of an allof...getting messier here

15 years agoadjust incoming params to add keys that are specific to the compiled, i.e. oracle...
Mike Bayer [Thu, 15 Apr 2010 04:28:38 +0000 (00:28 -0400)] 
adjust incoming params to add keys that are specific to the compiled, i.e. oracle's out params with returning

15 years ago- beef up the --reversetop test option to embed RandomSet throughout the ORM
Mike Bayer [Thu, 15 Apr 2010 04:13:48 +0000 (00:13 -0400)] 
- beef up the --reversetop test option to embed RandomSet throughout the ORM
- with m2m we have to go back to the previous approach of having both sides of
the DP fire off, tracking each pair of objects.   history may not be consistently present
in one side or the other
- this revealed a whole lot of issues with self-referential m2m, which are fixed

15 years agodont use collections on 2.4
Mike Bayer [Wed, 14 Apr 2010 22:38:11 +0000 (18:38 -0400)] 
dont use collections on 2.4

15 years ago0.6.0 prep
Mike Bayer [Wed, 14 Apr 2010 22:11:16 +0000 (18:11 -0400)] 
0.6.0 prep

15 years agomerge tip
Mike Bayer [Wed, 14 Apr 2010 22:00:59 +0000 (18:00 -0400)] 
merge tip

15 years agoupdate language regarding the behavior of expire/refresh with regards to relationship...
Mike Bayer [Wed, 14 Apr 2010 21:58:08 +0000 (17:58 -0400)] 
update language regarding the behavior of expire/refresh with regards to relationships, [ticket:1762]

15 years agomerge tip
Mike Bayer [Tue, 13 Apr 2010 17:31:41 +0000 (13:31 -0400)] 
merge tip

15 years agomerge tip
Chris Withers [Tue, 13 Apr 2010 15:48:24 +0000 (16:48 +0100)] 
merge tip

15 years agodocs for new mixin class control abilities
Chris Withers [Tue, 13 Apr 2010 15:46:07 +0000 (16:46 +0100)] 
docs for new mixin class control abilities

15 years agoadd another edge case example
Chris Withers [Tue, 13 Apr 2010 15:28:32 +0000 (16:28 +0100)] 
add another edge case example

15 years agowire in utility docs
Chris Withers [Tue, 13 Apr 2010 11:47:37 +0000 (12:47 +0100)] 
wire in utility docs

15 years agoadd utility docs
Chris Withers [Tue, 13 Apr 2010 11:47:12 +0000 (12:47 +0100)] 
add utility docs

15 years agostop Sphinx whining about this file, I believe it's used direct from a template
Chris Withers [Tue, 13 Apr 2010 11:05:45 +0000 (12:05 +0100)] 
stop Sphinx whining about this file, I believe it's used direct from a template

15 years agohelper method for spotting inherited tables
Chris Withers [Tue, 13 Apr 2010 10:29:39 +0000 (11:29 +0100)] 
helper method for spotting inherited tables

15 years agoI think I'm about to have a When Harry Met Sally moment
Chris Withers [Tue, 13 Apr 2010 09:02:22 +0000 (10:02 +0100)] 
I think I'm about to have a When Harry Met Sally moment

15 years agoclose, but still no cigar
Chris Withers [Tue, 13 Apr 2010 00:55:54 +0000 (01:55 +0100)] 
close, but still no cigar

15 years agocorrect ordering
Chris Withers [Tue, 13 Apr 2010 00:55:32 +0000 (01:55 +0100)] 
correct ordering

15 years agoremove tortology
Chris Withers [Tue, 13 Apr 2010 00:27:24 +0000 (01:27 +0100)] 
remove tortology

15 years agomerge tip
Mike Bayer [Tue, 13 Apr 2010 00:24:08 +0000 (20:24 -0400)] 
merge tip

15 years agofurther testing reveals that cursor.rowcount is only called with update/delete and...
Mike Bayer [Tue, 13 Apr 2010 00:20:50 +0000 (20:20 -0400)] 
further testing reveals that cursor.rowcount is only called with update/delete and DDL,
and also that FB's cursor.rowcount is a little expensive, but not dramatically.
added a test to ensure cursor.rowcount is only called on update/delete.
the current default for firebird enable_rowcount is now True, leaving all the
options to turn it off etc..

15 years agobeef up test cases to reveal that I'm not as close as I'd thought :-(
Chris Withers [Mon, 12 Apr 2010 23:56:15 +0000 (00:56 +0100)] 
beef up test cases to reveal that I'm not as close as I'd thought :-(

15 years agohandle propagation
Chris Withers [Mon, 12 Apr 2010 22:23:27 +0000 (23:23 +0100)] 
handle propagation

15 years agocorrect this test case
Chris Withers [Mon, 12 Apr 2010 22:22:44 +0000 (23:22 +0100)] 
correct this test case

15 years agorefactor to highlight the problem areas
Chris Withers [Mon, 12 Apr 2010 15:36:49 +0000 (16:36 +0100)] 
refactor to highlight the problem areas

15 years agomuch more descriptive message for bind param name conflict, [ticket:1766]
Mike Bayer [Mon, 12 Apr 2010 15:30:01 +0000 (11:30 -0400)] 
much more descriptive message for bind param name conflict, [ticket:1766]

15 years agomerge
Chris Withers [Mon, 12 Apr 2010 09:35:30 +0000 (10:35 +0100)] 
merge

15 years ago- The functionality of result.rowcount is now disabled
Mike Bayer [Sun, 11 Apr 2010 20:37:49 +0000 (16:37 -0400)] 
- The functionality of result.rowcount is now disabled
by default, and can be re-enabled using the 'enable_rowcount'
flag with create_engine(), as well as the 'enable_rowcount'
execution context flag on a per-execute basis.  This because
cursor.rowcount requires cursor access (can't be evaluated
lazily since the result auto-closes) and also incurs an
expensive round-trip.

15 years ago- added a test for the solution in [ticket:1757].
Mike Bayer [Sun, 11 Apr 2010 19:37:20 +0000 (15:37 -0400)] 
- added a test for the solution in [ticket:1757].
- this does imply that a lot of the "test the RowProxy" tests in sql/test_query might be better off in engine/test_execute or perhaps engine/test_resultproxy

15 years agomerge branch
Gaëtan de Menten [Sun, 11 Apr 2010 18:58:37 +0000 (20:58 +0200)] 
merge branch

15 years ago- engines
Gaëtan de Menten [Sun, 11 Apr 2010 18:56:39 +0000 (20:56 +0200)] 
- engines
  - The C extension now also works with DBAPIs which use custom
    sequences as row (and not only tuples). [ticket:1757]

15 years agomove factory function to classmethod
Mike Bayer [Sun, 11 Apr 2010 16:21:36 +0000 (12:21 -0400)] 
move factory function to classmethod

15 years agomerge trunk
Mike Bayer [Sun, 11 Apr 2010 16:18:50 +0000 (12:18 -0400)] 
merge trunk

15 years ago- somejoin.select(fold_equivalents=True) is no longer
Mike Bayer [Sun, 11 Apr 2010 16:03:41 +0000 (12:03 -0400)] 
- somejoin.select(fold_equivalents=True) is no longer
deprecated, and will eventually be rolled into a more
comprehensive version of the feature for [ticket:1729].

15 years agocheck_reverse was failing a not well covered m2m case.
Mike Bayer [Sun, 11 Apr 2010 00:13:51 +0000 (20:13 -0400)] 
check_reverse was failing a not well covered m2m case.

15 years agomerge default
Mike Bayer [Sat, 10 Apr 2010 23:45:34 +0000 (19:45 -0400)] 
merge default

15 years ago- starting to groom the branch for its inclusion
Mike Bayer [Sat, 10 Apr 2010 23:21:54 +0000 (19:21 -0400)] 
- starting to groom the branch for its inclusion
- one-to-many relationships now maintain a list of positive
parent-child associations within the flush, preventing
previous parents marked as deleted from cascading a
delete or NULL foreign key set on those child objects,
despite the end-user not removing the child from the old
association. [ticket:1764]
- re-established Preprocess as unique on their arguments,
as they were definitely duped in inheritance scenarios
- added a "memo" feature to UOWTransaction which represents the usual
pattern of using the .attributes collection
- added the test case from [ticket:1081] into perf/

15 years agocomment
Mike Bayer [Fri, 9 Apr 2010 22:40:28 +0000 (18:40 -0400)] 
comment

15 years agoattempt to reduce redundant calc of pk_switched
Mike Bayer [Fri, 9 Apr 2010 22:17:06 +0000 (18:17 -0400)] 
attempt to reduce redundant calc of pk_switched

15 years agofix bug + add coverage to ensure unneeded SaveUpdateAll/DeleteAll plus extra
Mike Bayer [Fri, 9 Apr 2010 22:04:18 +0000 (18:04 -0400)] 
fix bug + add coverage to ensure unneeded SaveUpdateAll/DeleteAll plus extra
work doesn't occur during per-state usage

15 years agogot DetectKeySwitch into the fold, can now greatly collapse a lot of the preprocess...
Mike Bayer [Fri, 9 Apr 2010 21:43:50 +0000 (17:43 -0400)] 
got DetectKeySwitch into the fold, can now greatly collapse a lot of the preprocess/process down