Skip to content

Commit

Permalink
Merge branch 'develop' into pragma-config
Browse files Browse the repository at this point in the history
  • Loading branch information
dangell7 authored Sep 20, 2024
2 parents 6b2ecbd + 0ece395 commit dadc84a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/xrpld/core/DatabaseCon.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@ class DatabaseCon
{
open(*session_, "sqlite", pPath.string());

for (auto const& p : pragma)
{
soci::statement st = session_->prepare << p;
st.execute(true);
}

if (commonPragma)
{
for (auto const& p : *commonPragma)
Expand All @@ -216,11 +222,7 @@ class DatabaseCon
st.execute(true);
}
}
for (auto const& p : pragma)
{
soci::statement st = session_->prepare << p;
st.execute(true);
}

for (auto const& sql : initSQL)
{
soci::statement st = session_->prepare << sql;
Expand Down

0 comments on commit dadc84a

Please sign in to comment.