|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-10-25 13:54 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2021-10-25 13:54 UTC] cmb@php.net
[2021-10-25 15:31 UTC] requinix@php.net
[2021-10-25 16:31 UTC] cmb@php.net
-Summary: getColumnMeta returns aliases of tables and
fields instead of the base names.
+Summary: getColumnMeta should also return org_table
and org_column
-Status: Feedback
+Status: Open
-PHP Version: 7.3.31
+PHP Version: next minor
-Assigned To: cmb
+Assigned To:
[2021-10-25 16:31 UTC] cmb@php.net
[2021-10-25 16:36 UTC] daniel dot garcia dot fidalgo at gmail dot com
-Summary: getColumnMeta should also return org_table
and org_column
+Summary: getColumnMeta returns aliases of tables and
fields instead of the base names.
-Status: Open
+Status: Assigned
-PHP Version: next minor
+PHP Version: 7.3.31
[2021-10-25 16:36 UTC] daniel dot garcia dot fidalgo at gmail dot com
[2021-10-25 17:22 UTC] requinix@php.net
-Summary: getColumnMeta returns aliases of tables and
fields instead of the base names.
+Summary: getColumnMeta should also return org_table
and org_column
-Status: Assigned
+Status: Open
-PHP Version: 7.3.31
+PHP Version: next minor
[2021-10-25 17:22 UTC] requinix@php.net
[2021-10-26 17:44 UTC] daniel dot garcia dot fidalgo at gmail dot com
[2021-10-26 19:12 UTC] requinix@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 07:00:01 2025 UTC |
Description: ------------ getColumnMeta() function returns aliases of tables and fields instead of the base names. Test script: --------------- Original query: SELECT FormuId AS FormuId__FormId__V, Formdate AS Formdate__Date__v, GROUP_CONCAT(FieldValue ORDER BY id_sysformdb) AS Contact__v FROM Sysformdb AS F WHERE (F.Fieldname = 'frm_fld_Name' OR F.Fieldname = 'frm_fld_Lastname' OR F.FieldName = 'frm_fld_E-mail') GROUP BY FormuId ORDER BY id_sysformdb DESC LIMIT 50 getColumnMeta() returned data: array(7) { ["native_type"]=> string(6) "STRING" ["pdo_type"]=> int(2) ["flags"]=> array(0) { } ["table"]=> string(1) "F" ["name"]=> string(9) "FormId__V" ["len"]=> int(30) ["precision"]=> int(0) } array(7) { ["native_type"]=> string(9) "TIMESTAMP" ["pdo_type"]=> int(2) ["flags"]=> array(0) { } ["table"]=> string(1) "F" ["name"]=> string(7) "Date__v" ["len"]=> int(19) ["precision"]=> int(0) } array(7) { ["native_type"]=> string(4) "BLOB" ["pdo_type"]=> int(2) ["flags"]=> array(1) { [0]=> string(4) "blob" } ["table"]=> string(0) "" ["name"]=> string(10) "Contact__v" ["len"]=> int(50331645) ["precision"]=> int(0) } Expected result: ---------------- The base name of tables and fields is expected as named in the db schema Actual result: -------------- The aliased names as set in the query are returned.