쿼리문 출력
This commit is contained in:
@@ -100,6 +100,11 @@ class TypeV2Handler
|
||||
|
||||
// 수정 정보 입력 (있으면 update, 없으면 insert)
|
||||
$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)) {
|
||||
CLI::write(CLI::color('❌ modifyInfoParam 저장 실패 :: ' . json_encode($modifyInfoParam), 'red'));
|
||||
throw new Exception("ModifyInfo 저장 실패: " . json_encode($this->db->error() . " sql: " . $this->modifyInfoModel->getLastQuery()));
|
||||
|
||||
Reference in New Issue
Block a user