]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- support for cdecimal
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 11 Dec 2010 22:44:46 +0000 (17:44 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 11 Dec 2010 22:44:46 +0000 (17:44 -0500)
commitc691b4cbdf7424964f49ac2fd05057514e5856a3
treea4d62e1d5c0e63c90fd1b5ce125928d7a86852c6
parentb88c54f95be3e3bc2e0923181d56862fa3fda9fa
- support for cdecimal
- 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.
21 files changed:
lib/sqlalchemy/connectors/mxodbc.py
lib/sqlalchemy/dialects/mssql/pymssql.py
lib/sqlalchemy/dialects/mssql/pyodbc.py
lib/sqlalchemy/dialects/oracle/cx_oracle.py
lib/sqlalchemy/dialects/postgresql/pg8000.py
lib/sqlalchemy/dialects/postgresql/psycopg2.py
lib/sqlalchemy/dialects/postgresql/pypostgresql.py
lib/sqlalchemy/dialects/sybase/pyodbc.py
lib/sqlalchemy/types.py
lib/sqlalchemy/util/compat.py
test/aaa_profiling/test_memusage.py
test/bootstrap/config.py
test/bootstrap/noseplugin.py
test/dialect/test_maxdb.py
test/dialect/test_mssql.py
test/dialect/test_oracle.py
test/dialect/test_postgresql.py
test/lib/util.py
test/perf/stress_all.py
test/sql/test_functions.py
test/sql/test_types.py