쿼리문 출력

This commit is contained in:
2026-02-04 21:40:30 +09:00
parent 54f0a2a4d2
commit 1311dc529a

View File

@@ -100,6 +100,11 @@ class TypeV2Handler
// 수정 정보 입력 (있으면 update, 없으면 insert) // 수정 정보 입력 (있으면 update, 없으면 insert)
$modifyInfoParam['vr_sq'] = $vrSq; $modifyInfoParam['vr_sq'] = $vrSq;
$sql = $this->modifyInfoModel->builder()->set($modifyInfoParam)->getCompiledInsert();
CLI::write(CLI::color("\n[생성된 쿼리 예상안]:", 'yellow'));
CLI::write($sql);
if (!$this->modifyInfoModel->replace($modifyInfoParam)) { if (!$this->modifyInfoModel->replace($modifyInfoParam)) {
CLI::write(CLI::color('❌ modifyInfoParam 저장 실패 :: ' . json_encode($modifyInfoParam), 'red')); CLI::write(CLI::color('❌ modifyInfoParam 저장 실패 :: ' . json_encode($modifyInfoParam), 'red'));
throw new Exception("ModifyInfo 저장 실패: " . json_encode($this->db->error() . " sql: " . $this->modifyInfoModel->getLastQuery())); throw new Exception("ModifyInfo 저장 실패: " . json_encode($this->db->error() . " sql: " . $this->modifyInfoModel->getLastQuery()));