Skip to content

Commit

Permalink
0000766: dbimport of timestamp column doesn't support 'default' for O…
Browse files Browse the repository at this point in the history
…racle (maybe others)
  • Loading branch information
mhanes committed Aug 9, 2012
1 parent d3d334f commit 4a4445e
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -252,8 +252,13 @@ protected void printDefaultValue(Object defaultValue, int typeCode, StringBuilde
if (defaultValue != null) {
String defaultValueStr = defaultValue.toString();
boolean shouldUseQuotes = !TypeMap.isNumericType(typeCode)
&& !defaultValueStr.startsWith("TO_DATE(");

&& !defaultValueStr.startsWith("TO_DATE(")
&& !defaultValueStr.equalsIgnoreCase("SYSDATE")
&& !defaultValueStr.equalsIgnoreCase("SYSTIMESTAMP")
&& !defaultValueStr.equalsIgnoreCase("CURRENT_TIMESTAMP")
&& !defaultValueStr.equalsIgnoreCase("CURRENT_DATE");


if (shouldUseQuotes) {
// characters are only escaped when within a string literal
ddl.append(databaseInfo.getValueQuoteToken());
Expand Down

0 comments on commit 4a4445e

Please sign in to comment.