diff options
Diffstat (limited to 'server/src/pracrodaopgsql.cc')
-rw-r--r-- | server/src/pracrodaopgsql.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/pracrodaopgsql.cc b/server/src/pracrodaopgsql.cc index c1a0c93..f9a773f 100644 --- a/server/src/pracrodaopgsql.cc +++ b/server/src/pracrodaopgsql.cc @@ -107,7 +107,7 @@ void PracroDAOPgsql::commitTransaction(std::string sessionid, time_t now) { DEBUG(db, "commitTransaction (%s, %s, %s, <%u fields>, %ld)\n", - transaction.user.c_str(), transaction.cpr.c_str(), + transaction.user.c_str(), transaction.patientid.c_str(), _macro.name.c_str(), commit.fields.size(), now); @@ -132,7 +132,7 @@ void PracroDAOPgsql::commitTransaction(std::string sessionid, if(!R.size()) { ts = "INSERT INTO commits (patientid, template, version," " \"timestamp\", uid, status) VALUES (" - " '" + W.esc(transaction.cpr) + "', " + " '" + W.esc(transaction.patientid) + "', " " '" + W.esc(commit.templ) + "', " " '" + "1.0" + "', " " '" + W.esc(timestamp.str()) + "', " @@ -606,7 +606,7 @@ std::string sid2 = db.newSessionId(); TEST_NOTEQUAL_STR(sid1, sid2, "Do not produce the same uid each time."); Transaction transaction; -transaction.cpr = PATIENTID; +transaction.patientid = PATIENTID; transaction.user = "me"; Commit commit; |