summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-12-17 01:36:34 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2016-12-27 17:16:13 +0000
commit969ae6f2281fc4d7606c2f7e58402c4244e8f27b (patch)
treebff164b416d5f18678384cc258b18bbf85d33304
parentFix case of column in primary key (diff)
downloadgentoobrowse-api-969ae6f2281fc4d7606c2f7e58402c4244e8f27b.tar.bz2
gentoobrowse-api-969ae6f2281fc4d7606c2f7e58402c4244e8f27b.tar.xz
gentoobrowse-api-969ae6f2281fc4d7606c2f7e58402c4244e8f27b.zip
Specify column order when updating file types
-rw-r--r--gentoobrowse-api/service/maintenancePackageTree.cpp2
1 files changed, 1 insertions, 1 deletions
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);