]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
10 years ago- pick around gaining modest dings in callcounts here and there
Mike Bayer [Mon, 9 Mar 2015 18:36:23 +0000 (14:36 -0400)] 
- pick around gaining modest dings in callcounts here and there

10 years ago- start locking down querying for cols after observing yesterdays
Mike Bayer [Mon, 9 Mar 2015 17:07:09 +0000 (13:07 -0400)] 
- start locking down querying for cols after observing yesterdays
callcount bump due to the slots thing
- rewrite profiles using new technique

10 years ago- we really don't want to force lib here, but we do need
Mike Bayer [Mon, 9 Mar 2015 16:26:30 +0000 (12:26 -0400)] 
- we really don't want to force lib here, but we do need
it for the plain "pytest" case, so do an append instead of an insert
- add a new tox file to do a full regen of callcounts

10 years ago- random performance whacking vs. 0.9, in particular we have to watch
Mike Bayer [Sun, 8 Mar 2015 19:32:21 +0000 (15:32 -0400)] 
- random performance whacking vs. 0.9, in particular we have to watch
for the slots-based __getattr__ thing getting hit

10 years ago- add this for testing
Mike Bayer [Sun, 8 Mar 2015 18:43:42 +0000 (14:43 -0400)] 
- add this for testing

10 years ago- fix some more result_map calls
Mike Bayer [Sun, 8 Mar 2015 18:16:59 +0000 (14:16 -0400)] 
- fix some more result_map calls

10 years ago- rename _select_wraps
Mike Bayer [Sun, 8 Mar 2015 16:33:38 +0000 (12:33 -0400)] 
- rename _select_wraps
- replace force_result_map with a mini-API for nested result sets, add
coverage

10 years agofoo
Mike Bayer [Sun, 8 Mar 2015 15:29:10 +0000 (11:29 -0400)] 
foo

10 years ago- the change for #918 was of course not nearly that simple.
Mike Bayer [Sun, 8 Mar 2015 03:51:12 +0000 (22:51 -0500)] 
- the change for #918 was of course not nearly that simple.
The "wrapping" employed by the mssql and oracle dialects using the
"iswrapper" argument was not being used intelligently by the compiler,
and the result map was being written incorrectly, using
*more* columns in the result map than were actually returned by
the statement, due to "row number" columns that are inside the
subquery.   The compiler now writes out result map on the
"top level" select in all cases
fully, and for the mssql/oracle wrapping case extracts out
the "proxied" columns in a second step, which only includes
those columns that are proxied outwards to the top level.

This change might have implications for 3rd party dialects that
might be imitating oracle's approach.   They can safely continue
to use the "iswrapper" kw which is now ignored, but they may
need to also add the _select_wraps argument as well.

10 years ago- do a full rewrite of callcounts
Mike Bayer [Sat, 7 Mar 2015 23:04:49 +0000 (18:04 -0500)] 
- do a full rewrite of callcounts

10 years ago- The SQL compiler now generates the mapping of expected columns
Mike Bayer [Sat, 7 Mar 2015 17:48:13 +0000 (12:48 -0500)] 
- The SQL compiler now generates the mapping of expected columns
such that they are matched to the received result set positionally,
rather than by name.  Originally, this was seen as a way to handle
cases where we had columns returned with difficult-to-predict names,
though in modern use that issue has been overcome by anonymous
labeling.   In this version, the approach basically reduces function
call count per-result by a few dozen calls, or more for larger
sets of result columns.  The approach still degrades into a modern
version of the old approach if textual elements modify the result
map, or if any discrepancy in size exists between
the compiled set of columns versus what was received, so there's no
issue for partially or fully textual compilation scenarios where these
lists might not line up.  fixes #918
- callcounts still need to be adjusted down for this so zoomark
tests won't pass at the moment

