]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
14 years ago- Added accessors to ResultProxy "returns_rows", "is_insert"
Mike Bayer [Wed, 16 Mar 2011 14:36:48 +0000 (10:36 -0400)] 
- Added accessors to ResultProxy "returns_rows", "is_insert"
[ticket:2089]

14 years agoblow away some globals in the search for what makes resolve_artifact_names fail ...
Mike Bayer [Wed, 16 Mar 2011 05:26:27 +0000 (01:26 -0400)] 
blow away some globals in the search for what makes resolve_artifact_names fail (possibly when there's already globals in the way...)

14 years agoFix 3 errors in py32, from patch from lsblakk. There are still 8 failures. See #2088.
Taavi Burns [Wed, 16 Mar 2011 04:32:33 +0000 (00:32 -0400)] 
Fix 3 errors in py32, from patch from lsblakk. There are still 8 failures. See #2088.

14 years ago- adjust gc_collect for pypy
Mike Bayer [Wed, 16 Mar 2011 02:11:34 +0000 (22:11 -0400)] 
- adjust gc_collect for pypy

14 years ago- qualify the use of locals() based on python version in use, don't run for pypy...
Mike Bayer [Wed, 16 Mar 2011 01:36:34 +0000 (21:36 -0400)] 
- qualify the use of locals() based on python version in use, don't run for pypy, jython, should fix [ticket:1073]

14 years agochange TypeError test to not care about string message
Mike Bayer [Wed, 16 Mar 2011 01:26:59 +0000 (21:26 -0400)] 
change TypeError test to not care about string message

14 years ago- merge
Mike Bayer [Tue, 15 Mar 2011 22:32:53 +0000 (18:32 -0400)] 
- merge

14 years agomerge
Taavi Burns [Tue, 15 Mar 2011 22:22:18 +0000 (18:22 -0400)] 
merge

14 years agoMerge
Michael Trier [Tue, 15 Mar 2011 22:01:00 +0000 (18:01 -0400)] 
Merge

14 years agoMerge
Michael Trier [Tue, 15 Mar 2011 22:00:17 +0000 (18:00 -0400)] 
Merge

14 years agoMerge
Denise Govindarajan [Tue, 15 Mar 2011 21:55:01 +0000 (17:55 -0400)] 
Merge

14 years agoPulling 32d2b5d1962961b4134463becdd988888f797e90 onto default from rel_0_6
Taavi Burns [Tue, 15 Mar 2011 21:54:11 +0000 (17:54 -0400)] 
Pulling 32d2b5d1962961b4134463becdd988888f797e90 onto default from rel_0_6

14 years agopsycopg2 2.4 no longer accepts % in bind place holders
Denise Govindarajan [Tue, 15 Mar 2011 21:47:36 +0000 (17:47 -0400)] 
psycopg2 2.4 no longer accepts % in bind place holders

14 years agoAdded required import (somehow we never seem to hit the unimported ref)
Taavi Burns [Tue, 15 Mar 2011 21:45:55 +0000 (17:45 -0400)] 
Added required import (somehow we never seem to hit the unimported ref)

14 years ago- add tests, CHANGES for [ticket:2095]
Mike Bayer [Tue, 15 Mar 2011 21:31:19 +0000 (17:31 -0400)] 
- add tests, CHANGES for [ticket:2095]

14 years agoInformix and postgresql reserved words changes -- almost done.
Jim Phares [Tue, 15 Mar 2011 20:56:45 +0000 (16:56 -0400)] 
Informix and postgresql reserved words changes -- almost done.

14 years agoRemoving unused symbol import
Taavi Burns [Tue, 15 Mar 2011 20:01:58 +0000 (16:01 -0400)] 
Removing unused symbol import

14 years agoinitial work on column reflect
Mike Bayer [Mon, 14 Mar 2011 20:36:08 +0000 (16:36 -0400)] 
initial work on column reflect

14 years agomerge
Mike Bayer [Mon, 14 Mar 2011 19:08:47 +0000 (15:08 -0400)] 
merge

14 years ago- Arguments in __mapper_args__ that aren't "hashable"
Mike Bayer [Mon, 14 Mar 2011 19:01:17 +0000 (15:01 -0400)] 
- Arguments in __mapper_args__ that aren't "hashable"
aren't mistaken for always-hashable, possibly-column
arguments.  [ticket:2091]

14 years agoTests for unicode columns with non-unicode defaults. See #2079.
Taavi Burns [Mon, 14 Mar 2011 18:42:11 +0000 (14:42 -0400)] 
Tests for unicode columns with non-unicode defaults.  See #2079.

14 years agoWarn about unicode column having non-unicode default. See #2079.
Diana Clarke [Mon, 14 Mar 2011 18:34:44 +0000 (14:34 -0400)] 
Warn about unicode column having non-unicode default.  See #2079.

14 years agoMerge
Michael Trier [Mon, 14 Mar 2011 16:04:36 +0000 (12:04 -0400)] 
Merge

14 years agoFixed order_by in test.orm.test_froms.MixedEntitiesTest.test_values.
Jim Phares [Mon, 14 Mar 2011 15:51:38 +0000 (11:51 -0400)] 
Fixed order_by in test.orm.test_froms.MixedEntitiesTest.test_values.

14 years agoCorrected order by in test joins.
Denise Govindarajan [Mon, 14 Mar 2011 15:44:38 +0000 (11:44 -0400)] 
Corrected order by in test joins.

14 years agofix "associated" at the source too
Mike Bayer [Mon, 14 Mar 2011 15:20:01 +0000 (11:20 -0400)] 
fix "associated" at the source too

14 years agoFixed doc problem. Thanks Toby Ho.
Michael Trier [Mon, 14 Mar 2011 04:43:08 +0000 (00:43 -0400)] 
Fixed doc problem. Thanks Toby Ho.

14 years agoAssociated was spelled wrong.
Michael Trier [Mon, 14 Mar 2011 04:20:34 +0000 (00:20 -0400)] 
Associated was spelled wrong.

14 years ago- Updated the association, association proxy examples
Mike Bayer [Sun, 13 Mar 2011 17:59:00 +0000 (13:59 -0400)] 
- Updated the association, association proxy examples
to use declarative, added a new example
dict_of_sets_with_default.py, a "pushing the envelope"
example of association proxy.

14 years ago- Changed the underlying approach to query.count().
Mike Bayer [Thu, 10 Mar 2011 00:17:45 +0000 (19:17 -0500)] 
- Changed the underlying approach to query.count().
query.count() is now in all cases exactly:

query.
    from_self(func.count(literal_column('1'))).
    scalar()

That is, "select count(1) from (<full query>)".
This produces a subquery in all cases, but
vastly simplifies all the guessing count()
tried to do previously, which would still
fail in many scenarios particularly when
joined table inheritance and other joins
were involved.  If the subquery produced
for an otherwise very simple count is really
an issue, use query(func.count()) as an
optimization.  [ticket:2093]

14 years agoModifications for PyPy support from Alex Gaynor.
Michael Trier [Wed, 9 Mar 2011 04:40:59 +0000 (23:40 -0500)] 
Modifications for PyPy support from Alex Gaynor.

14 years ago- A tweak to the unit of work causes it to order
Mike Bayer [Sun, 6 Mar 2011 20:37:18 +0000 (15:37 -0500)] 
- A tweak to the unit of work causes it to order
the flush along relationship() dependencies even if
the given objects don't have any inter-attribute
references in memory, which was the behavior in
0.5 and earlier, so a flush of Parent/Child with
only foreign key/primary key set will succeed.
This while still maintaining 0.6 and above's not
generating a ton of useless internal dependency
structures within the flush that don't correspond
to state actually within the current flush.
[ticket:2082]

14 years ago0.6.7 changelog message
Mike Bayer [Sat, 5 Mar 2011 17:28:16 +0000 (12:28 -0500)] 
0.6.7 changelog message

14 years ago - some changes to the identity map regarding
Mike Bayer [Sat, 5 Mar 2011 01:52:22 +0000 (20:52 -0500)] 
  - some changes to the identity map regarding
    rare weakref callbacks during iterations.
    The mutex has been removed as it apparently
    can cause a reentrant (i.e. in one thread) deadlock,
    perhaps when gc collects objects at the point of
    iteration in order to gain more memory.  It is hoped
    that "dictionary changed during iteration" will
    be exceedingly rare as iteration methods internally
    acquire the full list of objects in a single values()
    call. [ticket:2087]

14 years agoCorrected a bunch of spelling typos
Diana Clarke [Mon, 28 Feb 2011 18:21:08 +0000 (13:21 -0500)] 
Corrected a bunch of spelling typos

14 years agocorrected a bunch of spelling typos
Diana Clarke [Mon, 28 Feb 2011 18:17:46 +0000 (13:17 -0500)] 
corrected a bunch of spelling typos

14 years agoAdded changes information for #2060.
Michael Trier [Mon, 14 Mar 2011 16:46:21 +0000 (12:46 -0400)] 
Added changes information for #2060.

14 years agosee #2060
Diana Clarke [Tue, 1 Mar 2011 04:55:34 +0000 (23:55 -0500)] 
see #2060

14 years ago- Added a fully descriptive error message for the
Mike Bayer [Mon, 28 Feb 2011 17:47:04 +0000 (12:47 -0500)] 
- Added a fully descriptive error message for the
case where Column is subclassed and _make_proxy()
fails to make a copy due to TypeError on the
constructor.   The method _constructor should
be implemented in this case.

14 years ago- establish an "insert" option for events to control ordering if needed (not needed...
Mike Bayer [Fri, 25 Feb 2011 18:20:43 +0000 (13:20 -0500)] 
- establish an "insert" option for events to control ordering if needed (not needed yet tho)
- render foreign key constraints in the order in which they were cerated

14 years agoAdded tag rel_0_7b2 for changeset e6d00f8234d6f31113447098181eb5a722085c33
Mike Bayer [Sat, 19 Feb 2011 19:32:14 +0000 (14:32 -0500)] 
Added tag rel_0_7b2 for changeset e6d00f8234d6f31113447098181eb5a722085c33

14 years ago0.7b2 rel_0_7b2
Mike Bayer [Sat, 19 Feb 2011 18:11:34 +0000 (13:11 -0500)] 
0.7b2

14 years agomerge everything all over again...
Mike Bayer [Sat, 19 Feb 2011 18:10:46 +0000 (13:10 -0500)] 
merge everything all over again...

14 years ago - Fix error message referencing old @classproperty
Mike Bayer [Sat, 19 Feb 2011 17:59:12 +0000 (12:59 -0500)] 
  - Fix error message referencing old @classproperty
    name to reference @declared_attr [ticket:2061]

14 years ago- pulling out the PG type impls in create table knocked the counts out a bit (I am...
Mike Bayer [Sat, 19 Feb 2011 02:32:39 +0000 (21:32 -0500)] 
- pulling out the PG type impls in create table knocked the counts out a bit (I am assuming/guessing).

14 years ago-adjust the fix for [ticket:2065] to not rely upon type affinity, revert
Mike Bayer [Fri, 18 Feb 2011 02:05:24 +0000 (21:05 -0500)] 
-adjust the fix for [ticket:2065] to not rely upon type affinity, revert
the _type_affinity attribute of SmallInteger, BigInteger

14 years ago- use easy to recognize names for backref events [ticket:2066]
Mike Bayer [Fri, 18 Feb 2011 01:52:07 +0000 (20:52 -0500)] 
- use easy to recognize names for backref events [ticket:2066]

14 years ago- Fixed regression from 0.6 where SMALLINT and
Mike Bayer [Fri, 18 Feb 2011 01:43:17 +0000 (20:43 -0500)] 
- Fixed regression from 0.6 where SMALLINT and
BIGINT types would both generate SERIAL
on an integer PK column, instead of
SMALLINT and BIGSERIAL [ticket:2065]

14 years ago- The Column.references() method now returns True
Mike Bayer [Fri, 18 Feb 2011 01:27:35 +0000 (20:27 -0500)] 
- The Column.references() method now returns True
if it has a foreign key referencing the
given column exactly, not just it's parent
table.  [ticket:2064]

14 years ago- changelog for [ticket:2059]
Mike Bayer [Fri, 18 Feb 2011 01:02:48 +0000 (20:02 -0500)] 
- changelog for [ticket:2059]

14 years ago- rename EngineEvents to ConnectionEvents
Mike Bayer [Fri, 18 Feb 2011 00:59:45 +0000 (19:59 -0500)] 
- rename EngineEvents to ConnectionEvents
- simplify connection event model to be inline inside Connection, don't use ad-hoc
subclasses (technically would leak memory for the app that keeps creating engines
and adding events)
- not doing listen-per-connection yet.  this is closer.  overall things
are much simpler now (until we put listen-per-connection in...)

14 years ago- the dictionary at the end of the __table_args__
Mike Bayer [Thu, 17 Feb 2011 17:06:56 +0000 (12:06 -0500)] 
- the dictionary at the end of the __table_args__
tuple is now optional.  [ticket:1468]

14 years agoadd a close to this as PG appears to be hanging
Mike Bayer [Mon, 14 Feb 2011 22:17:29 +0000 (17:17 -0500)] 
add a close to this as PG appears to be hanging

14 years ago- Fixed regression whereby composite() with
Mike Bayer [Mon, 14 Feb 2011 17:51:53 +0000 (12:51 -0500)] 
- Fixed regression whereby composite() with
Column objects placed inline would fail
to initialize.  The Column objects can now
be inline with the composite() or external
and pulled in via name or object ref.
[ticket:2058]

14 years ago- Beaker example now takes into account 'limit'
Mike Bayer [Mon, 14 Feb 2011 03:30:00 +0000 (22:30 -0500)] 
- Beaker example now takes into account 'limit'
and 'offset', bind params within embedded
FROM clauses (like when you use union() or
from_self()) when generating a cache key.

14 years agofix arg in ddl events
Mike Bayer [Mon, 14 Feb 2011 01:21:58 +0000 (20:21 -0500)] 
fix arg in ddl events

14 years ago- Association proxy now has correct behavior for
Mike Bayer [Mon, 14 Feb 2011 01:20:34 +0000 (20:20 -0500)] 
- Association proxy now has correct behavior for
any(), has(), and contains() when proxying
a many-to-one scalar attribute to a one-to-many
collection (i.e. the reverse of the 'typical'
association proxy use case)  [ticket:2054]

14 years ago- The Sequence() construct, when passed a MetaData()
Mike Bayer [Mon, 14 Feb 2011 00:32:00 +0000 (19:32 -0500)] 
- The Sequence() construct, when passed a MetaData()
object via its 'metadata' argument, will be
included in CREATE/DROP statements within
metadata.create_all() and metadata.drop_all(),
including "checkfirst" logic.  [ticket:2055]

14 years agofix this directive for py3k
Mike Bayer [Sun, 13 Feb 2011 03:29:36 +0000 (22:29 -0500)] 
fix this directive for py3k

14 years ago- Fixed bug whereby Session.merge() would call the
Mike Bayer [Sun, 13 Feb 2011 03:20:47 +0000 (22:20 -0500)] 
- Fixed bug whereby Session.merge() would call the
load() event with one too few arguments.
[ticket:2053]

- Added logic which prevents the generation of
events from a MapperExtension or SessionExtension
from generating do-nothing events for all the methods
not overridden. [ticket:2052]

14 years agoAdded tag rel_0_7b1 for changeset 53aab63b6c24dfdcc249ada5c9d712dc42e5ae40
Mike Bayer [Sat, 12 Feb 2011 23:30:46 +0000 (18:30 -0500)] 
Added tag rel_0_7b1 for changeset 53aab63b6c24dfdcc249ada5c9d712dc42e5ae40

14 years ago- remove some remaining sys.modules shenanigans rel_0_7b1
Mike Bayer [Sat, 12 Feb 2011 23:00:45 +0000 (18:00 -0500)] 
- remove some remaining sys.modules shenanigans
- The "sqlalchemy.exceptions" alias in sys.modules
has been removed.   Base SQLA exceptions are
available via "from sqlalchemy import exc".
The "exceptions" alias for "exc" remains in
"sqlalchemy" for now, it's just not patched into
sys.modules.

14 years ago- Added an explicit check for the case that the name
Mike Bayer [Sat, 12 Feb 2011 22:33:15 +0000 (17:33 -0500)] 
- Added an explicit check for the case that the name
'metadata' is used for a column attribute on a
declarative class. [ticket:2050]

14 years ago0.7 will be beta classifier to start
Mike Bayer [Sat, 12 Feb 2011 22:14:34 +0000 (17:14 -0500)] 
0.7 will be beta classifier to start

14 years agoweird non-ascii char
Mike Bayer [Sat, 12 Feb 2011 22:09:59 +0000 (17:09 -0500)] 
weird non-ascii char

14 years agough. OK let is_modified accept true/false
Mike Bayer [Fri, 11 Feb 2011 23:24:36 +0000 (18:24 -0500)] 
ugh. OK let is_modified accept true/false

14 years ago- fix long lines in test_attributes
Mike Bayer [Fri, 11 Feb 2011 22:58:49 +0000 (17:58 -0500)] 
- fix long lines in test_attributes
- add deprecation warning to get_history() when passed
True or False, convert
- rearrange symbol() so we can get sphinx autodata to work

14 years ago- replace all usage of True and False for passive with PASSIVE_NO_INITIALIZE,
Mike Bayer [Fri, 11 Feb 2011 20:37:44 +0000 (15:37 -0500)] 
- replace all usage of True and False for passive with PASSIVE_NO_INITIALIZE,
PASSIVE_OFF, now expresed as non-boolean symbols
- make "passive" available positionally on all get_history() methods,
call it like that

14 years ago- Additional tuning to "many-to-one" relationship
Mike Bayer [Fri, 11 Feb 2011 19:41:29 +0000 (14:41 -0500)] 
- Additional tuning to "many-to-one" relationship
loads during a flush().   A change in version 0.6.6
([ticket:2002]) required that more "unnecessary" m2o
loads during a flush could occur.   Extra loading modes have
been added so that the SQL emitted in this
specific use case is trimmed back, while still
retrieving the information the flush needs in order
to not miss anything.  [ticket:2049]

14 years agomake it more explicit in tests which dialect we want to use for things
Mike Bayer [Fri, 11 Feb 2011 16:24:54 +0000 (11:24 -0500)] 
make it more explicit in tests which dialect we want to use for things

14 years ago- need to limit the list of oracle fn's that don't get parens to a
Mike Bayer [Fri, 11 Feb 2011 05:49:28 +0000 (00:49 -0500)] 
- need to limit the list of oracle fn's that don't get parens to a
fixed list.  window functions need parens

14 years agofix sqlite test
Mike Bayer [Fri, 11 Feb 2011 05:24:38 +0000 (00:24 -0500)] 
fix sqlite test

14 years agofix some tests
Mike Bayer [Fri, 11 Feb 2011 04:37:15 +0000 (23:37 -0500)] 
fix some tests

14 years ago- The concept of associating a ".bind" directly with a
Mike Bayer [Fri, 11 Feb 2011 03:27:45 +0000 (22:27 -0500)] 
- The concept of associating a ".bind" directly with a
ClauseElement has been explicitly moved to Executable,
i.e. the mixin that describes ClauseElements which represent
engine-executable constructs.  This change is an improvement
to internal organization and is unlikely to affect any
real-world usage.  [ticket:2048]

14 years agofix some really egregious long lines
Mike Bayer [Fri, 11 Feb 2011 03:09:26 +0000 (22:09 -0500)] 
fix some really egregious long lines

14 years ago- Added over() function, method to FunctionElement
Mike Bayer [Fri, 11 Feb 2011 02:57:44 +0000 (21:57 -0500)] 
- Added over() function, method to FunctionElement
classes, produces the _Over() construct which
in turn generates "window functions", i.e.
"<window function> OVER (PARTITION BY <partition by>,
ORDER BY <order by>)".
[ticket:1844]

14 years ago- oursql dialect accepts the same "ssl" arguments in
Mike Bayer [Thu, 10 Feb 2011 23:04:54 +0000 (18:04 -0500)] 
- oursql dialect accepts the same "ssl" arguments in
create_engine() as that of MySQLdb.  [ticket:2047]

14 years ago- typo fix [ticket:2017]
Mike Bayer [Thu, 10 Feb 2011 20:24:26 +0000 (15:24 -0500)] 
- typo fix [ticket:2017]

14 years ago- mssql VARBINARY emits 'max' for length when no length specified, as is
Mike Bayer [Thu, 10 Feb 2011 20:22:07 +0000 (15:22 -0500)] 
- mssql VARBINARY emits 'max' for length when no length specified, as is
the case already for VARCHAR, NVARCHAR [ticket:1833]

14 years ago- The path given as the location of a sqlite database is now
Mike Bayer [Thu, 10 Feb 2011 20:03:11 +0000 (15:03 -0500)] 
- The path given as the location of a sqlite database is now
normalized via os.path.abspath(), so that directory changes
within the process don't affect the ultimate location
of a relative file path.  [ticket:2036]

14 years ago- Query.distinct() now accepts column expressions
Mike Bayer [Thu, 10 Feb 2011 19:17:08 +0000 (14:17 -0500)] 
- Query.distinct() now accepts column expressions
  as *args, interpreted by the Postgresql dialect
  as DISTINCT ON (<expr>). [ticket:1069]
- select.distinct() now accepts column expressions
  as *args, interpreted by the Postgresql dialect
  as DISTINCT ON (<expr>).  Note this was already
  available via passing a list to the `distinct`
  keyword argument to select(). [ticket:1069]
- select.prefix_with() accepts multiple expressions
  (i.e. *expr), 'prefix' keyword argument to select()
  accepts a list or tuple.
- Passing a string to the `distinct` keyword argument
  of `select()` for the purpose of emitting special
  MySQL keywords (DISTINCTROW etc.) is deprecated -
  use `prefix_with()` for this.
- put kw arguments to select() in order
- restore docs for _SelectBase, renamed from _SelectBaseMixin

14 years agoformatting fix
Mike Bayer [Thu, 10 Feb 2011 16:43:04 +0000 (11:43 -0500)] 
formatting fix

14 years ago- An exception is raised in the unusual case that an
Mike Bayer [Thu, 10 Feb 2011 16:30:23 +0000 (11:30 -0500)] 
- An exception is raised in the unusual case that an
append or similar event on a collection occurs after
the parent object has been dereferenced, which
prevents the parent from being marked as "dirty"
in the session.  Will commit as a warning in 0.6.
[ticket:2046]

14 years ago- py3k fix regarding new exception system
Mike Bayer [Thu, 10 Feb 2011 00:18:33 +0000 (19:18 -0500)] 
- py3k fix regarding new exception system
- this test keeps throwing a TNS error on Oracle on the buildbot only, runs locally,
seems to be related to some scaling/memory type of issue on the bot

14 years ago- Non-DBAPI errors which occur in the scope of an `execute()`
Mike Bayer [Wed, 9 Feb 2011 23:11:40 +0000 (18:11 -0500)] 
- Non-DBAPI errors which occur in the scope of an `execute()`
call are now wrapped in sqlalchemy.exc.StatementError,
and the text of the SQL statement and repr() of params
is included.  This makes it easier to identify statement
executions which fail before the DBAPI becomes
involved.  [ticket:2015]

14 years ago- figured out the ::autodata directive, can move the docstring for
Mike Bayer [Wed, 9 Feb 2011 21:30:49 +0000 (16:30 -0500)] 
- figured out the ::autodata directive, can move the docstring for
expression.func into the .py module
- added a note about logging only being checked on new connections,
as one user had this issue awhile back, and I suspect it for
a current ML user issue

14 years ago- The compiler extension now supports overriding the default
Mike Bayer [Wed, 9 Feb 2011 20:45:15 +0000 (15:45 -0500)] 
- The compiler extension now supports overriding the default
compilation of expression._BindParamClause including that
the auto-generated binds within the VALUES/SET clause
of an insert()/update() statement will also use the new
compilation rules. [ticket:2042]

14 years ago- Fixed bug where a column with a SQL or server side default
Mike Bayer [Wed, 9 Feb 2011 20:14:54 +0000 (15:14 -0500)] 
- Fixed bug where a column with a SQL or server side default
that was excluded from a mapping with include_properties
or exclude_properties would result in UnmappedColumnError.
[ticket:1995]

14 years ago- add connection and cursor to is_disconnect(). We aren't using it yet,
Mike Bayer [Wed, 9 Feb 2011 20:06:32 +0000 (15:06 -0500)] 
- add connection and cursor to is_disconnect().  We aren't using it yet,
but we'd like to.   Most DBAPIs don't give us anything we can do with it.
Some research was done on psycopg2 and it still seems like they give us
no adequate method (tried connection.closed, cursor.closed, connection.status).
mxodbc claims their .closed attribute will work (but I am skeptical).
- remove beahvior in pool that auto-invalidated a connection when
the cursor failed to create.  That's not the pool's job.  we need the conn
for the error logic.  Can't get any tests to fail, curious why that
behavior was there, guess we'll find out (or not).
- add support for psycopg2 version detection.  even though we have
no use for it yet...
- adjust one of the reconnect tests to work with oracle's
horrendously slow connect speed

14 years ago- Added an additional libpq message to the list of "disconnect"
Mike Bayer [Wed, 9 Feb 2011 15:58:16 +0000 (10:58 -0500)] 
- Added an additional libpq message to the list of "disconnect"
exceptions, "could not receive data from server"
[ticket:2044]

14 years ago- Adjusted flush accounting step to occur before
Mike Bayer [Mon, 7 Feb 2011 21:12:24 +0000 (16:12 -0500)] 
- Adjusted flush accounting step to occur before
the commit in the case of autocommit=True.  This allows
autocommit=True to work appropriately with
expire_on_commit=True, and also allows post-flush session
hooks to operate in the same transactional context
as when autocommit=False.  [ticket:2041]

14 years ago- Session constructor emits a warning when autoflush=True
Mike Bayer [Mon, 7 Feb 2011 18:30:27 +0000 (13:30 -0500)] 
- Session constructor emits a warning when autoflush=True
or expire_on_commit=True when autocommit=True.
[ticket:2041]

14 years agoshow sequence members
Mike Bayer [Sat, 5 Feb 2011 21:51:24 +0000 (16:51 -0500)] 
show sequence members

14 years agotypo
Mike Bayer [Sat, 5 Feb 2011 21:50:52 +0000 (16:50 -0500)] 
typo

14 years ago - Session weak_instance_dict=False is deprecated.
Mike Bayer [Sat, 5 Feb 2011 21:48:17 +0000 (16:48 -0500)] 
  - Session weak_instance_dict=False is deprecated.
    [ticket:1473]

14 years ago- use proper directive here
Mike Bayer [Sat, 5 Feb 2011 21:10:14 +0000 (16:10 -0500)] 
- use proper directive here

14 years ago- A single contains_eager() call across
Mike Bayer [Sat, 5 Feb 2011 21:09:49 +0000 (16:09 -0500)] 
- A single contains_eager() call across
multiple entities will indicate all collections
along that path should load, instead of requiring
distinct contains_eager() calls for each endpoint
(which was never correctly documented).
[ticket:2032]

- The "name" field used in orm.aliased() now renders
in the resulting SQL statement.

14 years ago- apply optimizations to alternate row proxies, [ticket:1787]
Mike Bayer [Fri, 4 Feb 2011 23:33:49 +0000 (18:33 -0500)] 
- apply optimizations to alternate row proxies, [ticket:1787]
- add check to fetchmany() for None, don't send argument if not present,
helps DBAPIs which don't accept "None" for default (ie. pysqlite, maybe others)
- add tests to test_execute to provide 100% coverage for the three alternate
result proxy classes

14 years ago- When explicit sequence execution derives the name
Mike Bayer [Fri, 4 Feb 2011 22:37:36 +0000 (17:37 -0500)] 
- When explicit sequence execution derives the name
of the auto-generated sequence of a SERIAL column,
which currently only occurs if implicit_returning=False,
now accommodates if the table + column name is greater
than 63 characters using the same logic Postgresql uses.
[ticket:1083]

14 years ago- Also emits the correct WHERE criterion
Mike Bayer [Thu, 3 Feb 2011 00:03:20 +0000 (19:03 -0500)] 
- Also emits the correct WHERE criterion
when using single table inheritance. [ticket:2038]