Closed drunderscore closed 2 years ago
@drunderscore can you rebase also you can't just ignore the changelog
@hakusaro Rebased and added changelog entry.
Doesn't this run a query that's structured like this: CREATE TABLE \'TABLENAME\' ...
? That's not valid SQLite afaik
@Arthri I just checked in sqlite3
-- it is valid.
Notice that the query actually being created here would be CREATE TABLE 'bruh'
, not CREATE TABLE \'bruh\'
-- the backslashes are escapes for the single quotes in C#, which are apparently required, as I said in the PR
This should have previously caused issues, but it didn't, and now it does. Modernize it by using a string interpolation, and properly escaping the single quotes (which you apparently have to do?)
This was noticed when implementing #2675, as the TShock database was regenerated with the new SSC columns, but occasionally failed because of the lack of escapes.