From: Michael Widenius Date: June 8 2012 7:15pm Subject: re: last_insert_id() should return ulonglong, but is longlong List-Archive: http://lists.mysql.com/internals/38531 Message-Id: <20434.20294.661856.936001@narttu.askmonty.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi! >>>>> "Dvir" =3D=3D Dvir Azulay writes: Dvir> Hello, this is my first time on this mailing list so I hope I'm o= n the Dvir> right place. Dvir> Last night I encountered an issue with LAST_INSERT_ID(), when my = ID Dvir> column is an UNSIGNED BIGINT; the return value was a SIGNED BIGIN= T. Dvir> So I looked at the source code and saw this line: Dvir> =C2=A0longlong Item_func_last_insert_id::val_int() Dvir> When in other places, it was referred to as ulonglong, here it is= Dvir> longlong. (When it should be ulonglong of course). Dvir> Is this correct or am I looking at the wrong place? Now fixed and pushed into MariaDB 5.5 Regards, Monty