[TD-1851]<fix>: insert failed when \';\' is contained in column value
This commit is contained in:
parent
b5f65e47bf
commit
7ae0b8954b
|
@ -4427,8 +4427,8 @@ static void setDefaultOrderInfo(SQueryInfo* pQueryInfo) {
|
||||||
int32_t parseOrderbyClause(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, SQuerySQL* pQuerySql, SSchema* pSchema) {
|
int32_t parseOrderbyClause(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, SQuerySQL* pQuerySql, SSchema* pSchema) {
|
||||||
const char* msg0 = "only support order by primary timestamp";
|
const char* msg0 = "only support order by primary timestamp";
|
||||||
const char* msg1 = "invalid column name";
|
const char* msg1 = "invalid column name";
|
||||||
const char* msg2 = "only support order by primary timestamp and queried column";
|
const char* msg2 = "only support order by primary timestamp or queried column";
|
||||||
const char* msg3 = "only support order by primary timestamp and first tag in groupby clause";
|
const char* msg3 = "only support order by primary timestamp or first tag in groupby clause";
|
||||||
|
|
||||||
setDefaultOrderInfo(pQueryInfo);
|
setDefaultOrderInfo(pQueryInfo);
|
||||||
STableMetaInfo* pTableMetaInfo = tscGetMetaInfo(pQueryInfo, 0);
|
STableMetaInfo* pTableMetaInfo = tscGetMetaInfo(pQueryInfo, 0);
|
||||||
|
|
|
@ -244,7 +244,7 @@ int32_t shellRunCommand(TAOS* con, char* command) {
|
||||||
}
|
}
|
||||||
|
|
||||||
*p++ = c;
|
*p++ = c;
|
||||||
if (c == ';') {
|
if (c == ';' && quote == 0) {
|
||||||
c = *p;
|
c = *p;
|
||||||
*p = 0;
|
*p = 0;
|
||||||
if (shellRunSingleCommand(con, cmd) < 0) {
|
if (shellRunSingleCommand(con, cmd) < 0) {
|
||||||
|
|
Loading…
Reference in New Issue