dbms_primeidc_init...1
This commit is contained in:
parent
c327709379
commit
7724f1f6f8
@ -119,16 +119,20 @@ abstract class Model
|
||||
|
||||
final public function execute(string $query): bool|PDOStatement
|
||||
{
|
||||
if ($this->_debug) {
|
||||
echo "\n<BR>Query:" . $query . "\n<BR>";
|
||||
try {
|
||||
if ($this->_debug) {
|
||||
echo "\n<BR>Query:" . $query . "\n<BR>";
|
||||
}
|
||||
$this->_lastQuery = $query;
|
||||
$stmt = $this->getConnect()->prepare($query);
|
||||
$stmt->execute();
|
||||
if ($this->_reset) {
|
||||
$this->reset();
|
||||
}
|
||||
return $stmt;
|
||||
} catch (\Exception $e) {
|
||||
die($e->getMessage());
|
||||
}
|
||||
$this->_lastQuery = $query;
|
||||
$stmt = $this->getConnect()->prepare($query);
|
||||
$stmt->execute();
|
||||
if ($this->_reset) {
|
||||
$this->reset();
|
||||
}
|
||||
return $stmt;
|
||||
}
|
||||
|
||||
//CURD문
|
||||
|
||||
Loading…
Reference in New Issue
Block a user