Re: Local MySQL not updating -- buffer problem?

From: Date: Wed, 19 Apr 2006 11:58:45 +0000
Subject: Re: Local MySQL not updating -- buffer problem?
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6880@lists.php.net to get a copy of this message
Steph, I posted to see if anyone else had the problem; apparently Madelaine did and resolved it by closing and re-opening the local database connection, which shutting down the app and restarting it does. <g>. So I'm going to close and reconnect to the local db and see what happens. Regards - Miles At 01:26 AM 4/19/2006, Steph Fox wrote:
Hi Miles, Have you actually tried calling flush()? You offer it as an alternative, I'm just wondering... I've had to use flush() under win32 in places it was wholly unnecessary under *nix. So yep, that's possible. But if you already have the solution, I'm confused as to why you're even asking? - Steph
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 -- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __________ NOD32 1.1380 (20060125) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com
-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.385 / Virus Database: 268.4.4/318 - Release Date: 4/18/2006

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