From http://php.net/manual/en/pdostatement.rowcount.php:

"If the last SQL statement executed by the associated PDOStatement was a SELECT statement, some databases may return the number of rows returned by that statement. However, this behaviour is not guaranteed for all databases and should not be relied on for portable applications."

There is one call to this in View::load().

CommentFileSizeAuthor
#1 remove-view-load.patch2.35 KBdawehner
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Status: Active » Needs review
FileSize
2.35 KB

First i tryed to reproduce that, but i failed totally, so i realized that views doesn't load itself in d7, it's done completly by ctools.

merlinofchaos’s picture

Status: Needs review » Reviewed & tested by the community
dawehner’s picture

Status: Reviewed & tested by the community » Fixed

Just committed it, let's hope not some custom code is using that method.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.