Commit Graph

10240 Commits

Author SHA1 Message Date
Mike Bayer 2b0b802b49 working through tests.... 2013-06-02 20:23:03 -04:00
Mike Bayer 35a674aab4 - figured out what the from_self() thing was about, part of query.statement, but would
like to improve upon query.statement needing to do this
2013-06-02 19:48:30 -04:00
Mike Bayer 02ae3cd54d getting things to join without subqueries, but some glitches in the compiler step
when we do query.count() are showing
2013-06-02 19:33:19 -04:00
Mike Bayer af3fa1f69c implement join rewriting inside of visit_select(). Currently this is global or not based on fixing nested_join_translation as True or not. 2013-06-02 18:05:47 -04:00
Mike Bayer 32716eae77 - blow away context._attributes
- to account for query._attributes/context.attributes, just pass
the attributes dict directly to the PathRegistry methods
2013-06-02 12:06:39 -04:00
Mike Bayer 832d657854 0.8 changelog in 0.9 2013-05-31 12:00:56 -04:00
Mike Bayer 2cd1a43778 Fixed a regression caused by [ticket:2682] whereby the
evaluation invoked by :meth:`.Query.update` and :meth:`.Query.delete`
would hit upon unsupported ``True`` and ``False`` symbols
which now appear due to the usage of ``IS``.
[ticket:2737]
2013-05-31 11:52:31 -04:00
Mike Bayer 1cc6494802 add a test for the exception we want to raise here 2013-05-30 20:26:45 -04:00
Mike Bayer 04317bd5a8 The "auto-aliasing" behavior of the :class:.Query.select_from
method has been turned off.  The specific behavior is now
availble via a new method :class:`.Query.select_entity_from`.
[ticket:2736]
2013-05-30 20:09:44 -04:00
Mike Bayer bef93660c1 - implement armin's awesome metaclass adaptor, can drop the refs to MetaBase. 2013-05-30 16:20:59 -04:00
Mike Bayer 6e64098eff remove 2013-05-30 16:02:46 -04:00
Mike Bayer 5eab95b8e1 Merge branch 'rel_0_9' (was already merged...git wants to merge again) 2013-05-30 15:59:24 -04:00
Mike Bayer c4c37c0201 - the distinct hash code logic here is entirely obsolete as you can
do eq_() on columnelements now with a meaningful bool; jython is entirely a
non-starter right now in any case as 2.7 doesn't support common accessors like __defaults__
2013-05-30 15:56:00 -04:00
Mike Bayer 965b34fa32 - fix up 0.9 links 2013-05-29 22:37:36 -04:00
Mike Bayer 1e46612d3f re-add these... 2013-05-29 19:57:40 -04:00
Mike Bayer e6cafd3596 - version 0.9
- changelog, migration doc
2013-05-29 19:02:17 -04:00
Mike Bayer 0fd61cfcb2 - add typical local test scripts 2013-05-29 18:50:33 -04:00
Mike Bayer 3bf77b1b0b Merge branch 'rel_0_9'
Conflicts:
	lib/sqlalchemy/dialects/postgresql/hstore.py
	lib/sqlalchemy/util/__init__.py
	lib/sqlalchemy/util/compat.py
2013-05-29 18:49:27 -04:00
Mike Bayer be2c145a84 keep the contract for Properties as returning lists for keys, values, items.
It's not the same as a dictionary as __iter__ does the values
2013-05-29 18:46:10 -04:00
Mike Bayer 9c746c44a3 add the py2k symbol from the 0.9 branch to support the hstore change 2013-05-29 18:36:10 -04:00
Mike Bayer c62d6203d9 changelog 2013-05-29 18:34:29 -04:00
Mike Bayer f91df04b05 - repair for py3k
- fix test
2013-05-29 18:34:29 -04:00
Dmitry Mugtasimov 8fecf4b9cf Unicode support for psycopg2 native hstore implementation 2013-05-29 18:34:29 -04:00
Mike Bayer f87c9d8167 hstores are text, and in py3k they seem to be implcitly unicode. so
add unicode encoding for py2k for the non-native hstore, pullreq for
    native psycopg2 support coming....
