[TD-3086]<feature> tag support timestamp
This commit is contained in:
parent
dd69450387
commit
bd06b43059
|
@ -8029,7 +8029,7 @@ int32_t exprTreeFromSqlExpr(SSqlCmd* pCmd, tExprNode **pExpr, const tSqlExpr* pS
|
|||
tVariantAssign((*pExpr)->pVal, &pSqlExpr->value);
|
||||
|
||||
STableMeta* pTableMeta = tscGetMetaInfo(pQueryInfo, 0)->pTableMeta;
|
||||
if (pCols != NULL) {
|
||||
if (pCols != NULL && taosArrayGetSize(pCols) > 0) {
|
||||
SColIndex* idx = taosArrayGet(pCols, 0);
|
||||
SSchema* pSchema = tscGetTableColumnSchema(pTableMeta, idx->colIndex);
|
||||
// convert time by precision
|
||||
|
@ -8094,7 +8094,7 @@ int32_t exprTreeFromSqlExpr(SSqlCmd* pCmd, tExprNode **pExpr, const tSqlExpr* pS
|
|||
} else if (pSqlExpr->tokenId == TK_SET) {
|
||||
int32_t colType = -1;
|
||||
STableMeta* pTableMeta = tscGetMetaInfo(pQueryInfo, 0)->pTableMeta;
|
||||
if (pCols != NULL) {
|
||||
if (pCols != NULL && taosArrayGetSize(pCols) > 0) {
|
||||
SColIndex* idx = taosArrayGet(pCols, 0);
|
||||
SSchema* pSchema = tscGetTableColumnSchema(pTableMeta, idx->colIndex);
|
||||
if (pSchema != NULL) {
|
||||
|
|
|
@ -99,7 +99,7 @@ $i_binary2 = varchar(20) # illegal string
|
|||
$i_bool = boolean
|
||||
$nchar = nchar # nchar with unspecified length
|
||||
print ========== create_mt.sim case4: illegal data types in tags test
|
||||
sql_error create table $mt (ts timestamp, col int) tags (tag1 timestamp )
|
||||
##sql_error create table $mt (ts timestamp, col int) tags (tag1 timestamp )
|
||||
sql_error create table $mt (ts timestamp, col int) tags (tag1 $i_ts )
|
||||
sql_error create table $mt (ts timestamp, col int) tags (tag1 $i_binary )
|
||||
sql_error create table $mt (ts timestamp, col int) tags (tag1 $i_bigint )
|
||||
|
@ -253,4 +253,4 @@ if $rows != 0 then
|
|||
return -1
|
||||
endi
|
||||
|
||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||
|
|
Loading…
Reference in New Issue