We fail to do that current, which results in broken queries like:

SELECT COUNT(*) AS expression, url_alias.* FROM {url_alias} url_alias

Those queries fail on PostgreSQL and on some (but not all) versions on MySQL.

Comments

damien tournoud’s picture

Priority: Normal » Critical
Status: Active » Needs review
StatusFileSize
new1.21 KB

Patch attached. Bumping to critical at this breaks most of our test slaves at this time.

webchick’s picture

Let's expand the comments a bit here so we remember why this code is here, what it's for, and why we need to remove it.

damien tournoud’s picture

StatusFileSize
new1.35 KB

Expanded the comments a little bit.

damien tournoud’s picture

StatusFileSize
new1.33 KB

Try to fix some grammar.

catch’s picture

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

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new1.16 KB

Comments tweak to mention the reason we are removing them.

catch’s picture

That looks better.

webchick’s picture

Status: Needs review » Fixed

Committed to HEAD, with some further comment clarification.

damien tournoud’s picture

Status: Fixed » Active
Issue tags: +Needs tests

Ok, now we need a test.

mcarbone’s picture

Assigned: Unassigned » mcarbone
Status: Active » Needs review
StatusFileSize
new1.67 KB

Added a test.

Crell’s picture

Status: Needs review » Needs work

A new test should be in its own test method. Each test method should test one (1) thing.

mcarbone’s picture

Status: Needs work » Needs review
StatusFileSize
new1.73 KB

Moved test into own method.

damien tournoud’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.

Crell’s picture

Crell approved. *hits with a stamp*

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks!

c960657’s picture

Status: Fixed » Needs review
StatusFileSize
new2.32 KB

It looks like this patch was committed twice:
http://drupalcode.org/viewvc/drupal/drupal/modules/simpletest/tests/data...

This caused HEAD to break.

The commit message of the second commit contained a reference to #652420: Fix errors uncovered using aggressive watchdog assertion, so when reverting the second commit it may be worth mentioning in the commit message that the last commit was unrelated to that issue.

Status: Needs review » Needs work

The last submitted patch failed testing.

mcarbone’s picture

Status: Needs work » Fixed

HEAD looks fine to me.

Status: Fixed » Closed (fixed)
Issue tags: -Needs tests

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