The system didn’t see the changes.
fadeev_av
Posts: 6
In first data entering in the table (static data) the system can not track the changes.
Turned out that the problem arose because of the presence multi-values (varchar) in the generated script. After manual removal from this files all such lines, everything works fine. Is it a bug? Or explain me how I can fix this situation.
There is an example below:
[code]
INSERT INTO [dbo].[MX_WF_ObjectStructure] ([ID_WF_Object], [ID_Object_Type], [Parent_ID], [NameRU], [NameEN], [Table_Name], [PK_Field], [ID_WF_UsingObject], [Edit_Field], [Field_Type], [FK_Field], [WhereClause], [Field_List], [Value_List], [Get_Method], [Set_Method], [ID_Journal], [JournalPK], [JournalField], [ID_LogicType], [Default_Value], [Edit_Mask], [Visible_Condition], [Enabled_Condition], [Required_Condition], [Dictionary_Condition], [Constraint_Condition], [Constraint_Message], [ID_Sheet], [IsPublished], [OrderNum], [Display_Name], [Display_Rows], [CreateDate], [ID_User], [UpdateDate], [Note], [Filter_Condition], [Use_In_Templates], [Editing_Condition], [Filter_Func], [ID_Form], [FormScript], [ID_WF_ImportObject], [Import_Method], [ShowInFilter], [Colored], [DisplayButton], [ClearIfNotVisible], [UseInGroupUpdate], [Display_Name_ENU], [ColumnNumber]) VALUES (20, 3003, 15, N'ßрþôуúÑ‚', N'Product', N'TD_Client_Products', N'ID_Client_Product', NULL, N'ID_Product', N'int', NULL, NULL, NULL, NULL, NULL, NULL, 101075, N'ID ßрþôуúÑ‚ð', N'ßрþôуúÑ‚', 4005, NULL, NULL, N'[âøÿßрþôуúÑ‚ð] <> ''ßûðÑ
Turned out that the problem arose because of the presence multi-values (varchar) in the generated script. After manual removal from this files all such lines, everything works fine. Is it a bug? Or explain me how I can fix this situation.
There is an example below:
[code]
INSERT INTO [dbo].[MX_WF_ObjectStructure] ([ID_WF_Object], [ID_Object_Type], [Parent_ID], [NameRU], [NameEN], [Table_Name], [PK_Field], [ID_WF_UsingObject], [Edit_Field], [Field_Type], [FK_Field], [WhereClause], [Field_List], [Value_List], [Get_Method], [Set_Method], [ID_Journal], [JournalPK], [JournalField], [ID_LogicType], [Default_Value], [Edit_Mask], [Visible_Condition], [Enabled_Condition], [Required_Condition], [Dictionary_Condition], [Constraint_Condition], [Constraint_Message], [ID_Sheet], [IsPublished], [OrderNum], [Display_Name], [Display_Rows], [CreateDate], [ID_User], [UpdateDate], [Note], [Filter_Condition], [Use_In_Templates], [Editing_Condition], [Filter_Func], [ID_Form], [FormScript], [ID_WF_ImportObject], [Import_Method], [ShowInFilter], [Colored], [DisplayButton], [ClearIfNotVisible], [UseInGroupUpdate], [Display_Name_ENU], [ColumnNumber]) VALUES (20, 3003, 15, N'ßрþôуúÑ‚', N'Product', N'TD_Client_Products', N'ID_Client_Product', NULL, N'ID_Product', N'int', NULL, NULL, NULL, NULL, NULL, NULL, 101075, N'ID ßрþôуúÑ‚ð', N'ßрþôуúÑ‚', 4005, NULL, NULL, N'[âøÿßрþôуúÑ‚ð] <> ''ßûðÑ
Comments
It might well be a bug with extended character-sets but I've not heard of it happening before so I'd like to see if I can reproduce the problem.
Redgate Software
Insert stateent:
[code]
INSERT INTO [dbo].[MX_WF_ObjectStructure] ([ID_WF_Object], [ID_Object_Type], [Parent_ID], [NameRU], [NameEN], [Table_Name], [PK_Field], [ID_WF_UsingObject], [Edit_Field], [Field_Type], [FK_Field], [WhereClause], [Field_List], [Value_List], [Get_Method], [Set_Method], [ID_Journal], [JournalPK], [JournalField], [ID_LogicType], [Default_Value], [Edit_Mask], [Visible_Condition], [Enabled_Condition], [Required_Condition], [Dictionary_Condition], [Constraint_Condition], [Constraint_Message], [ID_Sheet], [IsPublished], [OrderNum], [Display_Name], [Display_Rows], [CreateDate], [ID_User], [UpdateDate], [Note], [Filter_Condition], [Use_In_Templates], [Editing_Condition], [Filter_Func], [ID_Form], [FormScript], [ID_WF_ImportObject], [Import_Method], [ShowInFilter], [Colored], [DisplayButton], [ClearIfNotVisible], [UseInGroupUpdate], [Display_Name_ENU], [ColumnNumber]) VALUES (20, 3003, 15, N'ßрþôуúÑ‚', N'Product', N'TD_Client_Products', N'ID_Client_Product', NULL, N'ID_Product', N'int', NULL, NULL, NULL, NULL, NULL, NULL, 101075, N'ID ßрþôуúÑ‚ð', N'ßрþôуúÑ‚', 4005, NULL, NULL, N'[âøÿßрþôуúÑ‚ð] <> ''ßûðÑ
I created the table, and then inserted the data. I was able to add this into SQL Source Control without any problem though.
Do you have trouble when committing? Or do you have problems with existing files .sql from somewhere else?
Redgate Software
This is a working copy and the recorded data in the table:
This is the result of updating the state:
The error does not appear if you delete one record. Spread the sample on this post. In the form which it has generated Source Control
[code]
EXEC(N'INSERT INTO [dbo].[MX_WF_ObjectStructure] ([ID_WF_Object], [ID_Object_Type], [Parent_ID], [NameRU], [NameEN], [Table_Name], [PK_Field], [ID_WF_UsingObject], [Edit_Field], [Field_Type], [FK_Field], [WhereClause], [Field_List], [Value_List], [Get_Method], [Set_Method], [ID_Journal], [JournalPK], [JournalField], [ID_LogicType], [Default_Value], [Edit_Mask], [Visible_Condition], [Enabled_Condition], [Required_Condition], [Dictionary_Condition], [Constraint_Condition], [Constraint_Message], [ID_Sheet], [IsPublished], [OrderNum], [Display_Name], [Display_Rows], [CreateDate], [ID_User], [UpdateDate], [Note], [Filter_Condition], [Use_In_Templates], [Editing_Condition], [Filter_Func], [ID_Form], [FormScript], [ID_WF_ImportObject], [Import_Method], [ShowInFilter], [Colored], [DisplayButton], [ClearIfNotVisible], [UseInGroupUpdate], [Display_Name_ENU], [ColumnNumber]) VALUES (16018258, 3005, 14949701, N''ØÑ