There are multiple uses of deprecated DB-functions like db_select, db_insert, db_query violations.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rajeshwari10 created an issue. See original summary.

rajeshwari10’s picture

Assigned: rajeshwari10 » Unassigned
Status: Active » Needs review
FileSize
153.62 KB

Done changes!!

Status: Needs review » Needs work

The last submitted patch, 2: 2759475-2.patch, failed testing.

rajeshwari10’s picture

Status: Needs work » Needs review
FileSize
153.62 KB
TR’s picture

Priority: Normal » Minor
Status: Needs review » Needs work
Issue tags: -deprecated

For uc_fulfillment, I'd prefer not to make any changes. When Package and Shipment are converted to entities, direct queries of the database will not be needed - any changes to the db_ functions here will just disappear.

Also, with the OO code, I would prefer to inject the db connection if possible rather than use the static methods on Database. The static methods should be used in the procedural code only.

Note that although these functions are technically deprecated, they will not disappear until Drupal 9, which is probably 5 years away. So I'd rather take the time to do this correctly rather than rush to remove the current working code.