From a293b09ef5d13e4eb0ebd20269b5aa406e42b88e Mon Sep 17 00:00:00 2001 From: Kalpesh Parmar Date: Mon, 20 Jul 2015 12:30:35 +0100 Subject: [PATCH] MySQL data type fixed. Changed binary to varbinary. --- .../org/bitcoinj/store/MySQLFullPrunedBlockStore.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/org/bitcoinj/store/MySQLFullPrunedBlockStore.java b/core/src/main/java/org/bitcoinj/store/MySQLFullPrunedBlockStore.java index 865c2313..4e8ba194 100644 --- a/core/src/main/java/org/bitcoinj/store/MySQLFullPrunedBlockStore.java +++ b/core/src/main/java/org/bitcoinj/store/MySQLFullPrunedBlockStore.java @@ -39,16 +39,16 @@ public class MySQLFullPrunedBlockStore extends DatabaseFullPrunedBlockStore { ")\n"; private static final String CREATE_HEADERS_TABLE = "CREATE TABLE headers (\n" + - " hash binary(28) NOT NULL,\n" + - " chainwork binary(12) NOT NULL,\n" + + " hash varbinary(28) NOT NULL,\n" + + " chainwork varbinary(12) NOT NULL,\n" + " height integer NOT NULL,\n" + - " header binary(80) NOT NULL,\n" + + " header varbinary(80) NOT NULL,\n" + " wasundoable tinyint(1) NOT NULL,\n" + " CONSTRAINT headers_pk PRIMARY KEY (hash) USING BTREE \n" + ")"; private static final String CREATE_UNDOABLE_TABLE = "CREATE TABLE undoableblocks (\n" + - " hash binary(28) NOT NULL,\n" + + " hash varbinary(28) NOT NULL,\n" + " height integer NOT NULL,\n" + " txoutchanges mediumblob,\n" + " transactions mediumblob,\n" + @@ -56,7 +56,7 @@ public class MySQLFullPrunedBlockStore extends DatabaseFullPrunedBlockStore { ")\n"; private static final String CREATE_OPEN_OUTPUT_TABLE = "CREATE TABLE openoutputs (\n" + - " hash binary(32) NOT NULL,\n" + + " hash varbinary(32) NOT NULL,\n" + " `index` integer NOT NULL,\n" + " height integer NOT NULL,\n" + " value bigint NOT NULL,\n" +