summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNeeraj Bisht <neeraj.x.bisht@oracle.com>2012-10-16 23:26:35 +0530
committerNeeraj Bisht <neeraj.x.bisht@oracle.com>2012-10-16 23:26:35 +0530
commitd974ea7f534e40bf6810c1bb5134ef64cbc78ce2 (patch)
treee8cf396d84fc02b74a2ce395a4dc04a464fc7a07 /scripts
parent6e8d0f3a4a31dda6ff2bd4367cb55b3a4f794d5e (diff)
parentc55dd6bd4acc61181cd0737388516bbc70c8e000 (diff)
downloadmariadb-git-d974ea7f534e40bf6810c1bb5134ef64cbc78ce2.tar.gz
Bug#11745891 - LAST_INSERT(ID) DOES NOT SUPPORT BIGINT UNSIGNED
Problem:- using last_insert_id() on an auto_incremented bigint unsigned does not work for values which are greater than max-bigint-signed. Analysis:- last_insert_id() returns the first auto_incremented value for a column and an auto_incremented value can have only positive values. In our code, when we are initializing a last_insert_id object, we are taking it as a signed BIGINT, So when the auto_incremented value reaches greater than max signed bigint, last_insert_id gives negative result. Solution: When we are fetching the value from last_insert_id, We are setting the unsigned_flag, so that it take only unsigned BIGINT value.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions