]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
15 years agooracle+zxjdbc returning support
Philip Jenvey [Tue, 18 Aug 2009 05:28:05 +0000 (05:28 +0000)] 
oracle+zxjdbc returning support

15 years agoalways visit returning clauses in the right order for positional paramstyle
Philip Jenvey [Tue, 18 Aug 2009 02:43:37 +0000 (02:43 +0000)] 
always visit returning clauses in the right order for positional paramstyle
sanity

15 years agodont see the need to re-call post_configure inside a reentrant loop. since we're
Mike Bayer [Fri, 14 Aug 2009 17:02:56 +0000 (17:02 +0000)] 
dont see the need to re-call post_configure inside a reentrant loop.  since we're
in 0.6 let's just simplify.

15 years agoadd a really contrived test that tests the _already_compiling flag. but this seems...
Mike Bayer [Fri, 14 Aug 2009 16:54:49 +0000 (16:54 +0000)] 
add a really contrived test that tests the _already_compiling flag.  but this seems silly
so far.

15 years agolower call counts for 2.4, hurray
Philip Jenvey [Fri, 14 Aug 2009 04:01:54 +0000 (04:01 +0000)] 
lower call counts for 2.4, hurray

15 years agodon't use the deprecated driver name
Philip Jenvey [Fri, 14 Aug 2009 03:04:28 +0000 (03:04 +0000)] 
don't use the deprecated driver name

15 years agoReplace HTML entities with reST markup
Lele Gaifax [Tue, 11 Aug 2009 08:19:37 +0000 (08:19 +0000)] 
Replace HTML entities with reST markup

15 years agomove postgresql's % escape handling out of base
Philip Jenvey [Tue, 11 Aug 2009 05:12:50 +0000 (05:12 +0000)] 
move postgresql's % escape handling out of base

15 years agoo default Connector/J's characterEncoding=UTF-8 for generally better JDBC
Philip Jenvey [Tue, 11 Aug 2009 04:16:48 +0000 (04:16 +0000)] 
o default Connector/J's characterEncoding=UTF-8 for generally better JDBC
unicode handling
o pass url query params down as jdbc connect opts

15 years agosome doc work
Mike Bayer [Mon, 10 Aug 2009 23:06:07 +0000 (23:06 +0000)] 
some doc work

15 years ago0.6
Mike Bayer [Mon, 10 Aug 2009 21:44:14 +0000 (21:44 +0000)] 
0.6

15 years ago- simplify MySQLIdentifierPreparer into standard pattern,
Mike Bayer [Mon, 10 Aug 2009 04:48:00 +0000 (04:48 +0000)] 
- simplify MySQLIdentifierPreparer into standard pattern,
thus allowing easy subclassing
- move % sign logic for MySQLIdentifierPreparer into MySQLdb dialect
- paramterize the escape/unescape quote char in IdentifierPreparer
- cut out MySQLTableDefinitionParser cruft

15 years ago- the Oracle dialect now features NUMBER which intends
Mike Bayer [Sun, 9 Aug 2009 23:46:06 +0000 (23:46 +0000)] 
- the Oracle dialect now features NUMBER which intends
to act justlike Oracle's NUMBER type.  It is the primary
numeric type returned by table reflection and attempts
to return Decimal()/float/int based on the precision/scale
parameters.  [ticket:885]

15 years ago- PG: somewhat better support for % signs in table/column names;
Mike Bayer [Sun, 9 Aug 2009 22:11:40 +0000 (22:11 +0000)] 
- PG: somewhat better support for % signs in table/column names;
psycopg2 can't handle a bind parameter name of
%(foobar)s however and SQLA doesn't want to add overhead
just to treat that one non-existent use case.
[ticket:1279]
- MySQL: somewhat better support for % signs in table/column names;
MySQLdb can't handle % signs in SQL when executemany() is used,
and SQLA doesn't want to add overhead just to treat that one
non-existent use case. [ticket:1279]

15 years agoclose out py3k + pg8000 bugs that are fixable for now without pg8000 decimal fix
Mike Bayer [Sun, 9 Aug 2009 21:41:56 +0000 (21:41 +0000)] 
close out py3k + pg8000 bugs that are fixable for now without pg8000 decimal fix

15 years agopython3k fixes
Mike Bayer [Sun, 9 Aug 2009 20:50:46 +0000 (20:50 +0000)] 
python3k fixes

15 years agopull from identity_map atomically to avoid a race with weakref cleanup
Philip Jenvey [Sun, 9 Aug 2009 20:35:24 +0000 (20:35 +0000)] 
pull from identity_map atomically to avoid a race with weakref cleanup

15 years agoo oracle+zxjdbc type handling additions
Philip Jenvey [Sun, 9 Aug 2009 00:56:52 +0000 (00:56 +0000)] 
o oracle+zxjdbc type handling additions
o avoid returning tests on oracle+zxjdbc for now

15 years agomerge 06CHANGES into CHANGES and add more stuff
Mike Bayer [Sat, 8 Aug 2009 23:10:00 +0000 (23:10 +0000)] 
merge 06CHANGES into CHANGES and add more stuff

15 years ago- added **kw to ClauseElement.compare(), so that we can smarten up the "use_get"...
Mike Bayer [Sat, 8 Aug 2009 22:21:02 +0000 (22:21 +0000)] 
- added **kw to ClauseElement.compare(), so that we can smarten up the "use_get" operation
- many-to-one relation to a joined-table subclass now uses get()
  for a simple load (known as the "use_get" condition),
  i.e. Related->Sub(Base), without the need
  to redefine the primaryjoin condition in terms of the base
  table. [ticket:1186]
- specifying a foreign key with a declarative column,
  i.e. ForeignKey(MyRelatedClass.id) doesn't break the "use_get"
  condition from taking place [ticket:1492]

15 years agoclean up the way we detect MSSQL's form of RETURNING
Mike Bayer [Sat, 8 Aug 2009 17:38:45 +0000 (17:38 +0000)] 
clean up the way we detect MSSQL's form of RETURNING

15 years agounwrapped _get_colparams a bit, dropped out an isinstance() call
Mike Bayer [Sat, 8 Aug 2009 17:24:02 +0000 (17:24 +0000)] 
unwrapped _get_colparams a bit, dropped out an isinstance() call

15 years agofix up oracle tests, returning is on by default
Mike Bayer [Sat, 8 Aug 2009 16:49:28 +0000 (16:49 +0000)] 
fix up oracle tests, returning is on by default

15 years ago- turned on auto-returning for oracle, some errors
Mike Bayer [Sat, 8 Aug 2009 15:26:43 +0000 (15:26 +0000)] 
- turned on auto-returning for oracle, some errors
- added make_transient() [ticket:1052]
- ongoing refactor of compiler _get_colparams()  (more to come)

15 years agoensure order of larger comparisons
Philip Jenvey [Sat, 8 Aug 2009 02:01:46 +0000 (02:01 +0000)] 
ensure order of larger comparisons

15 years agodocumentation updates
Mike Bayer [Fri, 7 Aug 2009 22:17:24 +0000 (22:17 +0000)] 
documentation updates

15 years ago- renamed PASSIVE_NORESULT to PASSIVE_NO_RESULT
Mike Bayer [Fri, 7 Aug 2009 21:14:32 +0000 (21:14 +0000)] 
- renamed PASSIVE_NORESULT to PASSIVE_NO_RESULT
- renamed PASSIVE_NO_CALLABLES to PASSIVE_NO_FETCH
- passive now propagates all the way through lazy callables,
all the way into query._get(), so that many-to-one lazy load
can load the instance via the local session but not trigger
any SQL if not available, fixes [ticket:1298] without
messing up consistency of tests added in r6201
- many-to-one also handles returning PASSIVE_NO_RESULT
for the "old" value thus eliminating the need for the
previous value even if the new value is None
- query._get() uses identity_map.get(), which has been
changed to no longer raise KeyError, thus providing
mythical time savings that didn't seem to make any
difference in how fast the unit tests ran.

15 years agoFix #1451: take into account the actual coding system when determining the field...
Lele Gaifax [Fri, 7 Aug 2009 12:34:10 +0000 (12:34 +0000)] 
Fix #1451: take into account the actual coding system when determining the field length

15 years agoFix #1429: take into account possible spurious spaces around the DEFAULT keyword
Lele Gaifax [Fri, 7 Aug 2009 12:16:15 +0000 (12:16 +0000)] 
Fix #1429: take into account possible spurious spaces around the DEFAULT keyword

15 years agoM-x whitespace-cleanup
Lele Gaifax [Fri, 7 Aug 2009 12:10:33 +0000 (12:10 +0000)] 
M-x whitespace-cleanup

