forked from Qortal/qortal
Don't use WITH COLUMN NAMES when exporting data from repository into local file
This commit is contained in:
parent
8c9f68a9c3
commit
b3f859f290
@ -402,8 +402,8 @@ public class HSQLDBRepository implements Repository {
|
|||||||
@Override
|
@Override
|
||||||
public void exportNodeLocalData() throws DataException {
|
public void exportNodeLocalData() throws DataException {
|
||||||
try (Statement stmt = this.connection.createStatement()) {
|
try (Statement stmt = this.connection.createStatement()) {
|
||||||
stmt.execute("PERFORM EXPORT SCRIPT FOR TABLE MintingAccounts DATA WITH COLUMN NAMES TO 'MintingAccounts.script'");
|
stmt.execute("PERFORM EXPORT SCRIPT FOR TABLE MintingAccounts DATA TO 'MintingAccounts.script'");
|
||||||
stmt.execute("PERFORM EXPORT SCRIPT FOR TABLE TradeBotStates DATA WITH COLUMN NAMES TO 'TradeBotStates.script'");
|
stmt.execute("PERFORM EXPORT SCRIPT FOR TABLE TradeBotStates DATA TO 'TradeBotStates.script'");
|
||||||
LOGGER.info("Exported sensitive/node-local data: minting keys and trade bot states");
|
LOGGER.info("Exported sensitive/node-local data: minting keys and trade bot states");
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw new DataException("Unable to export sensitive/node-local data from repository");
|
throw new DataException("Unable to export sensitive/node-local data from repository");
|
||||||
|
Loading…
Reference in New Issue
Block a user