2013-05-29 18:34:29 -04:00
Mike Bayer da07a712f3 changelog 2013-05-29 18:30:56 -04:00
Mike Bayer 6c4a61b07a - repair for py3k
- fix test
2013-05-29 18:29:12 -04:00
Dmitry Mugtasimov d02d86a114 Unicode support for psycopg2 native hstore implementation 2013-05-29 18:16:39 -04:00
Mike Bayer 534e05888e hstores are text, and in py3k they seem to be implcitly unicode. so
add unicode encoding for py2k for the non-native hstore, pullreq for
    native psycopg2 support coming....
2013-05-29 18:08:28 -04:00
Mike Bayer e86b7df96c - move an import stuck in the middle here... 2013-05-28 01:43:12 -04:00
Mike Bayer 9fc6201f0c Merge branch 'master' into rel_0_9 2013-05-28 01:22:32 -04:00
Mike Bayer 94096593ca Fixed a small bug in the dogpile example where the generation
of SQL cache keys wasn't applying deduping labels to the
statement the same way :class:`.Query` normally does.
2013-05-28 01:22:10 -04:00
Mike Bayer ff399ac750 magic accessors to the rescue 2013-05-27 21:43:29 -04:00
Mike Bayer 0adcfea0d3 still not locating more nested expressions, may need to match on name 2013-05-27 21:05:16 -04:00
Mike Bayer a9ed16f80d attempt number one, doesn't detect though if the label in the order by is not directly present there. 2013-05-27 19:22:59 -04:00
Mike Bayer 73404e3683 - run the whole test suite with the "debugging" ordered dict on,
find some more failures
2013-05-27 17:15:30 -04:00
Mike Bayer f9bb6c2a54 - additional oracle fixes. cx_oracle under py3k is complaining about tuples to executemany(),
so just unconditionally turn this into a list
- this one test segfaults only on py3k + cx_oracle
2013-05-27 17:06:05 -04:00
Mike Bayer 679b3036c2 - oracle py3k fix 2013-05-27 16:34:18 -04:00
Mike Bayer 638803eef1 - fix a dict while iterate mutation
- illustrate how OrderedDict can catch these, but commented out
to save function overhead
2013-05-27 13:39:24 -04:00
Mike Bayer 4276049e49 fix test_execute w c extensions 2013-05-26 20:44:34 -04:00
Mike Bayer 5e6d7faea6 clean up types.py 2013-05-26 20:24:39 -04:00
Mike Bayer 6abd0c4eac clean up some of this collection stuff 2013-05-26 20:17:22 -04:00
Mike Bayer a393ef6799 fix an errant str check 2013-05-26 20:04:54 -04:00
Mike Bayer 2be39d5342 get profile 1a back down to 5100 calls, that one was 10% greater due to this 2013-05-26 20:02:17 -04:00
Mike Bayer 2e8816c88f mssql test fixes 2013-05-26 19:49:50 -04:00
Mike Bayer 3b4168875d - zoomark tests
- rewrite all profiles, we'll review the diffs to see if anything is too far out
2013-05-26 19:47:13 -04:00
Mike Bayer 6cde27fe91 a pass where we try to squash down as many list()/keys() combinations
as possible
2013-05-26 19:06:13 -04:00
Mike Bayer 29689fa566 fix the unicode test suite 2013-05-26 18:25:43 -04:00
Mike Bayer 61c796786c do a sweep of some obvious 3kisms 2013-05-26 18:23:26 -04:00
Mike Bayer ebc03d5e63 remove this 2013-05-26 18:08:03 -04:00
Mike Bayer 38f65baf18 - oracle tests passing in py3k!! 2013-05-26 17:58:07 -04:00