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
- Fix query LoggingStatement prematurely fetching records. LogginStatement::execute() calling rowCount() for SELECT queries caused records do be always fetched as associative arrays when using query bu... — committed to cakephp/cakephp by ADmad 4 years ago
- Fix query LoggingStatement prematurely fetching records. LoggingStatement::execute() calling rowCount() for SELECT queries caused records do be always fetched as associative arrays when using query b... — committed to cakephp/cakephp by ADmad 4 years ago
- Fix query LoggingStatement prematurely fetching records. LoggingStatement::execute() calling rowCount() for SELECT queries caused records do be always fetched as associative arrays when using query b... — committed to cakephp/cakephp by ADmad 4 years ago
- Fix query LoggingStatement prematurely fetching records. LoggingStatement::execute() calling rowCount() for SELECT queries caused records do be always fetched as associative arrays when using query b... — committed to cakephp/cakephp by ADmad 4 years ago
- Fix query LoggingStatement prematurely fetching records. LoggingStatement::execute() calling rowCount() for SELECT queries caused records do be always fetched as associative arrays when using query b... — committed to cakephp/cakephp by ADmad 4 years ago
- Fix query LoggingStatement prematurely fetching records. LoggingStatement::execute() calling rowCount() for SELECT queries caused records do be always fetched as associative arrays when using query b... — committed to cakephp/cakephp by ADmad 4 years ago
- Fix query LoggingStatement prematurely fetching records. LoggingStatement::execute() calling rowCount() for SELECT queries caused records do be always fetched as associative arrays when using query b... — committed to cakephp/cakephp by ADmad 4 years ago
- Fix query LoggingStatement prematurely fetching records. LoggingStatement::execute() calling rowCount() for SELECT queries caused records do be always fetched as associative arrays when using query b... — committed to cakephp/cakephp by ADmad 4 years ago
- Fix query LoggingStatement prematurely fetching records. LoggingStatement::execute() calling rowCount() for SELECT queries caused records do be always fetched as associative arrays when using buffere... — committed to cakephp/cakephp by ADmad 4 years ago
- Fix query LoggingStatement prematurely fetching records. LoggingStatement::execute() calling rowCount() for SELECT queries caused records do be always fetched as associative arrays when using buffere... — committed to cakephp/cakephp by ADmad 4 years ago
- Fix query LoggingStatement prematurely fetching records. LoggingStatement::execute() calling rowCount() for SELECT queries caused records do be always fetched as associative arrays when using buffere... — committed to cakephp/cakephp by ADmad 4 years ago
- Fix SELECT queries with zero matching rows not being logged. Refs #14685, #14676 — committed to cakephp/cakephp by ADmad 4 years ago
- Fix SELECT queries with zero matching rows not being logged. Refs #14685, #14676 — committed to cakephp/cakephp by ADmad 4 years ago
- Fix SELECT queries with zero matching rows not being logged. Refs #14685, #14676 — committed to cakephp/cakephp by ADmad 4 years ago
- Fix SELECT queries with zero matching rows not being logged. Refs #14685, #14676 — committed to cakephp/cakephp by ADmad 4 years ago
- Fix SELECT queries with zero matching rows not being logged. Refs #14685, #14676 — committed to cakephp/cakephp by ADmad 4 years ago
- Fix SELECT queries with zero matching rows not being logged. Refs #14685, #14676 — committed to cakephp/cakephp by ADmad 4 years ago
This might be the best test case of 2020.