From dccf3438d3615d064372d5fe5e02124ce30ce439 Mon Sep 17 00:00:00 2001 From: MeanSquaredError <35379301+MeanSquaredError@users.noreply.github.com> Date: Sat, 6 Jan 2024 09:41:48 +0200 Subject: [PATCH] Add a missing break to the switch case that handles PostgreSQL errors 40XXX. (#552) --- include/sqlpp11/postgresql/result.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/sqlpp11/postgresql/result.h b/include/sqlpp11/postgresql/result.h index b9a1d14c..820c00ee 100644 --- a/include/sqlpp11/postgresql/result.h +++ b/include/sqlpp11/postgresql/result.h @@ -250,6 +250,7 @@ namespace sqlpp throw serialization_failure{err, query}; if (strcmp(code, "40P01") == 0) throw deadlock_detected{err, query}; + break; case '2': if (strcmp(code, "42501") == 0) throw insufficient_privilege{err, query};