You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewException("Can't bind the value \"{$value}\" for the key \"{$key}\". The key isn't in the query.");
531
+
thrownewException("JSONDB Error: Can't bind the value \"{$value}\" for the key \"{$key}\". The key isn't in the query.");
532
532
}
533
533
} else {
534
-
thrownewException("Can't use JSONDB::bindValue() with non prepared queries. Send your query with JSONDB::prepare() first.");
534
+
thrownewException("JSONDB Error: Can't use JSONDB::bindValue() with non prepared queries. Send your query with JSONDB::prepare() first.");
535
535
}
536
536
}
537
537
@@ -553,7 +553,7 @@ public static function quote($value)
553
553
publicfunctionexecute()
554
554
{
555
555
if (NULL === $this->database || NULL === $this->parsedQuery) {
556
-
thrownewException("Can't execute the query. No database/table selected or internal error.");
556
+
thrownewException("JSONDB Error: Can't execute the query. No database/table selected or internal error.");
557
557
}
558
558
559
559
if ($this->queryIsPrepared()) {
@@ -564,7 +564,7 @@ public function execute()
564
564
$this->setTable($this->parsedQuery['table']);
565
565
$table_path = $this->_getTablePath();
566
566
if (!file_exists($table_path) || !is_readable($table_path) || !is_writable($table_path)) {
567
-
thrownewException("Can't execute the query. The table \"{$this->table}\" doesn't exists in database \"{$this->database}\" or file access denied.");
567
+
thrownewException("JSONDB Error: Can't execute the query. The table \"{$this->table}\" doesn't exists in database \"{$this->database}\" or file access denied.");
568
568
}
569
569
570
570
$json_array = $this->cache->get($table_path);
@@ -815,15 +815,15 @@ protected function _insert($data)
815
815
$rows = $this->parsedQuery['extensions']['in'];
816
816
foreach ((array)$rowsas$row) {
817
817
if (!in_array($row, $data['prototype'], FALSE)) {
818
-
thrownewException("Can't insert data in the table \"{$this->table}\". The column \"{$row}\" doesn't exist.");
818
+
thrownewException("JSONDB Error: Can't insert data in the table \"{$this->table}\". The column \"{$row}\" doesn't exist.");
thrownewException("Can't insert data in the table \"{$this->table}\". Invalid number of parameters (given \"{$values_nb}\" values to insert in \"{$rows_nb}\" columns).");
826
+
thrownewException("JSONDB Error: Can't insert data in the table \"{$this->table}\". Invalid number of parameters (given \"{$values_nb}\" values to insert in \"{$rows_nb}\" columns).");
thrownewException("Can't insert data in the table \"{$this->table}\". Invalid number of parameters (given \"{$values_nb}\" values to insert in \"{$rows_nb}\" columns).");
839
+
thrownewException("JSONDB Error: Can't insert data in the table \"{$this->table}\". Invalid number of parameters (given \"{$values_nb}\" values to insert in \"{$rows_nb}\" columns).");
thrownewException("Can't insert data in the table \"{$this->table}\". Invalid number of parameters (given \"{$values_nb}\" values to insert in \"{$rows_nb}\" columns).");
943
+
thrownewException("JSONDB Error: Can't insert data in the table \"{$this->table}\". Invalid number of parameters (given \"{$values_nb}\" values to insert in \"{$rows_nb}\" columns).");
944
944
}
945
945
$current_data = $data['data'];
946
946
$insert = array();
@@ -978,7 +978,7 @@ protected function _replace($data)
thrownewException("Can't execute the \"update()\" query. Invalid number of parameters (trying to update \"{$fields_nb}\" columns with \"{$values_nb}\" values).");
1093
+
thrownewException("JSONDB Error: Can't execute the \"update()\" query. Invalid number of parameters (trying to update \"{$fields_nb}\" columns with \"{$values_nb}\" values).");
@@ -1247,7 +1247,7 @@ protected function _filter($data, $filters)
1247
1247
}
1248
1248
foreach ((array)$resultas$line) {
1249
1249
if (!array_key_exists($filter['field'], $line)) {
1250
-
thrownewException("The field \"{$filter['field']}\" doesn't exists in the table \"{$this->table}\".");
1250
+
thrownewException("JSONDB Error: The field \"{$filter['field']}\" doesn't exists in the table \"{$this->table}\".");
1251
1251
}
1252
1252
switch ($filter['operator']) {
1253
1253
case'<':
@@ -1300,7 +1300,7 @@ protected function _filter($data, $filters)
1300
1300
break;
1301
1301
1302
1302
default:
1303
-
thrownewException("The operator \"{$filter['operator']}\" is not supported. Try to use one of these operators: \"<\", \"<=\", \"=\", \">=\", \">\", \"<>\", \"!=\", \"%=\" or \"%!\".");
1303
+
thrownewException("JSONDB Error: The operator \"{$filter['operator']}\" is not supported. Try to use one of these operators: \"<\", \"<=\", \"=\", \">=\", \">\", \"<>\", \"!=\", \"%=\" or \"%!\".");
0 commit comments