'select current_database(); should be select database();' in code comments
This commit is contained in:
parent
a2e5f6504c
commit
ebfd342ab7
|
@ -8785,7 +8785,7 @@ int32_t validateSqlNode(SSqlObj* pSql, SSqlNode* pSqlNode, SQueryInfo* pQueryInf
|
|||
* select server_status();
|
||||
* select server_version();
|
||||
* select client_version();
|
||||
* select current_database();
|
||||
* select database();
|
||||
*/
|
||||
if (pSqlNode->from == NULL) {
|
||||
assert(pSqlNode->fillType == NULL && pSqlNode->pGroupby == NULL && pSqlNode->pWhere == NULL &&
|
||||
|
|
|
@ -493,7 +493,7 @@ union(Y) ::= union(Z) UNION ALL select(X). { Y = appendSelectClause(Z, X); }
|
|||
cmd ::= union(X). { setSqlInfo(pInfo, X, NULL, TSDB_SQL_SELECT); }
|
||||
|
||||
// Support for the SQL exprssion without from & where subclauses, e.g.,
|
||||
// select current_database()
|
||||
// select database()
|
||||
// select server_version()
|
||||
// select client_version()
|
||||
// select server_state()
|
||||
|
|
Loading…
Reference in New Issue