15 years agofix some profiles for 2.4
Mike Bayer [Thu, 6 Aug 2009 22:37:38 +0000 (22:37 +0000)] 
fix some profiles for 2.4

15 years agofix non2.4 gremlin
Mike Bayer [Thu, 6 Aug 2009 22:16:53 +0000 (22:16 +0000)] 
fix non2.4 gremlin

15 years agodont need this anymore
Mike Bayer [Thu, 6 Aug 2009 21:19:20 +0000 (21:19 +0000)] 
dont need this anymore

15 years agomerge 0.6 series to trunk.
Mike Bayer [Thu, 6 Aug 2009 21:11:27 +0000 (21:11 +0000)] 
merge 0.6 series to trunk.

15 years agodisabled examples test pending necesary repairs
Mike Bayer [Thu, 6 Aug 2009 20:16:31 +0000 (20:16 +0000)] 
disabled examples test pending necesary repairs

16 years ago- UPDATE and DELETE do not support ORDER BY, LIMIT, OFFSET,
Mike Bayer [Sun, 2 Aug 2009 18:13:07 +0000 (18:13 +0000)] 
- UPDATE and DELETE do not support ORDER BY, LIMIT, OFFSET,
etc. in standard SQL.  Query.update() and Query.delete()
now raise an exception if any of limit(), offset(),
order_by(), group_by(), or distinct() have been
called. [ticket:1487]

16 years ago- Simplified the sweep of instrumentation in strategies._register_attribute
Mike Bayer [Sun, 2 Aug 2009 17:51:33 +0000 (17:51 +0000)] 
- Simplified the sweep of instrumentation in strategies._register_attribute

- Improved support for MapperProperty objects overriding
that of an inherited mapper for non-concrete
inheritance setups - attribute extensions won't randomly
collide with each other.  [ticket:1488]

- Added AttributeExtension to sqlalchemy.orm.__all__

16 years agobackported 0.6 r6084 fix for oracle alias names, [ticket:1309]
Mike Bayer [Fri, 31 Jul 2009 23:10:46 +0000 (23:10 +0000)] 
backported 0.6 r6084 fix for oracle alias names, [ticket:1309]

16 years agofix broken orm debug logging
Philip Jenvey [Wed, 29 Jul 2009 00:41:26 +0000 (00:41 +0000)] 
fix broken orm debug logging

16 years agomerged [ticket:1486] fix from 0.6
Mike Bayer [Tue, 28 Jul 2009 17:47:54 +0000 (17:47 +0000)] 
merged [ticket:1486] fix from 0.6

16 years agoReverted my screw up of setup.cfg
Michael Trier [Tue, 28 Jul 2009 01:23:17 +0000 (01:23 +0000)] 
Reverted my screw up of setup.cfg

16 years agoCorrected examples tests. I was running from ./test instead of root.
Michael Trier [Tue, 28 Jul 2009 01:20:52 +0000 (01:20 +0000)] 
Corrected examples tests. I was running from ./test instead of root.

16 years agoAdded in Examples into the test suite so they get exercised regularly. Cleaned up...
Michael Trier [Mon, 27 Jul 2009 02:12:15 +0000 (02:12 +0000)] 
Added in Examples into the test suite so they get exercised regularly. Cleaned up some deprecation warnings in the examples.

16 years agoCorrected annoying deprecation warning on 2.6+ related to mssql and the __new__ calls.
Michael Trier [Sun, 26 Jul 2009 03:07:42 +0000 (03:07 +0000)] 
Corrected annoying deprecation warning on 2.6+ related to mssql and the __new__ calls.

16 years agoCorrected problem with binary test on mssql. Still having issues with prepared statem...
Michael Trier [Sun, 26 Jul 2009 03:07:32 +0000 (03:07 +0000)] 
Corrected problem with binary test on mssql. Still having issues with prepared statements.

16 years ago- Squeezed a few more unnecessary "lazy loads" out of
Mike Bayer [Sun, 26 Jul 2009 01:46:41 +0000 (01:46 +0000)] 
- Squeezed a few more unnecessary "lazy loads" out of
relation().  When a collection is mutated, many-to-one
backrefs on the other side will not fire off to load
the "old" value, unless "single_parent=True" is set.
A direct assignment of a many-to-one still loads
the "old" value in order to update backref collections
on that value, which may be present in the session
already, thus maintaining the 0.5 behavioral contract.
[ticket:1483]

