Commits

Author Commit Message Labels Comments Date
Mike Bayer
add a test for reverse remote
Mike Bayer
fix up this test
Mike Bayer
- got m2m, local_remote_pairs, etc. working - using new traversal that returns the product of both sides of a binary, starting to work with (a+b) == (c+d) types of joins. primaryjoins on functions working - annotations working, including reversing local/remote when doing backref
Mike Bayer
- hooks in the new object to RelationshipProperty, restores the "local" annotation. also added in sync pairs, etc. many-to-many is currently broken.
Mike Bayer
new test that illustrates the breakage of partial remote side when FKs are assumed
Mike Bayer
merge tip
Mike Bayer
simplify remote annotation significantly, and also catch the actual remote columns more accurately.
Mike Bayer
local_remote_pairs/remote_side are comparing against existing 100%
Mike Bayer
this version has easy cases going well. hard cases not so much
Mike Bayer
proof of concept. relationships.JoinCondition is given everything known about the relationship in an ORM-agnostic way. The primaryjoin is determined as before, but is then immediately parsed and annotated with "foreign", "local" and "remote" annotations. These annotations will then drive the additional decisions made, namely "direction" and "sync pairs". The end user will be able to pass a pre-annotated join condition in which case those annotati…
Mike Bayer
initial annotations approach to join conditions. all tests pass, plus additional tests in #1401 pass. would now like to reorganize RelationshipProperty more around the annotations concept.
Mike Bayer
created rel_0_7 branch
Branches
rel_0_7
Mike Bayer
- Backported the fix for [ticket:2317] introduced in 0.7.4, which ensures that the connection is in a valid state before attempting to call rollback()/prepare()/release() on savepoint and two-phase transactions.
Branches
rel_0_6
Mike Bayer
- [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 c…
Mike Bayer
- [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]
Mike Bayer
- 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]
Mike Bayer
Merged in bentrofatter/sqlalchemy-informix-dialect-fix (pull request #7)
Ben Trofatter
Changed misspelled 'altere' reserved word to 'alter'
Mike Bayer
- [bug] If conn.begin() fails when calling "with engine.begin()", the newly acquired Connection is closed explicitly before propagating the exception onward normally.
Mike Bayer
seems like there's a branch here..oh well
Branches
fix/mysql-system-views
Mike Bayer
- test explicitly for 'VIEW', 'SYSTEM VIEW' - move the test to the reflection tests
Mike Bayer
Merged in elazar/sqlalchemy/fix/mysql-system-views (pull request #6)
Matthew Turland
Fixed test_system_views not checking for MySQL >= 5.0.0 as information_schema support is not available in previous versions
Branches
fix/mysql-system-views
Matthew Turland
Modified MySQLDialect.get_view_names() to also return system views such as those in information_schema
Branches
fix/mysql-system-views
Mike Bayer
- [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.
Mike Bayer
- [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.
Mike Bayer
- 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]
dairiki
Fix innodb autoinc constraint (double)quoting
Mike Bayer
- [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.
diana
Fixing link to python's logging module (see #2456). Thanks astrochase!
  1. Prev
  2. Next