Hi,
This is question which is part from a more complex question I asked here, but I thought it is important enough to dedicate a post just to clarify this issue:
I try to INSERT/UPDATE a table where the unique index is made of two columns.
Looking at the submitted query (by turning the debugging on), I see that there are two identical SHOW FULL COLUMNS queries, in a raw (I have no idea why two are necessary) and then an UPDATE query, with only one of the PRI keys in the WHERE statement.
For example, here the index is made of the 'artist_id' + 'lang_content'. The form was suppose to create an INSERT query, but this is what I got by looking at the debugging info:
I don't get any INSERT query at all.
Does CF4 can deal with multiple columns index and if yes, is there any necessary action we should take care of?
Thanks,
Emanuel.
This is question which is part from a more complex question I asked here, but I thought it is important enough to dedicate a post just to clarify this issue:
I try to INSERT/UPDATE a table where the unique index is made of two columns.
Looking at the submitted query (by turning the debugging on), I see that there are two identical SHOW FULL COLUMNS queries, in a raw (I have no idea why two are necessary) and then an UPDATE query, with only one of the PRI keys in the WHERE statement.
For example, here the index is made of the 'artist_id' + 'lang_content'. The form was suppose to create an INSERT query, but this is what I got by looking at the debugging info:
SHOW FULL COLUMNS
FROM `jos_artist_details`
UPDATE `jos_artist_details`
SET `artist_id`='8',`name`='Jaque',`description`='He is smart',`edu`='TBD'
WHERE `lang_content`='fr'
I don't get any INSERT query at all.
Does CF4 can deal with multiple columns index and if yes, is there any necessary action we should take care of?
Thanks,
Emanuel.