16 years ago- Fixed bug in Table and Column whereby passing empty
Mike Bayer [Sat, 25 Jul 2009 21:40:27 +0000 (21:40 +0000)] 
- Fixed bug in Table and Column whereby passing empty
dict for "info" argument would raise an exception.
[ticket:1482]

16 years ago- Fixed bug whereby a load/refresh of joined table
Mike Bayer [Sat, 25 Jul 2009 21:26:28 +0000 (21:26 +0000)] 
- Fixed bug whereby a load/refresh of joined table
inheritance attributes which were based on
column_property() or similar would fail to evaluate.
[ticket:1480]

16 years ago- Declarative will raise an informative exception if
Mike Bayer [Sat, 25 Jul 2009 20:43:11 +0000 (20:43 +0000)] 
- Declarative will raise an informative exception if
__table_args__ is passed as a tuple with no dict argument.
Improved documentation.  [ticket:1468]

16 years ago- fixed the test for FalseDiscriminator to use Boolean for picky postgresql
Mike Bayer [Sat, 25 Jul 2009 20:27:33 +0000 (20:27 +0000)] 
- fixed the test for FalseDiscriminator to use Boolean for picky postgresql
- added Query.enable_assertions(False) as a mediocre solution for [ticket:1424].
updated the recipe at http://www.sqlalchemy.org/trac/wiki/UsageRecipes/PreFilteredQuery to
reflect.
- moved most default Query state to be class level variables to start.  the dicts could
go as well but being overly careful to not place mutables there for the moment.
- a visit by the "dunder-private method names aren't cool" police
- continued undisciplined pep-8ness

16 years ago- Using False or 0 as a polymorphic discriminator now
Mike Bayer [Sat, 25 Jul 2009 19:42:15 +0000 (19:42 +0000)] 
- Using False or 0 as a polymorphic discriminator now
works on the base class as well as a subclass.
[ticket:1440]

16 years ago- Unary expressions such as DISTINCT propagate their
Mike Bayer [Sat, 25 Jul 2009 19:34:02 +0000 (19:34 +0000)] 
- Unary expressions such as DISTINCT propagate their
type handling to result sets, allowing conversions like
unicode and such to take place.  [ticket:1420]

16 years ago- Improved error message when query() is called with
Mike Bayer [Sat, 25 Jul 2009 18:59:56 +0000 (18:59 +0000)] 
- Improved error message when query() is called with
a non-SQL /entity expression. [ticket:1476]

16 years agobeefed up documentation for count(), [ticket:1465]
Mike Bayer [Sat, 25 Jul 2009 18:54:20 +0000 (18:54 +0000)] 
beefed up documentation for count(), [ticket:1465]

16 years ago- The collection proxies produced by associationproxy are now
Mike Bayer [Sat, 25 Jul 2009 17:08:38 +0000 (17:08 +0000)] 
- The collection proxies produced by associationproxy are now
pickleable.  A user-defined proxy_factory however
is still not pickleable unless it defines __getstate__
and __setstate__. [ticket:1446]

16 years agoFix small typos in docstring
Lele Gaifax [Fri, 24 Jul 2009 15:31:09 +0000 (15:31 +0000)] 
Fix small typos in docstring

16 years agoensure "rowswitch" for isdelete is supported
Mike Bayer [Wed, 22 Jul 2009 20:41:33 +0000 (20:41 +0000)] 
ensure "rowswitch" for isdelete is supported

16 years ago- relations() now have greater ability to be "overridden",
Mike Bayer [Tue, 21 Jul 2009 21:47:03 +0000 (21:47 +0000)] 
- relations() now have greater ability to be "overridden",
meaning a subclass that explicitly specifies a relation()
overriding that of the parent class will be honored
during a flush.  This is currently to support
many-to-many relations from concrete inheritance setups.
Outside of that use case, YMMV.  [ticket:1477]

16 years ago- Fixed bug whereby inheritance discriminator part of a
Mike Bayer [Tue, 21 Jul 2009 20:25:36 +0000 (20:25 +0000)] 
- Fixed bug whereby inheritance discriminator part of a
composite primary key would fail on updates.
Continuation of [ticket:1300].

