(7.2)
Just been using to generate a script to send to customer - it looks like it isn't escaping single quotes embedded in the description field.
I haven't checked any of the other fields.
//Lock the last rows' bin button
//Lock the last rows'' bin button
INSERT INTO SY_PluginForm (RecID, SY_Plugin_RecID, SY_Forms_ClassName, ItemNo)
SELECT '81bffad2-4d7e-45e1-8706-82d69732805d', (
SELECT RecID
FROM SY_Plugin
WHERE Name = 'Some Cool Plugin'
), 'JiwaFinancials.Jiwa.JiwaPluginMaintenanceUI.frmMain', 1;
MERGE SY_PluginForm TARGET
USING (
SELECT '81bffad2-4d7e-45e1-8706-82d69732805d' AS RecID, (
SELECT RecID
FROM SY_Plugin
WHERE Name = 'Some Cool Plugin'
) AS SY_Plugin_RecID, 'JiwaFinancials.Jiwa.JiwaPluginMaintenanceUI.frmMain' AS SY_Forms_ClassName, 1 AS ItemNo
) SOURCE
ON TARGET.RecID = Source.RecID
WHEN NOT MATCHED
THEN
INSERT (RecID, SY_Plugin_RecID, SY_Forms_ClassName, ItemNo)
VALUES (RecID, SY_Plugin_RecID, SY_Forms_ClassName, ItemNo)
WHEN MATCHED
AND NOT (
target.SY_Plugin_RecID = source.SY_Plugin_RecID
AND target.SY_Forms_ClassName = source.SY_Forms_ClassName
AND target.ItemNo = source.ItemNo
)
THEN
UPDATE
SET target.SY_Plugin_RecID = source.SY_Plugin_RecID, target.SY_Forms_ClassName = source.SY_Forms_ClassName, target.ItemNo = source.ItemNo;
pricerc wrote:But it's the *description* field that has a problem, not the *code* field.
Return to Technical and or Programming
Users browsing this forum: No registered users and 6 guests