Skip to content

Commit

Permalink
Begin adding support for SQL Server 2000.
Browse files Browse the repository at this point in the history
  • Loading branch information
abrougher committed Mar 16, 2013
1 parent e686f97 commit d048469
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
Expand Up @@ -99,6 +99,9 @@ abstract public class AbstractSymmetricDialect implements ISymmetricDialect {

protected Map<String,String> sqlReplacementTokens = new HashMap<String, String>();

public AbstractSymmetricDialect() {
}

public AbstractSymmetricDialect(IParameterService parameterService, IDatabasePlatform platform) {
this.parameterService = parameterService;
this.platform = platform;
Expand Down
Expand Up @@ -101,6 +101,9 @@ abstract public class AbstractTriggerTemplate {

protected ISymmetricDialect symmetricDialect;

protected AbstractTriggerTemplate() {
}

protected AbstractTriggerTemplate(ISymmetricDialect symmetricDialect) {
this.symmetricDialect = symmetricDialect;
}
Expand Down Expand Up @@ -857,6 +860,7 @@ protected class ColumnString {
this.isBlobClob = isBlobClob;
}

@Override
public String toString() {
return StringUtils.isBlank(columnString) ? "null" : columnString;
}
Expand Down
Expand Up @@ -42,6 +42,7 @@
import org.jumpmind.db.platform.interbase.InterbaseDatabasePlatform;
import org.jumpmind.db.platform.mariadb.MariaDBDatabasePlatform;
import org.jumpmind.db.platform.mssql.MsSqlDatabasePlatform;
import org.jumpmind.db.platform.mssql2000.MsSql2000DatabasePlatform;
import org.jumpmind.db.platform.mysql.MySqlDatabasePlatform;
import org.jumpmind.db.platform.oracle.OracleDatabasePlatform;
import org.jumpmind.db.platform.postgresql.PostgreSqlDatabasePlatform;
Expand Down Expand Up @@ -79,6 +80,7 @@ public class JdbcDatabasePlatformFactory {
addPlatform(platforms, "Interbase", InterbaseDatabasePlatform.class);
addPlatform(platforms, "MariaDB", MariaDBDatabasePlatform.class);
addPlatform(platforms, "MsSQL", MsSqlDatabasePlatform.class);
addPlatform(platforms, "microsoft sql server8", MsSql2000DatabasePlatform.class);
addPlatform(platforms, "microsoft sql server11", MsSqlDatabasePlatform.class);
addPlatform(platforms, "microsoft sql server", MsSqlDatabasePlatform.class);
addPlatform(platforms, "MySQL", MySqlDatabasePlatform.class);
Expand All @@ -96,6 +98,7 @@ public class JdbcDatabasePlatformFactory {
jdbcSubProtocolToPlatform.put(InterbaseDatabasePlatform.JDBC_SUBPROTOCOL,
InterbaseDatabasePlatform.class);
jdbcSubProtocolToPlatform.put(MsSqlDatabasePlatform.JDBC_SUBPROTOCOL, MsSqlDatabasePlatform.class);
jdbcSubProtocolToPlatform.put(MsSql2000DatabasePlatform.JDBC_SUBPROTOCOL, MsSql2000DatabasePlatform.class);
jdbcSubProtocolToPlatform.put(MySqlDatabasePlatform.JDBC_SUBPROTOCOL, MySqlDatabasePlatform.class);
jdbcSubProtocolToPlatform.put(OracleDatabasePlatform.JDBC_SUBPROTOCOL_THIN,
OracleDatabasePlatform.class);
Expand Down
@@ -0,0 +1,19 @@
package org.jumpmind.db.platform.mssql2000;

import javax.sql.DataSource;

import org.jumpmind.db.platform.mssql.MsSqlDatabasePlatform;
import org.jumpmind.db.sql.SqlTemplateSettings;

public class MsSql2000DatabasePlatform extends MsSqlDatabasePlatform {

public MsSql2000DatabasePlatform(DataSource dataSource, SqlTemplateSettings settings) {
super(dataSource, settings);
}

@Override
public String getDefaultSchema() {
return "dbo";
}

}

0 comments on commit d048469

Please sign in to comment.