Ticket #2358 (closed: invalid)
Opened 2 years ago
Last modified 3 months ago
[patch] MS-SQL server fixes
| Reported by: | Dan Hristodorescu danh@borderfree.com | Assigned to: | nobody |
|---|---|---|---|
| Component: | Database wrapper | Version: | SVN |
| Keywords: | Cc: | moof@metamoof.net | |
| Triage Stage: | Accepted | Has patch: | 1 |
| Needs documentation: | 0 | Needs tests: | 0 |
| Patch needs improvement: | 1 |
Attachments
- mssql.diff (3.1 kB) - added by Dan Hristodorescu on 07/16/06 00:11:48.
- mssql_updated.diff (4.3 kB) - added by Dan Hristodorescu on 07/16/06 12:18:21.
- updated
- mssql_update1.diff (4.4 kB) - added by Dan Hristodorescu on 07/20/06 12:55:43.
- forgot brackets and added microseconds check
- mssql_update2.diff (12.0 kB) - added by sdelatorre+django@gmail.com on 09/07/06 18:21:25.
- [patch]The patch mentioned in the last message.
- mssql_update3.diff (12.4 kB) - added by sdelatorre+django@gmail.com on 09/28/06 20:01:07.
- Added a patch for queries that use a datetime.datetime object. Because MSSQL can't parse the microseconds from a datetime object, the microseconds need to be set to 0 before being used in a query. Also re-ran the diff against the SVN trunk for all the changes made in this ticket.
- mssql_update4.diff (13.4 kB) - added by sdelatorre+django@gmail.com on 10/11/06 10:00:05.
- I made a slight modification to the django.db.backends.util file to work with custom mssql queries. In general, the CursorDebugWrapper? attempts to record the full SQL statement that was executed by performing a string substitution on the SQL statement with its query parameters. This doesn't work with mssql queries because they use a '?' for string substitution instead of the typical Python '%s'. The new changes introduced in this patch change all ‘?’ in mssql queries to ‘%s’ before the substitution is executed. The entire patch have also been updated against the latest SVN trunk.
- mssql_update5.diff (14.0 kB) - added by sdelatorre+django@gmail.com on 10/16/06 14:26:13.
- Added another fix to the util.py file. If '%' wildcards are used in a custom query, the CursorDebugWrapper?.execute function fails. This was patched by wrapping the string substituion in a try/except block to prevent the exception from halting execution.
- mssql.patch (125.7 kB) - added by anonymous on 12/26/06 09:59:00.
- mssql_update6.diff (13.7 kB) - added by sdelatorre+django@gmail.com on 02/04/07 10:26:46.
- Added another CoInitialize?()/CoUninitialize() wrapper around the executeHelper function to fix related errors. Updated the diff against revision 4459.
- mssql_update6a.diff (14.1 kB) - added by wycharon@gmail.com on 02/05/07 09:37:05.
- modified backends/ado_mssq/base : 1. changes 'import adodbapi as Database' to 'import adodbapi.adodbapi as Database'. 2. in variantToPython,add explicitly DEFAULT_CHARSET translate for unicode
- mssql_update6b.diff (14.2 kB) - added by wycharon@gmail.com on 02/05/07 09:47:58.
- i am sorry. in mssql_update6a.diff. I forgot importing django.conf.settings
- mssql_update7.diff (14.6 kB) - added by wycharon@gmail.com on 02/06/07 03:37:43.
- modified function get_last_insert_id(). use IDENT_CURRENT(..) instead of @@IDENTITY. if someone deploy a sync insert trigger on the table, there is another insert sql after orignal insert,so @@IDENTITY is error prone
- mssql_update8.diff (0.6 kB) - added by tclancy@gmail.com on 02/07/07 13:09:39.
- Fixed typo in ado_mssql\base.py
- mssql_update8a.diff (14.5 kB) - added by wycharon@gmail.com on 02/08/07 23:11:36.
- full pacth for typo. i am sorry. it's my mistake for the typo. i will re upload the mssql_update7.diff
- mssql_update9_NOT_WORKING.patch (18.4 kB) - added by moof@metamoof.net on 03/20/07 12:04:50.
- Not working patch that resolves some issues towards getting the test suite running.
- patch_9_test_output.txt (10.2 kB) - added by moof@metamoof.net on 03/20/07 12:07:04.
- test output at --verbose=2 from running patch 9
