Skip to content

Commit

Permalink
Update create_ddls.btq (#5)
Browse files Browse the repository at this point in the history
Fixing issue with Extracting Function DDLs
  • Loading branch information
MarcoCarrillo-mb authored Nov 11, 2021
1 parent 24c7c0e commit 3786be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Teradata/scripts/create_ddls.btq
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ SELECT 'SELECT ''/* <sc-view> '' || ''' || TRIM(T1.DATABASENAME) || '.' || TRIM(
**** CREATE FUNCTIONS FILE ****
.EXPORT FILE = ../temp/SHOW_Functions.sql
.SET WIDTH 65531
SELECT 'SELECT ''/* <sc-function> '' || ''' || TRIM(T1.DATABASENAME) || '.' || TRIM(T1.SpecificNAME) || ' <sc-function> */'' as "--"; ' || 'SHOW FUNCTION ' || TRIM(T1.DATABASENAME) || '.' || TRIM(T1.FUNCTIONNAME) || ';' "--"
SELECT 'SELECT ''/* <sc-function> '' || ''' || TRIM(T1.DATABASENAME) || '.' || TRIM(T1.SpecificNAME) || ' </sc-function> */'' as "--"; ' || 'SHOW FUNCTION ' || TRIM(T1.DATABASENAME) || '.' || TRIM(T1.FUNCTIONNAME) || ';' "--"
FROM DBC.FUNCTIONSV T1 WHERE include_databases AND exclude_databases GROUP BY 1;
.EXPORT RESET
.OS rm ../output/object_extracts/DDL/DDL_Functions.sql
Expand Down

0 comments on commit 3786be3

Please sign in to comment.