Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
akilude authored Apr 7, 2024
1 parent 82cb956 commit 6ada36a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions testapp/tests/test_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ def test_random_order_by(self):
self.assertNotEqual(names.count(names[0]), 20)


class TestSQLVarient(TestCase):
def test_sql_varient(self):
class TestSQLVariant(TestCase):
def test_sql_variant(self):
connection = connections['default']
with connection.cursor() as cursor:
cursor.execute("CREATE TABLE sqlVarientTest(targetCol sql_variant, colB INT)")
cursor.execute("INSERT INTO sqlVarientTest values (CAST(46279.1 as decimal(8,2)), 1689)")
cursor.execute("SELECT targetCol FROM sqlVarientTest")
cursor.execute("CREATE TABLE sqlVariantTest(targetCol sql_variant, colB INT)")
cursor.execute("INSERT INTO sqlVariantTest values (CAST(46279.1 as decimal(8,2)), 1689)")
cursor.execute("SELECT targetCol FROM sqlVariantTest")

rows = cursor.fetchall()
self.assertEqual(len(rows), 1)

0 comments on commit 6ada36a

Please sign in to comment.