freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Castellano, Nicholas" <Nicholas_Castellano AT acml.com>
- To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
- Subject: RE: conversion status
- Date: Fri, 30 Aug 2002 13:25:01 -0400
Believe it or not, this behavior is well-defined, and is documented.
http://manuals.sybase.com/onlinebooks/group-as/asg1250e/refman/@Generic__Boo
kTextView/4079;pt=4002/*#X
-----Original Message-----
From: bounce-freetds-145195 AT franklin.oit.unc.edu
[mailto:bounce-freetds-145195 AT franklin.oit.unc.edu]
Sent: Friday, August 30, 2002 1:06 PM
To: TDS Development Group
Subject: [freetds] RE: conversion status
[...]
MS documentation says binary & image store "a string of bits". I know what
that means in theory, but not in (their) practice.
1> create table #i(i varbinary(20))
2> insert #i values ( 0x100 )
3> insert #i values ( 0x11223344 )
4> select * from #i
5> go
i
------------------------------------------
0x01
0x11223344
1> select cast(i as int) from #i
2> go
-----------
1
287454020
$printf "%x\n" 287454020
11223344
I don't know about you, maestro, but where I come from I'll trade you 1 for
0x100 any day of the week. I would have expected the first row to be 256.
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.
-
Re: conversion status
, (continued)
- Re: conversion status, Frediano Ziglio, 08/30/2002
- RE: conversion status, ZIGLIO Frediano, 08/30/2002
- RE: conversion status, Thompson, Bill D (London), 08/30/2002
- RE: conversion status, Thompson, Bill D (London), 08/30/2002
- RE: conversion status, ZIGLIO Frediano, 08/30/2002
- RE: conversion status, Lowden, James K, 08/30/2002
- Re: conversion status, Lowden, James K, 08/30/2002
- RE: conversion status, ZIGLIO Frediano, 08/30/2002
- RE: conversion status, Lowden, James K, 08/30/2002
- RE: conversion status, Brian Bruns, 08/30/2002
- RE: conversion status, Castellano, Nicholas, 08/30/2002
- RE: conversion status, Frediano Ziglio, 08/30/2002
Archive powered by MHonArc 2.6.24.