16 years ago- Fixed a bug in extract() introduced in 0.5.4 whereby
Mike Bayer [Fri, 17 Jul 2009 15:10:54 +0000 (15:10 +0000)] 
- Fixed a bug in extract() introduced in 0.5.4 whereby
the string "field" argument was getting treated as a
ClauseElement, causing various errors within more
complex SQL transformations.

16 years agoGuard against a gc hitting during the sweep for dirty objects.
Jason Kirtland [Thu, 16 Jul 2009 23:24:30 +0000 (23:24 +0000)] 
Guard against a gc hitting during the sweep for dirty objects.

16 years agobeefed up the description of dialects
Mike Bayer [Mon, 13 Jul 2009 22:53:20 +0000 (22:53 +0000)] 
beefed up the description of dialects

16 years agochanged reference to PostgreSQL in docs. rel_0_5_5
Mike Bayer [Mon, 13 Jul 2009 02:04:54 +0000 (02:04 +0000)] 
changed reference to PostgreSQL in docs.

16 years ago- remove docs about partial flush, add docs about disabling autoflush
Mike Bayer [Sun, 12 Jul 2009 22:34:06 +0000 (22:34 +0000)] 
- remove docs about partial flush, add docs about disabling autoflush

16 years ago- sqlalchemy.orm.join and sqlalchemy.orm.outerjoin are now
Mike Bayer [Sun, 12 Jul 2009 14:33:06 +0000 (14:33 +0000)] 
- sqlalchemy.orm.join and sqlalchemy.orm.outerjoin are now
added to __all__ in sqlalchemy.orm.*. [ticket:1463]

- Fixed bug where Query exception raise would fail when
a too-short composite primary key value were passed to
get().  [ticket:1458]

- rearranged CHANGES for 0.5.5 to be somewhat severity based.

- commented on [ticket:1445]

16 years agoupdates
Mike Bayer [Sat, 11 Jul 2009 21:07:52 +0000 (21:07 +0000)] 
updates

16 years agoFormatting
Jason Kirtland [Fri, 10 Jul 2009 21:51:40 +0000 (21:51 +0000)] 
Formatting

16 years agoImplemented recreate() for StaticPool
Jason Kirtland [Fri, 10 Jul 2009 21:48:45 +0000 (21:48 +0000)] 
Implemented recreate() for StaticPool

16 years ago- Fixed potential memory leak whereby previously pickled objects
Mike Bayer [Fri, 10 Jul 2009 20:01:56 +0000 (20:01 +0000)] 
- Fixed potential memory leak whereby previously pickled objects
placed back in a session would not be fully garbage collected
unless the Session were explicitly closed out.

16 years ago- Fixed bug whereby session.is_modified() would raise an exception
Mike Bayer [Thu, 9 Jul 2009 01:45:44 +0000 (01:45 +0000)] 
- Fixed bug whereby session.is_modified() would raise an exception
if any synonyms were in use.

16 years ago- Fixed a bug involving contains_eager(), which would apply itself
Mike Bayer [Tue, 7 Jul 2009 17:17:22 +0000 (17:17 +0000)] 
- Fixed a bug involving contains_eager(), which would apply itself
to a secondary (i.e. lazy) load in a particular rare case,
producing cartesian products.   improved the targeting
of query.options() on secondary loads overall [ticket:1461].

16 years agoSession.mapper is now *deprecated*.
Mike Bayer [Fri, 3 Jul 2009 15:31:29 +0000 (15:31 +0000)] 
Session.mapper is now *deprecated*.
Call session.add() if you'd like a free-standing object to be
part of your session.  Otherwise, a DIY version of
Session.mapper is now documented at
http://www.sqlalchemy.org/trac/wiki/UsageRecipes/SessionAwareMapper
The method will remain deprecated throughout 0.6.

M    test/ext/test_declarative.py
M    test/orm/test_scoping.py
M    lib/sqlalchemy/orm/scoping.py
M    CHANGES

16 years agoFix deprecated usage of on numeric type
Lele Gaifax [Tue, 23 Jun 2009 09:09:13 +0000 (09:09 +0000)] 
Fix deprecated usage of  on numeric type

16 years agoadded docs for post_update
Mike Bayer [Sun, 21 Jun 2009 16:21:52 +0000 (16:21 +0000)] 
added docs for post_update

16 years ago- repaired non-working attributes.set_committed_value function.
Mike Bayer [Thu, 18 Jun 2009 19:37:16 +0000 (19:37 +0000)] 
- repaired non-working attributes.set_committed_value function.

16 years ago- Trimmed the pickle format for InstanceState which should further
Mike Bayer [Tue, 16 Jun 2009 19:23:43 +0000 (19:23 +0000)] 
- Trimmed the pickle format for InstanceState which should further
reduce the memory footprint of pickled instances.  The format
should be backwards compatible with that of 0.5.4 and previous.

16 years agoassoc proxy object appends to list automatically [ticket:1351]
Mike Bayer [Mon, 15 Jun 2009 22:39:45 +0000 (22:39 +0000)] 
assoc proxy object appends to list automatically [ticket:1351]

16 years agoadded test to verify #1423
Mike Bayer [Mon, 15 Jun 2009 22:33:12 +0000 (22:33 +0000)] 
added test to verify #1423

16 years ago- Fixed bug whereby list-based attributes, like pickletype
Mike Bayer [Mon, 15 Jun 2009 22:23:08 +0000 (22:23 +0000)] 
- Fixed bug whereby list-based attributes, like pickletype
and PGArray, failed to be merged() properly.

16 years agosplit CHANGES into CHANGES and CHANGES_PRE_05, since I would like CHANGES to be viewa...
Mike Bayer [Mon, 15 Jun 2009 22:11:08 +0000 (22:11 +0000)] 
split CHANGES into CHANGES and CHANGES_PRE_05, since I would like CHANGES to be viewable in trac

16 years ago- The "foreign_keys" argument of relation() will now propagate
Mike Bayer [Sat, 13 Jun 2009 03:31:30 +0000 (03:31 +0000)] 
- The "foreign_keys" argument of relation() will now propagate
automatically to the backref in the same way that
primaryjoin and secondaryjoin do.   For the extremely
rare use case where the backref of a relation() has
intentionally different "foreign_keys" configured, both sides
now need to be configured explicity (if they do in fact require
this setting, see the next note...).

- ...the only known (and really, really rare) use case where a
different foreign_keys setting was used on the forwards/backwards
side, a composite foreign key that partially points to its own
columns, has been enhanced such that the fk->itself aspect of the
relation won't be used to determine relation direction.

16 years ago- unit tests have been migrated from unittest to nose.
Mike Bayer [Wed, 10 Jun 2009 21:18:24 +0000 (21:18 +0000)] 
- unit tests have been migrated from unittest to nose.
See README.unittests for information on how to run
the tests.  [ticket:970]

16 years ago- Fixed Query being able to join() from individual columns of
Mike Bayer [Fri, 5 Jun 2009 21:23:11 +0000 (21:23 +0000)] 
- Fixed Query being able to join() from individual columns of
a joined-table subclass entity, i.e.
query(SubClass.foo, SubcClass.bar).join(<anything>).
In most cases, an error "Could not find a FROM clause to join
from" would be raised. In a few others, the result would be
returned in terms of the base class rather than the subclass -
so applications which relied on this erroneous result need to be
adjusted. [ticket:1431]

16 years ago- removed test.testing.ORMTest, test.fixtures, and all
Mike Bayer [Tue, 2 Jun 2009 21:42:14 +0000 (21:42 +0000)] 
- removed test.testing.ORMTest, test.fixtures, and all
dependencies on those.

16 years agomove from pXXX to 0.5.5 [ticket:1427]
Mike Bayer [Tue, 2 Jun 2009 15:50:04 +0000 (15:50 +0000)] 
move from pXXX to 0.5.5 [ticket:1427]

16 years ago- Fixed another 0.5.4 bug whereby mutable attributes (i.e. PickleType)
Mike Bayer [Mon, 1 Jun 2009 22:42:14 +0000 (22:42 +0000)] 
- Fixed another 0.5.4 bug whereby mutable attributes (i.e. PickleType)
wouldn't be deserialized correctly when the whole object
was serialized.  [ticket:1426]

16 years agoslight cleanup i want in 0.5/0.6
Mike Bayer [Sun, 31 May 2009 21:27:56 +0000 (21:27 +0000)] 
slight cleanup i want in 0.5/0.6

16 years agoremoved needless "thread" imports from util
Mike Bayer [Sat, 30 May 2009 01:09:16 +0000 (01:09 +0000)] 
removed needless "thread" imports from util

