insert

2001-02-27 Thread jarle rudihagen
Problems inserting: to fields: imageID and imageData. run: ./mainprogram "file" "full_file_path" "imageID" Her is my code: try { con.real_connect(MY_DATABASE,MY_HOST,MY_USER,MY_PASSWORD,3306,(int)0,60,NULL); Query query = con.query(); ostrstream strbuf; ifstream In(argv[1], io

problems with insert

2001-02-26 Thread jarle rudihagen
I got a mysql table with to collumns: imageID(integer) and imageData(blob). I'm using the mysql++ API. I can't seem to insert both the imageID and imageData into the table. When I'm just inserting the imageData(the blob field) it works out fine. But as soon as I try to pass both fields, things

Re: Linuux with mysql and c++ API

2001-02-22 Thread Jarle Rudihagen
Message - From: "Sinisa Milivojevic" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <> Sent: Thursday, February 22, 2001 1:22 PM Subject: Re: Linuux with mysql and c++ API > Jarle Rudihagen writes: > > Linux with mysql and c++API > > > > I&#

Linuux with mysql and c++ API

2001-02-22 Thread Jarle Rudihagen
Linux with mysql and c++API I'am trying to connect to an Mysql database trough c++ API (1.7.8) The program compiles just fine but when i try to run it I get the message Segmentation fault core dump When I try to run the program with the strace command I can see that the program connects to