I have run across some instances where the SQL rendered for PostgresSQL appends the “dbo.” text to the table names. I believe that earlier versions used this as a hack to use the default schema for MSSQL. I couldn’t find if this has been addressed in any of the versions. I am using the Broadsea container (with version 2.2.0 of ATLAS).
For example, in ATLAS, I clicked on the Jobs menu item from the left, and no job history showed up. When I turn on developer tools in Chrome, the error message on the console is:
GET http://localhost:8080/WebAPI/job/execution?comprehensivePage=true 500 (Internal Server Error)
send @ jquery-1.11.2.min.js:4
ajax @ jquery-1.11.2.min.js:4
self.updateJobs @ job-manager.js:10
jobManager @ job-manager.js:41
(anonymous) @ knockout.min.js:73
c @ knockout.min.js:78
(anonymous) @ knockout.min.js:79
(anonymous) @ knockout.min.js:72
setTimeout (async)
get @ knockout.min.js:72
a.w.q @ knockout.min.js:79
l @ knockout.min.js:44
h @ knockout.min.js:43
notifySubscribers @ knockout.min.js:33
d.W @ knockout.min.js:36
d @ knockout.min.js:36
(anonymous) @ app.js:173
execCb @ require.js:29
check @ require.js:18
enable @ require.js:23
init @ require.js:17
(anonymous) @ require.js:26
setTimeout (async)
g.nextTick @ require.js:32
j @ require.js:26
requirejs @ require.js:32
/jobs @ app.js:169
e @ director.min.js:7
f @ director.min.js:7
e.invoke @ director.min.js:7
h @ director.min.js:7
e.dispatch @ director.min.js:7
handler @ director.min.js:7
d @ director.min.js:7
In my PostgreSQL log is the following:
2018-04-03 14:28:03 PDT [7674-1] ohdsi_admin_user@ohdsi ERROR: relation "dbo.batch_job_execution" does not exist at character 262
2018-04-03 14:28:03 PDT [7674-2] ohdsi_admin_user@ohdsi STATEMENT:
select E.JOB_EXECUTION_ID, E.START_TIME, E.END_TIME, E.STATUS, E.EXIT_CODE, E.EXIT_MESSAGE, E.CREATE_TIME, E.LAST_UPDATED, E.VERSION,
I.JOB_INSTANCE_ID, I.JOB_NAME, P.KEY_NAME, P.TYPE_CD, P.STRING_VAL, P.DATE_VAL, P.LONG_VAL, P.DOUBLE_VAL, P.IDENTIFYING
from dbo.BATCH_JOB_EXECUTION E
join dbo.BATCH_JOB_INSTANCE I on I.JOB_INSTANCE_ID = E.JOB_INSTANCE_ID
left outer join dbo.BATCH_JOB_EXECUTION_PARAMS P on P.JOB_EXECUTION_ID = E.JOB_EXECUTION_ID
order by E.START_TIME DESC