Change Request for Database\MySQLi getFieldData function - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29) +--- Thread: Change Request for Database\MySQLi getFieldData function (/showthread.php?tid=76984) |
Change Request for Database\MySQLi getFieldData function - johannes - 07-09-2020 Good day. I would like to suggest a change to the getFieldData function. I wanted to post via github but dunno the best method, thus hope this will help. Basically the type value comes back as a numeric, but in SQlite and Postgres it comes back as a word that describe the type. Thus my suggestion will be to use the following code to map it. I would also like to suggest that one considers to also return the length value that comes back from the mysqli , I have not added that yet, but if one can it will actually help my current project alot. Thank you, hope it helps somebody Code: public function getFieldData(): array RE: Change Request for Database\MySQLi getFieldData function - johannes - 07-11-2020 I added a change request for this if people are happy with it https://github.com/codeigniter4/CodeIgniter4/pull/3273 |