summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Report the type of unexpected expression objectspr/150Ryan P. Kelly2014-11-202-2/+4
|
* - callcountsMike Bayer2014-11-141-60/+10
|
* - correct this to rewrite a multiple profile line correctlyMike Bayer2014-11-141-1/+5
|
* - Fixed a leak which would occur in the unsupported and highlyMike Bayer2014-11-133-0/+40
| | | | | | | | | 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
* Merged in jon_nelson/sqlalchemy/logging_interpolation (pull request #35) Mike Bayer2014-11-123-4/+4
|\ | | | | - don't do inline string interpolation when logging
| * - don't do inline string interpolation when loggingJon Nelson2014-11-113-4/+4
|/
* - Fixed issue where the columns from a SELECT embedded in anMike Bayer2014-11-114-0/+82
| | | | | | | | | 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
* - in lieu of adding a new system of translating bound parameter namesMike Bayer2014-11-102-0/+60
| | | | | | | 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.
* - The :attr:`.Column.key` attribute is now used as the source ofMike Bayer2014-11-104-4/+30
| | | | | | | | | | | 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
* Merge pull request #149 from pbu88/small_error_reporting_improvement_updatemike bayer2014-11-062-6/+8
|\ | | | | Small improvement on FlushError can't update error message
| * 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
| | | |