mysql C API hang
"Karl" <[email protected]> Sun, 3 Apr 2005 16:03:11 +0300
| Newsgroups | gmane.comp.db.mysql.bugs |
|---|---|
| Message-ID | <0e5201c5384d$7de93580$020b000a@Carl4> |
Hello, sry about my bad english. in code is something this: sprintf(query,"update database.table set something='something else' where username='someone'"); mysql_query(&mysql,query); and it works. This program runs long time (always connected to mysql) and after 6-7 days same query hang it. (gdb) bt #0 0x40128f14 in __libc_read () from /lib/libc.so.6 #1 0x40069554 in _no_db_ () from /usr/lib/libmysqlclient.so.10 #2 0x40058895 in net_real_write () from /usr/lib/libmysqlclient.so.10 #3 0x40058ab6 in my_net_read () from /usr/lib/libmysqlclient.so.10 #4 0x40054d27 in _init () from /usr/lib/libmysqlclient.so.10 #5 0x40056d0d in mysql_read_query_result () from /usr/lib/libmysqlclient.so.10 #6 0x40057cba in mysql_real_query () from /usr/lib/libmysqlclient.so.10 #7 0x40057c49 in mysql_query () from /usr/lib/libmysqlclient.so.10 #8 0x80578a9 in save_user_details (user=0x81517b8, save_current=1) at myprogram.c:3482 any ideas? Karl [email protected] -- MySQL Bugs Mailing List For list archives: http://lists.mysql.com/bugs To unsubscribe: http://lists.mysql.com/[email protected]