Re: mysql_init(&m) changes values of variables

2005-11-14 Thread Paul DuBois
At 11:33 -0500 11/13/05, Bruce Martin wrote: Ok I have an update. I fixed my problem by passing a NULL parameter to mysql_init() to do this I did this: MYSQL *m; m=mysql_init(NULL); connection=mysql_real_connect(m,cStrdbServer,cStrdbUser,cStrdbUserPass,cStrdbName,0,NULL,0); Which solves the m

Re: mysql_init(&m) changes values of variables

2005-11-13 Thread Bruce Martin
Ok I have an update. I fixed my problem by passing a NULL parameter to mysql_init() to do this I did this: MYSQL *m; m=mysql_init(NULL); connection=mysql_real_connect(m,cStrdbServer,cStrdbUser,cStrdbUserPass,c StrdbName,0,NULL,0); On Nov 12, 2005, at 7:44 PM, Bruce Martin wrote: Hello all,

mysql_init(&m) changes values of variables

2005-11-12 Thread Bruce Martin
Hello all, I found this odd thing when writing a client in C to connect to a mysql database server. I want to use mysql_real_query so I need the strlen() of the sqlStatement. So prior to calling mysql_init(&m) I get the length of the sqlStatement. I check that length and it is correct after I