last_insert_id() should return ulonglong, but is longlong
Dvir Azulay <[email protected]> Thu, 31 May 2012 20:05:20 +0300
| Newsgroups | gmane.comp.db.mysql.devel |
|---|---|
| Message-ID | <CAM7nmL_Ac58uxOsQ++OTSp8dW4ftHXKatTtui0DDpNymfeAP7Q@mail.gmail.com> |
Hello, this is my first time on this mailing list so I hope I'm on the right place. Last night I encountered an issue with LAST_INSERT_ID(), when my ID column is an UNSIGNED BIGINT; the return value was a SIGNED BIGINT. So I looked at the source code and saw this line: longlong Item_func_last_insert_id::val_int() When in other places, it was referred to as ulonglong, here it is longlong. (When it should be ulonglong of course). Is this correct or am I looking at the wrong place? -- MySQL Internals Mailing List For list archives: http://lists.mysql.com/internals To unsubscribe: http://lists.mysql.com/internals