List:Bugs« Previous MessageNext Message »
From:Uri Even-Chen Date:March 2 2000 11:51pm
Subject:another bug report with mysql++
View as plain text  
another bug, more critical.

while running the simple1.cc program on my database, there was a
Segmentation fault in the line pointed with "---->":

                Result::iterator i;
                // The Result class has a read-only Random Access
Iterator
                for (i = res.begin(); i != res.end(); i++) {
---->                   row = *i;
                        cout << setw(17) << row[0]
                                << setw(4)  << row[1]
                                << setw(7)  << row["weight"]
                                // you can use either the index number
or column name when
                                // retrieving the colume data as
demonstrated above.
                                << setw(7)  << row[3]
                                << row[4] << endl;
                }

also, the query.preview() returned an empty string, althought I had one
record found (like expected) in res.size().

also, other programs caused Segmentation faults with mysql++. it may not
be installed correctly on my system, but how do I check that?


Uri.
-------------------------------
MySQL license: #7259
MySQL basic email support: #489
--------------------------------------------------------
Uri Even-Chen
Speedy Software
Raanana, Israel.
E-mail: webmaster@stripped
ICQ Number: 7461268
Phone Number: 09-7715013
--------------------------------------------------------
Welcome to Speedy Net (In Hebrew):
   http://www.speedy.co.il/
Speedy Dating (In Hebrew):
   http://www.speedy.co.il/dating/
Speedy Composer (In English):
   http://www.speedy.co.il/composer/
--------------------------------------------------------
Thread
another bug report with mysql++Uri Even-Chen3 Mar
  • Re: another bug report with mysql++sinisa3 Mar