Closed (fixed)
Project:
Visual Search
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Feb 2010 at 05:25 UTC
Updated:
17 May 2010 at 12:10 UTC
Hi,
When uploading an image in CCK. I get the below error.
user warning: Table 'XXXX.visual_search_imagedata' doesn't exist query: INSERT INTO visual_search_imagedata VALUES('', 31, 'c0c080', 6.51) in /var/www/html/XXXX/sites/all/modules/visual_search/visual_search_api.module on line 224.
Note: When the database is checked. There exists no visual_search_imagedata table. May be something o do with the 'visual_seach_api.install'
Comments
Comment #1
ragavendra_bn commentedManually added the table. Not sure if is correct...........
CREATE TABLE visual_search_imagedata (vid serial not null, fid int not null, color varchar(6) not null, percentage numeric(8,2));
Comment #2
ebeyrent commentedIt's the schema - one of the fields is a float, and the schema api doesn't appear to handle it properly. I'm still researching alternatives, and if anyone knows what's wrong with the hook_schema() implementation, please send me a patch!
Comment #3
ebeyrent commentedI was totally wrong in #2. My .install file was misnamed, so none of the hooks were executing. Very embarrassing!
This is fixed in CVS.
Comment #5
ebeyrent commented