Fix that CRUD window did not properly quote column names when this is required.

This commit is contained in:
eelke 2023-10-18 17:50:44 +02:00
parent 3cc28231f9
commit e5a5dc15f9

View file

@ -429,7 +429,7 @@ std::tuple<QString, Pgsql::Params> CrudModel::createInsertQuery(const PendingRow
first = false; first = false;
else else
q << ","; q << ",";
q << column.name; q << quoteIdent(column.name);
} }
q << ") VALUES ($1"; q << ") VALUES ($1";
for (size_t p = 2; p <= data.size(); ++p) for (size_t p = 2; p <= data.size(); ++p)