note 84408 rejected from function.sprintf by mgf
| From: | mgf@php.net | Date: | Mon, 14 Jul 2008 12:12:33 +0000 |
| Subject: | note 84408 rejected from function.sprintf by mgf | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-141478@lists.php.net to get a copy of this message | ||
Note Submitter: vince at live dot nl
----
While trying to save a large integer into a mysql database with a query construed with sprintf, it
saved the maximal value of an integer (2147483647), even while the field in the mysql database is of
datatype BIGINT (which allows way larger numbers). Also by using '%u' (for unsigned
integer) I have the same issue. Worked around this by by-passing sprintf, but I was wondering
whether this is a bug or just a mistake made by me (bear with me, it's late).