Mailing List Archive



Back to the month index Back to the list index

sbeer@ibm.net
Wed, 02 Apr 97 14:29:52 +0000


Message-Id: <9704021934.AA0074@YOUR-HOST-NAME>
Date: Wed, 02 Apr 97 14:29:52 +0000
From: sbeer@ibm.net
Subject: [mSQL] NOT NULL bug in Beta 5

Tauren,

Try the enclosed patches and let me know if they work for you.
I tried your example (with the patches applied) on Linux 2.0.28 and
all seemed OK to me.

//----------------------------------------------------------
// Steve Beer
// sbeer@ibm.net

--- msqldb.c.orig Mon Mar 17 00:33:19 1997
+++ msqldb.c Tue Apr 1 13:21:57 1997
@@ -545,7 +545,7 @@
                         msqlTrace(TRACE_OUT,"checkNullFields()");
                         return(-1);
                 }
- offset += curField->length + 1;
+ offset += curField->dataLength + 1;
                 curField = curField->next;
         }
         msqlTrace(TRACE_OUT,"checkNullFields()");
--- index.c.orig Sun Mar 9 21:25:13 1997
+++ index.c Tue Apr 1 13:17:17 1997
@@ -399,7 +399,7 @@
                        curField = entry->def;
                        while(curField && field)
                        {
- offset += curField->length + 1;
+ offset += curField->dataLength + 1;
                         curField = curField->next;
                         field--;
                 }

--------------------------------------------------------------------------
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!