When the patches at http://drupal.org/project/issues/search/drupal?text=&assigned=&submitted... are in, there are only a few missing bits and pieces to convert. There are a few things I'm not sure about, but the attached patch will convert almost all of them.

It will currently fail, because the INSERT INTO () FROM patch needs to go in first.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Status: Needs review » Needs work

The last submitted patch failed testing.

cafuego’s picture

I've addressed some of these (specifically a bunch in system.install) in #497684: system.install incorrectly assumes more sequential IDs

Berdir’s picture

Status: Needs work » Needs review
FileSize
22.3 KB

Re-roll, left out the user pieces in system_install(), because the sequences API patch should take care of that.

Status: Needs review » Needs work

The last submitted patch failed testing.

Berdir’s picture

Status: Needs work » Needs review
FileSize
22.3 KB

Tiny error fixed...

Damien Tournoud’s picture

Status: Needs review » Needs work

Nice job, again! A few issues:

     field_attach_insert($entity_type, $entity);
-    $count = db_result(db_query("SELECT COUNT(*) FROM {{$this->table}}"));
+    $count = db_query("SELECT COUNT(*) FROM {{$this->table}}")->fetchField();
     $this->assertEqual($count, 0, 'Missing field results in no inserts');

^ Those (there are a few of them) are dynamic queries. They *need* to be converted to db_select() ;)

+
+  // Set node type options.
+  variable_set('node_options_forum', array('status'));

^ ?

Berdir’s picture

Status: Needs work » Needs review
FileSize
21.83 KB

Re-rolled with the things mentioned by DamZ fixed.

That variable_set() is currently in system_install(), where it imho makes no sense. It was a INSERT-query before but has been converted to variable_set() now. I removed it and leaving this for another issue, as it is not DBTNG-related anymore.

Berdir’s picture

There was a typo in the currently untested statistics_cron() function...

Dries’s picture

Status: Needs review » Fixed

Looked at it, and couldn't see anything wrong. Committed to CVS HEAD! Incredible job, Berdir.

moshe weitzman’s picture

Great stuff. Is there compatibility layer code that we can remove from DBTNG?

Crell’s picture

I think we still need to finish #394182: DBTNG search.module first before we're done, but possibly. I'll try to have a look later tonight and see.

Status: Fixed » Closed (fixed)
Issue tags: -DBTNG Conversion

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