Commit Graph

6985 Commits

Author SHA1 Message Date
Mike Bayer e1253b149b Added tag rel_0_7_7 for changeset c91fd10f5c 2012-05-05 18:55:01 -04:00
Mike Bayer c91fd10f5c 0.7.7 release prep 2012-05-05 18:48:03 -04:00
Mike Bayer 0a711c3e47 add diana 2012-05-05 13:36:45 -04:00
Mike Bayer 89ad50aa7b a fix to allow mysql to work 2012-05-04 23:18:52 -04:00
Mike Bayer 7c7e7db9e3 callcount bump to account for sqlite's silly column name workaround 2012-05-04 20:44:00 -04:00
Mike Bayer 25b6e811e6 - [bug] Fixed issue in unit of work
whereby setting a non-None self-referential
    many-to-one relationship to None
    would fail to persist the change if the
    former value was not already loaded.
    [ticket:2477].
2012-05-04 19:27:52 -04:00
Mike Bayer 74b2fb5dac - [bug] removed unnecessary table clause
when reflecting domains, [ticket:2473]
2012-05-04 18:45:01 -04:00
Mike Bayer ac40c5afe5 doc update regarding with_lockmode, [ticket:2440] 2012-05-04 17:50:39 -04:00
Mike Bayer ea1d6e7b59 document mock strategy, [ticket:2439] 2012-05-04 17:45:57 -04:00
Mike Bayer c43ac1dc1c - [feature] Added SQLite execution option
"sqlite_raw_colnames=True", will bypass
attempts to remove "." from column names
returned by SQLite cursor.description.
[ticket:2475]
2012-05-04 17:43:21 -04:00
Mike Bayer ff891e454e - [bug] Add BINARY, VARBINARY to types.__all__,
[ticket:2474]
2012-05-04 17:37:51 -04:00
Priit Laes 122b30a41a Add some documentation sugar for ``having`` criterion. 2012-01-13 16:03:41 +02:00
Franck Cuny 6de2aa03bd Fix a typo in the documentation
s/Attrbutes/Attributes/
2012-04-27 15:21:02 -07:00
Mike Bayer 93bcbff928 - [bug] Fixed bug in relationship comparisons
whereby calling unimplemented methods like
SomeClass.somerelationship.like() would
produce a recursion overflow, instead
of NotImplementedError.
2012-04-26 11:58:54 -04:00
Mike Bayer 85d50ac4dc created rel_0_7 branch 2012-04-24 18:29:40 -04:00
Mike Bayer 8719cf3653 - [bug] Fixed bug in 0.7.6 introduced by
[ticket:2409] whereby column_mapped_collection
used against columns that were mapped as
joins or other indirect selectables
would fail to function.

