Skip to Content.
Sympa Menu

freetds - Re: Issue with IMAGE type in latest build

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Thompson, Bill D (London)" <ThompBil AT exchange.uk.ml.com>
  • To: "'TDS Development Group'" <freetds AT franklin.oit.unc.edu>
  • Subject: Re: Issue with IMAGE type in latest build
  • Date: Mon, 26 Aug 2002 14:45:27 +0100


Hi All - I'm back...

I seem to have 800 unread emails after my holiday, most to do with FreeTDS.
A brief resume of the current situation would help me out!

If there's anything in particular that needs sorting , let me know...

I spotted this one...

I removed the leading "0x" after reading the following from the Sybase
dbconvert() documentation....

"A conversion to or from the datatypes SYBBINARY and SYBIMAGE is a straight
bit-copy, except when the conversion involves SYBCHAR or SYBTEXT. When
converting SYBCHAR or SYBTEXT data to SYBBINARY or SYBIMAGE, DBCONVERT
interprets the SYBCHAR or SYBTEXT string as hexadecimal, whether or not the
string contains a leading "0x". When converting SYBBINARY or SYBIMAGE data
to SYBCHAR or SYBTEXT, dbconvert creates a hexadecimal string without a
leading "0x". "
The manual for cs_convert() says the same...

Bill


> -----Original Message-----
> From: Lowden, James K [SMTP:LowdenJK AT bernstein.com]
> Sent: Wednesday, August 21, 2002 10:29 PM
> To: TDS Development Group
> Subject: [freetds] Re: Issue with IMAGE type in latest build
>
> > > Il mer, 2002-08-21 alle 22:11, Brian Bruns ha scritto:
> > > > Querying sybase (all versions) with isql does have the 0x
> > > > prefix, I believe that is why it was there in the first place.
> > >
> > On 21 Aug 2002, Frediano Ziglio wrote:
> > > Ok, but perhaps is isql that add 0x...
> > > We must act like other library not like isql.
> > > Perhaps confusion came from tsql...
> >
> > From: Brian Bruns [mailto:camber AT ais.org]
> > Sent: August 21, 2002 4:46 PM
> >
> > I thought that too, I tested both sqsh and isql. I grepped
> > sqsh for signs
> > of '0x' and didn't find anything related.
>
> Sirs,
>
> Results of a test program that calls dbconvert() to convert varbinary ->
> varchar:
>
> --------
> select cast( 'asdf' as varbinary )
> 1 columns returned.
> column_name:
> column_type: 45
> column_size: 30
> length: 4
> data (first word): 0x66647361
> Varchar form is: "61736466", length is 8.
> -------
>
> Microsoft's dbconvert() does not prepend "0x".
>
> --jkl
>
>
> The information contained in this transmission may contain privileged and
> confidential information and is intended only for the use of the person(s)
> named above. If you are not the intended recipient, or an employee or
> agent
> responsible for delivering this message to the intended recipient, any
> review, dissemination, distribution or duplication of this communication
> is
> strictly prohibited. If you are not the intended recipient, please contact
> the sender immediately by reply e-mail and destroy all copies of the
> original message. Please note that for certain accounts we do not accept
> orders and/or instructions by e-mail, and for those accounts we will not
> be
> responsible for carrying out such orders and/or instructions. Kindly
> refrain
> from sending orders or instructions by e-mail unless you have confirmed
> that
> we accept such communications for your account. Please also note that to
> satisfy regulatory requirements we review the outgoing and incoming e-mail
> correspondence of staff members serving certain functions.
>
>
>
> ---
> You are currently subscribed to freetds as: [thompbil AT exchange.uk.ml.com]
> To unsubscribe, forward this message to
> $subst('Email.Unsub')





Archive powered by MHonArc 2.6.24.

Top of Page