Commits

Show all
Author Commit Message Labels Comments Date
Mike Bayer
- remove some remaining sys.modules shenanigans - The "sqlalchemy.exceptions" alias in sys.modules has been removed. Base SQLA exceptions are available via "from sqlalchemy import exc". The "exceptions" alias for "exc" remains in "sqlalchemy" for now, it's just not patched into sys.modules.
Tags
rel_0_7b1
Mike Bayer
- Added an explicit check for the case that the name 'metadata' is used for a column attribute on a declarative class. [ticket:2050]
Mike Bayer
0.7 will be beta classifier to start
Mike Bayer
weird non-ascii char
Mike Bayer
ugh. OK let is_modified accept true/false
Mike Bayer
- fix long lines in test_attributes - add deprecation warning to get_history() when passed True or False, convert - rearrange symbol() so we can get sphinx autodata to work
Mike Bayer
- replace all usage of True and False for passive with PASSIVE_NO_INITIALIZE, PASSIVE_OFF, now expresed as non-boolean symbols - make "passive" available positionally on all get_history() methods, call it like that
Mike Bayer
- Additional tuning to "many-to-one" relationship loads during a flush(). A change in version 0.6.6 ([ticket:2002]) required that more "unnecessary" m2o loads during a flush could occur. Extra loading modes have been added so that the SQL emitted in this specific use case is trimmed back, while still retrieving the information the flush needs in order to not miss anything. [ticket:2049]
Mike Bayer
make it more explicit in tests which dialect we want to use for things
Mike Bayer
- need to limit the list of oracle fn's that don't get parens to a fixed list. window functions need parens
Mike Bayer
fix sqlite test
Mike Bayer
fix some tests
Mike Bayer
- The concept of associating a ".bind" directly with a ClauseElement has been explicitly moved to Executable, i.e. the mixin that describes ClauseElements which represent engine-executable constructs. This change is an improvement to internal organization and is unlikely to affect any real-world usage. [ticket:2048]
Mike Bayer
fix some really egregious long lines
Mike Bayer
- Added over() function, method to FunctionElement classes, produces the _Over() construct which in turn generates "window functions", i.e. "<window function> OVER (PARTITION BY <partition by>, ORDER BY <order by>)". [ticket:1844]
Mike Bayer
- oursql dialect accepts the same "ssl" arguments in create_engine() as that of MySQLdb. [ticket:2047]
Mike Bayer
- typo fix [ticket:2017]
Mike Bayer
- mssql VARBINARY emits 'max' for length when no length specified, as is the case already for VARCHAR, NVARCHAR [ticket:1833]
Mike Bayer
- The path given as the location of a sqlite database is now normalized via os.path.abspath(), so that directory changes within the process don't affect the ultimate location of a relative file path. [ticket:2036]
Mike Bayer
- Query.distinct() now accepts column expressions as *args, interpreted by the Postgresql dialect as DISTINCT ON (<expr>). [ticket:1069] - select.distinct() now accepts column expressions as *args, interpreted by the Postgresql dialect as DISTINCT ON (<expr>). Note this was already available via passing a list to the `distinct` keyword argument to select(). [ticket:1069] - select.prefix_with() accepts multiple expressions (i.e. *ex…
Mike Bayer
formatting fix
Mike Bayer
- An exception is raised in the unusual case that an append or similar event on a collection occurs after the parent object has been dereferenced, which prevents the parent from being marked as "dirty" in the session. Will commit as a warning in 0.6. [ticket:2046]
Mike Bayer
- py3k fix regarding new exception system - this test keeps throwing a TNS error on Oracle on the buildbot only, runs locally, seems to be related to some scaling/memory type of issue on the bot
Mike Bayer
- Non-DBAPI errors which occur in the scope of an `execute()` call are now wrapped in sqlalchemy.exc.StatementError, and the text of the SQL statement and repr() of params is included. This makes it easier to identify statement executions which fail before the DBAPI becomes involved. [ticket:2015]
Mike Bayer
- figured out the ::autodata directive, can move the docstring for expression.func into the .py module - added a note about logging only being checked on new connections, as one user had this issue awhile back, and I suspect it for a current ML user issue
Mike Bayer
- The compiler extension now supports overriding the default compilation of expression._BindParamClause including that the auto-generated binds within the VALUES/SET clause of an insert()/update() statement will also use the new compilation rules. [ticket:2042]
Mike Bayer
- Fixed bug where a column with a SQL or server side default that was excluded from a mapping with include_properties or exclude_properties would result in UnmappedColumnError. [ticket:1995]
Mike Bayer
- add connection and cursor to is_disconnect(). We aren't using it yet, but we'd like to. Most DBAPIs don't give us anything we can do with it. Some research was done on psycopg2 and it still seems like they give us no adequate method (tried connection.closed, cursor.closed, connection.status). mxodbc claims their .closed attribute will work (but I am skeptical). - remove beahvior in pool that auto-invalidated a connection when the cursor failed to create. That's n…
Mike Bayer
- Added an additional libpq message to the list of "disconnect" exceptions, "could not receive data from server" [ticket:2044]
Mike Bayer
- Adjusted flush accounting step to occur before the commit in the case of autocommit=True. This allows autocommit=True to work appropriately with expire_on_commit=True, and also allows post-flush session hooks to operate in the same transactional context as when autocommit=False. [ticket:2041]
  1. Prev
  2. Next