summaryrefslogtreecommitdiff
path: root/test/engine/test_execute.py
Commit message (Collapse)AuthorAgeFilesLines
* - these tests are really old but trying to make sure everything is closed outMike Bayer2014-01-051-40/+40
|
* - A DBAPI that raises an error on ``connect()`` which is not a subclassMike Bayer2013-12-071-8/+26
| | | | | | | | | | | | of dbapi.Error (such as ``TypeError``, ``NotImplementedError``, etc.) will propagate the exception unchanged. Previously, the error handling specific to the ``connect()`` routine would both inappropriately run the exception through the dialect's :meth:`.Dialect.is_disconnect` routine as well as wrap it in a :class:`sqlalchemy.exc.DBAPIError`. It is now propagated unchanged in the same way as occurs within the execute process. [ticket:2881] - add tests for this in test_parseconnect, but also add tests in test_execute to ensure the execute() behavior as well
* -be more agnostic of quotes hereMike Bayer2013-11-231-2/+2
|
* - Fixed bug where SQL statement would be improperly ASCII-encodedMike Bayer2013-11-221-2/+20
| | | | | | | when a pre-DBAPI :class:`.StatementError` were raised within :meth:`.Connection.execute`, causing encoding errors for non-ASCII statements. The stringification now remains within Python unicode thus avoiding encoding errors. [ticket:2871]
* - remove informix dialect, moved out to ↵Mike Bayer2013-11-171-4/+3
| | | | | | https://bitbucket.org/zzzeek/sqlalchemy_informixdb - remove informix, maxdb, access symbols from tests etc.
* - Removed some now unneeded version checks [ticket:2829] courtesy alex gaynorMike Bayer2013-09-221-1/+0
|
* - ensure rowcount is returned for an UPDATE with no implicit returningMike Bayer2013-08-251-27/+27
| | | | | - modernize test for that - use py3k compatible next() in test_returning/test_versioning
* - refactor pool a bit so that intent between ↵Mike Bayer2013-07-021-30/+110
| | | | | | | | | | | | | | ConnectionRecord/ConnectionFairy is clear; make sure that the DBAPI connection passed to the reset-on-return events/dialect hooks is also a "fairy", so that dictionaries like "info" are available. [ticket:2770] - rework the execution_options system so that the dialect is given the job of making any immediate adjustments based on a set event. move the "isolation level" logic to use this new system. Also work things out so that even engine-level execution options can be used for things like isolation level; the dialect attaches a connect-event handler in this case to handle the task. - to support this new system as well as further extensibiltiy of execution options add events engine_connect(), set_connection_execution_options(), set_engine_execution_options()
* - replace most explicitly-named test objects called "Mock..." withMike Bayer2013-06-301-10/+14
| | | | | | | | | | | | actual mock objects from the mock library. I'd like to use mock for new tests so we might as well use it in obvious places. - use unittest.mock in py3.3 - changelog - add a note to README.unittests - add tests_require in setup.py - have tests import from sqlalchemy.testing.mock - apply usage of mock to one of the event tests. we can be using this approach all over the place.
* fix test_execute w c extensionsMike Bayer2013-05-261-4/+2
|
* test_execute up for sqlite, pg, oursql, mysql 2.7 + 3.3Mike Bayer2013-05-041-1/+2
|
* - the raw 2to3 runMike Bayer2013-04-271-16/+16
| | | | - went through examples/ and cleaned out excess list() calls
* Merged in nakagami/sqlalchemy/cymysql (pull request #42)Mike Bayer2013-03-071-2/+2
|\ | | | | | | cymysql support
| * test for cymysqlHajime Nakagami2013-02-171-2/+2
| |
* | - Fixed an import of "logging" in test_execute which was notMike Bayer2013-03-021-1/+1
|\ \ | |/ |/| | | | | working on some linux platforms. Also in 0.7.11. - only need "logging.handlers" here, "logging" comes in implicitly
| * test_execute: import logging.handlers to fix AttributeErrorMike Gilbert2013-02-271-1/+1
|/ | | | See also: https://bugs.gentoo.org/show_bug.cgi?id=458684
* Added a new method :meth:`.Engine.execution_options`Mike Bayer2012-10-231-2/+63
| | | | | | | | | | | to :class:`.Engine`. This method works similarly to :class:`.Connection.execution_options` in that it creates a copy of the parent object which will refer to the new set of options. The method can be used to build sharding schemes where each engine shares the same underlying pool of connections. The method has been tested against the horizontal shard recipe in the ORM as well.
* trying different approaches to test layout. in this one, the testing modulesMike Bayer2012-09-271-6/+7
| | | | | | | become an externally usable package but still remains within the main sqlalchemy parent package. in this system, we use kind of an ugly hack to get the noseplugin imported outside of the "sqlalchemy" package, while still making it available within sqlalchemy for usage by third party libraries.
* - got firebird runningMike Bayer2012-09-231-5/+5
| | | | | | | | | | | | - add some failure cases - [bug] Firebird now uses strict "ansi bind rules" so that bound parameters don't render in the columns clause of a statement - they render literally instead. - [bug] Support for passing datetime as date when using the DateTime type with Firebird; other dialects support this.
* finished fixes for mxodbc; need to use at least version 3.2.1Mike Bayer2012-09-211-3/+1
|
* - fixes for mxODBC, some pyodbcMike Bayer2012-09-021-6/+10
| | | | | | - enhancements to test suite including ability to set up a testing engine for a whole test class, fixes to how noseplugin sets up/tears down per-class context
* - get all tests within -w engine + pyodbc:mssql on windows to passMike Bayer2012-09-011-4/+4
|
* adjust this test which passes on some psycopg2s, fails on others, and we ↵Mike Bayer2012-08-281-2/+2
| | | | | | dont have a good testing decorator to check this
* - [feature] The "required" flag is set toMike Bayer2012-08-271-6/+4
| | | | | | | | | | True by default, if not passed explicitly, on bindparam() if the "value" or "callable" parameters are not passed. This will cause statement execution to check for the parameter being present in the final collection of bound parameters, rather than implicitly assigning None. [ticket:2556]
* future for with statementMike Bayer2012-08-241-0/+2
|
* - [feature] The before_cursor_execute eventMike Bayer2012-08-231-1/+29
| | | | | | | | | fires off for so-called "_cursor_execute" events, which are usually special-case executions of primary-key bound sequences and default-generation SQL phrases that invoke separately when RETURNING is not used with INSERT. [ticket:2459]
* - add new C extension "utils", so far includes distill_paramsMike Bayer2012-08-071-1/+1
| | | | | - repair test_processors which wasn't hitting the python functions - add another suite to test_processors that does distill_params
* - break out engine/base.py into base, interfaces, result, util.Mike Bayer2012-08-071-5/+5
| | | | - remove deprecated 0.7 engine methods
* - [feature] Connection event listeners canMike Bayer2012-07-181-70/+113
| | | | | | now be associated with individual Connection objects, not just Engine objects. [ticket:2511]
* - [bug] The ResultProxy methods inserted_primary_key,Mike Bayer2012-06-161-0/+54
| | | | | | | | | | | | last_updated_params(), last_inserted_params(), postfetch_cols(), prefetch_cols() all assert that the given statement is a compiled construct, and is an insert() or update() statement as is appropriate, else raise InvalidRequestError. [ticket:2498] - ResultProxy.last_inserted_ids is removed, replaced by inserted_primary_key.
* - [bug] Fixed bug affecting Py3K wherebyMike Bayer2012-06-111-0/+33
| | | | | | | | string positional parameters passed to engine/connection execute() would fail to be interpreted correctly, due to __iter__ being present on Py3K string. [ticket:2503]. Also in 0.7.8.
* - [bug] If conn.begin() fails when callingMike Bayer2012-04-121-0/+17
| | | | | | "with engine.begin()", the newly acquired Connection is closed explicitly before propagating the exception onward normally.
* - [feature] Added new connection eventMike Bayer2012-04-101-0/+17
| | | | | | | dbapi_error(). Is called for all DBAPI-level errors passing the original DBAPI exception before SQLAlchemy modifies the state of the cursor.
* test failuresMike Bayer2012-02-151-0/+2
|
* - [feature] Added "no_parameters=True" executionMike Bayer2012-02-131-0/+10
| | | | | | | | | | | | | | | | option for connections. If no parameters are present, will pass the statement as cursor.execute(statement), thereby invoking the DBAPIs behavior when no parameter collection is present; for psycopg2 and mysql-python, this means not interpreting % signs in the string. This only occurs with this option, and not just if the param list is blank, as otherwise this would produce inconsistent behavior of SQL expressions that normally escape percent signs (and while compiling, can't know ahead of time if parameters will be present in some cases). [ticket:2407]
* - test failures. one in particular seems to be a weird oursql bug, oh wellMike Bayer2012-02-121-0/+2
|
* - add a context manager availble via Engine.begin()Mike Bayer2012-02-121-0/+134
| | | | | | - add a test suite for all the Engine/Connection/TLEngine transaction/begin helpers/context managers - update docs
* fix a few py3k bugsMike Bayer2012-01-281-1/+1
|
* - [bug] Fixed bug in "mock" strategy wherebyMike Bayer2012-01-281-1/+30
| | | | | | correct DDL visit method wasn't called, resulting in "CREATE/DROP SEQUENCE" statements being duplicated [ticket:2384]
* exception pickling fails on cx_oracleMike Bayer2012-01-221-0/+3
|
* - [bug] Fixed bug whereby a table-bound ColumnMike Bayer2012-01-221-2/+2
| | | | | | | | | | | object named "<a>_<b>" which matched a column labeled as "<tablename>_<colname>" could match inappropriately when targeting in a result set row. [ticket:2377] - requires that we change the tuple format in RowProxy. Makes an improvement to the cases tested against an unpickled RowProxy as well though doesn't solve the problem there entirely.
* another serializable for [ticket:2371]Mike Bayer2012-01-121-1/+2
|
* further fixes for column/table errorsMike Bayer2012-01-111-6/+9
|
* some adjustments for py3kMike Bayer2012-01-111-4/+6
|
* fix failures for oursql, python 2.4Mike Bayer2012-01-111-4/+7
|
* - [bug] Added __reduce__ to StatementError,Mike Bayer2012-01-101-0/+37
| | | | | | | DBAPIError so that exceptions are pickleable, as when using multiprocessing. However, not all DBAPIs support this yet, such as psycopg2. [ticket:2371]
* fix this test for oursqlMike Bayer2011-10-151-2/+2
|
* - Added an exception catch + warning for theMike Bayer2011-10-151-0/+15
| | | | | | | "return unicode detection" step within connect, allows databases that crash on NVARCHAR to continue initializing, assuming no NVARCHAR type implemented. [ticket:2299]
* - Improvement to multi-param statement logging,Mike Bayer2011-08-221-1/+80
| | | | | | | | long lists of bound parameter sets will be compressed with an informative indicator of the compression taking place. Exception messages use the same improved formatting. [ticket:2243]
* if python 2.4, have DontWrapException be old styleMike Bayer2011-06-261-1/+0
|