dbms_primeidc_init...1

This commit is contained in:
최준흠 2025-04-03 15:36:02 +09:00
parent 7724f1f6f8
commit 0e0fef01f5

View File

@ -119,20 +119,16 @@ abstract class Model
final public function execute(string $query): bool|PDOStatement
{
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());
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;
}
//CURD문