Hi,

I'm testing out this module as it might possibly be interesting.

However during my tests, the content_type_XXX table couldn't be created, since the table fields where not added in the create statement.
Some debugging pointed out this was because the 'DESCRIBE
' query didn't work:

Original code:

$result = db_query("DESCRIBE {$table_name}");

The brackets there are evaluated by PHP, where they should be literally there to allow table prefixing.
Updated the code to the following, which seems to work:

$result = db_query("DESCRIBE {".$table_name."}");

Attached is a patch for this change.

Kind regards,

Sven

CommentFileSizeAuthor
cck_create_install.module.patch766 bytessdecabooter

Comments

regx’s picture

Status: Needs review » Fixed

Thanks for the patch, I have applied your patch and commited to CVS. I will likely be making some changes in the near future adding create uninstall option and possibly updates, so I haven't created a new release yet. You patch has been applied though. Thanks!

This is the first time I have received a patch instead of just a complaint so - thank you thank you thank you!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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