10 years agoMerged in jocmeh/sqlalchemy (pull request #46)
Mike Bayer [Fri, 6 Mar 2015 16:20:45 +0000 (11:20 -0500)] 
Merged in jocmeh/sqlalchemy (pull request #46)

minor docstring fix in MappedCollection class

10 years agominor docstring fix in MappedCollection class
Jochem Oosterveen [Fri, 6 Mar 2015 15:58:30 +0000 (16:58 +0100)] 
minor docstring fix in MappedCollection class

10 years ago- changelog and migration notes for new pg8000 features from
Mike Bayer [Tue, 3 Mar 2015 00:27:21 +0000 (19:27 -0500)] 
- changelog and migration notes for new pg8000 features from
pullreq github:132

10 years ago- add a skip for JSONB on pg8000 if we are on 1.10.1 or earlier
Mike Bayer [Tue, 3 Mar 2015 00:16:37 +0000 (19:16 -0500)] 
- add a skip for JSONB on pg8000 if we are on 1.10.1 or earlier

10 years agoMerge remote-tracking branch 'origin/pr/132' into pr132
Mike Bayer [Tue, 3 Mar 2015 00:00:19 +0000 (19:00 -0500)] 
Merge remote-tracking branch 'origin/pr/132' into pr132

10 years ago- squash-merge the final row_proc integration branch. this is
Mike Bayer [Sun, 1 Mar 2015 21:09:11 +0000 (16:09 -0500)] 
- squash-merge the final row_proc integration branch.  this is
a much more modest outcome than what we started with.   The
work of create_row_processor() for ColumnProperty objects
is essentially done at query setup time combined with some
lookups in _instance_processor().
- to allow this change for deferred columns, deferred columns
no longer search for themselves in the result.   If they've been
set up as deferred without any explicit directive to undefer them,
then this is what was asked for.  if we don't do this,
then we're stuck with this performance penalty for all deferred
columns which in the vast majority of typical use cases (e.g. loading
large, legacy tables or tables with many/large very seldom
used values) won't be present in the result and won't be accessed at all.

10 years agoUpdate migration_09.rst
Jason Held [Wed, 25 Feb 2015 17:49:20 +0000 (12:49 -0500)] 
Update migration_09.rst

typo fix: indivdual -> individual.

10 years ago- repair issue in declared_attr.cascading such that within a
Mike Bayer [Tue, 24 Feb 2015 20:29:30 +0000 (15:29 -0500)] 
- repair issue in declared_attr.cascading such that within a
subclass, the value returned by the descriptor is not available
because the superclass is already mapped with the InstrumentedAttribute,
until the subclass is mapped.  We add a setattr() to set up that
attribute so that the __mapper_args__ hook and possibly others
have access to the "cascaded" version of the attribute within
the call.

10 years ago- Fixed bugs in ORM object comparisons where comparison of
Mike Bayer [Fri, 20 Feb 2015 20:14:08 +0000 (15:14 -0500)] 
- Fixed bugs in ORM object comparisons where comparison of
many-to-one ``!= None`` would fail if the source were an aliased
class, or if the query needed to apply special aliasing to the
expression due to aliased joins or polymorphic querying; also fixed
bug in the case where comparing a many-to-one to an object state
would fail if the query needed to apply special aliasing
due to aliased joins or polymorphic querying.
fixes #3310

10 years ago- remove the need for a recursive call here
Mike Bayer [Fri, 20 Feb 2015 05:11:48 +0000 (00:11 -0500)] 
- remove the need for a recursive call here

10 years ago- Fixed bug where internal assertion would fail in the case where
Mike Bayer [Fri, 20 Feb 2015 05:01:19 +0000 (00:01 -0500)] 
- Fixed bug where internal assertion would fail in the case where
an ``after_rollback()`` handler for a :class:`.Session` incorrectly
adds state to that :class:`.Session` within the handler, and the task
to warn and remove this state (established by :ticket:`2389`) attempts
to proceed.
fixes #3309

10 years ago- expect_warnings was not expecting and neither was assert_warnings
Mike Bayer [Thu, 19 Feb 2015 17:01:48 +0000 (12:01 -0500)] 
- expect_warnings was not expecting and neither was assert_warnings
asserting.

10 years ago- repair merge failure
Mike Bayer [Thu, 19 Feb 2015 17:01:22 +0000 (12:01 -0500)] 
- repair merge failure

10 years ago- autopep8
Mike Bayer [Thu, 19 Feb 2015 16:37:44 +0000 (11:37 -0500)] 
- autopep8

10 years ago- Mapped state internals have been reworked to allow for a 50% reduction
Mike Bayer [Wed, 18 Feb 2015 21:08:19 +0000 (16:08 -0500)] 
- Mapped state internals have been reworked to allow for a 50% reduction
in callcounts specific to the "expiration" of objects, as in
the "auto expire" feature of :meth:`.Session.commit` and
for :meth:`.Session.expire_all`, as well as in the "cleanup" step
which occurs when object states are garbage collected.
fixes #3307

10 years ago- add the test_expire_lots test for comparison
Mike Bayer [Wed, 18 Feb 2015 20:50:37 +0000 (15:50 -0500)] 
- add the test_expire_lots test for comparison

10 years ago- add a new section regarding multiprocessing
Mike Bayer [Tue, 17 Feb 2015 18:43:48 +0000 (13:43 -0500)] 
- add a new section regarding multiprocessing

10 years ago- additional mysql cast-related test fixes
Mike Bayer [Tue, 10 Feb 2015 01:49:19 +0000 (20:49 -0500)] 
- additional mysql cast-related test fixes

10 years ago- The MySQL dialect now supports CAST on types that are constructed
Mike Bayer [Tue, 10 Feb 2015 01:43:28 +0000 (20:43 -0500)] 
- The MySQL dialect now supports CAST on types that are constructed
as :class:`.TypeDecorator` objects.

10 years ago- add a fix to MySQL re: #3074 tests, make sure we check table is present
Mike Bayer [Tue, 10 Feb 2015 01:32:53 +0000 (20:32 -0500)] 
- add a fix to MySQL re: #3074 tests, make sure we check table is present

10 years ago- test skips for MySQL w new cast warning
Mike Bayer [Tue, 10 Feb 2015 01:32:06 +0000 (20:32 -0500)] 
- test skips for MySQL w new cast warning

10 years ago- A warning is emitted when :func:`.cast` is used with the MySQL
Mike Bayer [Mon, 9 Feb 2015 20:29:14 +0000 (15:29 -0500)] 
- A warning is emitted when :func:`.cast` is used with the MySQL
dialect on a type where MySQL does not support CAST; MySQL only
supports CAST on a subset of datatypes.   SQLAlchemy has for a long
time just omitted the CAST for unsupported types in the case of
MySQL.  While we don't want to change this now, we emit a warning
to show that it's taken place.   A warning is also emitted when
a CAST is used with an older MySQL version (< 4) that doesn't support
CAST at all, it's skipped in this case as well.
fixes #3237

10 years ago- flake8
Mike Bayer [Mon, 9 Feb 2015 20:08:52 +0000 (15:08 -0500)] 
- flake8

10 years ago- Literal values within a :class:`.DefaultClause`, which is invoked
Mike Bayer [Mon, 9 Feb 2015 19:58:26 +0000 (14:58 -0500)] 
- Literal values within a :class:`.DefaultClause`, which is invoked
when using the :paramref:`.Column.server_default` parameter, will
now be rendered using the "inline" compiler, so that they are rendered
as-is, rather than as bound parameters.
fixes #3087

10 years ago- remove meaningless assignment
Mike Bayer [Mon, 9 Feb 2015 01:14:37 +0000 (20:14 -0500)] 
- remove meaningless assignment

10 years ago- test + changelog
Mike Bayer [Mon, 9 Feb 2015 00:58:34 +0000 (19:58 -0500)] 
- test + changelog

10 years agoMerge remote-tracking branch 'origin/pr/147' into pr147
Mike Bayer [Mon, 9 Feb 2015 00:50:41 +0000 (19:50 -0500)] 
Merge remote-tracking branch 'origin/pr/147' into pr147

Conflicts:
lib/sqlalchemy/orm/query.py

10 years ago- add versionadded for service_name
Mike Bayer [Mon, 9 Feb 2015 00:13:21 +0000 (19:13 -0500)] 
- add versionadded for service_name

10 years agoChanged pg8000 dialect to cope with native JSON
Tony Locke [Sat, 3 Jan 2015 16:59:17 +0000 (16:59 +0000)] 
Changed pg8000 dialect to cope with native JSON

For versions > 1.10.1 pg8000 returns de-serialized JSON objects rather
than a string. SQL parameters are still strings though.

10 years agoMake pg8000 version detection more robust
Tony Locke [Sun, 24 Aug 2014 14:15:17 +0000 (15:15 +0100)] 
Make pg8000 version detection more robust

pg8000 uses Versioneer, which means that development versions have
version strings that don't fit into the dotted triple number format.
Released versions will always fit the triple format though.

10 years agopg8000 client_encoding in create_engine()
Tony Locke [Sun, 24 Aug 2014 15:33:29 +0000 (16:33 +0100)] 
pg8000 client_encoding in create_engine()

The pg8000 dialect now supports the setting of the PostgreSQL parameter
client_encoding from create_engine().

10 years ago- automap isn't new anymore
Mike Bayer [Sun, 14 Dec 2014 21:21:40 +0000 (16:21 -0500)] 
- automap isn't new anymore

10 years ago- rework sqlite FK and unique constraint system to combine both PRAGMA
Mike Bayer [Sat, 13 Dec 2014 23:04:11 +0000 (18:04 -0500)] 
- rework sqlite FK and unique constraint system to combine both PRAGMA
and regexp parsing of SQL in order to form a complete picture of
constraints + their names.  fixes #3244 fixes #3261
- factor various PRAGMA work to be centralized into one call

10 years ago- add tentative 'changelog' documentation on #3244
Jon Nelson [Sat, 15 Nov 2014 02:05:58 +0000 (20:05 -0600)] 
- add tentative 'changelog' documentation on #3244

10 years ago- add test_get_unnamed_unique_constraints to SQLite reflection tests
Jon Nelson [Sat, 15 Nov 2014 01:53:28 +0000 (19:53 -0600)] 
- add test_get_unnamed_unique_constraints to SQLite reflection tests

10 years ago- fix unique constraint parsing for sqlite -- may return '' for name, however
Jon Nelson [Wed, 12 Nov 2014 04:46:07 +0000 (22:46 -0600)] 
- fix unique constraint parsing for sqlite -- may return '' for name, however

10 years ago- Added new method :meth:`.Session.invalidate`, functions similarly
Mike Bayer [Sat, 13 Dec 2014 00:59:11 +0000 (19:59 -0500)] 
- Added new method :meth:`.Session.invalidate`, functions similarly
to :meth:`.Session.close`, except also calls
:meth:`.Connection.invalidate`
on all connections, guaranteeing that they will not be returned to
the connection pool.  This is useful in situations e.g. dealing
with gevent timeouts when it is not safe to use the connection further,
even for rollbacks.
references #3258

10 years ago- update zoomark
Mike Bayer [Fri, 12 Dec 2014 20:55:34 +0000 (15:55 -0500)] 
- update zoomark

10 years ago- fix up query update /delete documentation, make warnings
Mike Bayer [Wed, 10 Dec 2014 18:08:53 +0000 (13:08 -0500)] 
- fix up query update /delete documentation, make warnings
a lot clearer, partial fixes for #3252

10 years ago- keep working on fixing #3266, more cases, more tests
Mike Bayer [Wed, 10 Dec 2014 17:15:14 +0000 (12:15 -0500)] 
- keep working on fixing #3266, more cases, more tests

10 years ago- rework the handle error on connect tests from test_parsconnect where
Mike Bayer [Wed, 10 Dec 2014 17:11:59 +0000 (12:11 -0500)] 
- rework the handle error on connect tests from test_parsconnect where
they don't really belong into a new suite in test_execute

10 years agoMerge remote-tracking branch 'origin/pr/153'
Mike Bayer [Tue, 9 Dec 2014 03:59:54 +0000 (22:59 -0500)] 
Merge remote-tracking branch 'origin/pr/153'

10 years agoRemoving unneeded space.
Yuval Langer [Tue, 9 Dec 2014 02:19:18 +0000 (04:19 +0200)] 
Removing unneeded space.

10 years ago- identify another spot where _handle_dbapi_error() needs to do something
Mike Bayer [Mon, 8 Dec 2014 20:15:02 +0000 (15:15 -0500)] 
- identify another spot where _handle_dbapi_error() needs to do something
differently for the case where it is called in an already-invalidated state;
don't call upon self.connection

10 years ago- simplify the "noconnection" error handling, setting
Mike Bayer [Mon, 8 Dec 2014 19:05:20 +0000 (14:05 -0500)] 
- simplify the "noconnection" error handling, setting
_handle_dbapi_exception_noconnection() to only invoke in the case
of raw_connection() in the constructor of Connection.   in all other
cases the Connection proceeds with _handle_dbapi_exception() including
revalidate.

10 years ago- autoinc here for oracle
Mike Bayer [Mon, 8 Dec 2014 17:34:40 +0000 (12:34 -0500)] 
- autoinc here for oracle

10 years ago- force the _has_events flag to True on engines, so that
Mike Bayer [Mon, 8 Dec 2014 16:18:38 +0000 (11:18 -0500)] 
- force the _has_events flag to True on engines, so that
profiling is more predictable
- restore the profiling from before this change

10 years ago- some profile changes likely due to the change in event listening
Mike Bayer [Mon, 8 Dec 2014 06:18:07 +0000 (01:18 -0500)] 
- some profile changes likely due to the change in event listening
on engines

10 years ago- A new series of :class:`.Session` methods which provide hooks
Mike Bayer [Mon, 8 Dec 2014 06:10:30 +0000 (01:10 -0500)] 
- A new series of :class:`.Session` methods which provide hooks
directly into the unit of work's facility for emitting INSERT
and UPDATE statements has been created.  When used correctly,
this expert-oriented system can allow ORM-mappings to be used
to generate bulk insert and update statements batched into
executemany groups, allowing the statements to proceed at
speeds that rival direct use of the Core.
fixes #3100

10 years agostart docs...
Mike Bayer [Mon, 8 Dec 2014 02:08:14 +0000 (21:08 -0500)] 
start docs...

10 years ago- add an option for bulk_save -> update to not do history
Mike Bayer [Mon, 8 Dec 2014 01:36:01 +0000 (20:36 -0500)] 
- add an option for bulk_save -> update to not do history

10 years ago- fix inheritance persistence
Mike Bayer [Mon, 8 Dec 2014 01:21:20 +0000 (20:21 -0500)] 
- fix inheritance persistence
- start writing docs

10 years ago- initial tests for bulk
Mike Bayer [Sun, 7 Dec 2014 23:55:23 +0000 (18:55 -0500)] 
- initial tests for bulk

10 years ago- rework the assert_sql system so that we have a context manager to work with,
Mike Bayer [Sun, 7 Dec 2014 23:54:52 +0000 (18:54 -0500)] 
- rework the assert_sql system so that we have a context manager to work with,
use events that are local to the engine and to the run and are removed afterwards.

10 years agoMerge branch 'master' into ticket_3100
Mike Bayer [Sun, 7 Dec 2014 22:48:32 +0000 (17:48 -0500)] 
Merge branch 'master' into ticket_3100

10 years ago- SQL Server 2012 now recommends VARCHAR(max), NVARCHAR(max),
Mike Bayer [Sat, 6 Dec 2014 18:30:51 +0000 (13:30 -0500)] 
- SQL Server 2012 now recommends VARCHAR(max), NVARCHAR(max),
VARBINARY(max) for large text/binary types.  The MSSQL dialect will
now respect this based on version detection, as well as the new
``deprecate_large_types`` flag.
fixes #3039

10 years ago- enhance only_on() to work with compound specs
Mike Bayer [Sat, 6 Dec 2014 18:29:32 +0000 (13:29 -0500)] 
- enhance only_on() to work with compound specs
- fix "temporary_tables" requirement

10 years agopep8
Mike Bayer [Sat, 6 Dec 2014 17:39:18 +0000 (12:39 -0500)] 
pep8

10 years ago- adjust _revalidate_connection() again such that we pass a _wrap=False
Mike Bayer [Sat, 6 Dec 2014 00:08:47 +0000 (19:08 -0500)] 
- adjust _revalidate_connection() again such that we pass a _wrap=False
to it, so that we say we will do the wrapping just once right here
in _execute_context() / _execute_default().  An adjustment is made
to _handle_dbapi_error() to not assume self.__connection in case
we are already in an invalidated state

further adjustment to
0639c199a547343d62134d2f233225fd2862ec4541e7253dee168b8c26c49, #3266

10 years ago- move inner calls to _revalidate_connection() outside of existing
Mike Bayer [Fri, 5 Dec 2014 21:34:43 +0000 (16:34 -0500)] 
- move inner calls to _revalidate_connection() outside of existing
_handle_dbapi_error(); these are now handled already and the reentrant
call is not needed / breaks things.  Adjustment to 41e7253dee168b8c26c49 /

10 years ago- The SQLite dialect, when using the :class:`.sqlite.DATE`,
Mike Bayer [Fri, 5 Dec 2014 19:46:43 +0000 (14:46 -0500)] 
- The SQLite dialect, when using the :class:`.sqlite.DATE`,
:class:`.sqlite.TIME`,
or :class:`.sqlite.DATETIME` types, and given a ``storage_format`` that
only renders numbers, will render the types in DDL as
``DATE_CHAR``, ``TIME_CHAR``, and ``DATETIME_CHAR``, so that despite the
lack of alpha characters in the values, the column will still
deliver the "text affinity".  Normally this is not needed, as the
textual values within the default storage formats already
imply text.
fixes #3257

10 years ago- pep8
Mike Bayer [Fri, 5 Dec 2014 19:19:36 +0000 (14:19 -0500)] 
- pep8

10 years ago- document / work around that dialect_options isn't necessarily there
Mike Bayer [Fri, 5 Dec 2014 17:18:11 +0000 (12:18 -0500)] 
- document / work around that dialect_options isn't necessarily there

10 years ago- The engine-level error handling and wrapping routines will now
Mike Bayer [Fri, 5 Dec 2014 17:12:44 +0000 (12:12 -0500)] 
- The engine-level error handling and wrapping routines will now
take effect in all engine connection use cases, including
when user-custom connect routines are used via the
:paramref:`.create_engine.creator` parameter, as well as when
the :class:`.Connection` encounters a connection error on
revalidation.
fixes #3266

10 years ago- pep8 cleanup
Mike Bayer [Fri, 5 Dec 2014 16:35:42 +0000 (11:35 -0500)] 
- pep8 cleanup

10 years ago- New Oracle DDL features for tables, indexes: COMPRESS, BITMAP.
Mike Bayer [Fri, 5 Dec 2014 01:08:07 +0000 (20:08 -0500)] 
- New Oracle DDL features for tables, indexes: COMPRESS, BITMAP.
Patch courtesy Gabor Gombas.
fixes #3127

10 years ago- the refactor of the visit_alias() method in Oracle revealed
Mike Bayer [Fri, 5 Dec 2014 00:45:14 +0000 (19:45 -0500)] 
- the refactor of the visit_alias() method in Oracle revealed
that quoting should be applied in %(name)s under with_hint.

10 years ago- Added support for CTEs under Oracle. This includes some tweaks
Mike Bayer [Fri, 5 Dec 2014 00:35:00 +0000 (19:35 -0500)] 
- Added support for CTEs under Oracle.  This includes some tweaks
to the aliasing syntax, as well as a new CTE feature
:meth:`.CTE.suffix_with`, which is useful for adding in special
Oracle-specific directives to the CTE.
fixes #3220

10 years ago- Updated the "supports_unicode_statements" flag to True for MySQLdb
Mike Bayer [Fri, 5 Dec 2014 00:12:52 +0000 (19:12 -0500)] 
- Updated the "supports_unicode_statements" flag to True for MySQLdb
and Pymysql under Python 2.   This refers to the SQL statements
themselves, not the parameters, and affects issues such as table
and column names using non-ASCII characters.   These drivers both
appear to support Python 2 Unicode objects without issue in modern
versions.
fixes #3121

10 years ago- The :meth:`.Operators.match` operator is now handled such that the
Mike Bayer [Thu, 4 Dec 2014 23:29:56 +0000 (18:29 -0500)] 
- The :meth:`.Operators.match` operator is now handled such that the
return type is not strictly assumed to be boolean; it now
returns a :class:`.Boolean` subclass called :class:`.MatchType`.
The type will still produce boolean behavior when used in Python
expressions, however the dialect can override its behavior at
result time.  In the case of MySQL, while the MATCH operator
is typically used in a boolean context within an expression,
if one actually queries for the value of a match expression, a
floating point value is returned; this value is not compatible
with SQLAlchemy's C-based boolean processor, so MySQL's result-set
behavior now follows that of the :class:`.Float` type.
A new operator object ``notmatch_op`` is also added to better allow
dialects to define the negation of a match operation.
fixes #3263

10 years ago- The :meth:`.PGDialect.has_table` method will now query against
Mike Bayer [Thu, 4 Dec 2014 17:01:19 +0000 (12:01 -0500)] 
- The :meth:`.PGDialect.has_table` method will now query against
``pg_catalog.pg_table_is_visible(c.oid)``, rather than testing
for an exact schema match, when the schema name is None; this
so that the method will also illustrate that temporary tables
are present.  Note that this is a behavioral change, as Postgresql
allows a non-temporary table to silently overwrite an existing
temporary table of the same name, so this changes the behavior
of ``checkfirst`` in that unusual scenario.
fixes #3264

10 years agoMerge remote-tracking branch 'origin/pr/151' into pr151
Mike Bayer [Mon, 1 Dec 2014 18:31:48 +0000 (13:31 -0500)] 
Merge remote-tracking branch 'origin/pr/151' into pr151

10 years ago- Fixed bug in :meth:`.Table.tometadata` method where the
Mike Bayer [Sat, 29 Nov 2014 19:44:26 +0000 (14:44 -0500)] 
- Fixed bug in :meth:`.Table.tometadata` method where the
:class:`.CheckConstraint` associated with a :class:`.Boolean`
or :class:`.Enum` type object would be doubled in the target table.
The copy process now tracks the production of this constraint object
as local to a type object.
fixes #3260

10 years ago- Updated the :ref:`examples_versioned_history` example such that
Mike Bayer [Wed, 26 Nov 2014 19:58:44 +0000 (14:58 -0500)] 
- Updated the :ref:`examples_versioned_history` example such that
mapped columns are re-mapped to
match column names as well as grouping of columns; in particular,
this allows columns that are explicitly grouped in a same-column-named
joined inheritance scenario to be mapped in the same way in the
history mappings, avoiding warnings added in the 0.9 series
regarding this pattern and allowing the same view of attribute
keys.

10 years ago- formatting
Mike Bayer [Wed, 26 Nov 2014 19:58:32 +0000 (14:58 -0500)] 
- formatting

10 years ago- set default dialect here
Mike Bayer [Wed, 26 Nov 2014 18:51:39 +0000 (13:51 -0500)] 
- set default dialect here

10 years ago- changelog, improve docstring/test for #3217. fixes #3217
Mike Bayer [Wed, 26 Nov 2014 18:50:43 +0000 (13:50 -0500)] 
- changelog, improve docstring/test for #3217.  fixes #3217

10 years agoMerge branch 'issue_bb_3217' of https://bitbucket.org/jvanasco/sqlalchemy-alt into...
Mike Bayer [Wed, 26 Nov 2014 18:45:25 +0000 (13:45 -0500)] 
Merge branch 'issue_bb_3217' of https://bitbucket.org/jvanasco/sqlalchemy-alt into pr32

10 years agoMerged in jon_nelson/sqlalchemy/minor_spelling_error (pull request #37)
Mike Bayer [Wed, 26 Nov 2014 18:41:42 +0000 (13:41 -0500)] 
Merged in jon_nelson/sqlalchemy/minor_spelling_error (pull request #37)

- fix minor spelling error

10 years agoMerged in jvanasco/sqlalchemy-alt/issue_docs_event_statement (pull request #33)
Mike Bayer [Wed, 26 Nov 2014 18:40:15 +0000 (13:40 -0500)] 
Merged in jvanasco/sqlalchemy-alt/issue_docs_event_statement (pull request #33)

added docs to clarify that sql statement is already in a dialect

10 years ago- add an order_by here
Mike Bayer [Wed, 26 Nov 2014 15:34:46 +0000 (10:34 -0500)] 
- add an order_by here

10 years ago- use self.parent, not table here as there's an attributeerror
Mike Bayer [Wed, 26 Nov 2014 04:33:47 +0000 (23:33 -0500)] 
- use self.parent, not table here as there's an attributeerror
trap for self.table that behaves differently in py3k

10 years ago- refresh all zoomark profiles
Mike Bayer [Wed, 26 Nov 2014 04:29:15 +0000 (23:29 -0500)] 
- refresh all zoomark profiles

10 years ago- add a new option --force-write-profiles to rewrite profiles even if they
Mike Bayer [Wed, 26 Nov 2014 04:28:54 +0000 (23:28 -0500)] 
- add a new option --force-write-profiles to rewrite profiles even if they
are passing

10 years ago- The behavioral contract of the :attr:`.ForeignKeyConstraint.columns`
Mike Bayer [Tue, 25 Nov 2014 23:01:31 +0000 (18:01 -0500)] 
- The behavioral contract of the :attr:`.ForeignKeyConstraint.columns`
collection has been made consistent; this attribute is now a
:class:`.ColumnCollection` like that of all other constraints and
is initialized at the point when the constraint is associated with
a :class:`.Table`.
fixes #3243

10 years ago- The :meth:`.PropComparator.of_type` modifier has been
Mike Bayer [Mon, 24 Nov 2014 23:49:32 +0000 (18:49 -0500)] 
- The :meth:`.PropComparator.of_type` modifier has been
improved in conjunction with loader directives such as
:func:`.joinedload` and :func:`.contains_eager` such that if
two :meth:`.PropComparator.of_type` modifiers of the same
base type/path are encountered, they will be joined together
into a single "polymorphic" entity, rather than replacing
the entity of type A with the one of type B.  E.g.
a joinedload of ``A.b.of_type(BSub1)->BSub1.c`` combined with
joinedload of ``A.b.of_type(BSub2)->BSub2.c`` will create a
single joinedload of ``A.b.of_type((BSub1, BSub2)) -> BSub1.c, BSub2.c``,
without the need for the ``with_polymorphic`` to be explicit
in the query.
fixes #3256

10 years ago- add some logging to path_registry to help debug eager loading
Mike Bayer [Mon, 24 Nov 2014 22:35:50 +0000 (17:35 -0500)] 
- add some logging to path_registry to help debug eager loading
issues

10 years ago- Fixed a bug in the examples/generic_assocaitions/discriminator_on_association.py
Mike Bayer [Mon, 24 Nov 2014 17:33:56 +0000 (12:33 -0500)] 
- Fixed a bug in the examples/generic_assocaitions/discriminator_on_association.py
example, where the subclasses of AddressAssociation were not being
mapped as "single table inheritance", leading to problems when trying
to use the mappings further.

10 years ago- fix minor spelling error
Jon Nelson [Sat, 15 Nov 2014 04:19:26 +0000 (22:19 -0600)] 
- fix minor spelling error