1. danring
  2. sqlalchemy

Commits

Show all
Author Commit Message Date Builds
danring
Fix mysql+gaerdbms dialect for changed exception format googleappengine v1.7.5 changed the exception format to be incompatible with MySQLDialect_gaerdbms#_extract_error_code This fix works for both old- and new-style exceptions. Changes causing the breakage: /trunk/python/google/storage/speckle/python/api/rdbms.py at https://code.google.com/p/googleappengine/source/detail?r=318
Mike Bayer
Fixed a long-standing bug in the caching example, where the limit/offset parameter values wouldn't be taken into account when computing the cache key. The _key_from_query() function has been simplified to work directly from the final compiled statement in order to get at both the full statement as well as the fully processed parameter list.
Mike Bayer
- remove erroneous second RelationshipCache class
Mike Bayer
- this pymssql test needs to be against the pymssql dialect - Part of a longer series of fixes needed for pyodbc+ mssql, a CAST to NVARCHAR(max) has been added to the bound parameter for the table name and schema name in all information schema queries to avoid the issue of comparing NVARCHAR to NTEXT, which seems to be rejected by the ODBC driver in some cases, such as FreeTDS (0.91 only?) plus unicode bound parameters being p…
Mike Bayer
python2.5 fix
Mike Bayer
- test + changelog for [ticket:2691]
Mike Bayer
- remove reference to _exc_info before reraise to reduce cycles
Mike Bayer
Reworked internal exception raises that emit a rollback() before re-raising, so that the stack trace is preserved from sys.exc_info() before entering the rollback. This so that the traceback is preserved when using coroutine frameworks which may have switched contexts before the rollback function returns. [ticket:2703]
Mike Bayer
- additional test + correction for [ticket:2699]
Mike Bayer
add cymysql...
Mike Bayer
Fixed bug whereby ORM would run the wrong kind of query when refreshing an inheritance-mapped class where the superclass was mapped to a non-Table object, like a custom join() or a select(), running a query that assumed a hierarchy that's mapped to individual Table-per-class. [ticket:2697]
Mike Bayer
- unit test failing on python3.3 + psycopg2, add an order by
Mike Bayer
Fixed `__repr__()` on mapper property constructs to work before the object is initialized, so that Sphinx builds with recent Sphinx versions can read them.
Mike Bayer
The _Binary base type now converts values through the bytes() callable when run on Python 3; in particular psycopg2 2.5 with Python 3.3 seems to now be returning the "memoryview" type, so this is converted to bytes before return.
Mike Bayer
Improvements to Connection auto-invalidation handling. If a non-disconnect error occurs, but leads to a delayed disconnect error within error handling (happens with MySQL), the disconnect condition is detected. The Connection can now also be closed when in an invalid state, meaning it will raise "closed" on next usage, and additionally the "close with result" feature will work even if the autorollback in an error handling routine fails and…
Mike Bayer
fix category
Mike Bayer
indentation fix
Mike Bayer
A major fix to the way in which a select() object produces labeled columns when apply_labels() is used; this mode produces a SELECT where each column is labeled as in <tablename>_<columnname>, to remove column name collisions for a multiple table select. The fix is that if two labels collide when combined with the table name, i.e. "foo.bar_id" and "foo_bar.id", anonymous aliasing will be applied to one of the dupes. This allows the ORM to handle both c…
Mike Bayer
add calchipan
Mike Bayer
order by...
Mike Bayer
Fixed indirect regression regarding :func:`.has_inherited_table`, where since it considers the current class' ``__table__``, was sensitive to when it was called. This is 0.7's behavior also, but in 0.7 things tended to "work out" within events like ``__mapper_args__()``. :func:`.has_inherited_table` now only considers superclasses, so should return the same answer regarding the current class no matter when it's called (obviously assuming the state of the super…
Mike Bayer
0.7 changelog
Mike Bayer
Fixed bug when a query of the form: ``query(SubClass).options(subqueryload(Baseclass.attrname))``, where ``SubClass`` is a joined inh of ``BaseClass``, would fail to apply the ``JOIN`` inside the subquery on the attribute load, producing a cartesian product. The populated results still tended to be correct as additional rows are just ignored, so this issue may be present as a performance degradation in applications that are otherwis…
Mike Bayer
- reinstate insert returning back into test_insert.py; defaultdialect needs to be explicit here since tablestest sticks testing.db onto metadata.bind
Mike Bayer
merge default
Mike Bayer
- Fixed bug in unit of work whereby a joined-inheritance subclass could insert the row for the "sub" table before the parent table, if the two tables had no ForeignKey constraints set up between them. Also in 0.7.11. [ticket:2689] - fix a glitch in the assertsql.CompiledSQL fixture regarding when a multiparam compiledSQL is used within an AllOf - add a new utility function randomize_unitofwork() which does the function of --reversetop
diana
moving insert returning test back into CRUD test class until I figure out why moving it broke the oracle/postgres builds
diana
whitespace
diana
move the update tests from CRUDTest into sql/test_update.py (see #2630)
diana
fixing tests for --db=mysql: VARCHAR requires a length on dialect mysql
  1. Prev
  2. Next