]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
12 years agotweak the timings here to maximize chance of test success
Mike Bayer [Sat, 29 Jun 2013 15:17:32 +0000 (11:17 -0400)] 
tweak the timings here to maximize chance of test success

12 years agoset UTC timezone on the connection here so we can get consistent results
Mike Bayer [Sat, 29 Jun 2013 15:08:07 +0000 (11:08 -0400)] 
set UTC timezone on the connection here so we can get consistent results

12 years agoThe behavior of :func:`.extract` has been simplified on the
Mike Bayer [Sat, 29 Jun 2013 03:53:27 +0000 (23:53 -0400)] 
The behavior of :func:`.extract` has been simplified on the
Postgresql dialect to no longer inject a hardcoded ``::timestamp``
or similar cast into the given expression, as this interfered
with types such as timezone-aware datetimes, but also
does not appear to be at all necessary with modern versions
of psycopg2.  Also in 0.8.2.
[ticket:2740]

12 years agorefactor test suites for postgresql, mssql, mysql into packages.
Mike Bayer [Sat, 29 Jun 2013 02:30:11 +0000 (22:30 -0400)] 
refactor test suites for postgresql, mssql, mysql into packages.

12 years agoimprove the close handling here so that we don't double-close a connection;
Mike Bayer [Sat, 29 Jun 2013 02:29:45 +0000 (22:29 -0400)] 
improve the close handling here so that we don't double-close a connection;
we log this now so it apparently happens a bunch

12 years agoType lookup when reflecting the Firebird types LONG and
Mike Bayer [Fri, 28 Jun 2013 15:49:41 +0000 (11:49 -0400)] 
Type lookup when reflecting the Firebird types LONG and
INT64 has been fixed so that LONG is treated as INTEGER,
INT64 treated as BIGINT, unless the type has a "precision"
in which case it's treated as NUMERIC.  Patch courtesy
Russell Stuart.
[ticket:2757]

12 years agoFixed bug in HSTORE type where keys/values that contained
Mike Bayer [Fri, 28 Jun 2013 15:35:57 +0000 (11:35 -0400)] 
Fixed bug in HSTORE type where keys/values that contained
backslashed quotes would not be escaped correctly when
using the "non native" (i.e. non-psycopg2) means
of translating HSTORE data.  Patch courtesy Ryan Kelly.
[ticket:2766]

12 years ago- fix a regression caused by #2587, where query.join() would apply an
Mike Bayer [Thu, 27 Jun 2013 20:43:01 +0000 (16:43 -0400)] 
- fix a regression caused by #2587, where query.join() would apply an
adapter to an aliased-mapped, non-polymorphic selectable that prevented us from referring
directly to that selectable.

12 years agoadd an ORDER BY here
Mike Bayer [Wed, 26 Jun 2013 19:03:50 +0000 (15:03 -0400)] 
add an ORDER BY here

12 years agoMerge branch 'ticket_2746'
Mike Bayer [Wed, 26 Jun 2013 17:24:07 +0000 (13:24 -0400)] 
Merge branch 'ticket_2746'

Conflicts:
doc/build/changelog/changelog_08.rst
doc/build/changelog/changelog_09.rst

12 years ago- rework of correlation, continuing on #2668, #2746
Mike Bayer [Tue, 25 Jun 2013 21:32:51 +0000 (17:32 -0400)] 
- rework of correlation, continuing on #2668, #2746
- add support for correlations to propagate all the way in; because
correlations require context now, need to make sure a select enclosure
of any level takes effect any number of levels deep.
- fix what we said correlate_except() was supposed to do when we first
released #2668 - "the FROM clause is left intact if the correlated SELECT
is not used in the context of an enclosing SELECT..." - it was not
considering the "existing_froms" collection at all, and prohibited
additional FROMs from being placed in an any() or has().
- add test for multilevel any()
- lots of docs, including glossary entries as we really need to define
"WHERE clause", "columns clause" etc. so that we can explain correlation better
- based on the insight that a SELECT can correlate anything that ultimately
came from an enclosing SELECT that links to this one via WHERE/columns/HAVING/ORDER BY,
have the compiler keep track of the FROM lists that correspond in this way,
link it to the asfrom flag, so that we send to _get_display_froms() the exact
list of candidate FROMs to correlate.  no longer need any asfrom logic in the
Select() itself
- preserve 0.8.1's behavior for correlation when no correlate options are given, not
to mention 0.7 and prior's behavior of not propagating implicit correlation more than one level..
this is to reduce surprises/hard-to-debug situations when a user isn't trying
to correlate anything.

