mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 20:53:40 -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) {
|
public override bool TableExists(string table) {
|
||||||
using (DataTable results = GetRows("information_schema.tables", "*",
|
const string syntax = "SELECT * FROM information_schema.tables WHERE table_name = @0 AND table_schema = @1";
|
||||||
"WHERE table_schema = @1 AND table_name = @",
|
using (DataTable results = Database.Fill(syntax, table, Server.MySQLDatabaseName)) {
|
||||||
table, Server.MySQLDatabaseName)) {
|
|
||||||
return results.Rows.Count > 0;
|
return results.Rows.Count > 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user