From e5a5dc15f91ef6acd05eba2e758fd3942af24f07 Mon Sep 17 00:00:00 2001 From: eelke Date: Wed, 18 Oct 2023 17:50:44 +0200 Subject: [PATCH] Fix that CRUD window did not properly quote column names when this is required. --- pglab/crud/CrudModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pglab/crud/CrudModel.cpp b/pglab/crud/CrudModel.cpp index a049223..90935d7 100644 --- a/pglab/crud/CrudModel.cpp +++ b/pglab/crud/CrudModel.cpp @@ -429,7 +429,7 @@ std::tuple CrudModel::createInsertQuery(const PendingRow first = false; else q << ","; - q << column.name; + q << quoteIdent(column.name); } q << ") VALUES ($1"; for (size_t p = 2; p <= data.size(); ++p)