summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/mssql.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Corrected issue with decimal e notation that broke regular decimal tests for ↵Michael Trier2008-11-101-1/+1
| | | | mssql.
* If there's a zero offset with mssql just ignore it.Michael Trier2008-11-101-1/+1
|
* flattened _get_from_objects() into a descriptor/class-bound attributeMike Bayer2008-11-091-3/+3
|
* Corrected problems with reflection on mssql when dealing with schemas. Fixes ↵Michael Trier2008-11-091-4/+4
| | | | #1217.
* Fixed E notation problem in mssql. Closes #1216.Michael Trier2008-11-081-1/+8
|
* Corrected a lot of mssql limit / offset issues. Also ensured that mssql uses ↵Michael Trier2008-11-081-13/+20
| | | | the IN / NOT IN syntax when using a binary expression with a subquery.
* - Simplified the check for ResultProxy "autoclose without results"Mike Bayer2008-11-041-6/+0
| | | | | | to be based solely on presence of cursor.description. All the regexp-based guessing about statements returning rows has been removed [ticket:1212].
* Corrected case in mssql where binary expression has bind parameters on both ↵Michael Trier2008-10-231-1/+2
| | | | sides.
* Modifications to allow the backends to control the behavior of an empty ↵Michael Trier2008-10-201-0/+2
| | | | insert. If supports_empty_insert is True then the backend specifically supports the 'insert into t1 () values ()' syntax. If supports_default_values is True then the backend supports the 'insert into t1 default values' syntax. If both are false then the backend has no support for empty inserts at all and an exception gets raised. Changes here are careful to not change current behavior except where the current behavior was failing to begin with.
* Cleaned up the create_connect_args so that it makes no expectations about ↵Michael Trier2008-10-191-8/+40
| | | | keys. Fixes 1193. Added server version info into mssql pyodbc dialect.
* - "not equals" comparisons of simple many-to-one relationMike Bayer2008-10-181-1/+1
| | | | | | | | | | | | | | | to an instance will not drop into an EXISTS clause and will compare foreign key columns instead. - removed not-really-working use cases of comparing a collection to an iterable. Use contains() to test for collection membership. - Further simplified SELECT compilation and its relationship to result row processing. - Direct execution of a union() construct will properly set up result-row processing. [ticket:1194]
* Removed the visit_function stuff in mssql dialect. Added some tests for the ↵Michael Trier2008-10-111-10/+4
| | | | function overrides. Fixed up the test_select in the sql/defaults.py tests which was a mess.
* Correction of mssql schema reflection in reflectable. Still a problem since ↵Michael Trier2008-10-111-2/+6
| | | | the assumed default is dbo, whereas it could be modified by the connection. Allows SchemaTest.test_select to pass now.
* Fix bug with MSSQL reflecting and schemasPaul Johnston2008-09-091-6/+1
|
* - The 'length' argument to all Numeric types has been renamedMike Bayer2008-08-241-1/+1
| | | | | | | | | | | | | | | | to 'scale'. 'length' is deprecated and is still accepted with a warning. [ticket:827] - The 'length' argument to MSInteger, MSBigInteger, MSTinyInteger, MSSmallInteger and MSYear has been renamed to 'display_width'. [ticket:827] - mysql._Numeric now consumes 'unsigned' and 'zerofill' from the given kw, so that the same kw can be passed along to Numeric and allow the 'length' deprecation logic to still take effect - added testlib.engines.all_dialects() to return a dialect for every db module - informix added to sqlalchemy.databases.__all__. Since other "experimental" dbs like access and sybase are there, informix should be as well.
* - Temporarily rolled back the "ORDER BY" enhancementMike Bayer2008-08-061-1/+0
| | | | | from [ticket:1068]. This feature is on hold pending further development.
* - compiler visit_label() checks a flag "within_order_by" and will render its ↵Mike Bayer2008-08-031-0/+2
| | | | | | | | | | | | | | | | | | | own name and not its contained expression, if the dialect reports true for supports_simple_order_by_label. the flag is not propagated forwards, meant to closely mimic the syntax Postgres expects which is that only a simple name can be in the ORDER BY, not a more complex expression or function call with the label name embedded (mysql and sqlite support more complex expressions). This further sets the standard for propigation of **kwargs within compiler, that we can't just send **kwargs along blindly to each XXX.process() call; whenever a **kwarg needs to propagate through, most methods will have to be aware of it and know when they should send it on forward and when not. This was actually already the case with result_map as well. The supports_simple_order_by dialect flag defaults to True but is conservatively explicitly set to False on all dialects except SQLite/MySQL/Postgres to start. [ticket:1068]
* Corrected problem with detecting closed connections. Fixed issues in ↵Michael Trier2008-07-231-3/+8
| | | | reflecttable for reflecting the mssql tables. Removed unicode reflection test from mssql. Need to investigate this further.
* - Removed 2.3 Decimal compatJason Kirtland2008-07-151-1/+1
|
* - Removed 2.3 set emulations/enhancements.Jason Kirtland2008-07-151-1/+1
| | | | (sets.Set-based collections & DB-API returns still work.)
* Fix reflection where the table name has a duplicate name in a different schemaPaul Johnston2008-07-151-1/+2
|
* Fixed messed up __init__ in MSSmallDate. Fixes #1040.Michael Trier2008-07-131-1/+1
|
* Added new basic match() operator that performs a full-text search. Supported ↵Michael Trier2008-07-131-1/+5
| | | | on PostgreSQL, SQLite, MySQL, MS-SQL, and Oracle backends.
* - re-fixed the fix to the prefixes fixMike Bayer2008-07-061-10/+2
| | | | | - removed ancient descriptor() functions from dialects; replaced with Dialect.name - removed similarly ancient sys.modules silliness in Engine.name
* merged r4870 from 0.4 branch, index name truncation, [ticket:820]Mike Bayer2008-06-221-1/+1
|
* Columns now have default= and server_default=. PassiveDefault fades away.Jason Kirtland2008-05-141-2/+1
|
* r4695 merged to trunk; trunk now becomes 0.5.Mike Bayer2008-05-091-13/+15
| | | | 0.4 development continues at /sqlalchemy/branches/rel_0_4
* one-off workaround for mssql + odbc options, user patchRick Morrison2008-05-021-1/+4
|
* Added 'odbc_options' keyword to the MSSQL dialect. Allows a partial ODBC ↵Rick Morrison2008-04-171-2/+6
| | | | connection string to be passed through to the connection string generator.
* Add a new 'odbc_autotranslate' engine/dburi kwd parm to the MSSQL pyodbc ↵Rick Morrison2008-04-081-1/+8
| | | | | | dialect; string kwd contents will be passed through to ODBC connection string. [ticket:1005]
* Added a new 'max_identifier_length' keyword to the mssql_pyodbc dialectRick Morrison2008-04-021-1/+4
|
* some fixes to the MS-SQL aliasing so that result_map is properly populatedMike Bayer2008-04-021-3/+9
|
* MSSQL adjustments to pyodbc connection string buildingRick Morrison2008-03-311-38/+5
|
* Add a new 'driver' keyword to the MSSQL pyodbc Dialect.Rick Morrison2008-03-311-24/+14
| | | | Refresh items that were recently reverted by another checkin
* - schema-qualified tables now will place the schemanameMike Bayer2008-03-301-2/+0
| | | | | | | | | | ahead of the tablename in all column expressions as well as when generating column labels. This prevents cross- schema name collisions in all cases [ticket:999] - the "use_schema" argument to compiler.visit_column() is removed. It uses schema in all cases now. - added a new test to the PG dialect to test roundtrip insert/update/delete/select statements with full schema qualification
* MSSQL fixes for tickets 979, 916, 884Rick Morrison2008-03-301-5/+34
|
* - Fixed a couple pyflakes, cleaned up imports & whitespaceJason Kirtland2008-02-141-1/+1
|
* MSSQL now compiles func.now() to CURRENT_TIMESTAMPRick Morrison2008-02-141-1/+9
|
* Added EXEC to MSSQL _is_select regexp; should now detect row-returning ↵Rick Morrison2008-02-141-8/+40
| | | | | | stored procedures Added experimental implementation of limit/offset using row_number()
* Fix: deletes with schemas on MSSQL 2000 [ticket:967]Paul Johnston2008-02-081-0/+2
|
* - Warnings are now issued as SAWarning instead of RuntimeWarning; ↵Jason Kirtland2008-01-111-2/+3
| | | | | | util.warn() wraps this up. - SADeprecationWarning has moved to exceptions. An alias remains in logging until 0.5.
* Include column name in length-less String warning (more [ticket:912])Jason Kirtland2008-01-101-61/+61
|
* redid the _for_ddl String/Text deprecation warning correctly [ticket:912]Mike Bayer2008-01-091-1/+1
|
* Fix for ticket [923]Rick Morrison2008-01-071-17/+13
|
* - changed name of TEXT to Text since its a "generic" type; TEXT name isMike Bayer2008-01-051-2/+2
| | | | | | | deprecated until 0.5. The "upgrading" behavior of String to Text when no length is present is also deprecated until 0.5; will issue a warning when used for CREATE TABLE statements (String with no length for SQL expression purposes is still fine) [ticket:912]
* Fix for autoload of non-identity PK integer columns [824]Rick Morrison2007-12-191-7/+13
| | | | | | Better datetime checking/conversion for pyodbc adodbapi [842] Fix for autoloading schema-qualified tables [901] Convert_unicode support for all dialects [839]
* - cleanup; lambdas removed from properties; properties mirror same-named ↵Mike Bayer2007-12-181-1/+1
| | | | | | functions (more like eventual decorator syntax); remove some old methods, factor out some "raiseerr" ugliness to outer lying functions. - corresponding_column() integrates "require_embedded" flag with other set arithmetic
* un-screw up the attribute manager checkinMike Bayer2007-11-271-30/+2
|
* AttributeManager class and "cached" state removed....attribute listingMike Bayer2007-11-271-2/+30
| | | | is tracked from _sa_attrs class collection
* Fix: MSSQL set identity_insert and errors [ticket:538]Paul Johnston2007-11-251-17/+23
|