<p>If somebody is opening a database in a read-only mode (eg for query then we really have no business to <em>create</em> such database if not existing.</p>
<p>This implicit discard of read-only flag is such a long standing behavior that this is likely to break stuff here and there.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/rpm-software-management/rpm/pull/1443'>https://github.com/rpm-software-management/rpm/pull/1443</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Stop on first failure when trying to open a database (RhBug:1898301)</li>
  <li>Disable implicit database creation on read-only handle</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/1443/files#diff-3bcb27871839126da320be8af20e3460b81027880f59959cc3629ba060b2aff5">lib/backend/db3.c</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/1443/files#diff-8cc0ef4a80dabb07a83a60864adec0e0b57e3c51be2ebe07a1cdc5ea88e7c9bb">lib/backend/ndb/glue.c</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/1443/files#diff-fe435dee0d247c1f860c1fe1c57dc87d512ca16c3a6267c925dc25ad3bcf6cad">lib/backend/sqlite.c</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/1443/files#diff-146c5f442151e852946e7bb810d02772ca7490aacc54f8aae3a85cad23b9df1f">lib/rpmdb.c</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/1443/files#diff-ecd50875b469a493b97d83773bf459b66298f9bab4e1cc18c2f847c7df719c12">tests/local.at</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/1443/files#diff-83573198e475dd20fd678755581874e2abfc6226fba1a074265b5a79ecaf0d78">tests/rpmdb.at</a>
    (13)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/1443/files#diff-69b2f79fa76a53c929296b53b41606501a752b6d1701f6dd048a7e1013b4b118">tests/rpmpython.at</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/rpm-software-management/rpm/pull/1443.patch'>https://github.com/rpm-software-management/rpm/pull/1443.patch</a></li>
  <li><a href='https://github.com/rpm-software-management/rpm/pull/1443.diff'>https://github.com/rpm-software-management/rpm/pull/1443.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/pull/1443">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZUYLQSGOWIKGQH6WNJDSQO3A7ANCNFSM4TZ4ODHA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ADLPZU3NOGSQRH22DBJMQY3SQO3A7A5CNFSM4TZ4ODHKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4LDRCI2Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/pull/1443",
"url": "https://github.com/rpm-software-management/rpm/pull/1443",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>