1. Thomas Hoffbauer
  2. django-mssql

Source

django-mssql / sqlserver_ado / compiler.py

Author Commit Message Date Builds
Michael Manfre
Fixed #17 - can_return_id_from_insert failed for insert statements containing DEFAULT VALUES
Michael Manfre
Fixed #17 - Added support for can_return_id_from_insert This is enabled by default and disabled if the SQL version is detected as SQL Server 2000. Implementation for Django < 1.5 will inject a comment containing the quoted table name and column name. This comment is not present in Django 1.5, compliments of Django ticket #19096.
Michael Manfre
Refactored SQLCompiler.resolve_columns for datetime fixups
Michael Manfre
Convert % format strings to using format in preparation for Python 3
Michael Manfre
Added mappings for StdDev and Variance aggregates to work with MSSQL. Applied patch to django ticket #18333 to enable supports_stddev. Refs #7
Michael Manfre
SQL containing AVG(...) will be modified to cast the contained values to float to allow the function to behave the same as for other databases. E.g. AVG([1,2]) will return 1.5, instead of 1. Casting can be disabled by 'disable_avg_cast' database option. Fixes #7
Michael Manfre
Fix bug introduced in changeset 66b87b26a50f that incorrectly mapped result row values to columns.
Michael Manfre
Convert insert SQL to handle special case where inserting DEFAULT to primary key. Fixes #5
Michael Manfre
datetime.time values will convert to datetime.min + time going to the database and a datetime.time will be returned when reading from the database.
Michael Manfre
Columns of type 'DateField' will now return datetime.date instead of datetime.datetime. Fixes #3. Thanks Donato Grieco
Michael Manfre
SQLInsertCompiler was incorrectly returning only the first set of values for a bulk_create call, instead of all of them. This is needed even with has_bulk_insert = False.
Michael Manfre
Updated SQLInsertCompiler.as_sql to work with Django 1.4, which wraps the return tuple in a list. Fixes #1
Michael Manfre
Internal attributes for slicing will no longer prevent raw queries from executing. Fixes #120. Thanks Robin Johnson
Michael Manfre
Refactored repository to allow for easier packaging