I just noticed that you are returning from your function before finalize.
On Tue, Jun 10, 2008 at 10:12 AM, piotro <[EMAIL PROTECTED]> wrote:
> Hello. I really need help with this, because Im almost out of
> ideas here. Help please!
>
> sqldata is a vector< vector < char* > >
> row is a vector <
For starters sqlite3_column_count( ) should be after prepare once.
You don't need to do it for every step.
The other thing is do you have to use STL when you can do everything by
using SQLite?
Tell us in English what you want to accomplish with your code. We can come
up with a pure SQLite solution
Wednesday, June 11, 2008, 12:12:33 AM, you wrote:
p> Hello. I really need help with this, because Im almost out of
p> ideas here. Help please!
p> sqldata is a vector< vector < char* > >
p> row is a vector < char* >
p> sqldata sql3wrapper::pobierzPodmiot(){
p> const char* tail;
p> sqlite3
Isn't this simply a vector problem?
You have a vector where you store char pointers. The pointers returned from
sqlite3_column_text will be destroyed when you step afaik.
Try making it a vector instead. Then you will implicitly make
copies of the text in your vector instead.
/Jonas
On Tue, Jun 10
Hello. I really need help with this, because Im almost out of
ideas here. Help please!
sqldata is a vector< vector < char* > >
row is a vector < char* >
sqldata sql3wrapper::pobierzPodmiot(){
const char* tail;
sqlite3_stmt* statement;
std::string query = squery("SELECT * FROM %;"
5 matches
Mail list logo