Skip to content

Commit

Permalink
0005505: Prevented Oracle TO_TIMESTAMP() function from being surround…
Browse files Browse the repository at this point in the history
…ed by quotes when imported as a default value
  • Loading branch information
evan-miller-jumpmind committed Oct 4, 2022
1 parent ac680dd commit 846ce5f
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -1877,6 +1877,7 @@ protected void printDefaultValue(String defaultValue, int typeCode, StringBuilde
String defaultValueStr = mapDefaultValue(defaultValue, typeCode);
boolean shouldUseQuotes = !isNull && !TypeMap.isNumericType(typeCode)
&& !(TypeMap.isDateTimeType(typeCode) && (defaultValueStr.toUpperCase().startsWith("TO_DATE(")
|| defaultValueStr.toUpperCase().startsWith("TO_TIMESTAMP(")
|| defaultValueStr.toUpperCase().startsWith("SYSDATE")
|| defaultValueStr.toUpperCase().startsWith("SYSTIMESTAMP")
|| defaultValueStr.toUpperCase().startsWith("SYS_EXTRACT_UTC(")
Expand Down

0 comments on commit 846ce5f

Please sign in to comment.