question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[TIBERO] TiberoDB Datatype 'TIBERO.BOOLEAN' is invalid

See original GitHub issue

Environment

RedHat 7.4 Liquibase Version: 4.6.1 - 4.12.0 Liquibase Integration & Version: <Pick one: CLI, maven, gradle, spring boot, servlet, etc.> CLI Liquibase Extension(s) & Version:

Database Vendor & Version: TmaxSoft TIBERO 6 Operating System Type & Version:

Description

trying liquibase 4.6.1 on TmaxSoft Tibero, it basically speaks ORACLE dialect. In my property file I’m passing databaseClass: liquibase.database.core.OracleDatabase parameter, and I can confirm that on log: [2021-11-22 11:20:15] DETALHADO [liquibase.configuration] Found ‘liquibase.databaseClass’ configuration of ‘class liquibase.database.core.OracleDatabase’ file /home/tibero/liquibase/liquibase.properties ‘databaseClass’ of ‘class liquibase.database.core.OracleDatabase’ However, after connecting on database the process fails due to the following error: [2021-11-22 11:20:16] GRAVE [liquibase.integration] JDBC-7454:Datatype ‘TIBERO.BOOLEAN’ is invalid. CREATE TABLE tibero.DATABASECHANGELOGLOCK (ID INT NOT NULL, LOCKED BOOLEAN NOT NULL, LOCKGRANTED datetime, LOCKEDBY VARCHAR(255), CONSTRAINT PK_DATABASECHANGELOGLOCK PRIMARY KEY (ID))]

Steps To Reproduce

Download and install tibero. Try to connect liquibase to tibero.

Actual Behavior

For some reason liquibase is not using oracle dialect:

[tibero@legolas liquibase]$ liquibase update ####################################################

_ _ _ _

| | () () |

| | _ __ _ _ _ | |_ __ _ ___ ___

| | | |/ _ | | | | | '_ \ / _ / __|/ _ \

| || | (| | || | | |) | (| _ \ __/

_/|_, |_,||./ _,|/__|

| |

|_|

Get documentation at docs.liquibase.com

Get certified courses at learn.liquibase.com

Free schema change activity reports at

https://hub.liquibase.com

#################################################### Starting Liquibase at 11:20:15 (version 4.6.1 #98 built at 2021-11-04 20:16+0000) Liquibase Version: 4.6.1 Liquibase Community 4.6.1 by Liquibase

Unexpected error running Liquibase: JDBC-7454:Datatype ‘TIBERO.BOOLEAN’ is invalid. [Failed SQL: (-7454) CREATE TABLE tibero.DATABASECHANGELOGLOCK (ID INT NOT NULL, LOCKED BOOLEAN NOT NULL, LOCKGRANTED datetime, LOCKEDBY VARCHAR(255), CONSTRAINT PK_DATABASECHANGELOGLOCK PRIMARY KEY (ID))]

Logs saved to /home/tibero/liquibase/liquibase.log

Expected/Desired Behavior

If liquibase.database.core.OracleDatabase is set, was suposed to execute all statements in oracle dialect, and oracle doesn’t support boolean. liquibase.log liquibase_properties.txt I need a way to make liquibase use oracle dialect or to don’t use boolean when conected to Tibero database.

Screenshots (if appropriate)

If applicable, add screenshots to help explain your problem.

Additional Context

Add any other context about the problem here.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ronnie-dbacommented, Jul 6, 2022

hey @molivasdat as far as I know oracle doesn’t support boolean at least till 19c (https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlqr/Data-Types.html#GUID-F5148A9D-3098-4067-935A-9F670991A541) I will conduct some tests on oracle newer versions, because on older versions the above mentioned tables is created with integer datatype and not boolean, thanks for the heads up I will double check this on Oracle and get back to you. About building a class for tibero, that’s what I was trying to avoid as it will be very time consuming. Best regards.

1reaction
ronnie-dbacommented, Jul 5, 2022

Hello @molivasdat do we have any workaround for this issue available? I understand it is a long list of issues and this tibero bug may be of very low priority, so if somebody could suggest a workaround is of great help to me. Best regards.

Read more comments on GitHub >

github_iconTop Results From Across the Web

invalid boolean datatype when creating a table — oracle-tech
I am trying to create a table with columns as name, autogenerated id, and another column with boolean datatype. but it gives error....
Read more >
Chapter 2. Data Types - Tmax TechNet
This section briefly describes the data types provided by Tibero by default ... The following is an example of an incorrect VARCHAR variable ......
Read more >
Tibero RDBMS 에러 참조 안내서
2020: Invalid SQL data type. Unsupported SQL data type. Cause. Check the SQL data type and change it. Action. 2021: Associated statement is...
Read more >
sql - Boolean giving invalid datatype - Oracle - Stack Overflow
Last I heard there were no boolean type in oracle. Use number(1) instead!
Read more >
TmaxSoft Tibero Reviews, Ratings & Features 2022 - Gartner
Read the latest, in-depth TmaxSoft Tibero reviews from real users verified by Gartner Peer Insights, and choose your business software with confidence.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found