Commit Graph

9134 Commits

Author SHA1 Message Date
Mike Bayer dbc8bbfba3 - allow the compilation rule that gets the formatted name
to again have the chance to veto rendering, as the naming convention
can make the decision that the name is "none" or not now.
2014-07-14 21:11:51 -04:00
Mike Bayer d2193f53c1 - Fix bug in naming convention feature where using a check
constraint convention that includes ``constraint_name`` would
then force all :class:`.Boolean` and :class:`.Enum` types to
require names as well, as these implicitly create a
constraint, even if the ultimate target backend were one that does
not require generation of the constraint such as Postgresql.
The mechanics of naming conventions for these particular
constraints has been reorganized such that the naming
determination is done at DDL compile time, rather than at
constraint/table construction time.
fixes #3067
2014-07-14 20:26:38 -04:00
Mike Bayer 6fd0bc7c62 - Fixed a regression from 0.9.5 caused by 🎫3025 where the
query used to determine "default schema" is invalid in SQL Server 2000.
For SQL Server 2000 we go back to defaulting to the "schema name"
parameter of the dialect, which is configurable but defaults
to 'dbo'. fixes #3025
2014-07-14 19:16:11 -04:00
Mike Bayer 2825730e7b - Added statement encoding to the "SET IDENTITY_INSERT"
statements which operate when an explicit INSERT is being
interjected into an IDENTITY column, to support non-ascii table
identifiers on drivers such as pyodbc + unix + py2k that don't
support unicode statements.
ref #3091 as this fix is also in that issue's patch, but is
a different issue.
2014-07-14 19:02:20 -04:00
Mike Bayer 0add251ea0 - In the SQL Server pyodbc dialect, repaired the implementation
for the ``description_encoding`` dialect parameter, which when
not explicitly set was preventing  cursor.description from
being parsed correctly in the case of result sets that
contained names in alternate encodings.  This parameter
shouldn't be needed going forward.
fixes #3091
2014-07-14 18:54:23 -04:00
Mike Bayer ec40a84d96 - Fixed a regression from 0.9.0 due to 🎫2736 where the
:meth:`.Query.select_from` method no longer set up the "from
entity" of the :class:`.Query` object correctly, so that
subsequent :meth:`.Query.filter_by` or :meth:`.Query.join`
calls would fail to check the appropriate "from" entity when
searching for attributes by string name.
fixes #3083
2014-07-14 18:49:06 -04:00
Mike Bayer 4619936417 -Fixed bug in common table expressions whereby positional bound
parameters could be expressed in the wrong final order
when CTEs were nested in certain ways.
fixes #3090
2014-07-14 18:34:32 -04:00
Mike Bayer eb4abda811 - Fixed bug where multi-valued :class:.Insert construct would fail
to check subsequent values entries beyond the first one given
for literal SQL expressions.
fixes #3069
2014-07-14 18:28:07 -04:00
Mike Bayer c6de724785 need a 1.0.0 here 2014-07-14 18:10:34 -04:00
Mike Bayer a49ec1cf77 - Added a "str()" step to the dialect_kwargs iteration for
Python version < 2.6.5, working around the
"no unicode keyword arg" bug as these args are passed along as
keyword args within some reflection processes.
fixes #3123
2014-07-14 18:09:54 -04:00
Mike Bayer 5ec6ec9cbb - add some order bys 2014-07-14 16:31:16 -04:00
Mike Bayer 897a567eb1 - ensure usedevelop is present so that C exts are in the tests 2014-07-14 11:33:46 -04:00
Mike Bayer aacf952e0b - adjust this to work on PG also 2014-07-13 23:59:12 -04:00
Mike Bayer 598e2311bf Merge branch 'pep8' 2014-07-13 20:19:25 -04:00
Brian Jarrett 28dd15081d PEP8 style fixes 2014-07-13 20:10:55 -04:00
Mike Bayer 071a183098 - Fixed bug in :class:.Enum and other :class:.SchemaType
subclasses where direct association of the type with a
:class:`.MetaData` would lead to a hang when events
(like create events) were emitted on the :class:`.MetaData`.
fixes #3124
2014-07-13 18:55:18 -04:00
Mike Bayer 6922a56140 update test runners to be module-based 2014-07-10 20:41:48 -04:00
Mike Bayer 9281e7001c OK use tox 2014-07-10 20:06:47 -04:00
Brian Jarrett 600e6bfb3f Merge branch 'master' of https://github.com/celttechie/sqlalchemy
Pulling from new fork of SQLAlchemy
2014-07-10 16:31:07 -06:00
Brian Jarrett 304e5b2a11 fixed style to conform to PEP8 2014-07-10 16:28:49 -06:00
Mike Bayer 0190ede107 - determine the root cause of the mysqlconnector issue, report
it and move on
2014-07-10 16:11:03 -04:00
Mike Bayer 6c81c4c26e - mark tests failing for mysqlconnector, oursql 2014-07-10 11:47:31 -04:00
Mike Bayer ef968470c9 imports gone bad 2014-07-10 11:36:57 -04:00
Mike Bayer e5d0fa9493 - The :meth:.TypeEngine.with_variant method will now accept a
type class as an argument which is internally converted to an
instance, using the same convention long established by other
constructs such as :class:`.Column`. fixes #3122
2014-07-10 11:26:13 -04:00
Mike Bayer 1fc440393a - fully flake8 test/aaa_profiling 2014-07-09 18:59:16 -04:00
Mike Bayer 5407ec9d38 - break up the <authors> copyright comment as part of a pass
to get all flake8 passing
2014-07-09 18:26:55 -04:00
Mike Bayer bbb81e682c - support __only_on__ and __backend__ at the same time 2014-07-09 18:12:32 -04:00
Mike Bayer 2b85e80d75 - Changed the default value of "raise_on_warnings" to False for
MySQLconnector.  This was set at True for some reason.  The "buffered"
flag unfortunately must stay at True as MySQLconnector does not allow
a cursor to be closed unless all results are fully fetched. fixes #2515
- lots of MySQL tests seemed to not be hitting all backends, so we should
be getting some mysqlconnector failures now
2014-07-09 16:04:07 -04:00
Mike Bayer 04e9a81136 - add 0.9 changelog 2014-07-09 15:51:47 -04:00
Mike Bayer 99350b159f - Fixed bug where "python setup.py test" wasn't calling into
distutils appropriately, and errors would be emitted at the end
of the test suite.
2014-07-09 15:50:17 -04:00
Mike Bayer 450453ab1a -do an autoflake8 here 2014-07-08 19:22:44 -04:00
Mike Bayer e38bb315fd - The "evaulator" for query.update()/delete() won't work with multi-table
updates, and needs to be set to `synchronize_session=False` or
`synchronize_session='fetch'`; this now raises an exception, with a
message to change the synchronize setting.  This will be only a warning
in 0.9.7.  fixes #3117
2014-07-08 19:08:42 -04:00
mike bayer 946cef1568 Merge pull request #103 from tlocke/master
pg8000 passing test/sql
2014-07-08 18:34:28 -04:00
jonathan vanasco c996b76d5b - add postgresql_regconfig argument to PG dialect for match() operator,
implements PG's to_tsquery('regconfig', 'arg') pattern. fixes #3078
2014-07-08 18:18:04 -04:00
Mike Bayer 5eefdae113 document JSONB 2014-07-07 17:59:47 -04:00
Mike Bayer c956c443f6 changelog 2014-07-07 10:42:19 -04:00
mike bayer c9dceb0dfa Merge pull request #101 from ddimmich/master
Postgres 9.4 Jsonb support
2014-07-07 10:40:03 -04:00
Tony Locke fa80b73e3c PEP8 tidy of subset of test/sql/*.py 2014-07-07 07:32:33 +01:00
Tony Locke 73d00339c4 pg8000 passing test/sql 2014-07-06 23:13:44 +01:00
mike bayer 7c29cff14d Merge pull request #100 from plaes/typos
Typo fixes
2014-07-06 17:17:59 -04:00
Mike Bayer 961ede0510 changelog, fixes #3093 2014-07-06 17:16:26 -04:00
Mike Bayer 41563b5f5a Merged in therve/bug-3093/bug/3093 (pull request #24)
Return the assigned value in MultableDict.setdefault
2014-07-06 17:12:23 -04:00
Mike Bayer f84e8bc3fa add pg8000 2014-07-06 17:00:38 -04:00
mike bayer 9c1f142e5a Merge pull request #99 from tlocke/master
pg8000 passing test/sql/test_types.py
2014-07-06 16:59:46 -04:00
Mike Bayer 50040ec776 - changelog 2014-07-06 16:55:28 -04:00
mike bayer 49368458e0 Merge pull request #98 from abbec/mssql2008-multivalues-insert
Fixed support for multivalue inserts for MS SQL 2008
2014-07-06 16:55:05 -04:00
Mike Bayer 9b03d6a0a8 - add test support for disconnect modification 2014-07-04 16:49:11 -04:00
Mike Bayer 6a7ef34361 - clarify that the pg8000 backend has no impact of any kind on
the pg8000 DBAPI's encoding behavior, fixes #3112.
2014-07-04 15:49:01 -04:00
Mike Bayer dfb5707dae - rework the entire approach to #3076. As we need to catch all exceptions
in all cases unconditionally, the number of use cases that go beyond what
dbapi_error() is expecting has gone too far for an 0.9 release.
Additionally, the number of things we'd like to track is really a lot
more than the five arguments here, and ExecutionContext is really not
suitable as totally public API for this.   So restore dbapi_error
to its old version, deprecate, and build out handle_error instead.
This is a lot more extensible and doesn't get in the way of anything
compatibility-wise.
2014-07-04 15:40:47 -04:00
Mike Bayer c60eb86a91 - Added new attributes :attr:.ExecutionContext.exception and
:attr:`.ExecutionContext.is_disconnect` which are meaningful within
the :meth:`.ConnectionEvents.dbapi_error` handler to see both the
original DBAPI error as well as whether or not it represents
a disconnect.
2014-07-03 21:49:37 -04:00