diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-12-17 01:36:34 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-12-27 17:16:13 +0000 |
commit | 969ae6f2281fc4d7606c2f7e58402c4244e8f27b (patch) | |
tree | bff164b416d5f18678384cc258b18bbf85d33304 | |
parent | Fix case of column in primary key (diff) | |
download | gentoobrowse-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.cpp | 2 |
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); |