Local MySQL not updating -- buffer problem?

From: Date: Wed, 19 Apr 2006 02:20:57 +0000
Subject: Local MySQL not updating -- buffer problem?
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6875@lists.php.net to get a copy of this message
This question relates to php-gtk+ version 1, not 2; PHP 4.4.1; all running on Windows XP. I run an update routine which selects data from a remote MySQL server and inserts it into the local, desktop, MySQL server. Data's not there until app is closed and restarted and it is consistent on both my machine and the client's. Here's the scenario - we the routine to download a set of data, and when we insert it into the local database, there is a "fetchdate" field to stamp each record with yyyy-mm-dd, let's say 2006-04-18. If the user immediately selects the "reports" notebook page, and runs a report where the date selection (fetchdate) is the same as for the records just downloaded (2006-04-18) no data is fetched. If we close and open the app, doing nothing else, the data is there. Should flush() be called to smack the local server on the side of the head? It seems counterintuitive, but MySQL appears to have the old data set in a buffer, and it's not updated. Or should the connection to the remote server be closed? Regards - Miles Thompson -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.385 / Virus Database: 268.4.3/316 - Release Date: 4/17/2006

« previous php.gtk.general (#6875) next »