mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 20:16:36 -04:00
Fix recent changes for MySQL backend.
This commit is contained in:
parent
037b4396ae
commit
cb0576797d
@ -47,9 +47,8 @@ namespace MCGalaxy.SQL {
|
||||
|
||||
|
||||
public override bool TableExists(string table) {
|
||||
using (DataTable results = GetRows("information_schema.tables", "*",
|
||||
"WHERE table_schema = @1 AND table_name = @",
|
||||
table, Server.MySQLDatabaseName)) {
|
||||
const string syntax = "SELECT * FROM information_schema.tables WHERE table_name = @0 AND table_schema = @1";
|
||||
using (DataTable results = Database.Fill(syntax, table, Server.MySQLDatabaseName)) {
|
||||
return results.Rows.Count > 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user