Certain query results cause segfaults

Brian Bruns camber at ais.org
Fri Apr 19 19:45:30 EDT 2002


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
> 
> 




More information about the FreeTDS mailing list