]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
11 years ago- add some docs for the instancestate linkage to the inspection system
Mike Bayer [Fri, 4 Apr 2014 21:33:35 +0000 (17:33 -0400)] 
- add some docs for the instancestate linkage to the inspection system

11 years ago- reverse order of columns in sample CTEs as this is a UNION and the cols need to...
Mike Bayer [Wed, 2 Apr 2014 22:11:11 +0000 (18:11 -0400)] 
- reverse order of columns in sample CTEs as this is a UNION and the cols need to line up
- alter this in the unit tests as well as these queries were just copied from the tests
- remove the included_parts.join(parts) from the core CTE doc (also just copied from the
test, where we want to make sure joins don't get screwed up with the CTE) as it doesn't
contribute to the query itself
fixes #3014

11 years ago0.8.6 rel_0_8_6
Mike Bayer [Fri, 28 Mar 2014 23:40:21 +0000 (19:40 -0400)] 
0.8.6

11 years agothis doesnt need sane multi row now...
Mike Bayer [Fri, 28 Mar 2014 23:17:04 +0000 (19:17 -0400)] 
this doesnt need sane multi row now...

11 years ago- revert part of c01558ae7f4a for now as we also test that a DELETE of two rows
Mike Bayer [Fri, 28 Mar 2014 21:42:55 +0000 (17:42 -0400)] 
- revert part of c01558ae7f4a for now as we also test that a DELETE of two rows
where one is to be deleted from ON DELETE CASCADE succeeds; the check here makes that fail.
We will need to add an option to enable/disable this check per mapping, will likely
do this in next version

11 years agorevert inadvertent pdb
Mike Bayer [Fri, 28 Mar 2014 20:48:05 +0000 (16:48 -0400)] 
revert inadvertent pdb

11 years ago- the rewording of orderinglist docs got committed by accident, finish it up
Mike Bayer [Fri, 28 Mar 2014 20:47:12 +0000 (16:47 -0400)] 
- the rewording of orderinglist docs got committed by accident, finish it up

11 years ago- Fixed ORM bug where changing the primary key of an object, then marking
Mike Bayer [Fri, 28 Mar 2014 20:32:11 +0000 (16:32 -0400)] 
- Fixed ORM bug where changing the primary key of an object, then marking
it for DELETE would fail to target the correct row for DELETE.
Then to compound matters, basic "number of rows matched" checks were
not being performed.  Both issues are fixed, however note that the
"rows matched" check requires so-called "sane multi-row count"
functionality; the DBAPI's executemany() method must count up the
rows matched by individual statements and SQLAlchemy's dialect must
mark this feature as supported, currently applies to some mysql dialects,
psycopg2, sqlite only. fixes #3006
- Enabled "sane multi-row count" checking for the psycopg2 DBAPI, as
this seems to be supported as of psycopg2 2.0.9.

Conflicts:
test/orm/test_naturalpks.py
test/requirements.py

11 years agoAdded missing text_type requirement to TextTest
Stefan Reich [Wed, 26 Mar 2014 15:04:23 +0000 (16:04 +0100)] 
Added missing text_type requirement to TextTest

11 years ago- Fixed regression caused by release 0.8.5 / 0.9.3's compatibility
Mike Bayer [Tue, 25 Mar 2014 16:26:42 +0000 (12:26 -0400)] 
- Fixed regression caused by release 0.8.5 / 0.9.3's compatibility
enhancements where index reflection on Postgresql versions specific
to only the 8.1, 8.2 series again
broke, surrounding the ever problematic int2vector type.  While
int2vector supports array operations as of 8.1, apparently it only
supports CAST to a varchar as of 8.3.
fix #3000

11 years ago- Fixed regression from 0.8.3 as a result of :ticket:`2818`
Mike Bayer [Sat, 22 Mar 2014 23:55:00 +0000 (19:55 -0400)] 
- Fixed regression from 0.8.3 as a result of :ticket:`2818`
where :meth:`.Query.exists` wouldn't work on a query that only
had a :meth:`.Query.select_from` entry but no other entities.
re: #2818 fixes #2995

11 years ago- Adjusted ``setup.py`` file to support the possible future
Mike Bayer [Sat, 22 Mar 2014 21:31:50 +0000 (17:31 -0400)] 
- Adjusted ``setup.py`` file to support the possible future
removal of the ``setuptools.Feature`` extension from setuptools.
If this keyword isn't present, the setup will still succeed
with setuptools rather than falling back to distutils.  C extension
building can be disabled now also by setting the
DISABLE_SQLALCHEMY_CEXT environment variable.  This variable works
whether or not setuptools is even available. fixes #2986
- using platform.python_implementation() in setup.py to detect CPython.
I've tested this function on OSX and linux on Python 2.6 through 3.4,
including 3.1, 3.2, 3.3.
Unfortunately, on OSX + 3.2 only, it seems to segfault.  I've tried
installing 3.2.5 from the python.org .dmg, building it from source,
and also blew away the whole 3.2 directory, something seems to be wrong
with the "platform" module on that platform only, and there's also no
issue on bugs.python.org; however, I'm going with
it anyway. If someone is using 3.2 on OSX they really should be upgrading.
- adjusted the logic for platform_implementation(), apparently "platform"
is there in python 2.5, so we are doing a version check.
Conflicts:
doc/build/intro.rst
setup.py

11 years ago- reword the paragraph which talks about web framework integration for sessions:
Mike Bayer [Fri, 21 Mar 2014 02:46:23 +0000 (22:46 -0400)] 
- reword the paragraph which talks about web framework integration for sessions:

1. fix the typo in the paragraph, fixes #2998
2. as zope-sqlalchemy only provides transaction integration and not session scoping,
dial back the language here as people are probably using scoped_session with pyramid anyway
3. as I'm going to again start recommending people don't cling to flask-sqlalchemy so hard,
take out the word "strongly" from the recommendation.
4. as flask is the only framework I can think of that actually has an explicit SQLAlchemy
layer that handles setting up scoped_session, take out the word "most", now it's "some web frameworks"
(by which it means "only flask...and flask-sqlalchemy is probably not worth using anyway")

11 years agofix assertion
Mike Bayer [Wed, 19 Mar 2014 15:47:58 +0000 (11:47 -0400)] 
fix assertion

11 years ago- Fixed bug in mutable extension as well as
Mike Bayer [Wed, 19 Mar 2014 15:09:38 +0000 (11:09 -0400)] 
- Fixed bug in mutable extension as well as
:func:`.attributes.flag_modified` where the change event would not be
propagated if the attribute had been reassigned to itself.
fixes #2997

Conflicts:
lib/sqlalchemy/orm/state.py
test/orm/test_attributes.py

11 years agoAdd is_ and isnot filter to the tutorial
Charles-Axel Dein [Sat, 15 Mar 2014 00:40:04 +0000 (17:40 -0700)] 
Add is_ and isnot filter to the tutorial

Most linter complain when comparing with None.

11 years ago- Improved an error message which would occur if a query() were made
Mike Bayer [Mon, 17 Mar 2014 20:25:51 +0000 (16:25 -0400)] 
- Improved an error message which would occur if a query() were made
against a non-selectable, such as a :func:`.literal_column`, and then
an attempt was made to use :meth:`.Query.join` such that the "left"
side would be determined as ``None`` and then fail.  This condition
is now detected explicitly.

11 years agotypo
Mike Bayer [Sun, 16 Mar 2014 18:51:06 +0000 (14:51 -0400)] 
typo

11 years ago- fairly epic rework of the cascade documentation
Mike Bayer [Sat, 15 Mar 2014 19:44:29 +0000 (15:44 -0400)] 
- fairly epic rework of the cascade documentation

Conflicts:
lib/sqlalchemy/orm/relationships.py

11 years agoMerge pull request #79 from nibrahim/master
mike bayer [Tue, 11 Mar 2014 15:30:33 +0000 (11:30 -0400)] 
Merge pull request #79 from nibrahim/master

Fixes argument number in docs

11 years agomerge new links to rel_0_8
Mike Bayer [Sun, 9 Mar 2014 23:14:21 +0000 (19:14 -0400)] 
merge new links to rel_0_8

11 years agocut out the BS as far as MySQLdb urls, put the one url everyone should be using
Mike Bayer [Tue, 4 Mar 2014 17:51:23 +0000 (12:51 -0500)] 
cut out the BS as far as MySQLdb urls, put the one url everyone should be using

11 years ago- Fixed bug in :func:`.tuple_` construct where the "type" of essentially
Mike Bayer [Fri, 28 Feb 2014 00:54:49 +0000 (19:54 -0500)] 
- Fixed bug in :func:`.tuple_` construct where the "type" of essentially
the first SQL expression would be applied as the "comparison type"
to a compared tuple value; this has the effect in some cases of an
inappropriate "type coersion" occurring, such as when a tuple that
has a mix of String and Binary values improperly coerces target
values to Binary even though that's not what they are on the left
side.  :func:`.tuple_` now expects heterogeneous types within its
list of values.
fixes #2977

Conflicts:
lib/sqlalchemy/sql/elements.py
test/sql/test_operators.py

11 years ago0.8.6
Mike Bayer [Thu, 27 Feb 2014 00:27:57 +0000 (19:27 -0500)] 
0.8.6

11 years ago- Removed stale names from ``sqlalchemy.orm.interfaces.__all__`` and
Mike Bayer [Thu, 27 Feb 2014 00:27:22 +0000 (19:27 -0500)] 
- Removed stale names from ``sqlalchemy.orm.interfaces.__all__`` and
refreshed with current names, so that an ``import *`` from this
module again works.
fixes #2975

11 years ago0.8.5 rel_0_8_5
Mike Bayer [Thu, 20 Feb 2014 03:59:11 +0000 (22:59 -0500)] 
0.8.5

11 years ago2014
Mike Bayer [Thu, 20 Feb 2014 03:56:06 +0000 (22:56 -0500)] 
2014

11 years ago- isolate this failure as only on 0.8, only in py3.3, just comment it out,
Mike Bayer [Thu, 20 Feb 2014 01:33:31 +0000 (20:33 -0500)] 
- isolate this failure as only on 0.8, only in py3.3, just comment it out,
not really worth tracking down

11 years ago- Added an additional message to psycopg2 disconnect detection,
Mike Bayer [Thu, 20 Feb 2014 00:22:17 +0000 (19:22 -0500)] 
- Added an additional message to psycopg2 disconnect detection,
"could not send data to server", which complements the existing
"could not receive data from server" and has been observed by users,
fixes #2936

11 years ago- add a topological rule here to place PARTITIONS after PARTITION_BY,
Mike Bayer [Wed, 19 Feb 2014 22:00:37 +0000 (17:00 -0500)] 
- add a topological rule here to place PARTITIONS after PARTITION_BY,
for output consistency within the tests as well as in practice

11 years agorestore check ahead of the lock to avoid locking when not needed
Mike Bayer [Wed, 19 Feb 2014 21:12:36 +0000 (16:12 -0500)] 
restore check ahead of the lock to avoid locking when not needed

11 years ago- add improved support here for string parsing of predicates, backport
Mike Bayer [Wed, 19 Feb 2014 21:07:01 +0000 (16:07 -0500)] 
- add improved support here for string parsing of predicates, backport
from 0.9

11 years ago- Support has been improved for Postgresql reflection behavior on very old
Mike Bayer [Tue, 18 Feb 2014 23:35:23 +0000 (18:35 -0500)] 
- Support has been improved for Postgresql reflection behavior on very old
(pre 8.1) versions of Postgresql, and potentially other PG engines
such as Redshift (assuming Redshift reports the version as < 8.1).
The query for "indexes" as well as "primary keys" relies upon inspecting
a so-called "int2vector" datatype, which refuses to coerce to an array
prior to 8.1 causing failures regarding the "ANY()" operator used
in the query.  Extensive googling has located the very hacky, but
recommended-by-PG-core-developer query to use when PG version < 8.1
is in use, so index and primary key constraint reflection now work
on these versions.

Conflicts:
doc/build/changelog/changelog_09.rst
test/dialect/postgresql/test_types.py

11 years ago- Added new MySQL-specific :class:`.mysql.DATETIME` which includes
Mike Bayer [Wed, 19 Feb 2014 20:49:37 +0000 (15:49 -0500)] 
- Added new MySQL-specific :class:`.mysql.DATETIME` which includes
fractional seconds support; also added fractional seconds support
to :class:`.mysql.TIMESTAMP`.  DBAPI support is limited, though
fractional seconds are known to be supported by MySQL Connector/Python.
Patch courtesy Geert JM Vanderkelen. #2941

11 years agochangelog for pullreq 12
Mike Bayer [Wed, 19 Feb 2014 20:26:51 +0000 (15:26 -0500)] 
changelog for pullreq 12

11 years agoFixes MySQL dialect partitioning
Marcus McCurdy [Fri, 14 Feb 2014 18:23:51 +0000 (13:23 -0500)] 
Fixes MySQL dialect partitioning

11 years ago- Fixed bug where calling :meth:`.Insert.values` with an empty list
Mike Bayer [Wed, 19 Feb 2014 20:18:22 +0000 (15:18 -0500)] 
- Fixed bug where calling :meth:`.Insert.values` with an empty list
or tuple would raise an IndexError.   It now produces an empty
insert construct as would be the case with an empty dictionary.

Conflicts:
lib/sqlalchemy/sql/dml.py

11 years ago- Fixed a critical regression caused by :ticket:`2880` where the newly
Mike Bayer [Wed, 19 Feb 2014 15:48:32 +0000 (10:48 -0500)] 
- Fixed a critical regression caused by :ticket:`2880` where the newly
concurrent ability to return connections from the pool means that the
"first_connect" event is now no longer synchronized either, thus leading
to dialect mis-configurations under even minimal concurrency situations.

Conflicts:
lib/sqlalchemy/event/attr.py

11 years ago- update mysql connector python link, #2938
Mike Bayer [Wed, 19 Feb 2014 01:49:33 +0000 (20:49 -0500)] 
- update mysql connector python link, #2938

11 years ago- changelog for pullreq github:72.
Mike Bayer [Sun, 16 Feb 2014 23:28:35 +0000 (18:28 -0500)] 
- changelog for pullreq github:72.

11 years agoMerge branch 'fix_sqlite_uc_reflection' of https://github.com/malor/sqlalchemy into t
Mike Bayer [Sun, 16 Feb 2014 23:19:55 +0000 (18:19 -0500)] 
Merge branch 'fix_sqlite_uc_reflection' of https://github.com/malor/sqlalchemy into t

11 years ago- extensive cross-linking of relationship options with their documentation sections
Mike Bayer [Sun, 16 Feb 2014 19:28:56 +0000 (14:28 -0500)] 
- extensive cross-linking of relationship options with their documentation sections
- convert all paramter references in relationship documentation to :paramref:

Conflicts:
doc/build/orm/relationships.rst
lib/sqlalchemy/ext/declarative/__init__.py
lib/sqlalchemy/orm/relationships.py

11 years ago- add cross-linking for passive_deletes / passive_updates
Mike Bayer [Sun, 16 Feb 2014 17:43:46 +0000 (12:43 -0500)] 
- add cross-linking for passive_deletes / passive_updates

11 years ago- add documentation regarding native hstore flag, psycopg2
Mike Bayer [Sun, 16 Feb 2014 17:03:00 +0000 (12:03 -0500)] 
- add documentation regarding native hstore flag, psycopg2
hstore extension. #2959

11 years ago- expand docs on MySQL table arguments beyond just storage engines
Mike Bayer [Sun, 16 Feb 2014 01:51:38 +0000 (20:51 -0500)] 
- expand docs on MySQL table arguments beyond just storage engines
- clarify section on "foreign key reflection" and group this in a
section that refers to foreign keys.

11 years ago- Revised this very old issue where the Postgresql "get primary key"
Mike Bayer [Fri, 14 Feb 2014 19:32:00 +0000 (14:32 -0500)] 
- Revised this very old issue where the Postgresql "get primary key"
reflection query were updated to take into account primary key constraints
that were renamed; the newer query fails on very old versions of
Postgresql such as version 7, so the old query is restored in those cases
when server_version_info < (8, 0) is detected. #2291

11 years agoFix unique constraints reflection in SQLite
Roman Podoliaka [Fri, 14 Feb 2014 11:04:57 +0000 (13:04 +0200)] 
Fix unique constraints reflection in SQLite

Reflection of unique constraints didn't work properly, if reserved
identifiers had been used as column names. In this case column names
would be put in double quotes (e.g. the name of column asc would be
returned as "asc").

This issue is only present in 0.8.4 and not in 0.9.x.

11 years ago- Fixed bug where :meth:`.in_()` would go into an endless loop if
Mike Bayer [Thu, 13 Feb 2014 20:19:12 +0000 (15:19 -0500)] 
- Fixed bug where :meth:`.in_()` would go into an endless loop if
erroneously passed a column expression whose comparator included
the ``__getitem__()`` method, such as a column that uses the
:class:`.postgresql.ARRAY` type. [ticket:2957]

11 years agothis example doesn't work, we don't really have a solution for this as far as automat...
Mike Bayer [Mon, 10 Feb 2014 22:43:37 +0000 (17:43 -0500)] 
this example doesn't work, we don't really have a solution for this as far as automating this pattern

11 years ago- dont need these extra conditions from the previous test
Mike Bayer [Mon, 10 Feb 2014 21:37:32 +0000 (16:37 -0500)] 
- dont need these extra conditions from the previous test

11 years ago- Fixed bug where :meth:`.Query.get` would fail to consistently
Mike Bayer [Mon, 10 Feb 2014 21:33:48 +0000 (16:33 -0500)] 
- Fixed bug where :meth:`.Query.get` would fail to consistently
raise the :class:`.InvalidRequestError` that invokes when called
on a query with existing criterion, when the given identity is
already present in the identity map. [ticket:2951]

11 years ago- this seems to be the best string for pymysql
Mike Bayer [Mon, 3 Feb 2014 17:11:23 +0000 (12:11 -0500)] 
- this seems to be the best string for pymysql

11 years ago- Fixed bug which prevented MySQLdb-based dialects (e.g.
Mike Bayer [Mon, 3 Feb 2014 17:04:51 +0000 (12:04 -0500)] 
- Fixed bug which prevented MySQLdb-based dialects (e.g.
pymysql) from working in Py3K, where a check for "connection
charset" would fail due to Py3K's more strict value comparison
rules.  The call in question  wasn't taking the database
version into account in any case as the server version was
still None at that point, so the method overall has been
simplified to rely upon connection.character_set_name().
[ticket:2933]

11 years ago- add a few missing methods to the cymysql dialect
Mike Bayer [Sun, 2 Feb 2014 23:16:17 +0000 (18:16 -0500)] 
- add a few missing methods to the cymysql dialect

11 years ago- don't duplicate docs for Pool within QueuePool
Mike Bayer [Sat, 1 Feb 2014 04:13:13 +0000 (23:13 -0500)] 
- don't duplicate docs for Pool within QueuePool
- add huge warning regarding how use_threadlocal probably not what you want

11 years agochangelog
Mike Bayer [Fri, 31 Jan 2014 22:31:20 +0000 (17:31 -0500)] 
changelog

11 years agono Binary here if we are running a test with no DBAPI
Mike Bayer [Fri, 31 Jan 2014 22:29:19 +0000 (17:29 -0500)] 
no Binary here if we are running a test with no DBAPI

11 years agoMerge branch 'fix-convenience-import' of github.com:witsch/sqlalchemy into t
Mike Bayer [Fri, 31 Jan 2014 22:27:55 +0000 (17:27 -0500)] 
Merge branch 'fix-convenience-import' of github.com:witsch/sqlalchemy into t

11 years ago- add a test for pullreq github:63
Mike Bayer [Fri, 31 Jan 2014 22:27:35 +0000 (17:27 -0500)] 
- add a test for pullreq github:63

11 years agoexpose `binary_type` in `util` module
Andreas Zeidler [Fri, 31 Jan 2014 16:31:27 +0000 (17:31 +0100)] 
expose `binary_type` in `util` module

it is used in `sql/compiler.py(849)render_literal_value()`

11 years ago- add a test for [ticket:2927], which is an 0.9 issue but only because 0.8
Mike Bayer [Wed, 29 Jan 2014 22:09:50 +0000 (17:09 -0500)] 
- add a test for [ticket:2927], which is an 0.9 issue but only because 0.8
isn't annotating correctly

11 years ago- repair the fixture/test here to make sure state isn't left over causing other tests...
Mike Bayer [Mon, 27 Jan 2014 18:34:33 +0000 (13:34 -0500)] 
- repair the fixture/test here to make sure state isn't left over causing other tests to fail

11 years agodocs
Mike Bayer [Mon, 27 Jan 2014 01:01:57 +0000 (20:01 -0500)] 
docs

11 years agoupdates
Mike Bayer [Sun, 26 Jan 2014 06:04:46 +0000 (01:04 -0500)] 
updates

11 years agotweak text
Mike Bayer [Sat, 25 Jan 2014 21:55:27 +0000 (16:55 -0500)] 
tweak text

11 years agoseealsos in the tutorial
Mike Bayer [Sat, 25 Jan 2014 21:37:30 +0000 (16:37 -0500)] 
seealsos in the tutorial

Conflicts:
lib/sqlalchemy/sql/selectable.py

11 years agoimports
Mike Bayer [Sat, 25 Jan 2014 21:37:49 +0000 (16:37 -0500)] 
imports

11 years agocase
Mike Bayer [Sat, 25 Jan 2014 21:20:54 +0000 (16:20 -0500)] 
case

11 years ago- start building out very comprehensive docstrings for core functions
Mike Bayer [Sat, 25 Jan 2014 20:36:09 +0000 (15:36 -0500)] 
- start building out very comprehensive docstrings for core functions

11 years agodocuemnt join
Mike Bayer [Sat, 25 Jan 2014 03:51:31 +0000 (22:51 -0500)] 
docuemnt join

11 years ago- doc updates, include links to create_engine from tutorials, cleanup
Mike Bayer [Fri, 24 Jan 2014 00:38:46 +0000 (19:38 -0500)] 
- doc updates, include links to create_engine from tutorials, cleanup
and modernize the engines chapter a bit

Conflicts:
doc/build/changelog/changelog_09.rst
doc/build/orm/tutorial.rst

11 years ago- add tests for [ticket:2918], confirm this is an 0.9 regression
Mike Bayer [Thu, 23 Jan 2014 19:30:34 +0000 (14:30 -0500)] 
- add tests for [ticket:2918], confirm this is an 0.9 regression

11 years agoRemove uneeded import from code example
Wichert Akkerman [Mon, 20 Jan 2014 09:59:20 +0000 (10:59 +0100)] 
Remove uneeded import from code example

This had me reread the code twice to see if I missed why the import was
present.

11 years agofix typo
Mike Bayer [Sun, 19 Jan 2014 22:51:21 +0000 (17:51 -0500)] 
fix typo

11 years agoFix a typo in the relationship docs
Wichert Akkerman [Thu, 16 Jan 2014 10:23:05 +0000 (11:23 +0100)] 
Fix a typo in the relationship docs

The text refers to ``boston_addresses``, while the code sample uses
``addresses``.

11 years agoattic
Mike Bayer [Sun, 19 Jan 2014 01:58:46 +0000 (20:58 -0500)] 
attic

11 years agoakiban-> foundationdb
Mike Bayer [Sun, 19 Jan 2014 01:56:56 +0000 (20:56 -0500)] 
akiban-> foundationdb

Conflicts:
doc/build/dialects/index.rst

11 years ago- changelog + test for pullreq github 58
Mike Bayer [Wed, 15 Jan 2014 01:22:11 +0000 (20:22 -0500)] 
- changelog + test for pullreq github 58

11 years agoFix TypeError for class_mapper called w/ iterable
Kyle Stark [Mon, 13 Jan 2014 16:52:31 +0000 (08:52 -0800)] 
Fix TypeError for class_mapper called w/ iterable

When the class_ passed is not a mapped class but is actually an iterable, the string formatting operation fails with a TypeError, and the expected ArgumentError is not raised. Calling code which is using reflection and expects this error will fail (e.g. the sadisplay module).
Conflicts:
lib/sqlalchemy/orm/base.py

11 years agopyo
Mike Bayer [Sat, 11 Jan 2014 18:15:23 +0000 (13:15 -0500)] 
pyo

11 years ago- add paramlinks and external changelog ext to 0.8
Mike Bayer [Mon, 30 Dec 2013 17:23:05 +0000 (12:23 -0500)] 
- add paramlinks and external changelog ext to 0.8

11 years ago- support addition of fails_if()/only_on(), just wraps the decorators
Mike Bayer [Thu, 2 Jan 2014 19:23:14 +0000 (14:23 -0500)] 
- support addition of fails_if()/only_on(), just wraps the decorators
- update a few exclusions to support current pymssql.  passes all of test_suite and dialect/mssql

11 years ago- apply a similar fix for floats to mssql+pyodbc as we did to firebird
Mike Bayer [Sat, 28 Dec 2013 22:50:19 +0000 (17:50 -0500)] 
- apply a similar fix for floats to mssql+pyodbc as we did to firebird
- wrangle through osx+pyodbc+freetds to get at least test_suite to pass again
with mssql+pyodbc. invovled adding some silly requirements

11 years ago- fix the insert from select test to use a non-autoinc table
Mike Bayer [Sat, 28 Dec 2013 21:37:22 +0000 (16:37 -0500)] 
- fix the insert from select test to use a non-autoinc table

11 years agosession docs: Change `object` to `someobject`
Ben Alpert [Sat, 28 Dec 2013 06:11:23 +0000 (23:11 -0700)] 
session docs: Change `object` to `someobject`

This makes the code block more consistent with the preceding one and also prevents the variable from being colored as a builtin (which `object` is) during syntax highlighting.

11 years ago- actually check the list of views!
Mike Bayer [Fri, 27 Dec 2013 21:37:57 +0000 (16:37 -0500)] 
- actually check the list of views!

11 years agofix 2.5-ism
Mike Bayer [Fri, 27 Dec 2013 21:19:54 +0000 (16:19 -0500)] 
fix 2.5-ism

11 years agotest hanging on 0.8, suspecting the test framework. this feature is tested on 0.9...
Mike Bayer [Fri, 27 Dec 2013 18:47:31 +0000 (13:47 -0500)] 
test hanging on 0.8, suspecting the test framework. this feature is tested on 0.9 successfully

11 years ago- add an exclusion for "floats to four decimals", backported from 0.9 and applies to
Mike Bayer [Fri, 27 Dec 2013 18:45:07 +0000 (13:45 -0500)] 
- add an exclusion for "floats to four decimals", backported from 0.9 and applies to
firebird

11 years ago- The firebird dialect will quote identifiers which begin with an
Mike Bayer [Fri, 27 Dec 2013 18:40:27 +0000 (13:40 -0500)] 
- The firebird dialect will quote identifiers which begin with an
underscore.  Courtesy Treeve Jelbert. [ticket:2897]

11 years ago- add a test which creates tables and views at the same time, then tests that the...
Mike Bayer [Fri, 27 Dec 2013 18:28:18 +0000 (13:28 -0500)] 
- add a test which creates tables and views at the same time, then tests that the lists
of each can be reflected independently.  Testing [ticket:2898] at the moment.

11 years ago- Fixed bug in Firebird index reflection where the columns within the
Mike Bayer [Fri, 27 Dec 2013 18:20:58 +0000 (13:20 -0500)] 
- Fixed bug in Firebird index reflection where the columns within the
index were not sorted correctly; they are now sorted
in order of RDB$FIELD_POSITION.

11 years ago- The "asdecimal" flag used with the :class:`.Float` type will now
Mike Bayer [Fri, 27 Dec 2013 18:16:48 +0000 (13:16 -0500)] 
- The "asdecimal" flag used with the :class:`.Float` type will now
work with Firebird dialects; previously the decimal conversion was
not occurring.
- scale back some firebird FP numeric tests

Conflicts:
test/requirements.py

11 years ago- repair some suite tests for firebird
Mike Bayer [Fri, 27 Dec 2013 18:05:32 +0000 (13:05 -0500)] 
- repair some suite tests for firebird

11 years agochangelog, will merge to 0.8
Mike Bayer [Fri, 27 Dec 2013 16:13:41 +0000 (11:13 -0500)] 
changelog, will merge to 0.8

11 years agoRemove terminated connections from the pool.
John Anderson [Mon, 16 Dec 2013 20:50:10 +0000 (12:50 -0800)] 
Remove terminated connections from the pool.

In pymssql, if you terminate a long running query manually
it will give you a connection reset by peer message, but this
connection remains in the pool and will be re-used.

11 years ago- Fixed issue where a primary key column that has a Sequence on it,
Mike Bayer [Fri, 20 Dec 2013 15:26:09 +0000 (10:26 -0500)] 
- Fixed issue where a primary key column that has a Sequence on it,
yet the column is not the "auto increment" column, either because
it has a foreign key constraint or ``autoincrement=False`` set,
would attempt to fire the Sequence on INSERT for backends that don't
support sequences, when presented with an INSERT missing the primary
key value.  This would take place on non-sequence backends like
SQLite, MySQL. [ticket:2896]

11 years ago- Fixed bug with :meth:`.Insert.from_select` method where the order
Mike Bayer [Thu, 19 Dec 2013 21:02:14 +0000 (16:02 -0500)] 
- Fixed bug with :meth:`.Insert.from_select` method where the order
of the given names would not be taken into account when generating
the INSERT statement, thus producing a mismatch versus the column
names in the given SELECT statement.  Also noted that
:meth:`.Insert.from_select` implies that Python-side insert defaults
cannot be used, since the statement has no VALUES clause. [ticket:2895]

11 years agoautoincrement here
Mike Bayer [Tue, 17 Dec 2013 21:28:43 +0000 (16:28 -0500)] 
autoincrement here

11 years ago- for [ticket:2651], leaving CheckConstraint alone, preferring to keep
Mike Bayer [Tue, 17 Dec 2013 00:32:10 +0000 (19:32 -0500)] 
- for [ticket:2651], leaving CheckConstraint alone, preferring to keep
backwards compatibility.  A note about backslashing escapes is added.
Because the Text() construct now supports bind params better, the example
given in the code raises an exception now, so that should cover us.
The exception itself has been enhanced to include the key name of the
bound param.  We're backporting this to 0.8 but 0.8 doesn't have the
text->bind behavior that raises.

Conflicts:
lib/sqlalchemy/sql/schema.py