Commit Graph

10240 Commits

Author SHA1 Message Date
Mike Bayer 482a67e1c6 - Fixed bug in INSERT..FROM SELECT construct where selecting from a
UNION would wrap the union in an anonymous (e.g. unlabled) subquery.
fixes #3044
2014-05-25 14:08:41 -04:00
Mike Bayer e384347ffb - Added the `hashable=False flag to the PG :class:.HSTORE` type, which
is needed to allow the ORM to skip over trying to "hash" an ORM-mapped
HSTORE column when requesting it in a mixed column/entity list.
Patch courtesy Gunnlaugur Þór Briem.  Fixes #3053
2014-05-25 13:58:08 -04:00
Mike Bayer 95b10c4e8e - Fixed bug in subquery eager loading where a long chain of
eager loads across a polymorphic-subclass boundary in conjunction
with polymorphic loading would fail to locate the subclass-link in the
chain, erroring out with a missing property name on an
:class:`.AliasedClass`. fixes #3055
2014-05-25 13:45:32 -04:00
Mike Bayer e6cbd88fe1 - Fixed bug in SQLite join rewriting where anonymized column names
due to repeats would not correctly be rewritten in subqueries.
This would affect SELECT queries with any kind of subquery + join.
fixes #3057
2014-05-25 11:32:07 -04:00
Chris Withers 551c730f3f more docs for using psycopg2 range types, specifically instantiating models with them 2014-05-25 15:46:31 +01:00
Mike Bayer 8a4f75e972 - repair oracle compilation for new limit/offset system. 2014-05-24 21:45:15 -04:00
Mike Bayer f9adac0a34 - fix some identity map accessors
- fix a bad comparison in MySQL w/ limit/offset thing
2014-05-24 17:02:47 -04:00
Mike Bayer e41af7fcfd - reset callcounts 2014-05-24 16:49:25 -04:00
Mike Bayer 4d4abd2f76 - revert the memoized committed_state / callables changes as they appear to add to lazy loading.
not really clear which approach is better in the long run.
2014-05-24 16:28:23 -04:00
Mike Bayer b0b6f4295e - indicate all 0.9.5 issues as from 1.0.0 backported to 0.9.5 2014-05-24 15:15:00 -04:00
Mike Bayer 6126caec44 - fix typos in test
- restore __len__ to identity map
2014-05-24 14:54:07 -04:00
Mike Bayer d1705a46fe - Fixed bug where the :meth:.Operators.__and__,
:meth:`.Operators.__or__` and :meth:`.Operators.__invert__`
operator overload methods could not be overridden within a custom
:class:`.TypeEngine.Comparator` implementation.
fixes #3012
2014-05-24 14:35:28 -04:00
Mike Bayer 931685bac9 - hyperlink all the column operators listed in the ORM tutorial common filter operators section
- add language to MATCH explicitly stating this operator varies by backend and is not available
on SQLite, as the tutorial defaults to SQLite to start with, fix #3059
- on the actual match() documentation fix this up to be more accurate, list some example renderings
for different backends.  again mention SQLite not supported
2014-05-24 09:54:20 -04:00
Mike Bayer bc91884a41 - document the compiler_kwargs accessor
- add new FAQ for rendering SQL as a string
2014-05-23 14:26:22 -04:00
Mike Bayer 9c394ec1ae call this 1.0 2014-05-23 12:28:28 -04:00
Mike Bayer 0436538314 - changelog for #3034, at this point we can mark fix #3034 2014-05-23 11:34:14 -04:00
Mike Bayer 48c6eb3f9f Merge branch 'ticket_3034' 2014-05-23 11:20:27 -04:00
Mike Bayer 0932e16cb7 - switch master to be 1.0 2014-05-23 11:18:46 -04:00
Mike Bayer 72bb4e9eb0 - mark translate_row, create_instance, populate_instance, append_result as legacy 2014-05-23 10:35:59 -04:00
Tony Locke f8f29d0a10 PEP 8 tidy of pg8000 dialect and postgresql/test_dialect.py 2014-05-22 20:36:27 +01:00
Tony Locke 66e0a7771f Autocommit isolation level for postgresql+pg8000
As with postgresql+psycopg2,
execution_options(isolation_level='AUTOCOMMIT') now works for the
postgresql+pg8000 dialect.

