Commit bb3b135a authored by Danijel Schorlemmer's avatar Danijel Schorlemmer
Browse files

DB-problem test code

parent 26166d51
Pipeline #19082 failed with stage
in 35 seconds
......@@ -9,12 +9,6 @@ def polygon_test(database_filepath):
conn = sqlite3.connect(database_filepath)
print("Database created")
# For debug
rs = conn.execute('SELECT sqlite_version(), spatialite_version()')
for row in rs:
msg = "> SQLite v%s Spatialite v%s" % (row[0], row[1])
print(msg)
conn.enable_load_extension(True)
sql_statement = "SELECT load_extension('/usr/lib64/mod_spatialite.so.7');"
conn.execute(sql_statement)
......@@ -151,11 +145,6 @@ def db_test(database_filepath):
def main():
db_test('../skr/polygon_test.sqlite')
db_test('../skr/testdb.sqlite')
exit()
polygon_test('../skr/testdb.sqlite')
polygon_test('../skr/polygon_test.sqlite')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment