g++ and mySQL]

2003-01-16 Thread Dileep M. Kumar
Hello friends, I am trying to connect mySQL thru g++. I could connect the db and execute a query. But I want to get a value from key board and pass the same inside the query. ie, This is the query I am passing. mysql_query(connection,insert into table-name values ('1','aaa','bbb','ccc

Re: g++ and mySQL]

2003-01-16 Thread Gelu Gogancea
] [EMAIL PROTECTED] - Original Message - From: Dileep M. Kumar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 1:10 PM Subject: g++ and mySQL] Hello friends, I am trying to connect mySQL thru g++. I could connect the db and execute

Re: g++ and mySQL]

2003-01-16 Thread Benjamin Pflugmann
calling mysql_real_escape_string()) Or alternatively, use the mysqlcpp, the C++-API (which I am not so fond of). HTH, Benjamin. [...] I am trying to connect mySQL thru g++. I could connect the db and execute a query. But I want to get a value from key board and pass the same

Re: g++ and mySQL]

2003-01-16 Thread Gelu Gogancea
Hi Benjamin, - Original Message - From: Benjamin Pflugmann [EMAIL PROTECTED] To: Gelu Gogancea [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 4:23 PM Subject: Re: g++ and mySQL] Hi. On Thu 2003-01-16 at 13:54:14 +0200, [EMAIL PROTECTED

Re: g++ and mySQL

2003-01-16 Thread Dileep M. Kumar
On Thu, Jan 16, 2003 at 01:54:14PM +0200, Gelu Gogancea wrote: If i understand well you wish to concatenate different strings. Are many options but the most handy solution is if you use sprintf. Thanks I got the answer. sprintf(QueryStr,INSERT INTO %s VALUES ('%s', '%s', '%s', '%s'),

segmentation fault with g++/cygwin/mysql

2001-06-03 Thread Mehdi Rachdi
Hi all, I hava a little problem for developping a windows mysql client program in C++. I compile it using cygwin. there is no problem during the compilation but when I execute it, it seems that when I execute a select query and retrieve the data, it access memory that it shouldn't. I tested my