]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
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

10 years agoMerged zzzeek/sqlalchemy into master
Jon Nelson [Sat, 15 Nov 2014 02:01:11 +0000 (20:01 -0600)] 
Merged zzzeek/sqlalchemy into master

10 years ago- callcounts
Mike Bayer [Fri, 14 Nov 2014 16:07:02 +0000 (11:07 -0500)] 
- callcounts

10 years ago- correct this to rewrite a multiple profile line correctly
Mike Bayer [Fri, 14 Nov 2014 16:06:43 +0000 (11:06 -0500)] 
- correct this to rewrite a multiple profile line correctly

10 years ago- Fixed a leak which would occur in the unsupported and highly
Mike Bayer [Thu, 13 Nov 2014 18:17:38 +0000 (13:17 -0500)] 
- Fixed a leak which would occur in the unsupported and highly
non-recommended use case of replacing a relationship on a fixed
mapped class many times, referring to an arbitrarily growing number of
target mappers.  A warning is emitted when the old relationship is
replaced, however if the mapping were already used for querying, the
old relationship would still be referenced within some registries.
fixes #3251

10 years agoMerged in jon_nelson/sqlalchemy/logging_interpolation (pull request #35)
Mike Bayer [Wed, 12 Nov 2014 14:38:41 +0000 (09:38 -0500)] 
Merged in jon_nelson/sqlalchemy/logging_interpolation (pull request #35)

- don't do inline string interpolation when logging

10 years ago- don't do inline string interpolation when logging
Jon Nelson [Wed, 12 Nov 2014 03:34:57 +0000 (21:34 -0600)] 
- don't do inline string interpolation when logging

10 years ago- Fixed issue where the columns from a SELECT embedded in an
Mike Bayer [Tue, 11 Nov 2014 17:34:00 +0000 (12:34 -0500)] 
- Fixed issue where the columns from a SELECT embedded in an
INSERT, either through the values clause or as a "from select",
would pollute the column types used in the result set produced by
the RETURNING clause when columns from both statements shared the
same name, leading to potential errors or mis-adaptation when
retrieving the returning rows.
fixes #3248

10 years ago- in lieu of adding a new system of translating bound parameter names
Mike Bayer [Mon, 10 Nov 2014 22:58:09 +0000 (17:58 -0500)] 
- in lieu of adding a new system of translating bound parameter names
for psycopg2 and others, encourage users to take advantage of positional
styles by documenting "paramstyle".   A section is added to psycopg2
specifically as this is a pretty common spot for named parameters
that may be unusually named.  fixes #3246.

10 years ago- The :attr:`.Column.key` attribute is now used as the source of
Mike Bayer [Mon, 10 Nov 2014 22:37:26 +0000 (17:37 -0500)] 
- The :attr:`.Column.key` attribute is now used as the source of
anonymous bound parameter names within expressions, to match the
existing use of this value as the key when rendered in an INSERT
or UPDATE statement.   This allows :attr:`.Column.key` to be used
as a "substitute" string to work around a difficult column name
that doesn't translate well into a bound parameter name.   Note that
the paramstyle is configurable on :func:`.create_engine` in any case,
and most DBAPIs today support a named and positional style.
fixes #3245

10 years agoMerge pull request #149 from pbu88/small_error_reporting_improvement_update
mike bayer [Thu, 6 Nov 2014 22:41:16 +0000 (17:41 -0500)] 
Merge pull request #149 from pbu88/small_error_reporting_improvement_update

Small improvement on FlushError can't update error message

11 years agoSmall improvement on FlushError can't update error message
Paulo Bu [Thu, 6 Nov 2014 20:14:17 +0000 (21:14 +0100)] 
Small improvement on FlushError can't update error message

Output in the error message the table name and the column name.

11 years ago- edits to the subqueryload ordering merge
Mike Bayer [Wed, 5 Nov 2014 20:11:13 +0000 (15:11 -0500)] 
- edits to the subqueryload ordering merge

11 years agoMerge branch 'subqueryload_order' of https://bitbucket.org/univerio/sqlalchemy into...
Mike Bayer [Wed, 5 Nov 2014 19:45:14 +0000 (14:45 -0500)] 
Merge branch 'subqueryload_order' of https://bitbucket.org/univerio/sqlalchemy into pr26

11 years agoMerge pull request #148 from pbu88/small_error_reporting_improvement
mike bayer [Wed, 5 Nov 2014 16:03:24 +0000 (11:03 -0500)] 
Merge pull request #148 from pbu88/small_error_reporting_improvement

Small improvement on FlushError can't delete error message

11 years agoSmall improvement on FlushError can't delete error message
Paulo Bu [Wed, 5 Nov 2014 12:15:08 +0000 (13:15 +0100)] 
Small improvement on FlushError can't delete error message

Output in the error message the table name and the column name.

11 years ago- Fixed bug regarding expression mutations which could express
Mike Bayer [Wed, 5 Nov 2014 09:22:30 +0000 (04:22 -0500)] 
- Fixed bug regarding expression mutations which could express
itself as a "Could not locate column" error when using
:class:`.Query` to  select from multiple, anonymous column
entities when querying against SQLite, as a side effect of the
"join rewriting" feature used by the SQLite dialect.
fixes #3241

11 years agoIt now calls raise_from_cause
Scott Dugas [Mon, 3 Nov 2014 20:24:31 +0000 (15:24 -0500)] 
It now calls raise_from_cause

master was updated to call util.raise_from_cause which is better
than what I had

11 years agoMerge branch 'master' into fdbsql-tests
Scott Dugas [Mon, 3 Nov 2014 19:54:51 +0000 (14:54 -0500)] 
Merge branch 'master' into fdbsql-tests

Conflicts:
lib/sqlalchemy/testing/exclusions.py

11 years ago- ensure kwargs are passed for limit clause on a compound select as well,
Mike Bayer [Sat, 1 Nov 2014 00:00:42 +0000 (20:00 -0400)] 
- ensure kwargs are passed for limit clause on a compound select as well,
further fixes for #3034

11 years agoRemoved accidental print statements
Scott Dugas [Thu, 30 Oct 2014 20:40:36 +0000 (16:40 -0400)] 
Removed accidental print statements

11 years agoAdded requirement for temporary tables
Scott Dugas [Thu, 30 Oct 2014 15:06:45 +0000 (11:06 -0400)] 
Added requirement for temporary tables

11 years agoSet the length for MyType implementation
Scott Dugas [Wed, 29 Oct 2014 21:42:52 +0000 (17:42 -0400)] 
Set the length for MyType implementation

Mysql drops the type in these tests, when it does visit_typeclause,
 since it's an unkown type it just says none,
and doesn't do a cast.
Firebird also doesn't support varchar with length, it throws an
error on these types.

11 years ago- added new backend for pysqlcipher, as we will probably get
Mike Bayer [Wed, 29 Oct 2014 18:55:42 +0000 (14:55 -0400)] 
- added new backend for pysqlcipher, as we will probably get
requests for it soon.

11 years agochangelog
Mike Bayer [Sun, 26 Oct 2014 20:49:44 +0000 (16:49 -0400)] 
changelog

11 years agochanged connnection to connection
jlgoldb2 [Sun, 26 Oct 2014 07:01:42 +0000 (00:01 -0700)] 
changed connnection to connection

11 years agorequire check constraints for tests
Scott Dugas [Thu, 23 Oct 2014 21:59:27 +0000 (17:59 -0400)] 
require check constraints for tests

11 years agoAdded requirement to test for bind limit
Scott Dugas [Thu, 23 Oct 2014 21:55:13 +0000 (17:55 -0400)] 
Added requirement to test for bind limit

11 years agoForgot to update usage of ex to exc_value
Scott Dugas [Thu, 23 Oct 2014 17:01:23 +0000 (13:01 -0400)] 
Forgot to update usage of ex to exc_value

11 years agoAdded new requirement for check_constraints
Scott Dugas [Thu, 23 Oct 2014 15:46:34 +0000 (11:46 -0400)] 
Added new requirement for check_constraints

11 years agoPrint useful traceback on error
Scott Dugas [Thu, 23 Oct 2014 14:24:35 +0000 (10:24 -0400)] 
Print useful traceback on error

_expect_failure was rethrowing the exception without keeping the
traceback, so it was really hard to find out what was actually wrong

11 years agotypo
Mike Bayer [Thu, 23 Oct 2014 06:10:01 +0000 (02:10 -0400)] 
typo

11 years agomove this into behavioral changes
Mike Bayer [Thu, 23 Oct 2014 06:00:42 +0000 (02:00 -0400)] 
move this into behavioral changes

11 years ago- Fixed bug in single table inheritance where a chain of joins
Mike Bayer [Thu, 23 Oct 2014 05:54:10 +0000 (01:54 -0400)] 
- Fixed bug in single table inheritance where a chain of joins
that included the same single inh entity more than once
(normally this should raise an error) could, in some cases
depending on what was being joined "from", implicitly alias the
second case of the single inh entity, producing
a query that "worked".   But as this implicit aliasing is not
intended in the case of single table inheritance, it didn't
really "work" fully and was very misleading, since it wouldn't
always appear.
fixes #3233

11 years ago- Fixed bug where the ON clause for :meth:`.Query.join`,
Mike Bayer [Thu, 23 Oct 2014 04:40:29 +0000 (00:40 -0400)] 
- Fixed bug where the ON clause for :meth:`.Query.join`,
and :meth:`.Query.outerjoin` to a single-inheritance subclass
using ``of_type()`` would not render the "single table criteria" in
the ON clause if the ``from_joinpoint=True`` flag were set.
fixes #3232

11 years agoSupport additional args/kwargs on cursor method
Scott Dugas [Wed, 22 Oct 2014 19:09:05 +0000 (15:09 -0400)] 
Support additional args/kwargs on cursor method

fdbsql has an optional nested kwarg, which is supported in the
actual code, but not in the testing proxy

11 years ago- changelog for pullreq github:139
Mike Bayer [Tue, 21 Oct 2014 21:58:51 +0000 (17:58 -0400)] 
- changelog for pullreq github:139
- add support for self-referential foreign keys to move over as well when
the table name is changed.

11 years agoMerge remote-tracking branch 'origin/pr/139' into pr139
Mike Bayer [Tue, 21 Oct 2014 21:29:40 +0000 (17:29 -0400)] 
Merge remote-tracking branch 'origin/pr/139' into pr139

11 years ago- changelog
Mike Bayer [Tue, 21 Oct 2014 21:27:37 +0000 (17:27 -0400)] 
- changelog

11 years agoMerge remote-tracking branch 'origin/pr/137' into pr137
Mike Bayer [Tue, 21 Oct 2014 21:24:14 +0000 (17:24 -0400)] 
Merge remote-tracking branch 'origin/pr/137' into pr137

11 years ago- Reversing a change that was made in 0.9, the "singleton" nature
Mike Bayer [Sun, 19 Oct 2014 22:26:14 +0000 (18:26 -0400)] 
- Reversing a change that was made in 0.9, the "singleton" nature
of the "constants" :func:`.null`, :func:`.true`, and :func:`.false`
has been reverted.   These functions returning a "singleton" object
had the effect that different instances would be treated as the
same regardless of lexical use, which in particular would impact
the rendering of the columns clause of a SELECT statement.
fixes #3170

11 years ago- Fixed bug where :meth:`.Session.expunge` would not fully detach
Mike Bayer [Sun, 19 Oct 2014 20:53:45 +0000 (16:53 -0400)] 
- Fixed bug where :meth:`.Session.expunge` would not fully detach
the given object if the object had been subject to a delete
operation that was flushed, but not committed.  This would also
affect related operations like :func:`.make_transient`.
fixes #3139

11 years ago- control the module name of the exception here for py3k compat
Mike Bayer [Sun, 19 Oct 2014 17:37:48 +0000 (13:37 -0400)] 
- control the module name of the exception here for py3k compat

11 years ago- for #3230, scale back the check to only look at columns that
Mike Bayer [Sun, 19 Oct 2014 10:43:53 +0000 (06:43 -0400)] 
- for #3230, scale back the check to only look at columns that
already have more than one ForeignKeyConstraint referring to them.
This limits the check to what we hope is the most common case,
but we benefit that the memory and config-time impact is scaled back
dramatically.

11 years ago- A warning is emitted in the case of multiple relationships that
Mike Bayer [Sat, 18 Oct 2014 21:56:13 +0000 (17:56 -0400)] 
- A warning is emitted in the case of multiple relationships that
ultimately will populate a foreign key column in conflict with
another, where the relationships are attempting to copy values
from different source columns.  This occurs in the case where
composite foreign keys with overlapping columns are mapped to
relationships that each refer to a different referenced column.
A new documentation section illustrates the example as well as how
to overcome the issue by specifying "foreign" columns specifically
on a per-relationship basis.
fixes #3230

11 years ago- flake8
Mike Bayer [Sun, 19 Oct 2014 02:32:07 +0000 (22:32 -0400)] 
- flake8

11 years ago- Exception messages have been spiffed up a bit. The SQL statement
Mike Bayer [Fri, 17 Oct 2014 23:37:45 +0000 (19:37 -0400)] 
- Exception messages have been spiffed up a bit.  The SQL statement
and parameters are not displayed if None, reducing confusion for
error messages that weren't related to a statement.  The full
module and classname for the DBAPI-level exception is displayed,
making it clear that this is a wrapped DBAPI exception.  The
statement and parameters themselves are bounded within a bracketed
sections to better isolate them from the error message and from
each other.
fixes #3172

11 years agoadded docs to clarify that sql statement is already in a dialect
jonathan vanasco [Fri, 17 Oct 2014 23:35:29 +0000 (19:35 -0400)] 
added docs to clarify that sql statement is already in a dialect

11 years agopep8
Mike Bayer [Fri, 17 Oct 2014 23:29:32 +0000 (19:29 -0400)] 
pep8

11 years ago- The :meth:`.Query.update` method will now convert string key
Mike Bayer [Thu, 16 Oct 2014 18:36:56 +0000 (14:36 -0400)] 
- The :meth:`.Query.update` method will now convert string key
names in the given dictionary of values into mapped attribute names
against the mapped class being updated.  Previously, string names
were taken in directly and passed to the core update statement without
any means to resolve against the mapped entity.  Support for synonyms
and hybrid attributes as the subject attributes of
:meth:`.Query.update` are also supported.
fixes #3228

11 years ago- fix imports
Mike Bayer [Thu, 16 Oct 2014 17:30:39 +0000 (13:30 -0400)] 
- fix imports
- pep8

11 years agoFixed typo
mozillazg [Wed, 15 Oct 2014 13:40:19 +0000 (21:40 +0800)] 
Fixed typo

11 years ago- Improvements to the mechanism used by :class:`.Session` to locate
Mike Bayer [Tue, 14 Oct 2014 18:04:17 +0000 (14:04 -0400)] 
- Improvements to the mechanism used by :class:`.Session` to locate
"binds" (e.g. engines to use), such engines can be associated with
mixin classes, concrete subclasses, as well as a wider variety
of table metadata such as joined inheritance tables.
fixes #3035

11 years ago- move BindTest into orm/test_binds
Mike Bayer [Tue, 14 Oct 2014 16:07:38 +0000 (12:07 -0400)] 
- move BindTest into orm/test_binds

11 years ago- The ``__module__`` attribute is now set for all those SQL and
Mike Bayer [Tue, 14 Oct 2014 15:59:48 +0000 (11:59 -0400)] 
- The ``__module__`` attribute is now set for all those SQL and
ORM functions that are derived as "public factory" symbols, which
should assist with documentation tools being able to report on the
target module.
fixes #3218

11 years ago- merge 0.9.8 release date
Mike Bayer [Mon, 13 Oct 2014 17:17:24 +0000 (13:17 -0400)] 
- merge 0.9.8 release date

11 years ago- additional issues fixed in mysqlconnector 2.0.1
Mike Bayer [Mon, 13 Oct 2014 16:37:29 +0000 (12:37 -0400)] 
- additional issues fixed in mysqlconnector 2.0.1

11 years ago- this test passes now in more recent mysqlconnector
Mike Bayer [Mon, 13 Oct 2014 16:34:41 +0000 (12:34 -0400)] 
- this test passes now in more recent mysqlconnector

11 years ago- Mysqlconnector as of version 2.0, probably as a side effect of
Mike Bayer [Mon, 13 Oct 2014 00:14:32 +0000 (20:14 -0400)] 
- Mysqlconnector as of version 2.0, probably as a side effect of
the  python 3 merge, now does not expect percent signs (e.g.
as used as the modulus operator and others) to be doubled,
even when using the "pyformat" bound parameter format (this
change is not documented by Mysqlconnector).  The dialect now
checks for py2k and for mysqlconnector less than version 2.0
when detecting if the modulus operator should be rendered as
``%%`` or ``%``.
- Unicode SQL is now passed for MySQLconnector version 2.0 and above;
for Py2k and MySQL < 2.0, strings are encoded.  Note that mysqlconnector
as of 2.0.1 appears to have a bug with unicode DDL on py2k, so the tests here
are skipping until we observe it's fixed.
- take out profiling on mysqlconnector, callcounts vary too much with
its current development speed

11 years ago- the test_except test was doing an unnecessary workaround of some kind,
Mike Bayer [Sun, 12 Oct 2014 23:37:14 +0000 (19:37 -0400)] 
- the test_except test was doing an unnecessary workaround of some kind,
take that out, restore the better exception logic in exc

11 years ago- roll back part of pr 140 to get exception wrapping working again
Mike Bayer [Sun, 12 Oct 2014 13:54:44 +0000 (09:54 -0400)] 
- roll back part of pr 140 to get exception wrapping working again

11 years agoMerge remote-tracking branch 'origin/pr/140' into pr140
Mike Bayer [Sun, 12 Oct 2014 00:08:27 +0000 (20:08 -0400)] 
Merge remote-tracking branch 'origin/pr/140' into pr140

11 years agoadd more order by here
Mike Bayer [Sat, 11 Oct 2014 23:02:32 +0000 (19:02 -0400)] 
add more order by here

11 years ago- embedding an existing predicate into a new one only
Mike Bayer [Sat, 11 Oct 2014 22:35:12 +0000 (18:35 -0400)] 
- embedding an existing predicate into a new one only
seems to be used by test_oracle->test_coerce_to_unicode().  The
predicate here should treat as a lambda based on enabled_for_config.
not sure why this test is not failing on jenkins

11 years ago- Fixed long-standing bug in Oracle dialect where bound parameter
Mike Bayer [Sat, 11 Oct 2014 22:25:21 +0000 (18:25 -0400)] 
- Fixed long-standing bug in Oracle dialect where bound parameter
names that started with numbers would not be quoted, as Oracle
doesn't like numerics in bound parameter names.
fixes #2138

11 years ago- change this literal so that the bound name doesn't have a numeric
Mike Bayer [Sat, 11 Oct 2014 21:33:44 +0000 (17:33 -0400)] 
- change this literal so that the bound name doesn't have a numeric
name, this is sort of a bug for oracle

11 years ago- :meth:`.Insert.from_select` now includes Python and SQL-expression
Mike Bayer [Fri, 10 Oct 2014 21:15:19 +0000 (17:15 -0400)] 
- :meth:`.Insert.from_select` now includes Python and SQL-expression
defaults if otherwise unspecified; the limitation where non-
server column defaults aren't included in an INSERT FROM
SELECT is now lifted and these expressions are rendered as
constants into the SELECT statement.

11 years ago- apply patches to correct for + sign in with_hint() docs,
Mike Bayer [Fri, 10 Oct 2014 19:31:07 +0000 (15:31 -0400)] 
- apply patches to correct for + sign in with_hint() docs,
fixes #3036

11 years ago- add a migration note for ref #3222
Mike Bayer [Fri, 10 Oct 2014 00:54:19 +0000 (20:54 -0400)] 
- add a migration note for ref #3222

11 years ago- The ON clause rendered when using :meth:`.Query.join`,
Mike Bayer [Fri, 10 Oct 2014 00:40:35 +0000 (20:40 -0400)] 
- The ON clause rendered when using :meth:`.Query.join`,
:meth:`.Query.outerjoin`, or the standalone :func:`.orm.join` /
:func:`.orm.outerjoin` functions to a single-inheritance subclass will
now include the "single table criteria" in the ON clause even
if the ON clause is otherwise hand-rolled; it is now added to the
criteria using AND, the same way as if joining to a single-table
target using relationship or similar.
fixes #3222

11 years ago- Fixed bug where a fair number of SQL elements within
Mike Bayer [Thu, 9 Oct 2014 21:20:30 +0000 (17:20 -0400)] 
- Fixed bug where a fair number of SQL elements within
the sql package would fail to ``__repr__()`` successfully,
due to a missing ``description`` attribute that would then invoke
a recursion overflow when an internal AttributeError would then
re-invoke ``__repr__()``.
fixes #3195

11 years ago- clean up unicode docs and clarify that client_encoding
Mike Bayer [Tue, 7 Oct 2014 18:06:46 +0000 (14:06 -0400)] 
- clean up unicode docs and clarify that client_encoding
at the engine level is not the same thing as at the connect args
level.

11 years ago- adjustment for ref #3200 as we need an immutabledict() here so
Mike Bayer [Tue, 7 Oct 2014 16:43:27 +0000 (12:43 -0400)] 
- adjustment for ref #3200 as we need an immutabledict() here so
that union() can be called, in the case of a dialect that uses
execution options inside of initialize() (e.g. oursql)

11 years ago- Fixed "'NoneType' object has no attribute 'concrete'" error
Mike Bayer [Mon, 6 Oct 2014 22:33:05 +0000 (18:33 -0400)] 
- Fixed "'NoneType' object has no attribute 'concrete'" error
when using :class:`.AbstractConcreteBase` in conjunction with
a subclass that declares ``__abstract__``.
fixes #3185

11 years ago- The execution options passed to an :class:`.Engine` either via
Mike Bayer [Mon, 6 Oct 2014 22:23:42 +0000 (18:23 -0400)] 
- The execution options passed to an :class:`.Engine` either via
:paramref:`.create_engine.execution_options` or
:meth:`.Engine.update_execution_options` are not passed to the
special :class:`.Connection` used to initialize the dialect
within the "first connect" event; dialects will usually
perform their own queries in this phase, and none of the
current available  options should be applied here.  In
particular, the "autocommit" option was causing an attempt to
autocommit within this initial connect which would fail with
an AttributeError due to the non-standard state of the
:class:`.Connection`.
fixes #3200

11 years ago- move some things that are features to the features
Mike Bayer [Sat, 4 Oct 2014 23:10:23 +0000 (19:10 -0400)] 
- move some things that are features to the features

11 years ago- use provide_metadata for new unique constraint / index tests
Mike Bayer [Sat, 4 Oct 2014 22:57:01 +0000 (18:57 -0400)] 
- use provide_metadata for new unique constraint / index tests
- add a test for PG reflection of unique index without any unique
constraint
- for PG, don't include 'duplicates_constraint' in the entry
if the index does not actually mirror a constraint
- use a distinct method for unique constraint reflection within table
- catch unique constraint not implemented condition; this may
be within some dialects and also is expected to be supported by
Alembic tests
- migration + changelogs for #3184
- add individual doc notes as well to MySQL, Postgreql
fixes #3184