Commit Graph

10240 Commits

Author SHA1 Message Date
Mike Bayer 590498bf84 Merge branch 'master' into ticket_3100 2014-11-06 17:15:30 -05:00
Paulo Bu 4b09f1423b Small improvement on FlushError can't update error message
Output in the error message the table name and the column name.
2014-11-06 21:14:17 +01:00
Mike Bayer 8200c2cd35 - edits to the subqueryload ordering merge 2014-11-05 15:11:13 -05:00
Mike Bayer 9f592d6481 Merge branch 'subqueryload_order' of https://bitbucket.org/univerio/sqlalchemy into pr26 2014-11-05 14:45:14 -05:00
mike bayer 8d97f32f4f Merge pull request #148 from pbu88/small_error_reporting_improvement
Small improvement on FlushError can't delete error message
2014-11-05 11:03:24 -05:00
Paulo Bu ea637cef2d Small improvement on FlushError can't delete error message
Output in the error message the table name and the column name.
2014-11-05 13:23:03 +01:00
Mike Bayer edec583b45 - 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
2014-11-05 04:22:30 -05:00
Scott Dugas 8d154f84f1 It now calls raise_from_cause
master was updated to call util.raise_from_cause which is better
than what I had
2014-11-03 15:24:31 -05:00
Scott Dugas b31ab00689 Merge branch 'master' into fdbsql-tests
Conflicts:
	lib/sqlalchemy/testing/exclusions.py
2014-11-03 14:54:51 -05:00
Mike Bayer 7bf5ac9c1e - ensure kwargs are passed for limit clause on a compound select as well,
further fixes for #3034
2014-10-31 20:00:42 -04:00
Scott Dugas ebb9d57cb3 Removed accidental print statements 2014-10-30 16:40:36 -04:00
Scott Dugas 5b3fc87435 Added requirement for temporary tables 2014-10-30 11:06:45 -04:00
Malthe Borch 02c072edbb It's the 'kwargs' which are iterable, not 'keys' 2014-10-30 10:49:37 +01:00
Scott Dugas e01dab9b1f 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.
2014-10-29 17:42:52 -04:00
Mike Bayer d2c1edfb15 - added new backend for pysqlcipher, as we will probably get
requests for it soon.
2014-10-29 14:55:42 -04:00
Mike Bayer e1d1d999c9 changelog 2014-10-26 16:49:44 -04:00
jlgoldb2 2083ccfbcf changed connnection to connection 2014-10-26 00:01:42 -07:00
Mateusz Susik e7d61d594b Psycopg2 JSONB support. 2014-10-24 13:27:29 +02:00
Scott Dugas fdbea87958 require check constraints for tests 2014-10-23 17:59:27 -04:00
Scott Dugas 470061bcdc Added requirement to test for bind limit 2014-10-23 17:55:13 -04:00
Scott Dugas 2ce9333a24 Forgot to update usage of ex to exc_value 2014-10-23 13:01:23 -04:00
Scott Dugas 9687b272bd Added new requirement for check_constraints 2014-10-23 11:46:34 -04:00
Scott Dugas 9c0eb84078 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
2014-10-23 10:24:35 -04:00
Mike Bayer 393470c7ab typo 2014-10-23 02:10:01 -04:00
Mike Bayer 3be8da4860 move this into behavioral changes 2014-10-23 02:00:42 -04:00
Mike Bayer 445b9e2aff - 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
2014-10-23 01:54:10 -04:00
Mike Bayer 47d316ec66 - 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
2014-10-23 00:43:11 -04:00
Scott Dugas 25434e9209 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
2014-10-22 15:09:05 -04:00
Mike Bayer 56d5732fbd - changelog for pullreq github:139
- add support for self-referential foreign keys to move over as well when
the table name is changed.
2014-10-21 17:58:51 -04:00
Mike Bayer 0ae140aa98 Merge remote-tracking branch 'origin/pr/139' into pr139 2014-10-21 17:29:40 -04:00
Mike Bayer fee776dde0 - changelog 2014-10-21 17:27:37 -04:00
Mike Bayer 233d9c1bc0 Merge remote-tracking branch 'origin/pr/137' into pr137 2014-10-21 17:24:14 -04:00
Mike Bayer ade27f35cb - 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
2014-10-19 18:26:14 -04:00
Mike Bayer 38bc809841 - 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
2014-10-19 16:53:45 -04:00
Mike Bayer dddb74bbd3 - control the module name of the exception here for py3k compat 2014-10-19 13:37:48 -04:00
Mike Bayer b88f9e555e - 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.
2014-10-19 06:43:53 -04:00
Mike Bayer 55cad302ce - 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
2014-10-19 00:01:50 -04:00
Mike Bayer a7c1258d03 - flake8 2014-10-18 22:32:07 -04:00
Mike Bayer 6f40eb37cb - 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
2014-10-17 19:37:45 -04:00
jonathan vanasco 0f5a400b77 added docs to clarify that sql statement is already in a dialect 2014-10-17 19:35:29 -04:00
Mike Bayer 2924f8685c pep8 2014-10-17 19:29:32 -04:00
Mike Bayer 61a4a89d99 - 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
2014-10-16 14:36:56 -04:00
Mike Bayer a02664869c - fix imports
- pep8
2014-10-16 13:30:51 -04:00
mozillazg d06e9c361f Fixed typo 2014-10-15 21:40:19 +08:00
Mike Bayer 6de1a87870 - 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
2014-10-14 14:04:17 -04:00
Mike Bayer 1e5ffa029a - move BindTest into orm/test_binds 2014-10-14 12:07:38 -04:00
Mike Bayer fb09ad7551 - 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
2014-10-14 11:59:48 -04:00
Mike Bayer 09e2a15a80 - merge 0.9.8 release date 2014-10-13 13:17:24 -04:00
Mike Bayer 198917237e - additional issues fixed in mysqlconnector 2.0.1 2014-10-13 12:37:42 -04:00
Mike Bayer e04b693e7c - this test passes now in more recent mysqlconnector 2014-10-13 12:34:41 -04:00