Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Column data type "double" incorrectly translated to "float (24)" for Oracle, should be float

$
0
0

The following column:

 <column name=" SOME_NAME" type="double">            
  </column>

gets created by Liquibase in Oracle 12с as float 24

CREATE TABLE table_name
(
  SOME_NAME FLOAT(24) 
)

but The following column:

 <column name=" SOME_NAME" type="float">
  </column>

gets created by Liquibase in Oracle 12с as float

CREATE TABLE table_name
(
   SOME_NAME  FLOAT
)

so as you see precision of 'float' exceeds 'double'

for example:

let's create this table with different types of data

CREATE TABLE  "T_TEST_FLOAT"
  (
    "F_24" FLOAT(24),
    "F" FLOAT,                          
    "F_126" FLOAT(126),
    "BD" BINARY_DOUBLE,
    "BF" BINARY_FLOAT,
    "BP" FLOAT(126)
  )

and insert value 11123304506 into every field

INSERT INTO  T_TEST_FLOAT values(11123304506, 11123304506,11123304506,11123304506,11123304506,11123304506)

outcome will be :

F_24FF_126BDBFBP
111233050001112330450611123304506111233045061112330440011123304506

And liquibase type 'float' epitomized here as F_126 and F

{which actually the same}

and 'double' epitomized as F_24

I've made ticket for that : https://liquibase.jira.com/browse/CORE-3165


Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>