Package org.flywaydb.core.internal.dbsupport

Examples of org.flywaydb.core.internal.dbsupport.DbSupport.quote()


            if (!dbSupport.getCurrentSchema().getTable(flyway.getTable()).exists()) {
                return;
            }

            String sql = "DELETE FROM " + flyway.getTable()
                + " WHERE " + dbSupport.quote("type") + "='CUSTOM'";
            connection.prepareCall(sql).execute();
        } catch (SQLException e) {
            LOG.error(e.getMessage(), e);
        } catch (IOException e) {
            LOG.error(e.getMessage(), e);
View Full Code Here


            DbSupport dbSupport = DbSupportFactory.createDbSupport(connection, false);
            if (dbSupport.getCurrentSchema().getTable(tmpFlywayTable).exists()) {
                dbSupport.getJdbcTemplate().executeStatement("DROP TABLE " + tmpFlywayTable);
            }
            String sql = "CREATE TABLE " + tmpFlywayTable + " AS SELECT * FROM " + flyway.getTable() +
                    " WHERE " + dbSupport.quote("type") + "='CUSTOM'";
            connection.prepareCall(sql).execute();

            sql = "DELETE FROM " + flyway.getTable()
                    + " WHERE " + dbSupport.quote("type") + "='CUSTOM'";
            connection.prepareCall(sql).execute();
View Full Code Here

            String sql = "CREATE TABLE " + tmpFlywayTable + " AS SELECT * FROM " + flyway.getTable() +
                    " WHERE " + dbSupport.quote("type") + "='CUSTOM'";
            connection.prepareCall(sql).execute();

            sql = "DELETE FROM " + flyway.getTable()
                    + " WHERE " + dbSupport.quote("type") + "='CUSTOM'";
            connection.prepareCall(sql).execute();
        } catch (SQLException e) {
            LOG.error(e.getMessage(), e);
        }
    }
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.