I noticed that the following function was removed from database.inc between the July 24 RC and the final release:

function db_prefix_tables($sql) {
global $db_prefix;

return strtr($sql, array("{" => $db_prefix, "}" => ""));
}

This function apparently supported the use of schema in drupal, substituting, for example, "drupal.users" for {users}. This is great because it's exactly what I need to incorporate drupal in a larger project I'm working on. Since this function was removed, schema are no longer supported, or at least I can't get drupal to recognize my schema. So in the meantime, I'm using the RC instead of the final. But I'd really like to use the final release, and was wondering if you plan to reinstate support for schema, or is there another way this can be done.

Thanks,

Randy

Comments

Dries’s picture

In contrary, the database prefixing support has recently been added to the HEAD branch (development branch) and will be part of Drupal 4.3.0. Hope that helps.

randyew’s picture

So I assume somehow I got the 4.3 development code. Thanks, that clears it up.