Merge branch 'develop' into feature/fangstatic
This commit is contained in:
commit
a2919d7811
|
@ -28,7 +28,7 @@
|
|||
<p>在TDengine终端中,用户可以通过SQL命令来创建/删除数据库、表等,并进行插入查询操作。在终端中运行的SQL语句需要以分号结束来运行。示例:</p>
|
||||
<pre><code class="mysql language-mysql">create database db;
|
||||
use db;
|
||||
create table t (ts timestamp, cdata int);
|
||||
create table t (ts timestamp, speed int);
|
||||
insert into t values ('2019-07-15 00:00:00', 10);
|
||||
insert into t values ('2019-07-15 01:00:00', 20);
|
||||
select * from t;
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
<p>In the TDengine shell, you can create databases, create tables and insert/query data with SQL. Each query command ends with a semicolon. It works like MySQL, for example:</p>
|
||||
<pre><code class="mysql language-mysql">create database db;
|
||||
use db;
|
||||
create table t (ts timestamp, cdata int);
|
||||
create table t (ts timestamp, speed int);
|
||||
insert into t values ('2019-07-15 10:00:00', 10);
|
||||
insert into t values ('2019-07-15 10:01:05', 20);
|
||||
select * from t;
|
||||
|
|
|
@ -109,6 +109,7 @@ build_time=$(date +"%F %R")
|
|||
echo "char version[64] = \"${version}\";" > ${versioninfo}
|
||||
echo "char compatible_version[64] = \"${compatible_version}\";" >> ${versioninfo}
|
||||
echo "char gitinfo[128] = \"$(git rev-parse --verify HEAD)\";" >> ${versioninfo}
|
||||
echo "char gitinfoOfInternal[128] = \"\";" >> ${versioninfo}
|
||||
echo "char buildinfo[512] = \"Built by ${USER} at ${build_time}\";" >> ${versioninfo}
|
||||
|
||||
# 2. cmake executable file
|
||||
|
|
|
@ -179,6 +179,7 @@ extern int tsUdpDelay;
|
|||
extern char version[];
|
||||
extern char compatible_version[];
|
||||
extern char gitinfo[];
|
||||
extern char gitinfoOfInternal[];
|
||||
extern char buildinfo[];
|
||||
|
||||
extern char tsTimezone[64];
|
||||
|
|
|
@ -62,6 +62,7 @@ int main(int argc, char *argv[]) {
|
|||
#endif
|
||||
|
||||
printf("gitinfo: %s\n", gitinfo);
|
||||
printf("gitinfoI: %s\n", gitinfoOfInternal);
|
||||
printf("buildinfo: %s\n", buildinfo);
|
||||
return 0;
|
||||
} else if (strcmp(argv[i], "-k") == 0) {
|
||||
|
|
|
@ -788,6 +788,9 @@ static void doInitGlobalConfig() {
|
|||
tsInitConfigOption(cfg++, "gitinfo", gitinfo, TSDB_CFG_VTYPE_STRING,
|
||||
TSDB_CFG_CTYPE_B_SHOW | TSDB_CFG_CTYPE_B_CLIENT,
|
||||
0, 0, 0, TSDB_CFG_UTYPE_NONE);
|
||||
tsInitConfigOption(cfg++, "gitinfoOfInternal", gitinfoOfInternal, TSDB_CFG_VTYPE_STRING,
|
||||
TSDB_CFG_CTYPE_B_SHOW | TSDB_CFG_CTYPE_B_CLIENT,
|
||||
0, 0, 0, TSDB_CFG_UTYPE_NONE);
|
||||
tsInitConfigOption(cfg++, "buildinfo", buildinfo, TSDB_CFG_VTYPE_STRING,
|
||||
TSDB_CFG_CTYPE_B_SHOW | TSDB_CFG_CTYPE_B_CLIENT,
|
||||
0, 0, 0, TSDB_CFG_UTYPE_NONE);
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
char version[64] = "1.6.4.1";
|
||||
char compatible_version[64] = "1.6.1.0";
|
||||
char gitinfo[128] = "893fac9da79ef9b88355fcd18d29057adf909bbd";
|
||||
char buildinfo[512] = "Built by ubuntu at 2019-12-02 22:21";
|
||||
char gitinfo[128] = "27f51a5cea1bdcb0e7b2ef0df5649e59e6ae38ed";
|
||||
char gitinfoOfInternal[128] = "afd592a8d3aedfd7e90d5510840ba3fc73e36160";
|
||||
char buildinfo[512] = "Built by root at 2019-12-09 17:39";
|
||||
|
|
Loading…
Reference in New Issue