Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 14 of 14 total
Thread Binary GUID's
Thu, Jan 17 2013 5:14 PMPermanent Link

Mario Enríquez

Open Consult

Hey, good one Raul, I didn't see that coming. Good question!

regards
Mario
Fri, Jan 18 2013 9:35 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Raul,

<< Are you planning to surface an ability to query this directly using SQL ?
(would need some text to binary conversion/cast functions or ability to
specify hex valued for binary). >>

That may have been the initial hold-up. Smile But, to answer your question,
yes, one would need to either use a CAST() for GUID string constants in
order to do comparisons, or use a straight-up binary (hex) constant for the
comparisons.

If you have any other questions, please let me know.

Tim Young
Elevate Software
www.elevatesoft.com
Fri, Jan 18 2013 11:50 AMPermanent Link

Raul

Team Elevate Team Elevate

Tim,

<< But, to answer your question, yes, one would need to either use a CAST() for GUID string constants in
order to do comparisons, or use a straight-up binary (hex) constant for the
comparisons.
If you have any other questions, please let me know.
>>

Thanks - I'm sure you're already covering both sides of this but will ask just in case that we'll be able to cast both ways : cast binary to text guid/hex value (as part of select fields for example)  and reverse cast from text/hex to binary to use in where clause or such.

Raul
Mon, Jan 21 2013 10:48 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Raul,

<< Thanks - I'm sure you're already covering both sides of this but will ask
just in case that we'll be able to cast both ways : cast binary to text
guid/hex value (as part of select fields for example)  and reverse cast from
text/hex to binary to use in where clause or such. >>

Yes, CAST() works that way now (for binary).

I'm pretty sure that I'm going to have to introduce a new SQL type,
something like BGUID that will be a sub-type of a BYTE type, as opposed to
the GUID type, which is a sub-type of the CHAR type.

Tim Young
Elevate Software
www.elevatesoft.com
« Previous PagePage 2 of 2
Jump to Page:  1 2
Image