dist/jate/modules/Connection/Adapters/MysqliAdapter.php 1 location
|
@@ 37-41 (lines=5) @@
|
34 |
|
protected function stdQuery( $_query ) { |
35 |
|
$database = $this->connection; |
36 |
|
$result = $database->query($_query); |
37 |
|
if(!$result) |
38 |
|
throw new JException(json_encode([ |
39 |
|
"query" => $_query, |
40 |
|
"error" => $database->error |
41 |
|
])); |
42 |
|
return $result; |
43 |
|
} |
44 |
|
} |
dist/jate/modules/Connection/Adapters/PostgresqlAdapter.php 1 location
|
@@ 40-44 (lines=5) @@
|
37 |
|
protected function stdQuery( $_query ) { |
38 |
|
$database = $this->connection; |
39 |
|
$result = pg_query($database, $_query); |
40 |
|
if(!$result) |
41 |
|
throw new JException(json_encode([ |
42 |
|
"query" => $_query, |
43 |
|
"error" => pg_last_error() |
44 |
|
])); |
45 |
|
return $result; |
46 |
|
} |
47 |
|
} |