Here, the serialize use case has gotten very complex since to
really target a column we'd need the root MetaData object,
then if we're hitting Alias objects and such there's really
nothing to hold onto.  Short of building a system where
Column objects have some kind of master hash identifier that
is consistently generated, the way this works can't really
suit every case - much easier would be to change the mechanics
of collections.py to make available the Mapper to the
collection adapter when it's first invoked.
2012-04-19 12:31:15 -04:00
Mike Bayer 541e59c3d7 - [bug] UPDATE..FROM syntax with SQL Server
requires that the updated table be present
in the FROM clause when an alias of that
table is also present in the FROM clause.
The updated table is now always present
in the FROM, when FROM is present
in the first place.  Courtesy sayap.
[ticket:2468]
2012-04-18 19:52:58 -04:00
Mike Bayer fdda4b0e01 - mysql [bug] Fixed bug whereby if cast() is used
on a SQL expression whose type is not supported
by cast() and therefore CAST isn't rendered by
the dialect, the order of evaluation could change
if the casted expression required that it be
grouped; grouping is now applied to those
expressions.  [ticket:2467]
2012-04-16 12:08:32 -04:00
Mike Bayer ad9c893dc8 Merged in bentrofatter/sqlalchemy-informix-dialect-fix (pull request #7) 2012-04-12 18:25:11 -04:00
Mike Bayer 9273cdd638 - [bug] If conn.begin() fails when calling
"with engine.begin()", the newly acquired
Connection is closed explicitly before
propagating the exception onward normally.
2012-04-12 14:38:52 -04:00
Benjamin Trofatter 5f6a930784 Changed misspelled 'altere' reserved word to 'alter' 2012-04-12 12:24:50 -05:00
Mike Bayer 3d66f727f5 - test explicitly for 'VIEW', 'SYSTEM VIEW'
- move the test to the reflection tests
2012-04-12 12:21:02 -04:00
Mike Bayer ba199ce80c Merged in elazar/sqlalchemy/fix/mysql-system-views (pull request #6) 2012-04-12 12:16:48 -04:00
elazar 9596595dcf Fixed test_system_views not checking for MySQL >= 5.0.0 as information_schema support is not available in previous versions 2012-04-12 07:35:49 -05:00
elazar 01087224ce Modified MySQLDialect.get_view_names() to also return system views such as those in information_schema 2012-04-11 21:32:00 -05:00
Mike Bayer 747f5edd21 - [feature] Added new flag to @validates
include_removes.  When True, collection
remove and attribute del events
will also be sent to the validation function,
which accepts an additional argument
"is_remove" when this flag is used.
2012-04-11 13:03:52 -04:00
Mike Bayer 5280f26d45 - [feature] Added new connection event
dbapi_error(). Is called for all DBAPI-level
errors passing the original DBAPI exception
before SQLAlchemy modifies the state
of the cursor.
2012-04-10 19:38:22 -04:00
Mike Bayer 3269b73ff7 - adjust mysql patch a bit so that we use
built in quoting for the "idx_" name as well
- [bug] Fixed bug whereby column name inside
of "KEY" clause for autoincrement composite
column with InnoDB would double quote a
name that's a reserved word.  Courtesy Jeff
Dairiki. [ticket:2460]
2012-04-08 11:18:39 -04:00
Jeff Dairiki b7abf86f72 Fix innodb autoinc constraint (double)quoting 2012-04-06 21:55:39 -07:00
Mike Bayer 4cb74452fe - [bug] Repaired the use_scope_identity
create_engine() flag when using the pyodbc
    dialect.  Previously this flag would be
    ignored if set to False.  When set to False,
    you'll get "SELECT @@identity" after each
    INSERT to get at the last inserted ID,
    for those tables which have "implicit_returning"
    set to False.
2012-04-05 14:31:28 -04:00
Diana Clarke 879e6bc462 Fixing link to python's logging module (see #2456). Thanks astrochase! 2012-04-03 17:40:51 -04:00
Mike Bayer 53b4337de3 Merged in _diana_/sqlalchemy-2385 (pull request #4) 2012-04-03 10:34:48 -04:00
Mike Bayer 1378bf0d25 - reopened #2453, needed to put in the original patch as well to cover the case
of column_property() objs building off each other
2012-04-03 09:59:22 -04:00
Diana Clarke a122db80f2 most of the drizzle docs are copy/pasta, let's just point users to the mysql docs and enhance as questions arise
- see #2385
2012-04-02 21:20:16 -04:00
Mike Bayer 47a799ecd5 - sql
- [bug] Removed warning when Index is created
    with no columns; while this might not be what
    the user intended, it is a valid use case
    as an Index could be a placeholder for just an
    index of a certain name.

- mssql
  - [feature] Added interim create_engine flag
    supports_unicode_binds to PyODBC dialect,
    to force whether or not the dialect
    passes Python unicode literals to PyODBC
    or not.
2012-04-01 19:42:54 -04:00
Mike Bayer 2563b33453 - [bug] Fixed bug which would prevent
OrderingList from being pickleable
[ticket:2454].  Courtesy Jeff Dairiki
2012-04-01 11:01:56 -04:00
Mike Bayer 45046367f3 - [bug] Fixed bug in expression annotation
mechanics which could lead to incorrect
rendering of SELECT statements with aliases
and joins, particularly when using
column_property().  [ticket:2453]
2012-03-31 13:35:05 -04:00
Mike Bayer b1fb11dda0 - [bug] Fixed bug whereby polymorphic_on
column that's not otherwise mapped on the
    class would be incorrectly included
    in a merge() operation, raising an error.
    [ticket:2449]
2012-03-31 12:55:42 -04:00
Mike Bayer 7142a17291 - [feature] Added new for_update/with_lockmode()
options for Postgresql: for_update="read"/
with_lockmode("read"),
for_update="read_nowait"/
with_lockmode("read_nowait").
These emit "FOR SHARE" and "FOR SHARE NOWAIT",
respectively.  Courtesy Diana Clarke
[ticket:2445]
2012-03-21 22:58:55 -04:00
Mike Bayer 565b5dc537 - 0.7.7
- [feature] Added prefix_with() method
to Query, calls upon select().prefix_with()
to allow placement of MySQL SELECT
directives in statements.  Courtesy
Diana Clarke [ticket:2443]
2012-03-20 20:12:26 -04:00
Diana Clarke 3903428841 I'm pretty sure this should be entities 2012-03-18 00:05:30 -04:00
Diana Clarke c8f693351a typos in lib/sqlalchemy/sql 2012-03-17 23:39:54 -04:00
Diana Clarke 3962c985b9 typos in lib/sqlalchemy/orm 2012-03-17 23:06:41 -04:00
Diana Clarke b60fdb0940 typos in lib/sqlalchemy/ext 2012-03-17 22:28:29 -04:00
Diana Clarke 920afb6127 typos in lib/sqlalchemy/engine 2012-03-17 22:07:10 -04:00
Diana Clarke 87fc12cc12 typoes in lib/sqlalchemy/dialects 2012-03-17 21:41:58 -04:00
Diana Clarke 4a7ee79850 typo 2012-03-16 19:55:29 -04:00
Mike Bayer 46eae846b7 Added tag rel_0_7_6 for changeset bd85bcc0cf 2012-03-14 21:26:44 -07:00
Mike Bayer bd85bcc0cf 0.7.6 release 2012-03-14 21:23:09 -07:00
Mike Bayer 101cde7894 another oracle failure 2012-03-14 17:31:59 -07:00