Hello All -

I've been programming with sqlite3's C++ api for a few months now
and am quite impressed and happy with the results. But I've hit a bump
in the road.

The following code seems to cause the 'template' table to become locked.

CString querystr;
querystr.Format ("insert into templates values (NULL, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')", OurSKU, Description, VendorSKU, PackType, UnitsPerPack, Length, Width, Height, WeightGross, WeightNet, UnitPrice, LabelsFlag, WarrantyFlag);
i = querystr.GetLength();
querystr2 = (char *) malloc (i);
querystr2 = querystr.GetBuffer (i);
sqlite3_exec (db, querystr2, NULL, 0, NULL);

The sqlite3_exec() call returns with a value of 5 (SQLITE_BUSY). Am I
doing something wrong? I'd appreciate any light you guys/gals could shed
on my problem.

Best regards,

Mark Anderson.

Reply via email to