From d69b5169e824b1bdcf498f42f1bfbc2d49c83d57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=89=91=E5=99=A8=E8=BF=91?= Date: Sun, 31 Jan 2021 15:14:31 +0800 Subject: [PATCH] =?UTF-8?q?1.DWORD=E4=B8=BA=E6=97=A0=E7=AC=A6=E5=8F=B732?= =?UTF-8?q?=E4=BD=8D=E6=95=B4=E5=9E=8B=EF=BC=8CPrepareLoadStrategy?= =?UTF-8?q?=E4=B8=ADDWORD=E5=AF=B9=E5=BA=94=E7=9A=84Java=E7=B1=BB=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=BALong;=202.=E5=A2=9E=E5=8A=A0QWORD=E8=A7=A3?= =?UTF-8?q?=E6=9E=90;=203.=E5=8D=87=E7=BA=A7netty=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- .../io/github/yezhihao/protostar/PrepareLoadStrategy.java | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index a645d8b..5ae991b 100644 --- a/pom.xml +++ b/pom.xml @@ -62,7 +62,7 @@ io.netty netty-buffer - 4.1.54.Final + 4.1.58.Final provided diff --git a/src/main/java/io/github/yezhihao/protostar/PrepareLoadStrategy.java b/src/main/java/io/github/yezhihao/protostar/PrepareLoadStrategy.java index 032afc2..a2c9010 100644 --- a/src/main/java/io/github/yezhihao/protostar/PrepareLoadStrategy.java +++ b/src/main/java/io/github/yezhihao/protostar/PrepareLoadStrategy.java @@ -42,7 +42,10 @@ public abstract class PrepareLoadStrategy extends IdStrategy { this.typeIdMapping.put(key, NumberSchema.Int16.INSTANCE); break; case DWORD: - this.typeIdMapping.put(key, NumberSchema.Int32.INSTANCE); + this.typeIdMapping.put(key, NumberSchema.Long32.INSTANCE); + break; + case QWORD: + this.typeIdMapping.put(key, NumberSchema.Long64.INSTANCE); break; case BYTES: this.typeIdMapping.put(key, ArraySchema.ByteArraySchema.INSTANCE);