error:org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.value, weightUnit weight.units, quantity, updatedQuantity, unitPrice,' at line 2 ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### SQL: SELECT orderItemId, updatedOrderItemId, orderId, lineItemKey, sku, name, imageUrl, weightValue weight.value, weightUnit weight.units, quantity, updatedQuantity, unitPrice, warehouseLocation, compared, modified FROM OrderItem WHERE modified = false ### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.value, weightUnit weight.units, quantity, updatedQuantity, unitPrice,' at line 2 |
문제 원인 : 작은따옴표('')가 빠져있었다.
문제 해결 : weightUnit weight.units, weigtValue weight.value를 weightUnit 'weight.units', weightValue 'weight.value' 로 수정
': IT' 카테고리의 다른 글
맥 터미널에서 Vue CLI, node, npm 설치된 버전 확인(mac os) (0) | 2021.08.27 |
---|---|
[AWS] AWS EC2 & EB 와 카페24 호스팅 (0) | 2020.09.10 |
[IntelliJ IDEA] 터미널에서 vue 프로젝트 생성 (0) | 2020.02.05 |
[Struts2] 변수설정 (0) | 2016.03.09 |
트리거 Trigger (0) | 2016.01.28 |