fix: BINARY_COLUMN_SIZE is too short

fix: A TDengineError will be thrown since "California.SanFrancisco" is 23 bytes, and BINARY_COLUMN_SIZE is 20
This commit is contained in:
Zhiyu Yang 2022-10-09 15:56:46 +08:00 committed by GitHub
parent ba912cdfc0
commit 31a4fe0722
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ public class ParameterBindingDemo {
private static final String host = "127.0.0.1";
private static final Random random = new Random(System.currentTimeMillis());
private static final int BINARY_COLUMN_SIZE = 20;
private static final int BINARY_COLUMN_SIZE = 30;
private static final String[] schemaList = {
"create table stable1(ts timestamp, f1 tinyint, f2 smallint, f3 int, f4 bigint) tags(t1 tinyint, t2 smallint, t3 int, t4 bigint)",
"create table stable2(ts timestamp, f1 float, f2 double) tags(t1 float, t2 double)",