[patch] default boolean values on export
Nirgal Vourgère <[email protected]> Tue, 1 Mar 2011 11:05:56 +0000
| Newsgroups | gmane.comp.db.mdb-tools.devel |
|---|---|
| Message-ID | <[email protected]> |
There is a bug in the detection of default value property for booleans. The test whether a default value was already writen is wrong: there might be column properties, but no default value inside. Attached is a fix. Cheers ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ mdbtools-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mdbtools-dev
boolean_default
(text/x-patch, 408 B)
Index: mdbtools-0.6pre1/src/libmdb/backend.c =================================================================== --- mdbtools-0.6pre1.orig/src/libmdb/backend.c +++ mdbtools-0.6pre1/src/libmdb/backend.c @@ -750,8 +750,8 @@ } else fputs(defval, outfile); + done = 1; } - done = 1; } if (!done && col->col_type == MDB_BOOL) /* access booleans are false by default */