re: last_insert_id() should return ulonglong, but is longlong
Michael Widenius <[email protected]> Fri, 8 Jun 2012 22:15:18 +0300
| Newsgroups | gmane.comp.db.mysql.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi! >>>>> "Dvir" == Dvir Azulay <[email protected]> writes: Dvir> Hello, this is my first time on this mailing list so I hope I'm on 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 BIGINT. Dvir> So I looked at the source code and saw this line: Dvir> longlong 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 -- MySQL Internals Mailing List For list archives: http://lists.mysql.com/internals To unsubscribe: http://lists.mysql.com/internals