dependabot[bot] opened a new pull request, #38398:
URL: https://github.com/apache/beam/pull/38398

   Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.11.1 to 1.12.3.
   <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.3</h2>
   <ul>
   <li>Send datestyle startup parameter, improving compatbility with database 
engines that use a different default datestyle such as EnterpriseDB (<a 
href="https://redirect.github.com/lib/pq/issues/1312";>#1312</a>).</li>
   </ul>
   <p><a href="https://redirect.github.com/lib/pq/issues/1312";>#1312</a>: <a 
href="https://redirect.github.com/lib/pq/pull/1312";>lib/pq#1312</a></p>
   <h2>v1.12.2</h2>
   <ul>
   <li>Treat io.ErrUnexpectedEOF as driver.ErrBadConn so database/sql discards 
the connection. Since v1.12.0 this could result in permanently broken 
connections, especially with CockroachDB which frequently sends partial 
messages (<a 
href="https://redirect.github.com/lib/pq/issues/1299";>#1299</a>).</li>
   </ul>
   <p><a href="https://redirect.github.com/lib/pq/issues/1299";>#1299</a>: <a 
href="https://redirect.github.com/lib/pq/pull/1299";>lib/pq#1299</a></p>
   <h2>v1.12.1</h2>
   <ul>
   <li>
   <p>Look for pgpass file in ~/.pgpass instead of ~/.postgresql/pgpass (<a 
href="https://redirect.github.com/lib/pq/issues/1300";>#1300</a>).</p>
   </li>
   <li>
   <p>Don't clear password if directly set on pq.Config (<a 
href="https://redirect.github.com/lib/pq/issues/1302";>#1302</a>).</p>
   </li>
   </ul>
   <p><a href="https://redirect.github.com/lib/pq/issues/1300";>#1300</a>: <a 
href="https://redirect.github.com/lib/pq/pull/1300";>lib/pq#1300</a>
   <a href="https://redirect.github.com/lib/pq/issues/1302";>#1302</a>: <a 
href="https://redirect.github.com/lib/pq/pull/1302";>lib/pq#1302</a></p>
   <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(&quot;temp&quot;, &quot;num&quot;, &quot;text&quot;, 
&quot;blob&quot;, &quot;nothing&quot;))
   <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 
&amp;&amp; pqErr.Code == pqerror.UniqueViolation {
       log.Fatalf(&quot;email %q already exsts&quot;, email)
   }
   </code></pre>
   <p>To make this a bit more convenient, it also adds a <code>pq.As()</code> 
function:</p>
   </li>
   </ul>
   <!-- raw HTML omitted -->
   </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.3 (2026-04-03)</h2>
   <ul>
   <li>Send datestyle startup parameter, improving compatbility with database 
engines
   that use a different default datestyle such as EnterpriseDB (<a 
href="https://redirect.github.com/lib/pq/issues/1312";>#1312</a>).</li>
   </ul>
   <p><a href="https://redirect.github.com/lib/pq/issues/1312";>#1312</a>: <a 
href="https://redirect.github.com/lib/pq/pull/1312";>lib/pq#1312</a></p>
   <h2>v1.12.2 (2026-04-02)</h2>
   <ul>
   <li>Treat io.ErrUnexpectedEOF as driver.ErrBadConn so database/sql discards 
the
   connection. Since v1.12.0 this could result in permanently broken 
connections,
   especially with CockroachDB which frequently sends partial messages (<a 
href="https://redirect.github.com/lib/pq/issues/1299";>#1299</a>).</li>
   </ul>
   <p><a href="https://redirect.github.com/lib/pq/issues/1299";>#1299</a>: <a 
href="https://redirect.github.com/lib/pq/pull/1299";>lib/pq#1299</a></p>
   <h2>v1.12.1 (2026-03-30)</h2>
   <ul>
   <li>
   <p>Look for pgpass file in ~/.pgpass instead of ~/.postgresql/pgpass (<a 
href="https://redirect.github.com/lib/pq/issues/1300";>#1300</a>).</p>
   </li>
   <li>
   <p>Don't clear password if directly set on pq.Config (<a 
href="https://redirect.github.com/lib/pq/issues/1302";>#1302</a>).</p>
   </li>
   </ul>
   <p><a href="https://redirect.github.com/lib/pq/issues/1300";>#1300</a>: <a 
href="https://redirect.github.com/lib/pq/pull/1300";>lib/pq#1300</a>
   <a href="https://redirect.github.com/lib/pq/issues/1302";>#1302</a>: <a 
href="https://redirect.github.com/lib/pq/pull/1302";>lib/pq#1302</a></p>
   <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(&quot;temp&quot;, &quot;num&quot;, &quot;text&quot;, 
&quot;blob&quot;, &quot;nothing&quot;))
   <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>
   </ul>
   <!-- raw HTML omitted -->
   </blockquote>
   <p>... (truncated)</p>
   </details>
   <details>
   <summary>Commits</summary>
   <ul>
   <li><a 
href="https://github.com/lib/pq/commit/1f3e3d92865dd313b4e146968684d7e3836c76e8";><code>1f3e3d9</code></a>
 Send datestyle as a startup parameter (<a 
href="https://redirect.github.com/lib/pq/issues/1312";>#1312</a>)</li>
   <li><a 
href="https://github.com/lib/pq/commit/32ba56b8f9c09575e3320f0043f4f0bdf0ad2009";><code>32ba56b</code></a>
 Expand tests for multiple result sets</li>
   <li><a 
href="https://github.com/lib/pq/commit/c2cfac15d5048670f784616c0c3dca56f97f49c0";><code>c2cfac1</code></a>
 Release v1.12.2</li>
   <li><a 
href="https://github.com/lib/pq/commit/859f10493799ae5b3fc3706bbef2ee48764dc787";><code>859f104</code></a>
 Test CockroachDB</li>
   <li><a 
href="https://github.com/lib/pq/commit/12e464c3afecfb945fc764001837c137fa764e37";><code>12e464c</code></a>
 Allow multiple matches and regexps in pqtest.ErrorContains()</li>
   <li><a 
href="https://github.com/lib/pq/commit/6d77ced41719616090c9e7eec2c313a18640bc3f";><code>6d77ced</code></a>
 Treat io.ErrUnexpectedEOF as driver.ErrBadConn in handleError</li>
   <li><a 
href="https://github.com/lib/pq/commit/71daecbc4522cf9cb6c399e19b910d22356ebb87";><code>71daecb</code></a>
 Ensure transactions are closed in pqtest</li>
   <li><a 
href="https://github.com/lib/pq/commit/8f448230b50d3c2f796fd20622daaf8ebe3d173c";><code>8f44823</code></a>
 Set PGAPPNAME for tests</li>
   <li><a 
href="https://github.com/lib/pq/commit/4af2196aa02298c23461f2baf538a0679b66a093";><code>4af2196</code></a>
 Fix healthcheck</li>
   <li><a 
href="https://github.com/lib/pq/commit/38a54e44b0a91e12314291c9102714e7f503ba98";><code>38a54e4</code></a>
 Split out testdata/init a bit</li>
   <li>Additional commits viewable in <a 
href="https://github.com/lib/pq/compare/v1.11.1...v1.12.3";>compare view</a></li>
   </ul>
   </details>
   <br />
   
   
   [![Dependabot compatibility 
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/lib/pq&package-manager=go_modules&previous-version=1.11.1&new-version=1.12.3)](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>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to