From 969ae6f2281fc4d7606c2f7e58402c4244e8f27b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 17 Dec 2016 01:36:34 +0000 Subject: Specify column order when updating file types --- gentoobrowse-api/service/maintenancePackageTree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gentoobrowse-api/service/maintenancePackageTree.cpp b/gentoobrowse-api/service/maintenancePackageTree.cpp index 9735d53..2bcb860 100644 --- a/gentoobrowse-api/service/maintenancePackageTree.cpp +++ b/gentoobrowse-api/service/maintenancePackageTree.cpp @@ -165,7 +165,7 @@ R"DATA( 10 category metadata 2 2 {"(2,metadata.xml)"} p.pk = { "filetypeId" }; p.cols = { "filetypeId", "description", "spec", "phase", "updateOrder" }; std::stringstream buf(fileTypes); - dbc->beginBulkUpload(p.src.c_str(), ""); + dbc->beginBulkUpload((p.src + "(filetypeid, description, phase, updateorder, spec)").c_str(), ""); dbc->bulkUploadData(buf); dbc->endBulkUpload(nullptr); dbc->patchTable(&p); -- cgit v1.2.3