Closed (fixed)
Project:
CCK Create Install
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 May 2008 at 07:52 UTC
Updated:
10 Jun 2008 at 18:43 UTC
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
| Comment | File | Size | Author |
|---|---|---|---|
| cck_create_install.module.patch | 766 bytes | sdecabooter |
Comments
Comment #1
regx commentedThanks 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!
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.