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 | 532a98983c1be1738bcdaf62ee9b5666d2a764ac (patch) | |
tree | bff164b416d5f18678384cc258b18bbf85d33304 | |
parent | Fix case of column in primary key (diff) | |
download | gentoobrowse-api-532a98983c1be1738bcdaf62ee9b5666d2a764ac.tar.bz2 gentoobrowse-api-532a98983c1be1738bcdaf62ee9b5666d2a764ac.tar.xz gentoobrowse-api-532a98983c1be1738bcdaf62ee9b5666d2a764ac.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); |