MySQL Forums
Forum List  »  Oracle

Converting oracle's "raw" to mysql's tinyblob
Posted by: Konstantyn Smirnov
Date: March 15, 2007 09:05AM

Hi all

I'm experiencing a problem during re-writing queries from Oracle to mysql. The datatypes are "raw" for orcale9 and tinyblob for mysql5.
A query looks like:
Oracle
insert into USERPASSWORD (PASSWORD) values ('69b7e2f43cacf5da260b5dac9b0bc89705f85682' );
mysql:
insert into USERPASSWORD (PASSWORD) values ( '69b7e2f43cacf5da260b5dac9b0bc89705f85682' );

the problem is, that in oracle the password lands "as it is" (seen in SQuireL client):
"69 b7 e2 f4 3c ac f5 da 26 0b 5d ac 9b 0b c8 97 05 f8 56 82 "

but in mysql I get
"36 39 62 37 65 32 66 34 33 63 61 63 66 35 64 61 32 36 30 62 35 64 61 63 39 62 30 62 63 38 39 37 30 35 66 38 35 36 38 32 "

If I insert the same data as a byte array from Java, it works properly with both DBs.

Any ideas?

Options: ReplyQuote


Subject
Views
Written By
Posted
Converting oracle's "raw" to mysql's tinyblob
5216
March 15, 2007 09:05AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.