freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Frediano Ziglio <freddy77 AT gmail.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] maxlength of CS_TEXT_TYPE - 2GB?
- Date: Sun, 22 Aug 2010 15:31:00 +0200
Il giorno 22/ago/2010, alle ore 07.59, Erik Bryn <erik.bryn AT gmail.com> ha scritto:
Hi,
I'm new to interfacing with FreeTDS in C. While attempting to fetch
text, using ct-lib, from MSSQL 2008. I'm seeing the maxlength of the
field is 2GB, which is obviously too large to malloc. What's the best
practice for reading in data of unknown length?
Thanks,
- Erik
Well, use lenght instead of maxlenght and allocate as long as you need
Freddy77
-
[freetds] maxlength of CS_TEXT_TYPE - 2GB?,
Erik Bryn, 08/22/2010
-
Re: [freetds] maxlength of CS_TEXT_TYPE - 2GB?,
Frediano Ziglio, 08/22/2010
-
Re: [freetds] maxlength of CS_TEXT_TYPE - 2GB?,
Erik Bryn, 08/22/2010
- Re: [freetds] maxlength of CS_TEXT_TYPE - 2GB?, Erik Bryn, 08/22/2010
-
Re: [freetds] maxlength of CS_TEXT_TYPE - 2GB?,
Erik Bryn, 08/22/2010
-
Re: [freetds] maxlength of CS_TEXT_TYPE - 2GB?,
Frediano Ziglio, 08/22/2010
Archive powered by MHonArc 2.6.24.