added config parameter: db_postgresql_smaller_than_10

default false
if true then we are not using ROW() statements in sql queries




git-svn-id: svn://ttmath.org/publicrep/winix/trunk@1099 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2018-04-25 09:37:56 +00:00
parent fd421c54e3
commit b01db89942
5 changed files with 47 additions and 22 deletions

View File

@@ -67,8 +67,10 @@ public:
Db() : item_cols(*this)
{
is_postgresql_smaller_than_10 = false;
}
void PostgreSQLsmallerThan10(bool is_smaller_than_10);
bool GetUserPass(const std::wstring & login, long & user_id, UserPass & up);
Error AddUser(User & user, const UserPass & up);
@@ -138,6 +140,8 @@ protected:
std::wstring iq_id_list;
DbItemColumns item_cols;
bool is_postgresql_smaller_than_10;
std::wstring postgrsql_row_statement;
bool AddItemCreateUrlSubject(Item & item);