Project:Drupal core
Version:7.x-dev
Component:path.module
Category:task
Priority:normal
Assigned:ksenzee
Status:closed (fixed)
Issue tags:DBTNG Conversion

Issue Summary

This needs conversion.

Comments

#1

Assigned to:Anonymous» ksenzee

I'll take a stab at this.

#2

In two places, I've broken out a one-line if(db_result(db_query(...))) into

$path_in_use = db_query(...)->fetchField();
if ($path_in_use) {
  ...
}

With the new DB syntax, queries are just plain longer than they used to be, and they need to be broken out onto multiple lines. But breaking this into multiple lines while leaving it inside the if clause just felt wrong. Plus it was really hard to read. Assigning it to a variable is more self-documenting.

AttachmentSizeStatusTest resultOperations
394510_path_module_dbtng.diff6.67 KBIdleUnable to apply patch 394510_path_module_dbtng.diffView details

#3

Status:active» needs review

One of these days I'm going to actually comb through the project module issue queue, to figure out why my status changes don't stick.

#4

Status:needs review» needs work

The indentation of the insert and some select queries is wrong, see the examples at http://drupal.org/node/310079.

#5

Status:needs work» needs review

Re-roll....

AttachmentSizeStatusTest resultOperations
394510_path_module_dbtng2.diff7.88 KBIdleUnable to apply patch 394510_path_module_dbtng2.diffView details

#6

Status:needs review» fixed

Committed to CVS HEAD. Thanks.

#7

Status:fixed» closed (fixed)

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