12 years agochangelog
Mike Bayer [Wed, 26 Jun 2013 15:37:55 +0000 (11:37 -0400)] 
changelog

12 years agoMerge pull request #13 from malor/fix_indexes_reflection
mike bayer [Wed, 26 Jun 2013 15:36:02 +0000 (08:36 -0700)] 
Merge pull request #13 from malor/fix_indexes_reflection

Fix indexes reflection in PostgreSQL

12 years agoMerge pull request #12 from cjw296/master
mike bayer [Wed, 26 Jun 2013 15:15:44 +0000 (08:15 -0700)] 
Merge pull request #12 from cjw296/master

Range type docs improvements.

12 years agoTidy range types docs and add warning about the return type support offered by differ...
Chris Withers [Wed, 26 Jun 2013 06:29:48 +0000 (07:29 +0100)] 
Tidy range types docs and add warning about the return type support offered by different versions of different DBAPI libraries.

12 years agoFix NameError in example.
Chris Withers [Wed, 26 Jun 2013 06:22:13 +0000 (07:22 +0100)] 
Fix NameError in example.

12 years agoFix indexes reflection in PostgreSQL
Roman Podolyaka [Wed, 26 Jun 2013 04:53:26 +0000 (07:53 +0300)] 
Fix indexes reflection in PostgreSQL

Reflection of indexes must preserve the order of columns.

Fixes issue 2767.

12 years agoYEAR(2) emits a warning and oursql / mysqlconnector throw an exception
Mike Bayer [Mon, 24 Jun 2013 00:13:28 +0000 (20:13 -0400)] 
YEAR(2) emits a warning and oursql / mysqlconnector throw an exception
on the warning so just dump it

12 years agodocs
Mike Bayer [Sun, 23 Jun 2013 23:32:54 +0000 (19:32 -0400)] 
docs

12 years agodoc fixes
Mike Bayer [Sun, 23 Jun 2013 23:03:43 +0000 (19:03 -0400)] 
doc fixes

12 years ago0.8 changelog
Mike Bayer [Sun, 23 Jun 2013 21:55:54 +0000 (17:55 -0400)] 
0.8 changelog

12 years ago0.9 changelog
Mike Bayer [Sun, 23 Jun 2013 21:55:26 +0000 (17:55 -0400)] 
0.9 changelog

12 years ago- add a test for pullreq 8
Mike Bayer [Sun, 23 Jun 2013 21:53:49 +0000 (17:53 -0400)] 
- add a test for pullreq 8
- simplify

12 years agoMerge branch 'master' of https://github.com/asldevi/sqlalchemy into some_branch
Mike Bayer [Sun, 23 Jun 2013 21:48:28 +0000 (17:48 -0400)] 
Merge branch 'master' of https://github.com/asldevi/sqlalchemy into some_branch

12 years agosort here so that exception messages are testable
Mike Bayer [Sun, 23 Jun 2013 21:30:54 +0000 (17:30 -0400)] 
sort here so that exception messages are testable

12 years agotweak this for now, would need a test
Mike Bayer [Sun, 23 Jun 2013 20:08:01 +0000 (16:08 -0400)] 
tweak this for now, would need a test

12 years agoThe resolution of :class:`.ForeignKey` objects to their
Mike Bayer [Sun, 23 Jun 2013 18:03:47 +0000 (14:03 -0400)] 
The resolution of :class:`.ForeignKey` objects to their
target :class:`.Column` has been reworked to be as
immediate as possible, based on the moment that the
target :class:`.Column` is associated with the same
:class:`.MetaData` as this :class:`.ForeignKey`, rather
than waiting for the first time a join is constructed,
or similar. This along with other improvements allows
earlier detection of some foreign key configuration
issues.  Also included here is a rework of the
type-propagation system, so that
it should be reliable now to set the type as ``None``
on any :class:`.Column` that refers to another via
:class:`.ForeignKey` - the type will be copied from the
target column as soon as that other column is associated,
and now works for composite foreign keys as well.
[ticket:1765]

