summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/connectors/mxodbc.py
Commit message (Collapse)AuthorAgeFilesLines
* PEP8 style fixesBrian Jarrett2014-07-131-3/+3
|
* - break up the <authors> copyright comment as part of a passMike Bayer2014-07-091-1/+2
| | | | to get all flake8 passing
* - happy new yearMike Bayer2014-01-051-1/+1
|
* - the raw 2to3 runMike Bayer2013-04-271-1/+1
| | | | - went through examples/ and cleaned out excess list() calls
* happy new year (see #2645)Diana Clarke2013-01-011-1/+1
|
* just a pep8 pass of lib/sqlalchemy/connectorsDiana Clarke2012-11-191-4/+6
|
* finished fixes for mxodbc; need to use at least version 3.2.1Mike Bayer2012-09-211-14/+5
|
* - further mxodbc tweaks affecting other test suitesMike Bayer2012-09-021-1/+0
|
* - leave this out for nowMike Bayer2012-09-021-2/+2
|
* - fixes for mxODBC, some pyodbcMike Bayer2012-09-021-8/+15
| | | | | | - 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
* -whitespace bonanza, contdMike Bayer2012-07-281-1/+1
|
* - absolute imports in connectors, databasesMike Bayer2012-06-231-1/+1
|
* happy new yearMike Bayer2012-01-041-1/+1
|
* - add connection and cursor to is_disconnect(). We aren't using it yet,Mike Bayer2011-02-091-3/+3
| | | | | | | | | | | | | | | 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 not the pool's job. we need the conn for the error logic. Can't get any tests to fail, curious why that behavior was there, guess we'll find out (or not). - add support for psycopg2 version detection. even though we have no use for it yet... - adjust one of the reconnect tests to work with oracle's horrendously slow connect speed
* - whitespace removal bonanzaMike Bayer2011-01-021-5/+5
|
* - clean up copyright, update for 2011, stamp every file withMike Bayer2011-01-021-0/+6
| | | | | a consistent tag - AUTHORS file
* Ridding the world of a few wasteful imports.Michael Trier2010-12-191-3/+0
|
* - support for cdecimalMike Bayer2010-12-111-1/+1
| | | | | | | | | | | | | | | | | | - add --with-cdecimal flag to tests, monkeypatches cdecimal in - fix mssql/pyodbc.py to not use private '_int' accessor in decimal conversion routines - pyodbc version 2.1.8 is needed for cdecimal in any case as previous versions also called '_int', 2.1.8 adds the same string logic as our own dialect, so that logic is skipped for modern pyodbc version - make the imports for "Decimal" consistent across the whole lib. not sure yet how we should be importing "Decimal" or what the best way forward is that would allow a clean user-invoked swap of cdecimal; for now, added docs suggesting a global monkeypatch - the two decimal libs are not compatible with each other so any chance of mixing produces serious issues. adding adapters to DBAPIs tedious and adds in-python overhead. suggestions welcome on how we should be doing Decimal/cdecimal.
* - idle 78-char adjustmentsMike Bayer2010-07-031-1/+2
|
* documentation updatesMike Bayer2010-03-281-0/+1
|
* mssql+mxodbc should use executedirect for all selects and execute for ↵Mike Bayer2010-03-261-10/+20
| | | | insert/update/delete. To support this, an is_crud property has been added to the DefaultExecutionContext. The behavior is forcable either way per execution using execution_options(native_odbc_parameters=True|False). Some tests have been added to demonstrate usage. (patch by zzzeek committed by bradallen)
* whitespace tweaksBrad Allen2010-03-201-2/+1
|
* For cases when mxODBC's cursor.execute can't do the job, raise a warning and ↵Brad Allen2010-03-201-1/+8
| | | | fall back on cursor.executedirect which is less picky. This causes a drastic improvement in passing tests.
* now loading mxODBC exception classes into module namespace while still ↵Brad Allen2010-03-201-0/+13
| | | | avoiding module imports (hooking into dbapi class method)
* added comment about alternative way to get server version infoBrad Allen2010-03-201-0/+1
|
* Removed MxNumeric and MxFloat because now the sqlalchemy.types base classes ↵Brad Allen2010-03-181-53/+0
| | | | support dialects having a class attribute of "supports_native_decimal" indicating native Python Demimal support. Adjusted mssql+mxodbc to use the sqlalchemy.types base classes for Float and Numeric instead of using the base mssql dialect's numeric types.
* removed mxODBC imports from the module levelBrad Allen2010-03-181-3/+0
|
* Merged from main tip.Brad Allen2010-03-181-1/+2
|\
| * - moved most Decimal bind/result handling into types.py, out of sqlite, ↵Mike Bayer2010-03-181-1/+2
| | | | | | | | | | | | | | mysql dialects. - added an explicit test for [ticket:1216] - some questions remain about MSSQL - would like to simplify/remove bind handling for numerics
* | comments/question about using connection.closed in is_disconnect methodBrad Allen2010-03-181-0/+2
| |
* | Docstring improvements for MxDecimal and MxNumeric result processors.Brad Allen2010-03-181-2/+12
| |
* | eGenix says "It's better to let mxODBC decide which bind type to use."Brad Allen2010-03-181-3/+0
| |
* | Merged from main tip, and resolved conflicts in mxodbc dialect and connector.Brad Allen2010-03-171-16/+19
|\ \ | |/
| * - mxodbc can use default execute() callMike Bayer2010-03-161-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | - modified SQLCompiler to support rendering of bind parameters as literal inline strings for specific sections, if specified by the compiler subclass, using either literal_binds=True passed to process() or any visit method, or by setting to False the "binds_in_columns_clause" flag for SQL-92 compatible columns clauses.. The compiler subclass is responsible for implementing the literal quoting function which should make use of the DBAPI's native capabilities. - SQLCompiler now passes **kw to most process() methods (should be all, ideally) so that literal_binds is propagated. - added some rudimentary tests for mxodbc.
| * adjust mxodbc imports to dialect levelMike Bayer2010-03-151-17/+21
| |
* | Setting default bindmethod to BIND_USING_SQLTYPE, since this should provide ↵Brad Allen2010-03-171-1/+1
| | | | | | | | better type conversion performance.
* | Added decimalformat binding ( I thought this was committed earlier)Brad Allen2010-03-171-0/+1
| |
* | Fixes to pass numeric tests; now by default, the mxodbc connector natively ↵Brad Allen2010-03-161-1/+49
| | | | | | | | returns Python Decimal data types from columns of type SQL.NUMERIC or SQL.DECIMAL
* | Added module docstring for mxodbc connectorBrad Allen2010-03-161-0/+12
| |
* | removed junk pdb.set_trace()Brad Allen2010-03-151-1/+0
| |
* | Removed custom do_execute which called cursor.executedirect, after ↵Brad Allen2010-03-151-3/+1
|/ | | | discussion with eGenix and zzzeek. Even though more tests pass with executedirect, it is not appropriate for default usage because it does not issue prepare statements to the db, and it forces Python type binding. The executedirect method should only be called when the API user specifically requests it for special case performance reasons.
* merged mainline default branchBrad Allen2010-03-151-4/+3
|\
| * - The visit_pool() method of Dialect is removed, and replaced withMike Bayer2010-03-151-4/+3
| | | | | | | | | | | | | | | | on_connect(). This method returns a callable which receives the raw DBAPI connection after each one is created. The callable is assembled into a first_connect/connect pool listener by the connection strategy if non-None. Provides a simpler interface for dialects.
* | using executemany instead of executedirect, which passes more tests than ↵Brad Allen2010-03-151-5/+3
| | | | | | | | with plain execute. Later we need to define logic to determine when to call the normal execute.
* | comments explaining temporary hack for using executedirectBrad Allen2010-03-111-8/+1
| |
* | Converted mxODBC's raised Warning exceptions into normal Python warnings.Brad Allen2010-03-111-0/+18
| |
* | Temporary kludge to fix InterfaceError, in places where cursor.executedirect ↵Brad Allen2010-03-081-0/+15
|/ | | | is needed instead of cursor.execute.
* mxodbc supports rowcount, just have to snag before the cursor is closed.Mike Bayer2010-02-281-1/+1
|
* working on pyodbc / mxodbcMike Bayer2010-02-271-2/+15
|
* the "in" was IN-tentional, ha haMike Bayer2010-02-271-1/+2
|