fixed IDENTITY crisis

parent a65f2448
last_insert_id(345)
345
@@IDENTITY last_insert_id()
345 345
select last_insert_id(345);
select @@IDENTITY,last_insert_id();
......@@ -793,9 +793,19 @@ int yylex(void *arg)
}
break;
case STATE_USER_END: // end '@' of user@hostname
if (state_map[yyPeek()] != STATE_STRING &&
state_map[yyPeek()] != STATE_USER_VARIABLE_DELIMITER)
lex->next_state=STATE_HOSTNAME; // Mark for next loop
switch (state_map[yyPeek()])
{
case STATE_STRING:
case STATE_USER_VARIABLE_DELIMITER:
break;
case STATE_USER_END:
lex->next_state=STATE_USER_END;
yySkip();
break;
default:
lex->next_state=STATE_HOSTNAME;
break;
}
yylval->lex_str.str=(char*) lex->ptr;
yylval->lex_str.length=1;
return((int) '@');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment