From fd06ec5a23c8017e1a1da2fbb04bd19e7629123a Mon Sep 17 00:00:00 2001 From: Colin Dellow Date: Thu, 5 Jul 2018 19:17:19 -0400 Subject: [PATCH] test `rowid IS NULL` Found via coverage --- tests/templates/142-rowid-is-null.sql | 1 + tests/test-random | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 tests/templates/142-rowid-is-null.sql diff --git a/tests/templates/142-rowid-is-null.sql b/tests/templates/142-rowid-is-null.sql new file mode 100644 index 0000000..e93220c --- /dev/null +++ b/tests/templates/142-rowid-is-null.sql @@ -0,0 +1 @@ +SELECT * FROM nulls WHERE rowid IS NULL diff --git a/tests/test-random b/tests/test-random index e42e2e5..f718882 100755 --- a/tests/test-random +++ b/tests/test-random @@ -94,6 +94,7 @@ def test_table(conn, table): all_values = [] for values in column_values.values(): all_values = all_values + values + print(all_values) for i in range(1000): test_statement(conn, table, column_values, all_values) @@ -107,5 +108,5 @@ def test_db(db_file, extension_file, tables): if __name__ == '__main__': db_file = os.path.abspath(os.path.join(__file__, '..', '..', 'test.db')) - extension_file = os.path.abspath(os.path.join(__file__, '..', '..', 'build', 'linux', 'libparquet.so')) + extension_file = os.path.abspath(os.path.join(__file__, '..', '..', 'build', 'linux', 'libparquet')) test_db(db_file, extension_file, ['nulls', 'no_nulls'])