public String getDDL( String tableName, RowMetaInterface fields, String tk, boolean use_autoinc, String pk,
boolean semicolon ) throws KettleDatabaseException {
String retval;
databaseMeta.quoteReservedWords( fields );
String quotedTk = tk != null ? databaseMeta.quoteField( tk ) : null;
if ( checkTableExists( tableName ) ) {
retval = getAlterTableStatement( tableName, fields, quotedTk, use_autoinc, pk, semicolon );
} else {
retval = getCreateTableStatement( tableName, fields, quotedTk, use_autoinc, pk, semicolon );
}
return retval;
}