Speed tables is a high-performance memory-resident database. The speed table compiler reads a table definition and generates a set of C access routines to create, manipulate and search tables containing millions of rows. Currently oriented towards Tcl.
I've got a table I'm caching with ::stapi::init_ctable and ::stapi::open_cached. One of the varchar fields in the backing database table contains a trailing newline.
If no .tsv exists in the ctables directory, open_cached reads everything in the first time without complaint, but if I restart the application and it attempts to use the cached .tsv data it crashes.
Inspecting the .tsv file I see that there's a literal ^M in the file, which breaks the record into two lines.
I've got a table I'm caching with ::stapi::init_ctable and ::stapi::open_cached. One of the varchar fields in the backing database table contains a trailing newline.
If no .tsv exists in the ctables directory, open_cached reads everything in the first time without complaint, but if I restart the application and it attempts to use the cached .tsv data it crashes.
Inspecting the .tsv file I see that there's a literal ^M in the file, which breaks the record into two lines.