12 years agoticket #1443 is for unique constraint reflection
Mike Bayer [Sun, 23 Jun 2013 15:32:34 +0000 (11:32 -0400)] 
ticket #1443 is for unique constraint reflection

12 years agoMerge pull request #11 from malor/fix_uc_reflection
mike bayer [Sun, 23 Jun 2013 15:31:57 +0000 (08:31 -0700)] 
Merge pull request #11 from malor/fix_uc_reflection

Fix unique constraints reflection in SQLite and PostgreSQL

12 years agoMerge pull request #10 from malor/fix_unicode_literals
mike bayer [Sun, 23 Jun 2013 15:29:06 +0000 (08:29 -0700)] 
Merge pull request #10 from malor/fix_unicode_literals

Fix unicode literals on Python 3.1 and 3.2

12 years agoFix unique constraints reflection in PostgreSQL
Roman Podolyaka [Sat, 22 Jun 2013 12:57:03 +0000 (15:57 +0300)] 
Fix unique constraints reflection in PostgreSQL

Reflection of unique constraints must preserve the order of columns.

12 years agoFix unicode literals on Python 3.1 and 3.2
Roman Podolyaka [Sun, 23 Jun 2013 09:04:21 +0000 (12:04 +0300)] 
Fix unicode literals on Python 3.1 and 3.2

A few tests use u'' unicode literals which are not
supported in Python versions 3.1 and 3.2.

12 years agoFix unique constraints reflection in SQLite
Roman Podolyaka [Sat, 22 Jun 2013 10:31:51 +0000 (13:31 +0300)] 
Fix unique constraints reflection in SQLite

If SQLite keywords are used as column names, they are
quoted. The code parsing the information about table
unique constraints should be modified so that it properly
removes double-quotes from column names.

12 years agoImprove _test_get_unique_constraints()
Roman Podolyaka [Sat, 22 Jun 2013 10:35:41 +0000 (13:35 +0300)] 
Improve _test_get_unique_constraints()

Call eq_() in a loop instead of comparing two lists
directly. This makes it much easier to find out which
element is not equal to the reference value.

12 years agoProvided a new attribute for :class:`.TypeDecorator`
Mike Bayer [Sat, 22 Jun 2013 16:19:41 +0000 (12:19 -0400)] 
Provided a new attribute for :class:`.TypeDecorator`
called :attr:`.TypeDecorator.coerce_to_is_types`,
to make it easier to control how comparisons using
``==`` or ``!=`` to ``None`` and boolean types goes
about producing an ``IS`` expression, or a plain
equality expression with a bound parameter.
[ticket:2744]

12 years agoversionadds
Mike Bayer [Sat, 22 Jun 2013 15:48:33 +0000 (11:48 -0400)] 
versionadds

12 years ago0.9 changelog
Mike Bayer [Sat, 22 Jun 2013 15:40:49 +0000 (11:40 -0400)] 
0.9 changelog

12 years ago- 0.8 changelog
Mike Bayer [Sat, 22 Jun 2013 15:40:10 +0000 (11:40 -0400)] 
- 0.8 changelog
- some whitespace

