Skip to content

Commit c5df571

Browse files
pangolpXalares
andauthored
Corrected wrong escape character \\" or \\' to \" and \' (#4)
* Corrected wrong escape character \\" or \\' to \" and \' * Added fields to Cata 4.3.4 xml --------- Co-authored-by: Xalares <alexis_de-bacco@hotmail.fr>
1 parent 56e055d commit c5df571

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

WDBXEditor/Common/Extensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public static string ToSql(this DataRow row)
134134
{
135135
if (cols[i].DataType == typeof(string)) //Escape formatting
136136
{
137-
string val = row[i].ToString().Replace(@"'", @"\'").Replace(@"""", @"\""").Replace(@"\", @"\\");
137+
string val = row[i].ToString().Replace(@"\", @"\\").Replace(@"'", @"\'").Replace(@"""", @"\""");
138138
sb.Append("\"" + val + "\",");
139139
}
140140
else if (cols[i].DataType == typeof(float))

WDBXEditor/Definitions/Cata 4.3.4 (15595).xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1357,8 +1357,10 @@
13571357
<Table Name="ItemClass" Build="15595">
13581358
<Field Name="ID" Type="int" IsIndex="true" />
13591359
<Field Name="Field01" Type="int" />
1360-
<Field Name="Field02" Type="float" />
1360+
<Field Name="Field02" Type="int" />
13611361
<Field Name="Field03" Type="string" />
1362+
<Field Name="Field04" Type="float" />
1363+
<Field Name="ClassName" Type="string" />
13621364
</Table>
13631365
<Table Name="ItemCondExtCosts" Build="15595">
13641366
<Field Name="ID" Type="int" IsIndex="true" />

0 commit comments

Comments
 (0)