Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit ffbc7f7

Browse files
committed
Tests: Fix for Oracle
1 parent e02e8fc commit ffbc7f7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_diff_tables.py

+6
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,9 @@ def setUp(self):
513513
]
514514
for i in range(0, 10000, 1000):
515515
a = ArithAlphanumeric(numberToAlphanum(i), max_len=10)
516+
if not a and isinstance(self.connection, db.Oracle):
517+
# Skip empty string, because Oracle treats it as NULL ..
518+
continue
516519
queries.append(f"INSERT INTO {self.table_src} VALUES ('{a}', '{i}')")
517520

518521
queries += [
@@ -561,6 +564,9 @@ def setUp(self):
561564
]
562565
for i in range(0, 10000, 1000):
563566
a = ArithAlphanumeric(numberToAlphanum(i * i))
567+
if not a and isinstance(self.connection, db.Oracle):
568+
# Skip empty string, because Oracle treats it as NULL ..
569+
continue
564570
queries.append(f"INSERT INTO {self.table_src} VALUES ('{a}', '{i}')")
565571

566572
queries += [

0 commit comments

Comments
 (0)