Skip to Content.
Sympa Menu

freetds - Re: [freetds] freetds-dev on Solaris

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT schemamania.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] freetds-dev on Solaris
  • Date: Tue, 25 Nov 2003 09:09:24 -0500

On Tue, 25 Nov 2003 01:53:08 -0500, "Jeremy Kister"
<freetds-01 AT jeremykister.com> wrote:
> I am currently using DBD::Sybase v1.01 with freetds-0.61.2 on solaris
> 2.7 and solaris 2.9 configured with tdsver 4.2 to connect to a Microsoft
> SQL 2000 server.
>
> As Michael Peppler notes in the bugs section of his "README.freetds",
> FreeTDS 0.61 has a bug when executing queries that return 0 rows.
>
> To get around this, i tried installing freetds-0.62.dev.20031124 (as
> well as 20031108).
> On my Solaris 2.7 box (perl 5.6.1), when i run any perl script using
> the
> freetds 20031124, i get:
> Assertion failed: 0, file iconv.c, line 343
> Abort

Line 1343, you mean? Here's that assert, below. I'd turn off extra
checks to get it working, and maybe print out the names to clarify what's
happening.

--jkl

TDSICONVINFO *
tds_iconv_from_lcid(TDSSOCKET * tds, int lcid)
{
const char *charset = lcid2charset(lcid);

#if ENABLE_EXTRA_CHECKS
assert(strcmp(tds_canonical_charset_name(charset), charset) == 0);
#endif

/* same as client (usually this is true, so this improve performance)
?
*/
if
(strcmp(tds->iconv_info[client2server_chardata]->server_charset.name,
charset) == 0)
return tds->iconv_info[client2server_chardata];

return tds_iconv_get_info(tds, charset);
}




Archive powered by MHonArc 2.6.24.

Top of Page