Re: C API problems with InnoDB

2002-12-03 Thread Heikki Tuuri
Heri, - Original Message - From: ""H. Steuer"" <[EMAIL PROTECTED]> Newsgroups: mailing.database.mysql Sent: Tuesday, December 03, 2002 11:49 AM Subject: Re: C API problems with InnoDB > Hello Mark, > > thanks for your answer. In fact the mysql shel

Re: C API problems with InnoDB

2002-12-03 Thread Dr. Frank Ullrich
Heri, "H. Steuer" schrieb: > > Hi Stefan, > > > Does the second shell actually perform those changes? In this case, I > assume > > it's got something to do with the isolation level / consistent read in > > InnoDB tables. "shell1" sees all its changes immediately, "shell2" (the > > application) h

Re: C API problems with InnoDB

2002-12-03 Thread H. Steuer
Hi Stefan, > Does the second shell actually perform those changes? In this case, I assume > it's got something to do with the isolation level / consistent read in > InnoDB tables. "shell1" sees all its changes immediately, "shell2" (the > application) has just a snapshot of the data at the time it

Re: C API problems with InnoDB

2002-12-03 Thread H. Steuer
Hello Mark, thanks for your answer. In fact the mysql shell where I update the row is using AUTOCOMMIT=1. Even after I issue a COMMIT manually the changes are not seen by the application. What I dont understand is that the program doing a SELECT has to issue an COMMIT to have all data available. M

Re: C API problems with InnoDB

2002-12-02 Thread Mark Matthews
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 H. Steuer wrote: Hello MySQL users, I have a weired issue using the MySQL C API and InnoDB tables. An application polls a database every 30 seconds. When the application starts everything seems to be fine. During the running of the application i chan

Re: C API problems with InnoDB

2002-12-02 Thread Stefan Hinz, iConnect \(Berlin\)
Dear Heri, > I tracked down the problem and saw that its only happening if I set > autocommit=0. > If I run a second mysql shell I can see all changes immediately. Just the > application itself doesnt. Does the second shell actually perform those changes? In this case, I assume it's got something

Re: C API problems

2001-09-20 Thread Paul DuBois
>Can someone give me a quick *complete* example code of setting up a >connection, performing a small query, and reading back the result? Any of the standard MySQL clients included in the source distribution that are written in C provide examples. Some are more brief than others. Another source

Re: C API problems

2001-09-20 Thread Luke Chiam
MYSQL_RES *results1; MYSQL_ROW row; MYSQL DBsession; mysql_init ( &DBsession ); mysql_real_connect ( &DBsession, PRI_HOST_IP, PRI_USER_NAME, PRI_USER_PASSWORD, PRI_DB_NAME, PRI_PORT_NO, "", 0 ); sprintf ( sql, "SELECT filepath FROM filepath WHERE charset = '%s' AND location = '%s'",

Re: C API problems

2001-09-20 Thread Yen-Chu Chen
Hi, Attached is my test program while exercising the C API of the MySQL. Of course I have replaced the host name, user name, password and database name with dummy ones. I am using RH 6.1. The MySQL version is 3.22. Essentially you need to do #include ... main() { MYSQL mysql; MYS

RE: C API problems

2001-09-20 Thread Will French
Sorry, I hit send before I was done... > examples, sadly, just aren't very good. And there is no example for > mysql_use_result(). (the example code uses mysql_store_result()) The syntax and proceedure for mysql_use_result is very very similar. My advice: get it working with *store* and then

RE: C API problems

2001-09-20 Thread Will French
> Can someone give me a quick *complete* example code of setting up a > connection, performing a small query, and reading back the result? > In windows install, there is an examples directory which contains mytest.c. I can't say if this exists for Linux but I bet it does in some form. Why don't

Re: C api problems

2001-07-11 Thread Gerald Clark
man ldconfig If you are running Linux, add the library directory to ld.so.conf and run ldconfig. Your linker does not know about the libraries. my limp wrote: > can any one help me. I am trying to connect to mysql database via a c > program. The program compiles fine but I keep on getting the