Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion WDBXEditor/Common/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public static string ToSql(this DataRow row)
{
if (cols[i].DataType == typeof(string)) //Escape formatting
{
string val = row[i].ToString().Replace(@"'", @"\'").Replace(@"""", @"\""").Replace(@"\", @"\\");
string val = row[i].ToString().Replace(@"\", @"\\").Replace(@"'", @"\'").Replace(@"""", @"\""");
sb.Append("\"" + val + "\",");
}
else if (cols[i].DataType == typeof(float))
Expand Down
4 changes: 3 additions & 1 deletion WDBXEditor/Definitions/Cata 4.3.4 (15595).xml
Original file line number Diff line number Diff line change
Expand Up @@ -1357,8 +1357,10 @@
<Table Name="ItemClass" Build="15595">
<Field Name="ID" Type="int" IsIndex="true" />
<Field Name="Field01" Type="int" />
<Field Name="Field02" Type="float" />
<Field Name="Field02" Type="int" />
<Field Name="Field03" Type="string" />
<Field Name="Field04" Type="float" />
<Field Name="ClassName" Type="string" />
</Table>
<Table Name="ItemCondExtCosts" Build="15595">
<Field Name="ID" Type="int" IsIndex="true" />
Expand Down