MXS-1043: Handle @@identity like @@last_insert_id
The type of @@identity, @@last_insert_id and last_insert_id() is now the same, that is, QUERY_TYPE_READ|QUERY_TYPE_MASTER_READ.
This commit is contained in:
@ -12,3 +12,6 @@ QUERY_TYPE_BEGIN_TRX
|
||||
QUERY_TYPE_ROLLBACK
|
||||
QUERY_TYPE_COMMIT
|
||||
QUERY_TYPE_SESSION_WRITE
|
||||
QUERY_TYPE_READ|QUERY_TYPE_MASTER_READ
|
||||
QUERY_TYPE_READ|QUERY_TYPE_MASTER_READ
|
||||
QUERY_TYPE_READ|QUERY_TYPE_MASTER_READ
|
||||
|
@ -12,3 +12,6 @@ BEGIN;
|
||||
ROLLBACK;
|
||||
COMMIT;
|
||||
use X;
|
||||
select last_insert_id();
|
||||
select @@last_insert_id;
|
||||
select @@identity;
|
||||
|
Reference in New Issue
Block a user