FAQ
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 first set it up the length is 23 which is correct. I then call
mysql_init(&m), then I check the length again, well the value of the
int I set earlier, and it is 0.

What's the deal? why would mysql_init() change the value of my int?

Bruce Martin
The Martin Solution
PO Box 644
Delaware Water Gap, PA
(570) 421-0670
bruce@martinsolution.com

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 3 | next ›
Discussion Overview
groupmysql @
categoriesmysql
postedNov 13, '05 at 12:43a
activeNov 14, '05 at 4:04p
posts3
users2
websitemysql.com
irc#mysql

2 users in discussion

Bruce Martin: 2 posts Paul DuBois: 1 post

People

Translate

site design / logo © 2022 Grokbase