|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-04-16 07:57 UTC] tony2001@php.net
[2006-04-16 20:14 UTC] wez@php.net
[2006-04-30 01:39 UTC] wez@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 05:00:01 2025 UTC |
Description: ------------ PDO MsSql driver returns bigint values as float instead of int. They are always formated as <number>.0 Reproduce code: --------------- CREATE TABLE demo ( bi bigint not null, sm int null ); insert into demo (1,1); $result = $pdo->query ("SELECT * FROM demo")->fetch(); echo "bi={$result['bi']};" echo "sm={$result['sm']};" Expected result: ---------------- bi=1;sm=1; Actual result: -------------- bi=1.0;sm=1;