Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oracle RAW(16) datatype shows wrong #1672

Closed
DriesSch opened this issue May 17, 2017 · 12 comments
Closed

Oracle RAW(16) datatype shows wrong #1672

DriesSch opened this issue May 17, 2017 · 12 comments

Comments

@DriesSch
Copy link

Hello guys

I recently started using DBeaver, I must say it's an enormous advantage compared to Oracle SQL Developer.
There is an issue though, we use the datatypeRAW(16) with a default of sys_guid() for primary keys. When doing a select in OSD it shows a normal GUID, in DBeaver it shows some weird symbols. What could be wrong?

@serge-rider
Copy link
Member

Could you post sample DDL/insert?

@DriesSch
Copy link
Author

DriesSch commented May 18, 2017

Thanks for the quick reply!

Table is created like this:
CREATE TABLE MCVSSETDEF(
PKMCVSSETDEF RAW(16) DEFAULT sys_guid(),
GROEP CHAR(4) NOT NULL,
NAAM VARCHAR2(35) NOT NULL,
TIJDUPDATE DATE DEFAULT SYSDATE,
GEBRUIKER VARCHAR2(8) DEFAULT USER,
CONSTRAINT MCVSSETDEF_PK PRIMARY KEY (PKMCVSSETDEF)
);

After I did this insert: INSERT INTO MCVSSETDEF (groep, naam) values('2238','TestSet');
I do this select: SELECT * FROM MCVSSETDEF;

I get this result:
image

In Oracle SQL Developer I get this result:
image

Is that the info you need?

@serge-rider
Copy link
Member

Yes, thanks.
You can change binary presentation in preferences:
default

So results will look just like in SQL Developer:
default

@DriesSch
Copy link
Author

Wonderful, thanks for the quick replies and the solution!

@srinivas-os
Copy link

Note: For anyone like me using 4.3.5, this option is under Preferences -> Result Sets -> Editors now.

@SeabiscuitCZX
Copy link

I'm using 5.0.4, the option same as your

@SeabiscuitCZX
Copy link

I'm facing another issue. after changed this option, the display is fine.
but i did select like SELECT * FROM DEVICE_REGISTRATION d WHERE d.REGISTRATION_ID = 'B69A7BC09C4D428B84EE059EED78348B'; the REGISTRATION_ID type is RAW(16). nothing selected.

serge-rider added a commit that referenced this issue Aug 31, 2018
@serge-rider
Copy link
Member

This should work.
I've also fixed native Oracle hex formatter (so you can use result "Filter by" menu).

@SeabiscuitCZX
Copy link

SeabiscuitCZX commented Sep 18, 2018

SELECT * FROM table t WHERE t.ID = HEXTORAW('E6B92841FC9E4CBF97607D87389439C3'); i'v tried this way. it worked.

@yannickvidal
Copy link

In DBeaver v6.0.1, the option is now under Window > Preferences > Editors > Data Editor > LOB Editors

@ovidiugabriel
Copy link

This answer is obsolete. The option is now under Window > Preferences > Editors > Data Editor > LOB Editors.

Yes, thanks.
You can change binary presentation in preferences:
default

So results will look just like in SQL Developer:
default

@ovidiugabriel
Copy link

This changed once again on 7.3 it is in Editors > Data Editor > Binary Editors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants