Skip to content

Commit d76f5b9

Browse files
authored
0.6
1 parent 9576c12 commit d76f5b9

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Bases/Common.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,15 @@ public static string _PrepareClear(string q, List<string> args)
3333
public static string _PrepareArg(string arg)
3434
{
3535
var new_arg = arg;
36+
37+
3638
string[] escapes = ["'", "\"", "`", "%", "-", "_"];
3739

3840
foreach (var escape in escapes)
3941
{
4042
new_arg = new_arg.Replace(escape, $"\\{escape}");
4143
}
44+
4245
return new_arg;
4346
}
4447

Bases/SQLite.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ internal class SQLiteDriver : IAnyBase
2323
private DbTransaction transaction;
2424

2525
public void Set(CommitMode commit_mode, string db_name, string db_host = "", string db_user = "", string db_pass = "")
26-
{
26+
{
2727
this.commit_mode = commit_mode;
2828
dbConn = new SqliteConnection($"Data Source={db_name}.sqlite;");
2929

@@ -43,7 +43,7 @@ private void TimerCommit()
4343
}
4444
private string _FixForSQLite(string q)
4545
{
46-
return q.Replace("PRIMARY KEY AUTO_INCREMENT", "PRIMARY KEY AUTOINCREMENT");
46+
return q.Replace("PRIMARY KEY AUTO_INCREMENT", "PRIMARY KEY AUTOINCREMENT").Replace("UNIX_TIMESTAMP()", "UNIXEPOCH()");
4747
}
4848

4949

CAnyBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ public static IAnyBase Base(string name)
2121
}
2222

2323
public static int Version()
24-
{ return 5; }
24+
{ return 6; }
2525
}
2626
}

0 commit comments

Comments
 (0)