8000 Update ssql.php · ratajs/SuperSQL@39bad70 · GitHub
[go: up one dir, main page]

Skip to content

Commit 39bad70

Browse files
authored
Update ssql.php
Changed “can’t” to “cannot“ in error messages
1 parent e805eaf commit 39bad70

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ssql.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ public function __construct($host = "", $user = "", $password = "", $database =
9090
$this->host = $host;
9191
$this->SQLite = true;
9292
if(!file_exists($host) && !@touch($host))
93-
throw new SSQLException("(__construct): Can’t create SQLite database");
93+
throw new SSQLException("(__construct): Cannot create SQLite database");
9494
try {
9595
$this->connect = @new PDO("sqlite:" . $host);
9696
} catch(PDOException $e) {
97-
throw new SSQLException("(__construct): Can’t connect to SQLite: " . $e->getMessage());
97+
throw new SSQLException("(__construct): Cannot connect to SQLite: " . $e->getMessage());
9898
};
9999
return true;
100100
};
@@ -108,16 +108,16 @@ public function __construct($host = "", $user = "", $password = "", $database =
108108
if(!$this->query("
109109
CREATE DATABASE $new
110110
", "__construct"))
111-
throw new SSQLException("(__construct): Can’t create database " . $new);
111+
throw new SSQLException("(__construct): Cannot create database " . $new);
112112
$this->connect = NULL;
113113
};
114114
try {
115115
$this->connect = @new PDO("mysql:" . (empty($database) ? "" : "dbname=" . $database . ";") . "host=" . $host . ";charset=utf8", $user, $password);
116116
} catch(PDOException $e) {
117-
throw new SSQLException("(__construct): Can’t connect to MySQL: " . $e->getMessage());
117+
throw new SSQLException("(__construct): Cannot connect to MySQL: " . $e->getMessage());
118118
}
119119
if($this->connect->errorCode() && $this->connect) {
120-
throw new SSQLException("(__construct): Can’t select MySQL database:" . $this->connect->errorInfo()[2]);
120+
throw new SSQLException("(__construct): Cannot select MySQL database:" . $this->connect->errorInfo()[2]);
121121
$this->connect->close();
122122
};
123123
}
@@ -248,7 +248,7 @@ public function deleteDB($db, $flags) {
248248
return true;
249249
}
250250
else {
251-
throw new SSQLException("(deleteDB): Can’t delete database " . $db);
251+
throw new SSQLException("(deleteDB): Cannot delete database " . $db);
252252
return false;
253253
};
254254
}

0 commit comments

Comments
 (0)
0