我在liquibase XML输入以下内容:CLOB类型变成VARCHAR在SQL Server
<changeSet author="lars" id="1">
<createTable tableName="STATUS">
<column autoIncrement="true" name="AUTOID" type="BIGINT">
<constraints primaryKey="true" primaryKeyName="PK_STATUS"/>
</column>
...
<column name="DATA" type="CLOB(1048576)">
<constraints nullable="false"/>
</column>
<column name="VERSION" type="BIGINT">
<constraints nullable="false"/>
</column>
</createTable>
</changeSet>
但是当我使用liquibase上的MS SQL Server标准版运行此,V12,我见DATA
列已创建为类型VARCHAR
。
我用liquibase Maven插件V3.2.0
我使用的驱动程序是com.microsoft.sqlserver.jdbc.SQLServerDriver
,sqljdbc42.jar
,即4.2版本。
任何人有任何想法,为什么会发生这种情况?
'clob'并不占据我所知的大小。你是否尝试简单地使用'type =“clob”' –