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:
parent
0cc45bd790
commit
dccf3438d3
@ -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};
|
||||||
|
Loading…
Reference in New Issue
Block a user