Liquibase doesn't support precision

Hi Nathan.
I noticed that when I try to use CreateTable tag to create new table, I’ve got problem with ColumnType attribute. When ColumnType value is for example: NUMBER(10) I’ve got following error:

    liquibase.exception.UnexpectedLiquibaseException: Type class liquibase.database.structure.type.NumberType doesn't support precision but precision was specified: NUMBER(10) at liquibase.database.typeconversion.core.AbstractTypeConverter.getColumnType( at liquibase.sqlgenerator.core.CreateTableGenerator.generateSql( at liquibase.ext.ora.splittable.SplitTableGenerator.Transition( at liquibase.ext.ora.splittable.SplitTableGenerator.generateSql( at liquibase.ext.ora.splittable.SplitTableGenerator.generateSql( at liquibase.sqlgenerator.SqlGeneratorChain.generateSql( at liquibase.sqlgenerator.SqlGeneratorFactory.generateSql( at liquibase.ext.ora.splittable.SplitTableChangeTest.parseAndGenerate( at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.junit.internal.runners.TestMethodRunner.executeMethodBody( at org.junit.internal.runners.TestMethodRunner.runUnprotected( at org.junit.internal.runners.BeforeAndAfterRunner.runProtected( at org.junit.internal.runners.TestMethodRunner.runMethod( at at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod( at at org.junit.internal.runners.TestClassRunner$1.runUnprotected( at org.junit.internal.runners.BeforeAndAfterRunner.runProtected( at at at at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests( at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests( at at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(

Do you have any suggestion? Why NUMBER isn’t supported by precision?


What version of liquibase are you using?


version 2.0.b1


That is a bug in beta1 (and beta2).  We redid the type conversion logic in trunk for 2.0 beta3 (hoiping to et out as soon as I can get the maven build and build server working correctly). 

If you are using liquibase for any production work, 2.0 is not ready and probably contains bugs.  You should stick with 1.9 until the 2.0 final release is out.  If you are wanting the 2.0 betas, you can check out trunk and build it locally, or wait for beta3.


I have a similar problem with the bigint type. It doesn’t respect the size parameter when running on oracle. It always outputs as NUMBER(38).

Running on 2.0-RC1