2016-08-10 2 views
0

liquibase diff 명령을 실행하는 동안 NumberFormatException 오류가 발생합니다. 내가 여기서 뭔가를 놓치고 있니? 사전에liquibase diff 명령을 사용하는 NumberFormatException


Unexpected error running Liquibase: liquibase.exception.DatabaseException: java.lang.NumberFormatException: For input string: "/****** Object: Default dbo.Set_To_Zero Script 
te: 02/02/01 14:51:51 ******/ 
CREATE DEFAULT Set_To_Zero 
     AS 0" 

Command run: liquibase diff 

<?xml version="1.0" encoding="UTF-8"?> 
<databaseChangeLog 
    xmlns="http://www.liquibase.org/xml/ns/dbchangelog" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog 
     http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd"> 
    <preConditions onFail = 'HALT'> 
     <dbms type="mssql" /> 
    </preConditions> 
    <changeSet author="liquibase-docs" id="sqlFile-example" > 
     <comment>A sample change log 1</comment> 
     <sqlFile 
      endDelimiter="\nGO" 
      path="updateEMP.sql" 
      relativeToChangelogFile="true"/> 
    </changeSet> 
</databaseChangeLog> 

--Contents of updateEMP.sql 
update dbo.EMP set dob = getdate() where id = 1 

감사합니다, luwang

답변

0

명령을 다시 확인해야한다고 생각합니다. 게시 한 오류가 사용자가 게시 한 변경 로그 및 SQL 파일과 관련이없는 것으로 보입니다. 실행 한 liquibase 명령 줄을 표시 할 수 있습니까?

+0

내가 사용한 명령은> liquibase diff입니다. – nluwang

+0

liquibase.properties의 속성은 다음과 같습니다. url : jdbc : sqlserver : // : 1433; databaseName = ; integratedSecurity = true; referenceUrl : jdbc : sqlserver : // : 1433; databaseName = ; integratedSecurity = true; – nluwang

관련 문제