16 years ago- sql
Mike Bayer [Fri, 29 May 2009 18:56:50 +0000 (18:56 +0000)] 
- sql
    - Removed an obscure feature of execute() (including connection,
      engine, Session) whereby a bindparam() construct can be sent as
      a key to the params dictionary.  This usage is undocumented
      and is at the core of an issue whereby the bindparam() object
      created implicitly by a text() construct may have the same
      hash value as a string placed in the params dictionary and
      may result in an inappropriate match when computing the final
      bind parameters.   Internal checks for this condition would
      add significant latency to the critical task of parameter
      rendering, so the behavior is removed.  This is a backwards
      incompatible change for any application that may have been
      using this feature, however the feature has never been
      documented.

16 years ago- Fixed bug introduced in 0.5.4 whereby Composite types
Mike Bayer [Tue, 26 May 2009 22:45:56 +0000 (22:45 +0000)] 
- Fixed bug introduced in 0.5.4 whereby Composite types
fail when default-holding columns are flushed.

16 years agomore fixes to bound parameter exception reporting rel_0_5_4p2
Mike Bayer [Tue, 26 May 2009 17:03:03 +0000 (17:03 +0000)] 
more fixes to bound parameter exception reporting

16 years ago- added unit test for exception formatting
Mike Bayer [Tue, 26 May 2009 01:00:46 +0000 (01:00 +0000)] 
- added unit test for exception formatting
- Deprecated the hardcoded TIMESTAMP function, which when
used as func.TIMESTAMP(value) would render "TIMESTAMP value".
This breaks on some platforms as Postgres doesn't allow
bind parameters to be used in this context.  The hard-coded
uppercase is also inappropriate and there's lots of other
PG casts that we'd need to support.  So instead, use
text constructs i.e. select(["timestamp '12/05/09'"]).

16 years ago- Repaired the printing of SQL exceptions which are not
Mike Bayer [Mon, 25 May 2009 15:26:16 +0000 (15:26 +0000)] 
- Repaired the printing of SQL exceptions which are not
based on parameters.

16 years ago- Fixed an attribute error introduced in 0.5.4 which would rel_0_5_4p1
Mike Bayer [Mon, 18 May 2009 16:21:42 +0000 (16:21 +0000)] 
- Fixed an attribute error introduced in 0.5.4 which would
occur when merge() was used with an incomplete object.

16 years ago- Back-ported the "compiler" extension from SQLA 0.6. This rel_0_5_4
Mike Bayer [Sun, 17 May 2009 22:58:21 +0000 (22:58 +0000)] 
- Back-ported the "compiler" extension from SQLA 0.6.  This
is a standardized interface which allows the creation of custom
ClauseElement subclasses and compilers.  In particular it's
handy as an alternative to text() when you'd like to
build a construct that has database-specific compilations.
See the extension docs for details.

16 years agounusual ...
Mike Bayer [Sun, 17 May 2009 22:44:35 +0000 (22:44 +0000)] 
unusual ...

16 years ago- The "polymorphic discriminator" column may be part of a
Mike Bayer [Sun, 17 May 2009 22:20:28 +0000 (22:20 +0000)] 
- The "polymorphic discriminator" column may be part of a
primary key, and it will be populated with the correct
discriminator value.  [ticket:1300]

16 years ago- Reflecting a FOREIGN KEY construct will take into account
Mike Bayer [Sun, 17 May 2009 22:00:33 +0000 (22:00 +0000)] 
- Reflecting a FOREIGN KEY construct will take into account
a dotted schema.tablename combination, if the foreign key
references a table in a remote schema. [ticket:1405]

16 years ago- Exception messages are truncated when the list of bound
Mike Bayer [Sun, 17 May 2009 21:54:17 +0000 (21:54 +0000)] 
- Exception messages are truncated when the list of bound
parameters is larger than 10, preventing enormous
multi-page exceptions from filling up screens and logfiles
for large executemany() statements. [ticket:1413]

16 years ago- Removed all* O(N) scanning behavior from the flush() process,
Mike Bayer [Sun, 17 May 2009 21:51:40 +0000 (21:51 +0000)] 
- Removed all* O(N) scanning behavior from the flush() process,
i.e. operations that were scanning the full session,
including an extremely expensive one that was erroneously
assuming primary key values were changing when this
was not the case.

* one edge case remains which may invoke a full scan,
  if an existing primary key attribute is modified
  to a new value.