django-mssql / sqlserver_ado / compiler.py

Author Commit Message Labels Comments Date
Michael Manfre avatarMichael Manfre
Fixed #20 - the insert ID will be returned, even for tables with triggers.
Michael Manfre avatarMichael Manfre
Don't alter empty UPDATE sql
Michael Manfre avatarMichael Manfre
Fixed ``cast_avg_to_float`` so that it only controls the cast for ``AVG`` and not mapping other aggregates.
Michael Manfre avatarMichael Manfre
Don't execute a query that is sliced to have no results. E.g. LIMIT 0
Michael Manfre avatarMichael Manfre
Fixed #19 - Update queries now return row count
Michael Manfre avatarMichael Manfre
Fixed #18 - Ordering subqueries is prevented due to MSSQL limitation.
Michael Manfre avatarMichael Manfre
Fixed #17 - can_return_id_from_insert failed for insert statements containing DEFAULT VALUES
Michael Manfre avatarMichael Manfre
Fixed #17 - Added support for can_return_id_from_insert
Michael Manfre avatarMichael Manfre
Refactored SQLCompiler.resolve_columns for datetime fixups
Michael Manfre avatarMichael Manfre
Convert % format strings to using format in preparation for Python 3
Michael Manfre avatarMichael 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 avatarMichael 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 avatarMichael Manfre
Fix bug introduced in changeset 66b87b26a50f that incorrectly mapped result row values to columns.
Michael Manfre avatarMichael Manfre
Convert insert SQL to handle special case where inserting DEFAULT to primary key. Fixes #5
Michael Manfre avatarMichael 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 avatarMichael Manfre
Columns of type 'DateField' will now return datetime.date instead of datetime.datetime. Fixes #3. Thanks Donato Grieco
Michael Manfre avatarMichael 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 avatarMichael Manfre
Updated SQLInsertCompiler.as_sql to work with Django 1.4, which wraps the return tuple in a list. Fixes #1
Michael Manfre avatarMichael Manfre
Internal attributes for slicing will no longer prevent raw queries from executing. Fixes #120. Thanks Robin Johnson
Michael Manfre avatarMichael Manfre
Refactored repository to allow for easier packaging
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.