List:Bugs« Previous MessageNext Message »
From:<sinisa Date:March 3 2000 12:41pm
Subject:Re: another bug report with mysql++
View as plain text  
Uri Even-Chen writes:
 > 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

Hi!

I tried my best to break simple1 by scambling tables, deleting tables
etc, but could not make it.

It simply works, or politely returns an error.

Please , tell me what compiler did you use, and what compile options
did you set when compiling both library and examples. Version of
compiler is also very important.

Regards,

Sinisa

+----------------------------------------------------------------------+
| TcX  ____  __     _____   _____  ___     ==  mysql@stripped            |
|     /*/\*\/\*\   /*/ \*\ /*/ \*\ |*|     Sinisa Milivojevic          |
|    /*/ /*/ /*/   \*\_   |*|   |*||*|     mailto:sinisa@stripped     |
|   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|     Larnaka, Cyprus             |
|  /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|____                             |
|  ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^                            |
|             /*/             \*\                Developers Team       |
+----------------------------------------------------------------------+
Thread
another bug report with mysql++Uri Even-Chen3 Mar
  • Re: another bug report with mysql++sinisa3 Mar