diff --git a/src/client/src/tscPrepare.c b/src/client/src/tscPrepare.c index fe609da9a5d9f4b51151247d03d9553f3ebf02ed..a579eacdea7c915d9d22e4ac163876e3fbe7d8ae 100644 --- a/src/client/src/tscPrepare.c +++ b/src/client/src/tscPrepare.c @@ -422,7 +422,7 @@ static int doBindParam(char* data, SParamInfo* param, TAOS_BIND* bind) { } break; case TSDB_DATA_TYPE_BIGINT: { int64_t v = *(int64_t*)bind->buffer; - u.v4 = v; + u.v4 = (int32_t)v; if (v >= INT_MIN && v <= INT_MAX) break; return TSDB_CODE_TSC_INVALID_VALUE; } break;