C
Chris Grossbe
Hi!
this problem has been a headache for about 2 hours now and i just cant
figure it out.
ive got a c program that connects to a DB via mysql.
currently ive got 2 querys. the first worked just fine but when it comes
to the 2nd ive got an error: segmentation fault.
my query is fine tried it out directly.
i init the db with
dbHandle = mysql_init(0)
dbHandle = mysql_realconnect(dbHandle, host, pass.... blahbla)
as soon as the program comes to
mysql_query(dbHandle, str_query1);
it throws the seg fault
as i said the first q works without probs.
could it be that the dbHandle has been changed during the first q?
any help would be appricated
thx and greez
this problem has been a headache for about 2 hours now and i just cant
figure it out.
ive got a c program that connects to a DB via mysql.
currently ive got 2 querys. the first worked just fine but when it comes
to the 2nd ive got an error: segmentation fault.
my query is fine tried it out directly.
i init the db with
dbHandle = mysql_init(0)
dbHandle = mysql_realconnect(dbHandle, host, pass.... blahbla)
as soon as the program comes to
mysql_query(dbHandle, str_query1);
it throws the seg fault
as i said the first q works without probs.
could it be that the dbHandle has been changed during the first q?
any help would be appricated
thx and greez