Skip to content

Commit

Permalink
TEIID-4294 temporarily marking invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
shawkins committed Feb 9, 2017
1 parent 9bda88b commit 318eb73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions engine/src/main/resources/org/teiid/metadata/SYSADMIN.sql
Expand Up @@ -306,6 +306,9 @@ BEGIN

IF (VARIABLES.afterLoadScript IS NOT null)
BEGIN
IF (VARIABLES.loadScript IS null AND VARIABLES.valid AND VARIABLES.loadNumColumn IS null)
--assume that the after state will be invalid, will be updated again below
EXECUTE IMMEDIATE 'UPDATE ' || VARIABLES.statusTable || ' SET valid = false ' || VARIABLES.updateCriteria USING vdbName = VARIABLES.vdbName, vdbVersion = VARIABLES.vdbVersion, schemaName = schemaName, viewName = loadMatView.viewName;
EXECUTE IMMEDIATE VARIABLES.afterLoadScript;
END

Expand Down
@@ -1,6 +1,6 @@
string clob
Name Body
loadMatView Clob[10923]
loadMatView Clob[11268]
matViewStatus Clob[3064]
updateMatView Clob[8790]
Row Count : 3
Expand Down

0 comments on commit 318eb73

Please sign in to comment.