summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Small improvement on FlushError can't update error messagepr/149Paulo Bu2014-11-062-6/+8
| | | | Output in the error message the table name and the column name.
* - edits to the subqueryload ordering mergeMike Bayer2014-11-053-56/+86
|
* Merge branch 'subqueryload_order' of ↵Mike Bayer2014-11-053-0/+105
|\ | | | | | | https://bitbucket.org/univerio/sqlalchemy into pr26
| * Added documentation about interaction between `subqueryload` and LIMIT/OFFSET.Jack Zhou2014-08-073-0/+105
| |
* | Merge pull request #148 from pbu88/small_error_reporting_improvementmike bayer2014-11-052-3/+4
|\ \ | | | | | | Small improvement on FlushError can't delete error message
| * | Small improvement on FlushError can't delete error messagepr/148Paulo Bu2014-11-052-3/+4
|/ / | | | | | | Output in the error message the table name and the column name.
* | - Fixed bug regarding expression mutations which could expressMike Bayer2014-11-054-1/+55
| | | | | | | | | | | | | | | | 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
* | - ensure kwargs are passed for limit clause on a compound select as well,Mike Bayer2014-10-312-1/+17
| | | | | | | | further fixes for #3034
* | - added new backend for pysqlcipher, as we will probably getMike Bayer2014-10-295-4/+137
| | | | | | | | requests for it soon.
* | changelogMike Bayer2014-10-261-0/+9
| |
* | changed connnection to connectionpr/146jlgoldb22014-10-261-1/+1
| |
* | typoMike Bayer2014-10-231-1/+1
| |
* | move this into behavioral changesMike Bayer2014-10-231-83/+88
| |
* | - Fixed bug in single table inheritance where a chain of joinsMike Bayer2014-10-234-5/+165
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | - Fixed bug where the ON clause for :meth:`.Query.join`,Mike Bayer2014-10-233-2/+43
| | | | | | | | | | | | | | 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
* | - changelog for pullreq github:139Mike Bayer2014-10-213-4/+70
| | | | | | | | | | - add support for self-referential foreign keys to move over as well when the table name is changed.
* | Merge remote-tracking branch 'origin/pr/139' into pr139Mike Bayer2014-10-212-4/+51
|\ \
| * | add simple tests for new name argument for Table.tometadata()pr/139ndparker2014-10-041-0/+44
| | |
| * | allow Table.tometadata changing the table namendparker2014-09-231-4/+7
| | |
* | | - changelogMike Bayer2014-10-211-0/+10
| | |
* | | Merge remote-tracking branch 'origin/pr/137' into pr137Mike Bayer2014-10-212-7/+20
|\ \ \
| * | | change functionspr/137jona2014-09-161-7/+12
| | | |
| * | | add failing testjona2014-09-121-0/+8
| | | |
* | | | - Reversing a change that was made in 0.9, the "singleton" natureMike Bayer2014-10-195-18/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | - Fixed bug where :meth:`.Session.expunge` would not fully detachMike Bayer2014-10-195-6/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | - control the module name of the exception here for py3k compatMike Bayer2014-10-191-7/+14
| | | |
* | | | - for #3230, scale back the check to only look at columns thatMike Bayer2014-10-191-15/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | - A warning is emitted in the case of multiple relationships thatticket_3230Mike Bayer2014-10-196-25/+302
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | - flake8Mike Bayer2014-10-181-919/+1097
| | | |
* | | | - Exception messages have been spiffed up a bit. The SQL statementMike Bayer2014-10-176-32/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | pep8Mike Bayer2014-10-171-38/+54
| | | |
* | | | - The :meth:`.Query.update` method will now convert string keyMike Bayer2014-10-165-24/+258
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | - fix importsMike Bayer2014-10-161-21/+24
| | | | | | | | | | | | | | | | - pep8
* | | | Fixed typopr/142mozillazg2014-10-151-2/+2
| | | |
* | | | - Improvements to the mechanism used by :class:`.Session` to locateMike Bayer2014-10-145-50/+336
| | | | | | | | | | | | | | | | | | | | | | | | | | | | "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
* | | | - move BindTest into orm/test_bindsMike Bayer2014-10-142-193/+194
| | | |
* | | | - The ``__module__`` attribute is now set for all those SQL andMike Bayer2014-10-143-2/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | - merge 0.9.8 release dateMike Bayer2014-10-131-0/+1
| | | |
* | | | - additional issues fixed in mysqlconnector 2.0.1Mike Bayer2014-10-131-15/+0
| | | |
* | | | - this test passes now in more recent mysqlconnectorMike Bayer2014-10-131-4/+2
| | | |
* | | | - Mysqlconnector as of version 2.0, probably as a side effect ofMike Bayer2014-10-125-102/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | - the test_except test was doing an unnecessary workaround of some kind,Mike Bayer2014-10-122-15/+4
| | | | | | | | | | | | | | | | take that out, restore the better exception logic in exc
* | | | - roll back part of pr 140 to get exception wrapping working againMike Bayer2014-10-121-3/+7
| | | |
* | | | Merge remote-tracking branch 'origin/pr/140' into pr140Mike Bayer2014-10-1113-39/+29
|\ \ \ \
| * | | | cleanup exception handling - use new exception hierarchy (since python 2.5)pr/140ndparker2014-10-0211-61/+21
| | | | |
| * | | | improve exception vs. exit handlingndparker2014-09-2311-8/+38
| | |/ / | |/| |
* | | | add more order by hereMike Bayer2014-10-111-1/+1
| | | |
* | | | - embedding an existing predicate into a new one onlyMike Bayer2014-10-111-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | - Fixed long-standing bug in Oracle dialect where bound parameterMike Bayer2014-10-113-1/+33
| | | | | | | | | | | | | | | | | | | | | | | | names that started with numbers would not be quoted, as Oracle doesn't like numerics in bound parameter names. fixes #2138
* | | | - change this literal so that the bound name doesn't have a numericMike Bayer2014-10-111-2/+2
| | | | | | | | | | | | | | | | name, this is sort of a bug for oracle