- missing semicolon

- missing table name parameter
This commit is contained in:
Ulf Gebhardt 2021-10-21 05:25:37 +02:00
parent 7729f44ba1
commit 95ab503626
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -103,12 +103,13 @@ namespace model {
}
Poco::Data::Statement select(session);
std::string table_name_user_roles = "login_user_roles"
std::string table_name_user_roles = "login_user_roles";
select << "SELECT " << getTableName() << ".id, email, first_name, last_name, username, description, password, pubkey, privkey, email_hash, created, email_checked, language, disabled, group_id, publisher_id, user_roles.role_id "
select << "SELECT " << getTableName() << ".id, email, first_name, last_name, username, description, password, pubkey, privkey, email_hash, created, email_checked, language, disabled, group_id, publisher_id, " << table_name_user_roles << ".role_id "
<< " FROM " << getTableName()
<< " LEFT JOIN " << table_name_user_roles << " ON " << getTableName() << ".id = " << table_name_user_roles << ".user_id "
<< " WHERE " << _fieldName << " = ?" ,
<< " LEFT JOIN " << table_name_user_roles
<< " ON " << getTableName() << ".id = " << table_name_user_roles << ".user_id "
<< " WHERE " << _fieldName << " = ?; " ,
into(mID), into(mEmail), into(mFirstName), into(mLastName), into(mUsername), into(mDescription), into(mPasswordHashed),
into(mPublicKey), into(mPrivateKey), into(mEmailHash), into(mCreated), into(mEmailChecked),
into(mLanguageKey), into(mDisabled), into(mGroupId), into(mPublisherId), into(mRole);