Skip to Content.
Sympa Menu

freetds - Re: Certain query results cause segfaults

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Brian Bruns <camber AT ais.org>
  • To: TDS Development Group <freetds AT franklin.metalab.unc.edu>
  • Subject: Re: Certain query results cause segfaults
  • Date: Fri, 19 Apr 2002 18:45:30 -0400 (EDT)


Hi,

see the faq/userguide about text fields. You need to set the maximum text
field size (2gig, which you probably don't have ;-). You can set it
either by way of the 'set textsize xxxx' query or in the freetds.conf
file.

Brian

On Fri, 19 Apr 2002, Casey Allen Shobe wrote:

> I got FreeTDS/PHP working!
>
> OK, so I ran a query:
> $test = sybase_query ('select * from alert', $piv_conn);
> ...and the apache process died.
>
> So I ran this query:
> $test = sybase_query ('select valid_until from alert', $piv_conn);
> ...and it worked!
>
> So I ran this query:
> $test = sybase_query ('select alert_text from alert', $piv_conn);
> ...and it the apache process died.
>
> It's a standard text field, the only thing I can see different about it is
> that it's the longest field of the table, and some of the entries contain
> carriage returns. So I tried fetching the field from one row which was did
> not contain carriage returns, and it still worked.
>
> I'm don't know where to go from here. Here's what the column properties
> are:
> Data Type: text
> Length: 2147483647
> Precision: 2147483647
> Is nullable: Yes
>
>





Archive powered by MHonArc 2.6.24.

Top of Page