未验证 提交 744d31cb 编写于 作者: H hzcheng 提交者: GitHub

Merge pull request #310 from fangpanpan/master

change the range of int data to 0-49
......@@ -808,7 +808,7 @@ void generateData(char *res, char **data_type, int num_of_cols, long timestamp,
} else if (strcasecmp(data_type[i % c], "smallint") == 0) {
pstr += sprintf(pstr, ", %d", (int)(rand() % 32767));
} else if (strcasecmp(data_type[i % c], "int") == 0) {
pstr += sprintf(pstr, ", %d", (int)(rand() % 2147483648));
pstr += sprintf(pstr, ", %d", (int)(rand() % 50));
} else if (strcasecmp(data_type[i % c], "bigint") == 0) {
pstr += sprintf(pstr, ", %ld", rand() % 2147483648);
} else if (strcasecmp(data_type[i % c], "float") == 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册