As marked by a TODO comment, the

DataHandler->truncate()

method should be converted to d7 API.

This is a simple conversion, so find attached a simple patch that does this.

Comments

m1n0 created an issue. See original summary.

m1n0’s picture

Status: Active » Needs review
StatusFileSize
new475 bytes
joachim’s picture

Status: Needs review » Needs work

Thanks for the patch!

Though it looks like escaping the table name is taken care of by core: https://api.drupal.org/api/drupal/includes%21database%21query.inc/functi...

m1n0’s picture

StatusFileSize
new458 bytes

Ah of course, I missed that, here is the rerolled patch.

m1n0’s picture

Status: Needs work » Needs review
jerry’s picture

Status: Needs review » Reviewed & tested by the community

Working fine here. Let's RTBC it.

  • joachim committed 04fbb47 on 7.x-1.x authored by m1n0
    Issue #2762713 by m1n0: Converted truncate() method to use Drupal 7...
joachim’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks everyone!

Status: Fixed » Closed (fixed)

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