12 years agothis locale is not needed. maybe it is somewhere but the locale I have ("C", whatev...
Mike Bayer [Sat, 22 Jun 2013 15:25:41 +0000 (11:25 -0400)] 
this locale is not needed.   maybe it is somewhere but the locale I have ("C", whatever that means,
cannot find meaning of this anywhere in Postgresql documentation) seems to work

12 years agoMerge pull request #5 from cjw296/pg-ranges
mike bayer [Sat, 22 Jun 2013 14:47:02 +0000 (07:47 -0700)] 
Merge pull request #5 from cjw296/pg-ranges

Support for Postgres range types.

12 years agomake tests pass
Devi [Thu, 20 Jun 2013 11:12:19 +0000 (16:42 +0530)] 
make tests pass

12 years agocheck if compostite_class is of class type
Devi [Wed, 19 Jun 2013 10:33:23 +0000 (16:03 +0530)] 
check if compostite_class is of class type

before checking if it is a subclass of `MutableComposite`

12 years agoMerged in goodscloud/sqlalchemy (pull request #3)
Mike Bayer [Tue, 18 Jun 2013 18:03:09 +0000 (14:03 -0400)] 
Merged in goodscloud/sqlalchemy (pull request #3)

Forgot final check that a delete in a backref also doesn't create a new version

12 years agofix up the isolation level docs which were a mess
Mike Bayer [Tue, 18 Jun 2013 03:12:04 +0000 (23:12 -0400)] 
fix up the isolation level docs which were a mess

12 years agoremove double methods
Mike Bayer [Mon, 17 Jun 2013 23:48:49 +0000 (19:48 -0400)] 
remove double methods

12 years agoturn this requirement back down as the simpler serialize works better now
Mike Bayer [Mon, 17 Jun 2013 23:46:07 +0000 (19:46 -0400)] 
turn this requirement back down as the simpler serialize works better now

12 years ago- rework PropComparator.adapted() to be PropComparator.adapt_to_entity(),
Mike Bayer [Mon, 17 Jun 2013 22:48:17 +0000 (18:48 -0400)] 
- rework PropComparator.adapted() to be PropComparator.adapt_to_entity(),
passes in AliasedInsp and allows more flexibility.
- rework the AliasedClass/AliasedInsp relationship so that AliasedInsp has
all state and functionality.  AliasedClass is just a facade.
[ticket:2756]

12 years agomigration for [ticket:2751]
Mike Bayer [Mon, 17 Jun 2013 21:48:10 +0000 (17:48 -0400)] 
migration for [ticket:2751]

12 years agoForgot final check that a delete in a backref also doesn't create a new version
Matt Chisholm [Mon, 17 Jun 2013 21:30:07 +0000 (23:30 +0200)] 
Forgot final check that a delete in a backref also doesn't create a new version

follow up to https://bitbucket.org/zzzeek/sqlalchemy/pull-request/2

12 years agochangelog for 0.8
Mike Bayer [Mon, 17 Jun 2013 20:50:26 +0000 (16:50 -0400)] 
changelog for 0.8

12 years agochangelog
Mike Bayer [Mon, 17 Jun 2013 20:47:16 +0000 (16:47 -0400)] 
changelog

12 years agoMerge branch 'master' of bitbucket.org:zzzeek/sqlalchemy
Mike Bayer [Mon, 17 Jun 2013 20:06:50 +0000 (16:06 -0400)] 
Merge branch 'master' of bitbucket.org:zzzeek/sqlalchemy

12 years agoMerged in goodscloud/sqlalchemy (pull request #2)
Mike Bayer [Mon, 17 Jun 2013 20:06:29 +0000 (16:06 -0400)] 
Merged in goodscloud/sqlalchemy (pull request #2)

don't create a history entry when an object in a backref has changed

12 years agocan remove this, issue is fixed
Mike Bayer [Mon, 17 Jun 2013 20:05:11 +0000 (16:05 -0400)] 
can remove this, issue is fixed

12 years ago- clean up this test (really we don't even need this, it's not testing much)
Mike Bayer [Mon, 17 Jun 2013 03:09:31 +0000 (23:09 -0400)] 
- clean up this test (really we don't even need this, it's not testing much)
- for the moment, put a catch in it to see if we can trap that issue
on jenkins

12 years ago- changelog
Mike Bayer [Sun, 16 Jun 2013 02:58:04 +0000 (22:58 -0400)] 
- changelog
- docs

12 years agoMerge pull request #7 from malor/psycopg2_execution_options
mike bayer [Sun, 16 Jun 2013 02:52:00 +0000 (19:52 -0700)] 
Merge pull request #7 from malor/psycopg2_execution_options

Add AUTOCOMMIT isolation level support for psycopg2

12 years agoFixed bug in polymorphic SQL generation where multiple joined-inheritance
Mike Bayer [Sat, 15 Jun 2013 19:20:48 +0000 (15:20 -0400)] 
Fixed bug in polymorphic SQL generation where multiple joined-inheritance
entities against the same base class joined to each other as well
would not track columns on the base table independently of each other if
the string of joins were more than two entities long.  Also in 0.8.2.
[ticket:2759]

12 years agodon't create a history entry when an object in a backref has changed
Matt Chisholm [Sat, 15 Jun 2013 16:15:29 +0000 (18:15 +0200)] 
don't create a history entry when an object in a backref has changed

The code that determines whether an object in a relation has been added/removed does not take into account that that relation may be a backref. If the relation is a backref, then nothing on the current table is changing, and therefore no history entry should be created.

12 years agoAdd AUTOCOMMIT isolation level support for psycopg2
Roman Podolyaka [Sat, 15 Jun 2013 12:38:02 +0000 (15:38 +0300)] 
Add AUTOCOMMIT isolation level support for psycopg2

One can use this to emit statements, which can not be
executed within a transaction (e. g. CREATE DATABASE):

    from sqlalchemy import create_engine

    eng = create_engine('postgresql://test:test@localhost/test')

    conn = eng.connect().execution_options(isolation_level='AUTOCOMMIT')
    conn.execute('CREATE DATABASE test2;')

Fixes issue #2072.

12 years ago- skip this test for py3k. serializer kind of a bust
Mike Bayer [Fri, 14 Jun 2013 22:34:01 +0000 (18:34 -0400)] 
- skip this test for py3k.   serializer kind of a bust

12 years agochangelog for this
Mike Bayer [Tue, 11 Jun 2013 00:10:06 +0000 (20:10 -0400)] 
changelog for this

12 years agochangelog
Mike Bayer [Mon, 10 Jun 2013 23:42:37 +0000 (19:42 -0400)] 
changelog

12 years agoMerge pull request #6 from eevee/propagate-reset-on-return
mike bayer [Mon, 10 Jun 2013 23:38:48 +0000 (16:38 -0700)] 
Merge pull request #6 from eevee/propagate-reset-on-return

Preserve reset_on_return when recreating a Pool.

12 years agoPreserve reset_on_return when recreating a Pool.
Eevee [Mon, 10 Jun 2013 22:04:39 +0000 (15:04 -0700)] 
Preserve reset_on_return when recreating a Pool.

12 years agoFixed bug where sending a composite attribute into :meth:`.Query.order_by`
Mike Bayer [Mon, 10 Jun 2013 17:50:06 +0000 (13:50 -0400)] 
Fixed bug where sending a composite attribute into :meth:`.Query.order_by`
would produce a parenthesized expression not accepted by some databases.
[ticket:2754]

12 years agoFixed the interaction between composite attributes and
Mike Bayer [Mon, 10 Jun 2013 17:45:19 +0000 (13:45 -0400)] 
Fixed the interaction between composite attributes and
the :func:`.aliased` function.  Previously, composite attributes
wouldn't work correctly in comparison operations when aliasing
was applied.  Also in 0.8.2. [ticket:2755]

12 years agoDocumentation for the new range type support.
Chris Withers [Mon, 10 Jun 2013 12:24:02 +0000 (13:24 +0100)] 
Documentation for the new range type support.

12 years agoImplement EXCLUDE constraints for postgres.
Chris Withers [Tue, 21 May 2013 20:11:35 +0000 (21:11 +0100)] 
Implement EXCLUDE constraints for postgres.

12 years agoadd support for range operators listed in http://www.postgresql.org/docs/9.2/interact...
Chris Withers [Sun, 19 May 2013 14:20:57 +0000 (15:20 +0100)] 
add support for range operators listed in http://www.postgresql.org/docs/9.2/interactive/functions-range.html

12 years agoBasic type support for the new range types in postgres 9.2
Chris Withers [Sun, 19 May 2013 07:50:06 +0000 (08:50 +0100)] 
Basic type support for the new range types in postgres 9.2

12 years agothis comment is ancient
Mike Bayer [Mon, 10 Jun 2013 00:36:37 +0000 (20:36 -0400)] 
this comment is ancient

12 years agothese notes about **kw are incorrect, we are talking about the return value here
Mike Bayer [Sun, 9 Jun 2013 21:56:31 +0000 (17:56 -0400)] 
these notes about **kw are incorrect, we are talking about the return value here

12 years ago- get_unique_constraints() pull request
Mike Bayer [Sun, 9 Jun 2013 21:54:11 +0000 (17:54 -0400)] 
- get_unique_constraints() pull request
- version (0.9 for now)
- changelog
- move the test into the test suite so that all dialects can take advantage of it

12 years agoMerge pull request #4 from malor/reflect_constraints
mike bayer [Sun, 9 Jun 2013 21:39:30 +0000 (14:39 -0700)] 
Merge pull request #4 from malor/reflect_constraints

Add basic support of unique constraints reflection

12 years agoAdd basic support of unique constraints reflection
Roman Podolyaka [Sun, 9 Jun 2013 16:07:00 +0000 (19:07 +0300)] 
Add basic support of unique constraints reflection

Inspection API already supports reflection of table
indexes information and those also include unique
constraints (at least for PostgreSQL and MySQL).
But it could be actually useful to distinguish between
indexes and plain unique constraints (though both are
implemented in the same way internally in RDBMS).

This change adds a new method to Inspection API - get_unique_constraints()
and implements it for SQLite, PostgreSQL and MySQL dialects.

12 years agoAdded pool logging for "rollback-on-return" and the less used
Mike Bayer [Sun, 9 Jun 2013 20:16:53 +0000 (16:16 -0400)] 
Added pool logging for "rollback-on-return" and the less used
"commit-on-return".  This is enabled with the rest of pool
"debug" logging.
[ticket:2752]

12 years ago...and...its a behavioral improvement
Mike Bayer [Sat, 8 Jun 2013 23:50:40 +0000 (19:50 -0400)] 
...and...its a behavioral improvement

12 years agofix this example
Mike Bayer [Sat, 8 Jun 2013 23:48:10 +0000 (19:48 -0400)] 
fix this example

12 years agomention right joins, make it clear we're talking about left outer join as the bigger...
Mike Bayer [Sat, 8 Jun 2013 23:23:43 +0000 (19:23 -0400)] 
mention right joins, make it clear we're talking about left outer join as the bigger issue

12 years agooracle 9 does support this, oracle 8 is a special case.
Mike Bayer [Sat, 8 Jun 2013 23:11:06 +0000 (19:11 -0400)] 
oracle 9 does support this, oracle 8 is a special case.

12 years agocleanup
Mike Bayer [Sat, 8 Jun 2013 23:07:52 +0000 (19:07 -0400)] 
cleanup

12 years agoget nested joins to render on oracle 8
Mike Bayer [Sat, 8 Jun 2013 22:54:14 +0000 (18:54 -0400)] 
get nested joins to render on oracle 8

12 years ago- tests for the alias() API
Mike Bayer [Sat, 8 Jun 2013 22:41:59 +0000 (18:41 -0400)] 
- tests for the alias() API
- docs docs docs

12 years agoformatting
Mike Bayer [Sat, 8 Jun 2013 20:14:09 +0000 (16:14 -0400)] 
formatting

12 years agochangelog
Mike Bayer [Sat, 8 Jun 2013 19:13:39 +0000 (15:13 -0400)] 
changelog

12 years agoMerge pull request #3 from bslatkin/master
mike bayer [Sat, 8 Jun 2013 19:11:25 +0000 (12:11 -0700)] 
Merge pull request #3 from bslatkin/master

Makes gaerdbms for App Engine use local MySQL server when running in dev_appserver2

12 years agomost of these dialect=mysql.dialect() calls are redundant
Mike Bayer [Sat, 8 Jun 2013 18:49:56 +0000 (14:49 -0400)] 
most of these dialect=mysql.dialect() calls are redundant

12 years ago- changelog for [ticket:2704]
Mike Bayer [Sat, 8 Jun 2013 18:47:04 +0000 (14:47 -0400)] 
- changelog for [ticket:2704]
- use an isinstance() check, concerned a TypeError might be indiscriminate

12 years agoMerged in malor/sqlalchemy (pull request #1)
Mike Bayer [Sat, 8 Jun 2013 18:39:17 +0000 (14:39 -0400)] 
Merged in malor/sqlalchemy (pull request #1)

Fix using of 'mysql_length' for composite indexes

12 years agoFix using of 'mysql_length' for composite indexes
Roman Podolyaka [Sat, 8 Jun 2013 17:38:02 +0000 (20:38 +0300)] 
Fix using of 'mysql_length' for composite indexes

Currently, one can specify the prefix length for an index
column using 'mysql_length' keyword argument when creating
an Index instance. But in case of composite indexes the
prefix length value is applied only to the last column.

Extend the existing API in way so that 'mysql_length' argument
value can be either:
    - an integer specifying the same prefix length value
      for each column of an index
    - a (column_name --> integer value) mapping specifying
      the prefix length value for each column of an index
      separately

Fixes issue #2704.

12 years agoalso clarified the changelog regarding Cls.scalar != 'value'
Mike Bayer [Sat, 8 Jun 2013 17:39:20 +0000 (13:39 -0400)] 
also clarified the changelog regarding Cls.scalar != 'value'

12 years agoAdded additional criterion to the ==, != comparators, used with
Mike Bayer [Sat, 8 Jun 2013 17:23:15 +0000 (13:23 -0400)] 
Added additional criterion to the ==, != comparators, used with
scalar values, for comparisons to None to also take into account
the association record itself being non-present, in addition to the
existing test for the scalar endpoint on the association record
being NULL.  Previously, comparing ``Cls.scalar == None`` would return
records for which ``Cls.associated`` were present and
``Cls.associated.scalar`` is None, but not rows for which
``Cls.associated`` is non-present.  More significantly, the
inverse operation ``Cls.scalar != None`` *would* return ``Cls``
rows for which ``Cls.associated`` was non-present.

Additionally, added a special use case where you
can call ``Cls.scalar.has()`` with no arguments,
when ``Cls.scalar`` is a column-based value - this returns whether or
not ``Cls.associated`` has any rows present, regardless of whether
or not ``Cls.associated.scalar`` is NULL or not.
[ticket:2751]

12 years agoFixing the error regex to match numbers with the long suffix, like 1146L
Brett Slatkin [Sat, 8 Jun 2013 09:04:27 +0000 (02:04 -0700)] 
Fixing the error regex to match numbers with the long suffix, like 1146L

12 years agoPEP8
Brett Slatkin [Sat, 8 Jun 2013 07:15:37 +0000 (00:15 -0700)] 
PEP8

12 years agoMakes gaerdbms for App Engine use local MySQL server when running under dev_appserver2.
Brett Slatkin [Sat, 8 Jun 2013 07:10:26 +0000 (00:10 -0700)] 
Makes gaerdbms for App Engine use local MySQL server when running under dev_appserver2.

12 years ago- Fixed an obscure bug where the wrong results would be
Mike Bayer [Sat, 8 Jun 2013 03:04:33 +0000 (23:04 -0400)] 
- Fixed an obscure bug where the wrong results would be
fetched when joining/joinedloading across a many-to-many
relationship to a single-table-inheriting
subclass with a specific discriminator value, due to "secondary"
rows that would come back.  The "secondary" and right-side
tables are now inner joined inside of parenthesis for all
ORM joins on many-to-many relationships so that the left->right
join can accurately filtered.
[ticket:2369]

12 years agoremove all remaining start/end py2k/py3k blocks
Mike Bayer [Fri, 7 Jun 2013 21:51:12 +0000 (17:51 -0400)] 
remove all remaining start/end py2k/py3k blocks

12 years agofix test
Mike Bayer [Thu, 6 Jun 2013 22:53:44 +0000 (18:53 -0400)] 
fix test

12 years agoMerge branch 'ticket_2587'
Mike Bayer [Thu, 6 Jun 2013 22:07:05 +0000 (18:07 -0400)] 
Merge branch 'ticket_2587'