Re: Data truncation problems

bbbart <[email protected]> Wed, 22 Mar 2006 10:23:58 +0100
Newsgroups gmane.comp.apache.mod-survey.general
Message-ID <[email protected]>
Quoting Jennifer Kurkoski <[email protected]>:

> The total text accepted depended on the point in the survey at which
> I pasted it in (that is, the question #).
> 
> The MEMO questions occur near the end and then again at the very end
> of the survey. The later in the survey that I pasted in text blocks, 
> the less total text accepted (Note: By "accepted" I mean the amount 
> of text that was present when I pulled the data. There's no error or 
> other indication from mod_survey that any problem as occurred).
> 
> Also of note: once text was truncated in one MEMO question, no text
> appeared at all in any subsequent MEMO questions.
> 
> The whole survey contains ~26 questions, all on a single page. Some
> questions are MATRIX (ranging from 2-15 rows), some LIST, some
> CHOICE, some TEXT and some MEMO.

hmmm, I'm not aware of how mod_survey handles this internally, but this
really smells like a Perl variable 'filling' up. you can only store a
certain amount of text in a Perl string.

try the following:

------------------------------------------------------------------
#!/usr/bin/env perl

$a = 'some text here; the more, the faster you will reach the limit';

while (1) {
        $a .= $a;
        print length $a;
        print "\t";
}
------------------------------------------------------------------

and see where it stops incrementing. :-)

-- 
groetjes,
BBBart
Skickat av bbbart <[email protected]>
till survey-discussion