Re: Local MySQL not updating -- buffer problem?
| From: | Madeleine D. | Date: | Wed, 19 Apr 2006 06:11:01 +0000 |
| Subject: | Re: Local MySQL not updating -- buffer problem? | ||
| References: | 1 2 3 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6879@lists.php.net to get a copy of this message | ||
Steph -
I can do that, but I have to confess, I never took the problem to MySQL. We have paid support now, so I could log a call on it, and give them a chance to respond before I post anything.
If I ever get all my font/gtkrc issues resolved, I'll write up something on that one too. Sigh.
Madeleine D.
Steph Fox wrote:
Madeleine, hi, I was totally unaware you'd even had an issue with this. Would you care to add something about it to the Wiki? - Steph ----- Original Message ----- From: "Madeleine D." <mmdrake@bctonline.com> To: "Miles Thompson" <miles@allnovascotia.com> Cc: "php-gtk-general" <php-gtk-general@lists.php.net> Sent: Wednesday, April 19, 2006 5:43 AM Subject: Re: [PHP-GTK] Local MySQL not updating -- buffer problem?Miles - This sounds like something we ran into with our replication script. After completing a connection to a remote site, the code was supposed to update the local client record to indicate the data had been transferred. The remote connect/disconnect went fine, but the local table never got updated. We tried flush() w/o success, as well as some other code reworks, all w/o getting anywhere. Ours was a nightly script, so making sure the updates happened w/o user intervention was crucial. Finally, we tried putting in a mysql_close on the local db and then a reconnect. That did the trick. Hope that helps. Madeleine D. Miles Thompson wrote: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-- 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