stable

Clone or download

Read-only

Invalid queries should not crash when given to db_fetch_array() when using PDO

For exemple, the following code does crash when using \DataAccess, it should not crash either when using the PDO compatibility layer. $res = db_query('invalid query'); while($data = db_fetch_array($res)) { print_r($data); } This contribution also fixes a direct dependency to DataAccessResult. This is part of story #11146: Provide PDO by default for all Tuleap DB queries Change-Id: I01031c0db5b480e786cbcc29ed21e5f7d947f520

Modified Files

Name
M plugins/tracker/include/Tracker/Report/Tracker_Report_Renderer_Table.class.php +2 −1 Go to diff View file
M src/common/DB/Compat/Legacy2018/CompatPDODataAccessResult.php +6 −0 Go to diff View file