Skip to content

Commit

Permalink
TEIID-5398 moving the unicode function specifically to sql server
Browse files Browse the repository at this point in the history
  • Loading branch information
shawkins committed Jun 27, 2018
1 parent 8563240 commit 5a3770a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Expand Up @@ -118,6 +118,7 @@ public List<?> translate(Function function) {
registerFunctionModifier(SourceSystemFunctions.SHA2_512, new TemplateFunctionModifier("HASHBYTES('SHA2_512', ", 0, ")")); //$NON-NLS-1$ //$NON-NLS-2$
registerFunctionModifier(SourceSystemFunctions.UCASE, new UpperLowerFunctionModifier("upper")); //$NON-NLS-1$
registerFunctionModifier(SourceSystemFunctions.LCASE, new UpperLowerFunctionModifier("lower")); //$NON-NLS-1$
registerFunctionModifier(SourceSystemFunctions.ASCII, new AliasModifier("unicode")); //$NON-NLS-1$
}

@Override
Expand Down
Expand Up @@ -142,7 +142,6 @@ protected void populateDateFormats() {

public void start() throws TranslatorException {
super.start();
registerFunctionModifier(SourceSystemFunctions.ASCII, new AliasModifier("unicode")); //$NON-NLS-1$
registerFunctionModifier(SourceSystemFunctions.MOD, new ModFunctionModifier("%", getLanguageFactory())); //$NON-NLS-1$
if (nullPlusNonNullIsNull()) {
registerFunctionModifier(SourceSystemFunctions.CONCAT, new AliasModifier("+")); //$NON-NLS-1$
Expand Down

0 comments on commit 5a3770a

Please sign in to comment.