Skip to content

Commit

Permalink
#111 - added scrap distortions to SQL export.
Browse files Browse the repository at this point in the history
  • Loading branch information
smudrak committed Sep 26, 2018
1 parent 5a3409f commit d130858
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions thexpdb.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ void thexpdb::export_sql_file(class thdatabase * dbp)
survey_name, survey_title);

fprintf(sqlf,"create table SCRAPS "
"(ID integer, SURVEY_ID integer, NAME varchar(%d), PROJID integer);\n",
"(ID integer, SURVEY_ID integer, NAME varchar(%d), PROJID integer, MAX_DISTORTION real, AVG_DISTORTION real);\n",
survey_name);

fprintf(sqlf,"create table MAPITEMS "
Expand Down Expand Up @@ -268,9 +268,9 @@ void thexpdb::export_sql_file(class thdatabase * dbp)
scrapp = (thscrap *)(*oi);
IF_PRINTING {
fprintf(sqlf,"insert into SCRAPS values "
"(%ld, %ld, '%s', %d);\n ",
"(%ld, %ld, '%s', %d, %.5lf, %.5lf);\n ",
scrapp->id, (scrapp->fsptr != NULL ? scrapp->fsptr->id : 0),
scrapp->name, scrapp->proj->id);
scrapp->name, scrapp->proj->id, scrapp->maxdist, scrapp->avdist);
} else {
CHECK_STRLEN(survey_name,scrapp->name);
}
Expand Down

0 comments on commit d130858

Please sign in to comment.