cakephp: fetch('num') / fetchAll('num') not working when Query Log is enabled

This is a (multiple allowed):

  • bug

  • enhancement

  • feature-discussion (RFC)

  • CakePHP Version: dev-4.next

  • Platform and Target: YOUR WEB-SERVER, DATABASE AND OTHER RELEVANT INFO AND HOW THE REQUEST IS BEING MADE, HERE.

What you did

        $connection = ConnectionManager::get('default');
        $connection->execute("SELECT * FROM articles")->fetchAll('num');

What happened

When Query Logging is enabled the fetch style seems to get reset to assoc somehow.

What you expected to happen

num should be preserved here.

P.S. Remember, an issue is not the place to ask questions. You can use Stack Overflow for that or join the #cakephp channel on irc.freenode.net, where we will be more than happy to help answer your questions.

Before you open an issue, please check if a similar issue already exists or has been closed before.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 25 (24 by maintainers)

Commits related to this issue

Most upvoted comments

This might be the best test case of 2020.