"WHERE 1" is misinterpreted by postgresql. To perform role export must be "WHERE true"

I generated a patch for this issue.

Comments

dww’s picture

Status: Needs review » Needs work

Why use a WHERE clause at all? Why not just:

$result = db_query("SELECT rid, perm FROM {permission}");

??

dww’s picture

Assigned: dalad » dww
Status: Needs work » Needs review
StatusFileSize
new1016 bytes

Untested, but I can't see how this would hurt...

dww’s picture

Version: 5.x-1.1 » 5.x-2.x-dev
Status: Needs review » Fixed

dmitrig01 said this was RTBC, so I committed to DRUPAL-5--2.

Status: Fixed » Closed (fixed)

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