Also enabled the autocommit test in test_dialect.py for pg8000.
2014-05-22 20:13:10 +01:00
Tony Locke 32bae567fe Updated doc string for postgresql+pg8000 dialect 2014-05-21 19:17:41 +01:00
Tony Locke 996de05ee9 Add postgresql+pg8000 to floats_to_four_decimals
pg8000 uses binary transfer of floats and so accuracy is lost for floats
that can't be represented exactly in binary.
2014-05-21 19:17:41 +01:00
Tony Locke fc4e113cf1 pg8000 now passes test_extract() test 2014-05-21 19:17:41 +01:00
Tony Locke 30af311628 Two tests now work for pg800 in EnumTest
The two tests, test_create_table() and test_unicode_labels() previously
failed under pg8000, but now they pass, so this commit opens them up.
2014-05-21 19:17:41 +01:00
Tony Locke e36e228100 pg8000 no longer truncates decimals
We can now update the requirements to remove the special case of pg8000
truncating decimals.
2014-05-21 19:17:41 +01:00
Tony Locke dd9b7357fd pg8000.dbapi is now just pg8000 2014-05-21 19:17:41 +01:00
Mike Bayer 665eced208 inlining 2014-05-19 17:43:54 -04:00
Mike Bayer fd57a41163 Revert "remove events nobody uses...?"
This reverts commit 72a09d9e5c.
2014-05-19 17:28:14 -04:00
Mike Bayer 72a09d9e5c remove events nobody uses...? 2014-05-19 16:58:22 -04:00
Mike Bayer 474168bd88 - some inlining, speed up identity map 2014-05-19 16:57:14 -04:00
Mike Bayer 81959af6d3 - more tests, including backend tests
- implement for SQL server, use window functions when simple limit/offset not available
2014-05-16 15:33:39 -04:00
Mike Bayer 8414c9f00b Merge branch 'issue_3034' of https://bitbucket.org/dobesv/sqlalchemy/branch/issue_3034 into ticket_3034 2014-05-16 14:45:40 -04:00
Mike Bayer 460465a874 - changelog for #2785
- refactor tests a bit
fixes #2785
2014-05-16 13:09:50 -04:00
Mike Bayer acb13668c2 Merge branch 'zero_indexes-param-for-postgresql-ARRAY-type' of https://bitbucket.org/LevonXXL/sqlalchemy/overview into t 2014-05-16 13:01:19 -04:00
Mike Bayer 0f925ad430 typo 2014-05-16 12:59:47 -04:00
Mike Bayer 6212d59bdc - add lots more to the profiling section
- add the query profiling recipe, fix it with a stack as we now nest those
calls occasionally
- tabs to spaces
2014-05-16 11:53:12 -04:00
Mike Bayer fbf6175fc1 Merge branch 'master' into rel_0_9 2014-05-15 17:09:41 -04:00
Mike Bayer 35855a47ea Merged in gunnlaugur/sqlalchemy (pull request #19)
Add note on PostgreSQL config for test runs
2014-05-15 17:09:25 -04:00
Gunnlaugur Þór Briem 5c1dd21295 Add note on PostgreSQL config for test runs
Several tests on PostgreSQL depend on English-language text search
config being the default in the test DB. This adds a note about that.
2014-05-15 21:02:59 +00:00
Mike Bayer 795a341e28 Merge branch 'master' into rel_0_9 2014-05-14 10:03:40 -04:00
Mike Bayer aa12fdb40e - Fixed bug in mutable extension where :class:.MutableDict did not
report change events for the ``setdefault()`` dictionary operation.
fixes #3051
2014-05-14 10:03:24 -04:00
Alexey Terentev 57b6da9d40 zero_indexes-param-for-postgresql-ARRAY-type 2014-05-13 15:48:29 +04:00
Mike Bayer 92ab5a8f5b Merge branch 'master' of bitbucket.org:zzzeek/sqlalchemy 2014-05-12 17:18:56 -04:00
Mike Bayer 3e770f6363 Merge branch 'master' into rel_0_9 2014-05-12 17:18:12 -04:00
Mike Bayer 976b4c97df - add a new FAQ section "performance", put the profiling article there,
move the insert rows article there as well
2014-05-12 17:17:41 -04:00
Wieland Hoffmann 045861dbe2 Posgtresql -> PostgreSQL 2014-05-12 17:17:29 -04:00
Mike Bayer c7857ec079 Merged in mineo/sqlalchemy/mineo/posgtresql-postgresql-1399232068499 (pull request #17)
Posgtresql -> PostgreSQL
2014-05-12 11:52:26 -04:00
Mike Bayer 46763173fc changelog for pullreq bitbucket:15 2014-05-12 11:39:49 -04:00
Mike Bayer 0a08177b59 Merged in WSMcG/sqlalchemy (pull request #15)
Added optional '=' to MySQL KEY_BLOCK_SIZE regex
2014-05-12 11:38:24 -04:00