Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

NEW - bug 238864: MyAQL DB generate ddl of table "withdefault" has error

  • Loading branch information...
commit 213e6713af5bbb68d472e9ae9bac543c2e26f0ff 1 parent 124b366
@bfitzpat bfitzpat authored
View
4 ...g.eclipse.datatools.enablement.mysql/src/org/eclipse/datatools/enablement/mysql/ddl/MySqlDdlBuilder.java
@@ -56,6 +56,7 @@
import org.eclipse.emf.ecore.EObject;
import com.ibm.icu.util.StringTokenizer;
+import org.eclipse.datatools.modelbase.sql.datatypes.BinaryStringDataType;
/**
* This class generates the actual sql statements for MySql
@@ -625,7 +626,10 @@ protected String getColumnString(Column column, boolean quoteIdentifiers,
dataType.equals("DATE") || //$NON-NLS-1$
dataType.equals("TIMESTAMP")) { //$NON-NLS-1$
defaultValue = "'" + defaultValue.trim() + "'"; //$NON-NLS-1$//$NON-NLS-2$
+ } else if (column.getDataType() instanceof BinaryStringDataType ) {
+ defaultValue = "'" + defaultValue + "'"; //$NON-NLS-1$//$NON-NLS-2$
}
+
if (defaultValue.equals("")){ //$NON-NLS-1$
defaultValue = "''"; //$NON-NLS-1$
}
Please sign in to comment.
Something went wrong with that request. Please try again.