feat: sql command 'insert ... select'
This commit is contained in:
parent
811bdc2b06
commit
331dca1f58
|
@ -110,7 +110,7 @@ typedef struct SMemParam {
|
|||
static int32_t skipInsertInto(char** pSql, SMsgBuf* pMsg) {
|
||||
SToken sToken;
|
||||
NEXT_TOKEN(*pSql, sToken);
|
||||
if (TK_INSERT != sToken.type) {
|
||||
if (TK_INSERT != sToken.type && TK_IMPORT != sToken.type) {
|
||||
return buildSyntaxErrMsg(pMsg, "keyword INSERT is expected", sToken.z);
|
||||
}
|
||||
NEXT_TOKEN(*pSql, sToken);
|
||||
|
|
|
@ -34,6 +34,7 @@ bool qIsInsertValuesSql(const char* pStr, size_t length) {
|
|||
|
||||
do {
|
||||
pStr += index;
|
||||
index = 0;
|
||||
t = tStrGetToken((char*)pStr, &index, false);
|
||||
if (TK_USING == t.type || TK_VALUES == t.type) {
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue