summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/util
Commit message (Collapse)AuthorAgeFilesLines
* remove all remaining start/end py2k/py3k blocksMike Bayer2013-06-071-1/+1
|
* - implement armin's awesome metaclass adaptor, can drop the refs to MetaBase.Mike Bayer2013-05-301-2/+17
|
* Merge branch 'rel_0_9'Mike Bayer2013-05-295-183/+258
|\ | | | | | | | | | | | | Conflicts: lib/sqlalchemy/dialects/postgresql/hstore.py lib/sqlalchemy/util/__init__.py lib/sqlalchemy/util/compat.py
| * keep the contract for Properties as returning lists for keys, values, items.Mike Bayer2013-05-291-3/+3
| | | | | | | | It's not the same as a dictionary as __iter__ does the values
| * - run the whole test suite with the "debugging" ordered dict on,Mike Bayer2013-05-271-8/+19
| | | | | | | | find some more failures
| * - fix a dict while iterate mutationMike Bayer2013-05-271-0/+11
| | | | | | | | | | - illustrate how OrderedDict can catch these, but commented out to save function overhead
| * fix test_execute w c extensionsMike Bayer2013-05-261-1/+2
| |
| * clean up some of this collection stuffMike Bayer2013-05-261-16/+27
| |
| * a pass where we try to squash down as many list()/keys() combinationsMike Bayer2013-05-261-3/+3
| | | | | | | | as possible
| * do a sweep of some obvious 3kismsMike Bayer2013-05-262-1/+3
| |
| * fix serializer tests. something is wrong with non-C pickle but for some ↵Mike Bayer2013-05-262-2/+17
| | | | | | | | | | | | reason py3k's pickle seems to be OK? not sure why that is, as this is all related to http://bugs.python.org/issue998998
| * merge defaultMike Bayer2013-05-231-24/+22
| |\
| * | most of ORM passing...Mike Bayer2013-05-042-8/+6
| | |
| * | baseMike Bayer2013-05-041-3/+3
| | |
| * | that's all of engineMike Bayer2013-05-041-0/+6
| | |
| * | - unicode literals need to just be handled differently if they have utf-8Mike Bayer2013-05-042-1/+11
| | | | | | | | | | | | | | | encoded in them vs. unicode escaping. not worth figuring out how to combine these right now
| * | postgresql dialect testsMike Bayer2013-04-281-1/+2
| | |
| * | - endless isinstance(x, str)s....Mike Bayer2013-04-283-55/+88
| | |
| * | cleanupMike Bayer2013-04-271-45/+21
| | |
| * | plugging awayMike Bayer2013-04-273-46/+40
| | |
| * | work through dialectsMike Bayer2013-04-272-18/+17
| | |
| * | - the raw 2to3 runMike Bayer2013-04-274-94/+102
| | | | | | | | | | | | - went through examples/ and cleaned out excess list() calls
* | | add the py2k symbol from the 0.9 branch to support the hstore changeMike Bayer2013-05-292-1/+2
| |/ |/|
* | Fixed a bug where the routine to detect the correct kwargsMike Bayer2013-05-231-24/+22
|/ | | | | | being sent to :func:`.create_engine` would fail in some cases, such as with the Sybase dialect. [ticket:2732]
* python2.5 fixMike Bayer2013-04-181-3/+2
|
* - remove reference to _exc_info before reraise to reduce cyclesMike Bayer2013-04-181-0/+3
|
* Reworked internal exception raises that emitMike Bayer2013-04-183-2/+58
| | | | | | | | | a rollback() before re-raising, so that the stack trace is preserved from sys.exc_info() before entering the rollback. This so that the traceback is preserved when using coroutine frameworks which may have switched contexts before the rollback function returns. [ticket:2703]
* A major fix to the way in which a select() object producesMike Bayer2013-04-111-1/+0
| | | | | | | | | | | | | | | | | | | labeled columns when apply_labels() is used; this mode produces a SELECT where each column is labeled as in <tablename>_<columnname>, to remove column name collisions for a multiple table select. The fix is that if two labels collide when combined with the table name, i.e. "foo.bar_id" and "foo_bar.id", anonymous aliasing will be applied to one of the dupes. This allows the ORM to handle both columns independently; previously, 0.7 would in some cases silently emit a second SELECT for the column that was "duped", and in 0.8 an ambiguous column error would be emitted. The "keys" applied to the .c. collection of the select() will also be deduped, so that the "column being replaced" warning will no longer emit for any select() that specifies use_labels, though the dupe key will be given an anonymous label which isn't generally user-friendly. [ticket:2702]
* Make MonkeyPatchedBinaryTest not fail on Python 2.5 (which doesn't haveMarc Abramowitz2013-03-201-0/+8
| | | | the `b` notation for byte string literals)
* - remove all compat items that are pre-2.5 (hooray)Mike Bayer2013-03-095-189/+50
| | | | | | - other cleanup - don't need compat.decimal, that approach never panned out. hopefully outside libs aren't pulling it in, they shouldn't be
* happy new year (see #2645)Diana Clarke2013-01-017-7/+7
|
* Fixed a regression caused by :ticket:`2410` whereby aMike Bayer2012-12-111-4/+6
| | | | | | | | | :class:`.CheckConstraint` would apply itself back to the original table during a :meth:`.Table.tometadata` operation, as it would parse the SQL expression for a parent table. The operation now copies the given expression to correspond to the new table. [ticket:2633]
* - documentation and changelog for [ticket:2601]Mike Bayer2012-12-091-9/+57
|
* just a pep8 pass of lib/sqlalchemy/util/Diana Clarke2012-11-196-17/+79
|
* just a pep8 pass of this fileDiana Clarke2012-11-181-13/+32
|
* initializing _labels to an empty list so that the other methods don't throw ↵Diana Clarke2012-11-171-0/+1
| | | | exceptions in the None labels case, but rather return (), [], or {}. this is not backwards compatible, but doubt anyone is relying on those exceptions #2601
* adding _fields, _asdict() to KeyedTuple #2601Diana Clarke2012-11-171-0/+7
|
* __sub__ was declared twice, just increasing test coverage before I change ↵Diana Clarke2012-11-131-3/+0
| | | | anything
* - move most/all operator specific tests into test_operator, convert fully to TOTMike Bayer2012-10-242-1/+2
|
* - [bug] TypeDecorator now includes a generic repr()Mike Bayer2012-10-181-2/+4
| | | | | | | | | that works in terms of the "impl" type by default. This is a behavioral change for those TypeDecorator classes that specify a custom __init__ method; those types will need to re-define __repr__() if they need __repr__() to provide a faithful constructor representation. [ticket:2594]
* - fix annotation transfer when producing m2m backref, [ticket:2578]Mike Bayer2012-09-281-0/+3
|
* - use our new Cls.memoized_name._reset(self) method in place of all those ↵Mike Bayer2012-09-232-4/+1
| | | | | | __dict__.pop(), remove reset_memoized
* - [bug] When the primary key column of a TableMike Bayer2012-09-231-0/+2
| | | | | | | | is replaced, such as via extend_existing, the "auto increment" column used by insert() constructs is reset. Previously it would remain referring to the previous primary key column. [ticket:2525]
* - rework the test exclusions system to work on a consistent themeMike Bayer2012-09-032-2/+3
|
* Add items(), values() methods to Properties.Michael Elsdörfer2012-08-291-0/+6
|
* - [feature] The Core oeprator system now includesMike Bayer2012-08-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the `getitem` operator, i.e. the bracket operator in Python. This is used at first to provide index and slice behavior to the Postgresql ARRAY type, and also provides a hook for end-user definition of custom __getitem__ schemes which can be applied at the type level as well as within ORM-level custom operator schemes. Note that this change has the effect that descriptor-based __getitem__ schemes used by the ORM in conjunction with synonym() or other "descriptor-wrapped" schemes will need to start using a custom comparator in order to maintain this behavior. - [feature] postgresql.ARRAY now supports indexing and slicing. The Python [] operator is available on all SQL expressions that are of type ARRAY; integer or simple slices can be passed. The slices can also be used on the assignment side in the SET clause of an UPDATE statement by passing them into Update.values(); see the docs for examples. - [feature] Added new "array literal" construct postgresql.array(). Basically a "tuple" that renders as ARRAY[1,2,3].
* - [bug] Fixed the repr() of Enum to includeMike Bayer2012-08-081-1/+10
| | | | | the "name" and "native_enum" flags. Helps Alembic autogenerate.
* more import cleanupsMike Bayer2012-08-077-15/+12
|
* -whitespace bonanza, contdMike Bayer2012-07-282-6/+6
|
* - document the inspection systemMike Bayer2012-07-181-13/+16
|