diff --git a/tests/regressiontests/model_fields/tests.py b/tests/regressiontests/model_fields/tests.py
index ea1e1c7..b265e9d 100644
|
a
|
b
|
from decimal import Decimal
|
| 6 | 6 | from django import test |
| 7 | 7 | from django import forms |
| 8 | 8 | from django.core.exceptions import ValidationError |
| 9 | | from django.db import models |
| | 9 | from django.db import connection, models |
| 10 | 10 | from django.db.models.fields.files import FieldFile |
| 11 | 11 | from django.utils import unittest |
| 12 | 12 | |
| … |
… |
class BooleanFieldTests(unittest.TestCase):
|
| 207 | 207 | # http://code.djangoproject.com/ticket/13293 |
| 208 | 208 | # Verify that when an extra clause exists, the boolean |
| 209 | 209 | # conversions are applied with an offset |
| | 210 | length = 'LENGTH(string)' |
| | 211 | if connection.vendor == 'microsoft': |
| | 212 | length = 'LEN(string)' |
| 210 | 213 | b5 = BooleanModel.objects.all().extra( |
| 211 | | select={'string_length': 'LENGTH(string)'})[0] |
| | 214 | select={'string_length': length})[0] |
| 212 | 215 | self.assertFalse(isinstance(b5.pk, bool)) |
| 213 | 216 | |
| 214 | 217 | class ChoicesTests(test.TestCase): |