0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 12:51:13 +08:00

Add a missing break to the switch case that handles PostgreSQL errors 40XXX. (#552)

This commit is contained in:
MeanSquaredError 2024-01-06 09:41:48 +02:00 committed by GitHub
parent 0cc45bd790
commit dccf3438d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -250,6 +250,7 @@ namespace sqlpp
throw serialization_failure{err, query}; throw serialization_failure{err, query};
if (strcmp(code, "40P01") == 0) if (strcmp(code, "40P01") == 0)
throw deadlock_detected{err, query}; throw deadlock_detected{err, query};
break;
case '2': case '2':
if (strcmp(code, "42501") == 0) if (strcmp(code, "42501") == 0)
throw insufficient_privilege{err, query}; throw insufficient_privilege{err, query};