Skip to content
This repository was archived by the owner on Jun 14, 2022. It is now read-only.

Commit 7379270

Browse files
Andrea Bettichsliverc
authored andcommitted
Resolve syntax error in example database import (#9)
* Resolve syntax error in example database import. fixes #5
1 parent 4580f29 commit 7379270

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

sample_config/database-layout-update-001.sql

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,10 @@ SELECT DISTINCT
8484
c.end_date,
8585
c.prio,
8686
c.shutdown_vm
87-
FROM
87+
FROM (
8888
sysinfo_to_thinclient_mapping s
89-
LEFT JOIN (
90-
current_thinclient_to_vm_mapping c ON (((s.thinclient)::text = (c.thinclient)::text))
91-
)
89+
LEFT JOIN current_thinclient_to_vm_mapping c ON (((s.thinclient)::text = (c.thinclient)::text))
90+
)
9291
ORDER BY
9392
c.prio DESC,
9493
c.start_date,

sample_config/database-layout.sql

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,10 @@ SELECT DISTINCT
168168
c.end_date,
169169
c.prio,
170170
c.shutdown_vm
171-
FROM
171+
FROM (
172172
sysinfo_to_thinclient_mapping s
173-
LEFT JOIN (
174-
current_thinclient_to_vm_mapping c ON (((s.thinclient)::text = (c.thinclient)::text))
175-
)
173+
LEFT JOIN current_thinclient_to_vm_mapping c ON (((s.thinclient)::text = (c.thinclient)::text))
174+
)
176175
ORDER BY
177176
c.prio DESC,
178177
c.start_date,

0 commit comments

Comments
 (0)