Commit Graph

10240 Commits

Author SHA1 Message Date
Mike Bayer c7312cc508 - changelog for #3459, fixes #3459
- test for .cast() method has no good place now except for
test_cast in test_compiler.py
2015-07-19 17:56:18 -04:00
Mike Bayer 1c65ddee24 Merge branch 'bb_issue_3459' of https://bitbucket.org/xflr6/sqlalchemy into pr56 2015-07-19 17:51:26 -04:00
Mike Bayer ddad190529 - Fixed regression where new methods on :class:.ResultProxy used
by the ORM :class:`.Query` object (part of the performance
enhancements of 🎫`3175`) would not raise the "this result
does not return rows" exception in the case where the driver
(typically MySQL) fails to generate cursor.description correctly;
an AttributeError against NoneType would be raised instead.
fixes #3481
2015-07-19 16:32:31 -04:00
Mike Bayer c00ef11a0c - pg8000 very annoyingly complaining here, use total literal 2015-07-19 16:01:02 -04:00
Mike Bayer d7ceb63c94 - Fixed regression where :meth:.ResultProxy.keys would return
un-adjusted internal symbol names for "anonymous" labels, which
are the "foo_1" types of labels we see generated for SQL functions
without labels and similar.  This was a side effect of the
performance enhancements implemented as part of references #918.
fixes #3483
2015-07-19 12:20:00 -04:00
Mike Bayer 3cfe3fd81d - Fixed bug where coersion of literal `True or False` constant
in conjunction with :func:`.and_` or :func:`.or_` would fail
with an AttributeError.
fixes #3490
2015-07-19 10:27:33 -04:00
Mike Bayer 41aead96cd - Fixed potential issue where a custom subclass
of :class:`.FunctionElement` or other column element that incorrectly
states 'None' or any other invalid object as the ``.type``
attribute will report this exception instead of recursion overflow.
fixes #3485
2015-07-19 10:00:13 -04:00
Jakub Stasiak 18a078654d Remove RootTransaction<->RootTransaction reference cycle
(cherry picked from commit 3ef00e816da042d4932be53b86f76db17c800842)
2015-07-18 10:45:09 -04:00
Mike Bayer c8f38dff11 - db_opts doesn't need to be a global since we no longer have any global
option for it.  keep it local to production of config so values don't
leak in a multi --db situation.
2015-07-17 11:09:29 -04:00
Mike Bayer 480dad983c - fix these two tests 2015-07-17 11:08:42 -04:00
Mike Bayer 65554983bd - changelog for pr github:188 2015-07-17 10:45:16 -04:00
Mike Bayer b89ca77dca Merge remote-tracking branch 'origin/pr/188' into pr188 2015-07-17 10:44:05 -04:00
Mike Bayer 4f2ede4206 - version specs for new Sequence arguments
- changelog for pullreq github:186
2015-07-17 10:11:29 -04:00
Mike Bayer e02de8c4a7 Merge remote-tracking branch 'origin/pr/186' into pr186 2015-07-17 10:05:47 -04:00
Dan Gittik ae6fd1c389 Added test for modulo operator. 2015-07-17 02:28:23 +03:00
Dan Gittik 249bc5be00 Added support for reflected modulo operator. 2015-07-17 02:26:31 +03:00
Mike Bayer eed8bcef3a - add a note, references #3487 2015-07-15 13:07:32 -04:00
Mike Bayer b68c9ac93e - Fixed bug in :class:.AbstractConcreteBase extension where
a column setup on the ABC base which had a different attribute
name vs. column name would not be correctly mapped on the final
base class.   The failure on 0.9 would be silent whereas on
1.0 it raised an ArgumentError, so may not have been noticed
prior to 1.0.
fixes #3480
2015-07-13 15:39:04 -04:00
Mike Bayer cadc2e0ba0 - try to note under insert.values(), if you need
"multiple parameter sets" there is a much more common case
which works equally well for INSERT/UPDATE/DELETE e.g.
executemany().   reference #3476
2015-07-08 20:37:04 -04:00
Mike Bayer 6fcc5d4a07 - add a warning suggesting to use the dictionary form of access
if the name of the attribute being accessed is non-specific,
thereby avoiding collisions on names like items, values, keys.
fixes #3475
2015-07-05 11:16:26 -04:00
Mike Bayer cf21497f02 - fix the link here fixes 3473 2015-07-03 12:16:07 -04:00
Mike Bayer d58846ba7e - increase the varchar here 2015-07-01 17:47:26 -04:00
Mike Bayer ee34f7276b - Fixed 1.0 regression where value objects that override
``__eq__()`` to return a non-boolean-capable object, such as
some geoalchemy types as well as numpy types, were being tested
for ``bool()`` during a unit of work update operation, where in
0.9 the return value of ``__eq__()`` was tested against "is True"
to guard against this.
fixes #3469
2015-07-01 13:19:28 -04:00
Mike Bayer 4d6f4ed184 - Fixed 1.0 regression where a "deferred" attribute would not populate
correctly if it were loaded within the "optimized inheritance load",
which is a special SELECT emitted in the case of joined table
inheritance used to populate expired or unloaded attributes against
a joined table without loading the base table.  This is related to
the fact that SQLA 1.0 no longer guesses about loading deferred
columns and must be directed explicitly.
fixes #3468
2015-06-29 13:49:44 -04:00
jakeogh 66b9a71ce7 add CYCLE support to Sequence() and docstrings for NO MINVALUE and NO MAXVALUE 2015-06-27 20:49:46 +00:00
jakeogh 85ebe01349 add NO MINVALUE and NO MAXVALUE support to Sequence() 2015-06-27 18:48:46 +00:00
jakeogh ad7caa6988 add MAXVALUE support to Sequence() 2015-06-27 18:37:09 +00:00
jakeogh f31c288b65 add MINVALUE support to Sequence() 2015-06-27 08:40:44 +00:00
Mike Bayer fcb7c784e9 - Fixed 1.0 regression where the "parent entity" of a synonym-
mapped attribute on top of an :func:`.aliased` object would
resolve to the original mapper, not the :func:`.aliased`
version of it, thereby causing problems for a :class:`.Query`
that relies on this attribute (e.g. it's the only representative
attribute given in the constructor) to figure out the correct FROM
clause for the query.
fixes #3466
- apply consitency to ._parententity vs.
__clause_element__()._annotations['parententity']
in terms of aliased class, test it all.
2015-06-27 00:40:34 -04:00
mike bayer 012b3bd0b2 Merge pull request #185 from megabyde/master
Fix code examples in automap's documentation
2015-06-26 14:44:56 -04:00
Yuri Baida 5717186122 Fix code examples in automap's documentation
Fix camelize_classname and pluralize_collection functions as they didn't work as expected.
2015-06-26 10:45:48 -07:00
Mike Bayer 447ee0af1d 1.0.6 rel_1_0_6 2015-06-25 11:33:10 -04:00
Mike Bayer 1835be36fc - add autoinc marker for oracle 2015-06-25 11:11:00 -04:00
Mike Bayer 1e2f1f5baa - Fixed a major regression in the 1.0 series where the version_id_counter
feature would cause an object's version counter to be incremented
when there was no net change to the object's row, but instead an object
related to it via relationship (e.g. typically many-to-one)
were associated or de-associated with it, resulting in an UPDATE
statement that updates the object's version counter and nothing else.
In the use case where the relatively recent "server side" and/or
"programmatic/conditional" version counter feature were used
(e.g. setting version_id_generator to False), the bug could cause an
UPDATE without a valid SET clause to be emitted.
fixes #3465
2015-06-24 21:53:15 -04:00
Mike Bayer 00656ae493 - edits to this section 2015-06-22 22:24:07 -04:00
Mike Bayer be2b35f7f2 - add a new FAQ on re-reading of data within a transaction, since
this is definitely something that is asked regularly.
2015-06-22 21:33:40 -04:00
mike bayer ee5bf27eb8 Merge pull request #184 from bnjmn/patch-1
Missing comma in method params for hybrid docs
2015-06-22 17:38:28 -04:00
Benjamin Petersen ebe3e4569f Missing comma in method args 2015-06-22 16:27:56 -04:00
Mike Bayer 78095940a4 - Fixed issue when using :class:.VARBINARY type in conjunction with
an INSERT of NULL + pyodbc; pyodbc requires a special
object be passed in order to persist NULL.  As the :class:`.VARBINARY`
type is now usually the default for :class:`.LargeBinary` due to
🎫`3039`, this issue is partially a regression in 1.0.
The pymssql driver appears to be unaffected.
fixes #3464
2015-06-22 15:24:41 -04:00
Mike Bayer 24f8ab2bc3 - Re-fixed this issue first released in 1.0.5 to fix psycopg2cffi
JSONB support once again, as they suddenly
switched on unconditional decoding of JSONB types in version 2.7.1.
Version detection now specifies 2.7.1 as where we should expect
the DBAPI to do json encoding for us.
fixes #3439
2015-06-22 11:35:02 -04:00
mike bayer cfa296d9cd Merge pull request #183 from renshawbay/master
Fix a tiny typo in test name
2015-06-22 11:25:42 -04:00
Pete Hollobon e3c8eabb28 Fix typo 2015-06-22 14:54:21 +01:00
Mike Bayer 0e84dcc485 - repair that we use db_opts when the url here is different,
as we are using db_opts for the first time with legacy_schema_args
2015-06-19 19:24:10 -04:00
Mike Bayer 61e83ec41b - fixes to the warnings filters 2015-06-19 17:18:03 -04:00
Mike Bayer 7aa2100db3 - more edits, references #3461 2015-06-19 14:54:26 -04:00
Mike Bayer e625d2ea88 - for #3455
- changelog
- versionadded + reflink for new pg storage parameters doc
- pep8ing
- add additional tests to definitely check that the Index object
is created all the way with the opts we want
fixes #3455
2015-06-19 14:10:47 -04:00
Mike Bayer 99ceed3e55 Merge remote-tracking branch 'origin/pr/179' into pr179 2015-06-19 13:45:01 -04:00
Mike Bayer a1b6e9f324 - fix the bullets
- tone down the "never dispose an engine" language
- refer to NullPool for the "I don't like pooling" use case
references #3461
2015-06-19 13:08:47 -04:00
Mike Bayer 9f4149766c - Fixed 1.0 regression where the enhanced behavior of single-inheritance
joins of 🎫`3222` takes place inappropriately
for a JOIN along explicit join criteria with a single-inheritance
subclass that does not make use of any discriminator, resulting
in an additional "AND NULL" clause.
fixes #3462
2015-06-19 12:24:09 -04:00
Mike Bayer 3d78705cf4 - add explciit section on engine disposal, fixes #3461 2015-06-19 11:49:49 -04:00