mirror of
https://github.com/archtechx/tenancy.git
synced 2026-05-06 17:44:04 +00:00
Use parameter binding in SELECT queries
This commit is contained in:
parent
808f52765c
commit
ad7d229daf
8 changed files with 10 additions and 10 deletions
|
|
@ -22,6 +22,6 @@ class MicrosoftSQLDatabaseManager extends TenantDatabaseManager
|
|||
|
||||
public function databaseExists(string $name): bool
|
||||
{
|
||||
return (bool) $this->connection()->select("SELECT name FROM master.sys.databases WHERE name = '$name'");
|
||||
return (bool) $this->connection()->select("SELECT name FROM master.sys.databases WHERE name = ?", [$name]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue