|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-09-23 02:56 UTC] chriskl@php.net
[2016-10-15 23:17 UTC] kalle@php.net
-Package: MSSQL related
+Package: PDO DBlib
[2016-10-31 17:37 UTC] adambaratz@php.net
-Status: Open
+Status: Not a bug
[2016-10-31 17:37 UTC] adambaratz@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 17:00:01 2025 UTC |
Description: ------------ When using getColumnMeta() on pdo_dblib, on a column of type 'datetimeoffset(0)', the returned structure looks like this: array(10) { ["max_length"] => int(104) ["precision"] => int(0) ["scale"] => int(0) ["column_source"] => string(7) "updated" ["native_type"] => string(4) "char" ["native_type_id"] => int(47) ["native_usertype_id"] => int(0) ["name"] => string(7) "updated" ["len"] => int(104) ["pdo_type"] => int(2) } Note that it believes that the native_type is char, when it should be 'datetimeoffset'. Expected result: ---------------- I expect to see 'datetimeoffset' as the native_type. Actual result: -------------- You get 'char' - which is incorrect.