How can I translate CAST ( ... AS BINARY) into Firebird lang

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
Tommi
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: 11.07.2008, 13:27

How can I translate CAST ( ... AS BINARY) into Firebird lang

Post by Tommi »

I used with mysql this syntax

CAST (0x... AS BINARY) but now with Firebird it doesn't work ?

How can I do ?

Thank you
Michael
ZeosLib's Handyman :o)
ZeosLib's Handyman :o)
Posts: 189
Joined: 15.08.2005, 16:08
Location: Wehrheim
Contact:

Post by Michael »

Hi,

I don't think that FB provides this kind of conversion. But there is a UDF that contains a bunch of functions (abount 470). It is called FreeAdhocUDF and you can find it here: http://www.udf.adhoc-data.de/index_eng.html It contains two functions that might be interesting for you:
  • F_CONVERTTOBASE ... and
  • F_CONVERTFROMBASE
I never used this library but I hope this will help to solve your problem ... :wink:
:prog2: Use the source, dude!

[align=right]..::.. ZeosLib on SourceForge ..::..[/align]
Post Reply