Repository navigation
ci: build for 32 bit, libs: fix overflow (#5700) - #5724
Merged
Merged
Conversation
erikgrinaker
requested review from
ebuchman,
melekes and
tessr
as code owners
November 30, 2020 09:38
Codecov Report
@@ Coverage Diff @@
## rc0/v0.34.1 #5724 +/- ##
==============================================
Coverage ? 60.56%
==============================================
Files ? 263
Lines ? 23816
Branches ? 0
==============================================
Hits ? 14423
Misses ? 7912
Partials ? 1481 |
tac0turtle
approved these changes
Nov 30, 2020
cboh4
pushed a commit
to scrtlabs/tendermint
that referenced
this pull request
May 9, 2026
…endermint#5713) (tendermint#5724) Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.11.2 to 1.12.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/lib/pq/releases">github.com/lib/pq's releases</a>.</em></p> <blockquote> <h2>v1.12.0</h2> <ul> <li> <p>The next release may change the default sslmode from <code>require</code> to <code>prefer</code>. See <a href="https://redirect.github.com/lib/pq/issues/1271">#1271</a> for details.</p> </li> <li> <p><code>CopyIn()</code> and <code>CopyInToSchema()</code> have been marked as deprecated. These are simple query builders and not needed for <code>COPY [..] FROM STDIN</code> support (which is <em>not</em> deprecated). (<a href="https://redirect.github.com/lib/pq/issues/1279">#1279</a>)</p> <pre><code>// Old tx.Prepare(CopyIn("temp", "num", "text", "blob", "nothing")) <p>// Replacement tx.Prepare(<code>copy temp (num, text, blob, nothing) from stdin</code>) </code></pre></p> </li> </ul> <h3>Features</h3> <ul> <li> <p>Support protocol 3.2, and the <code>min_protocol_version</code> and <code>max_protocol_version</code> DSN parameters (<a href="https://redirect.github.com/lib/pq/issues/1258">#1258</a>).</p> </li> <li> <p>Support <code>sslmode=prefer</code> and <code>sslmode=allow</code> (<a href="https://redirect.github.com/lib/pq/issues/1270">#1270</a>).</p> </li> <li> <p>Support <code>ssl_min_protocol_version</code> and <code>ssl_max_protocol_version</code> (<a href="https://redirect.github.com/lib/pq/issues/1277">#1277</a>).</p> </li> <li> <p>Support connection service file to load connection details (<a href="https://redirect.github.com/lib/pq/issues/1285">#1285</a>).</p> </li> <li> <p>Support <code>sslrootcert=system</code> and use <code>~/.postgresql/root.crt</code> as the default value of sslrootcert (<a href="https://redirect.github.com/lib/pq/issues/1280">#1280</a>, <a href="https://redirect.github.com/lib/pq/issues/1281">#1281</a>).</p> </li> <li> <p>Add a new <code>pqerror</code> package with PostgreSQL error codes (<a href="https://redirect.github.com/lib/pq/issues/1275">#1275</a>).</p> <p>For example, to test if an error is a UNIQUE constraint violation:</p> <pre><code>if pqErr, ok := errors.AsType[*pq.Error](https://github.com/lib/pq/blob/HEAD/err); ok && pqErr.Code == pqerror.UniqueViolation { log.Fatalf("email %q already exsts", email) } </code></pre> <p>To make this a bit more convenient, it also adds a <code>pq.As()</code> function:</p> <pre><code>pqErr := pq.As(err, pqerror.UniqueViolation) if pqErr != nil { log.Fatalf("email %q already exsts", email) } </code></pre> </li> </ul> <h3>Fixes</h3> <ul> <li> <p>Fix SSL key permission check to allow modes stricter than 0600/0640 (<a href="https://redirect.github.com/lib/pq/issues/1265">#1265</a>).</p> </li> <li> <p>Fix Hstore to work with binary parameters (<a href="https://redirect.github.com/lib/pq/issues/1278">#1278</a>).</p> </li> <li> <p>Clearer error when starting a new query while pq is still processing another query (<a href="https://redirect.github.com/lib/pq/issues/1272">#1272</a>).</p> </li> <li> <p>Send intermediate CAs with client certificates, so they can be signed by an intermediate CA (<a href="https://redirect.github.com/lib/pq/issues/1267">#1267</a>).</p> </li> <li> <p>Use <code>time.UTC</code> for UTC aliases such as <code>Etc/UTC</code> (<a href="https://redirect.github.com/lib/pq/issues/1283">#1283</a>).</p> </li> </ul> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/lib/pq/blob/master/CHANGELOG.md">github.com/lib/pq's changelog</a>.</em></p> <blockquote> <h2>v1.12.0 (2026-03-18)</h2> <ul> <li> <p>The next release may change the default sslmode from <code>require</code> to <code>prefer</code>. See <a href="https://redirect.github.com/lib/pq/issues/1271">#1271</a> for details.</p> </li> <li> <p><code>CopyIn()</code> and <code>CopyInToSchema()</code> have been marked as deprecated. These are simple query builders and not needed for <code>COPY [..] FROM STDIN</code> support (which is <em>not</em> deprecated). (<a href="https://redirect.github.com/lib/pq/issues/1279">#1279</a>)</p> <pre><code>// Old tx.Prepare(CopyIn("temp", "num", "text", "blob", "nothing")) <p>// Replacement tx.Prepare(<code>copy temp (num, text, blob, nothing) from stdin</code>) </code></pre></p> </li> </ul> <h3>Features</h3> <ul> <li> <p>Support protocol 3.2, and the <code>min_protocol_version</code> and <code>max_protocol_version</code> DSN parameters (<a href="https://redirect.github.com/lib/pq/issues/1258">#1258</a>).</p> </li> <li> <p>Support <code>sslmode=prefer</code> and <code>sslmode=allow</code> (<a href="https://redirect.github.com/lib/pq/issues/1270">#1270</a>).</p> </li> <li> <p>Support <code>ssl_min_protocol_version</code> and <code>ssl_max_protocol_version</code> (<a href="https://redirect.github.com/lib/pq/issues/1277">#1277</a>).</p> </li> <li> <p>Support connection service file to load connection details (<a href="https://redirect.github.com/lib/pq/issues/1285">#1285</a>).</p> </li> <li> <p>Support <code>sslrootcert=system</code> and use <code>~/.postgresql/root.crt</code> as the default value of sslrootcert (<a href="https://redirect.github.com/lib/pq/issues/1280">#1280</a>, <a href="https://redirect.github.com/lib/pq/issues/1281">#1281</a>).</p> </li> <li> <p>Add a new <code>pqerror</code> package with PostgreSQL error codes (<a href="https://redirect.github.com/lib/pq/issues/1275">#1275</a>).</p> <p>For example, to test if an error is a UNIQUE constraint violation:</p> <pre><code>if pqErr, ok := errors.AsType[*pq.Error](https://github.com/lib/pq/blob/master/err); ok && pqErr.Code == pqerror.UniqueViolation { log.Fatalf("email %q already exsts", email) } </code></pre> <p>To make this a bit more convenient, it also adds a <code>pq.As()</code> function:</p> <pre><code>pqErr := pq.As(err, pqerror.UniqueViolation) if pqErr != nil { log.Fatalf("email %q already exsts", email) } </code></pre> </li> </ul> <h3>Fixes</h3> <ul> <li> <p>Fix SSL key permission check to allow modes stricter than <a href="https://redirect.github.com/0600/0640/issues/0600">0600/06400600</a> (<a href="https://redirect.github.com/lib/pq/issues/1265">#1265</a>).</p> </li> <li> <p>Fix Hstore to work with binary parameters (<a href="https://redirect.github.com/lib/pq/issues/1278">#1278</a>).</p> </li> </ul> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/lib/pq/commit/42ab0ff7c4b1b585fa6cd216a12a126715b5af06"><code>42ab0ff</code></a> Change default sslmode from "require" to "prefer"</li> <li><a href="https://github.com/lib/pq/commit/6d40f13cfefe5ae4b489404b45114ba03224947a"><code>6d40f13</code></a> Release v1.12.0</li> <li><a href="https://github.com/lib/pq/commit/386fc0e764f82951e9706dd8e618fc416fb5fb2c"><code>386fc0e</code></a> Document NULL behaviour with COPY</li> <li><a href="https://github.com/lib/pq/commit/a62682e9083edee5ffe2d3904e80c30aaaa0877f"><code>a62682e</code></a> Better staticcheck cache 2</li> <li><a href="https://github.com/lib/pq/commit/87ee06c600347478cfef07ad31b5ea617008aee7"><code>87ee06c</code></a> Better staticcheck cache</li> <li><a href="https://github.com/lib/pq/commit/09624587cd3d4b69cd4a1a3b403b544ec0ddb2f7"><code>0962458</code></a> Rewrite tests to use pqerror, pq.As()</li> <li><a href="https://github.com/lib/pq/commit/0d209810a155b9b8a173ab6d5da332f8c6cbc2c9"><code>0d20981</code></a> Don't move pq.Error to pqerror.Error</li> <li><a href="https://github.com/lib/pq/commit/433213859e656dfe7dbba17b2838839e03a43ca2"><code>4332138</code></a> Add pqerror package</li> <li><a href="https://github.com/lib/pq/commit/620d6d50817f9c4dcbfcbfeadb12ec552b636bf3"><code>620d6d5</code></a> Make tests run faster</li> <li><a href="https://github.com/lib/pq/commit/dc8ff5d519b00bfa67626e68ea1ff3fdde0cc1b2"><code>dc8ff5d</code></a> Implement connection service file</li> <li>Additional commits viewable in <a href="https://github.com/lib/pq/compare/v1.11.2...v1.12.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details><hr>This is an automatic backport of pull request tendermint#5713 done by [Mergify](https://mergify.com). --------- Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: mattac21 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #5700.