Mailing List Archive



Back to the month index Back to the list index

rasmus@bellglobal.com
Thu, 26 Sep 1996 07:56:01 -0400 (EDT)


From: rasmus@bellglobal.com
Date: Thu, 26 Sep 1996 07:56:01 -0400 (EDT)
Subject: Re: [mSQL] * my table flew away... *
Message-Id: <ML-2.3.843738961.7962.rasmus@inet-dev>

> However, I found that *some* of the mSQL tables become empty and even
> the structures of the tables become undefined!

> 1) What's the reasons behind?

A bug in mSQL.

> 2) Any helps?

Yes, fix it with the following patch applied to mSQL-1.0.16:

*** ./src/msql/msqldb.c.orig Sun Jul 7 16:47:09 1996
--- ./src/msql/msqldb.c Tue Jul 30 17:07:42 1996
***************
*** 1398,1403 ****
--- 1398,1406 ----
                safeFree(entry->rowBuf);
                safeFree(entry->keyBuf);
                entry->def = NULL;
+ *(entry->DB) = 0;
+ *(entry->table) = 0;
+ entry->age = 0;
        }
  
        /*

-Rasmus
--------------------------------------------------------------------------
To remove yourself from the Mini SQL mailing list send a message containing
"unsubscribe" to "unsubscribe" to msql-list-request@bunyip.com. Send a message containing
"info msql-list" to majordomo@bunyip.com for info on monthly archives of
the list. For more help, mail owner-msql-list@bunyip.com NOT the msql-list!