Examples of supportsCatalogs()


Examples of liquibase.database.Database.supportsCatalogs()

        final Database database = liquibase.getDatabase();
        final String catalogName = namespace.getString("catalog");
        final String schemaName = namespace.getString("schema");

        if(database.supportsCatalogs() && catalogName != null) {
            database.setDefaultCatalogName(catalogName);
            database.setOutputDefaultCatalog(true);
        }
        if(database.supportsSchemas() && schemaName != null) {
            database.setDefaultSchemaName(schemaName);
View Full Code Here

Examples of liquibase.database.Database.supportsCatalogs()

            }
            if (schemaName == null) {
                schemaName = database.getDefaultSchemaName();
            }
        } else {
            if (database.supportsCatalogs()) {
                if (catalogName == null && schemaName != null) {
                    catalogName = schemaName;
                    schemaName = null;
                }
            } else {
View Full Code Here

Examples of liquibase.database.Database.supportsCatalogs()

            throw new UnexpectedLiquibaseException("Unexpected example type: " + example.getClass().getName());
        }
        Database database = snapshot.getDatabase();
        Catalog match = null;
        String catalogName = example.getName();
        if (catalogName == null && database.supportsCatalogs()) {
            catalogName = database.getDefaultCatalogName();
        }
        example = new Catalog(catalogName);

        try {
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.sql.SQLDatabaseMetaData.supportsCatalogs()

    final SQLDatabaseMetaData md = conn.getSQLMetaData();

    boolean supportsCatalogs = false;
    try
    {
      supportsCatalogs = md.supportsCatalogs();
    }
    catch (SQLException ex)
    {
      s_log.debug("DBMS doesn't support 'supportsCatalogs()", ex);
    }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.sql.SQLDatabaseMetaData.supportsCatalogs()

         try
         {
            SQLDatabaseMetaData md =
               _session.getSQLConnection().getSQLMetaData();
            if (md.supportsCatalogs())
            {
               _addDetailTab(DatabaseObjectType.SESSION, new CatalogsTab());
            }
         }
         catch (Throwable th)
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.sql.SQLDatabaseMetaData.supportsCatalogs()

    if (conn == null)
    {
      throw new IllegalArgumentException("SQLConnection == null");
    }
    final SQLDatabaseMetaData md = conn.getSQLMetaData();
    if (md.supportsCatalogs())
    {
      final String[] catalogs = md.getCatalogs();
      if (catalogs != null)
      {
        setCatalogs(catalogs, conn.getCatalog());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.