Skip to content

Commit

Permalink
Change query to allow for even older sqlite library
Browse files Browse the repository at this point in the history
  • Loading branch information
LourensVeen committed Jun 4, 2023
1 parent b2abe0e commit 182c450
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions libmuscle/python/libmuscle/manager/profile_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,14 @@ def _init_database(self) -> None:
" message_timestamp DOUBLE)")

cur.execute(
"CREATE VIEW all_events ("
" instance, type, start_time, stop_time, port, operator,"
" port_length, slot, message_size, message_timestamp)"
"CREATE VIEW all_events"
" AS SELECT"
" i.name, et.name, e.start_time, e.stop_time, e.port_name,"
" o.name, e.port_length, e.slot, e.message_size,"
" e.message_timestamp"
" i.name AS instance, et.name AS type,"
" e.start_time AS start_time, e.stop_time AS stop_time,"
" e.port_name AS port, o.name AS operator,"
" e.port_length AS port_length, e.slot AS slot,"
" e.message_size AS message_size,"
" e.message_timestamp AS message_timestamp"
" FROM"
" events e"
" JOIN instances i ON e.instance = i.oid"
Expand Down

0 comments on commit 182c450

Please sign in to comment.